I'm sorry Rio, I'm at work now and
I can't look JBossWS sources now.
All I can do now is look at client log4j logs.
If I enable WS-Security I can see this where I can find
two times
...HEADER={SOAPAction="", Content-Type=text/xml...
| ...
| DEBUG main org.jboss.remoting.MicroRemoteClientInvoker -
org.jboss.remoting.transport.http.HTTPClientInvoker@1922f46 connecting
| DEBUG main org.jboss.remoting.MicroRemoteClientInvoker -
org.jboss.remoting.transport.http.HTTPClientInvoker@1922f46 connected
| DEBUG main org.jboss.ws.core.client.RemotingConnectionImpl - Remoting metadata:
{http.basic.password=mypassword, http.basic.username=myusername,
HEADER={SOAPAction="", Content-Type=text/xml; charset=UTF-8},
NoThrowOnError=true}
| DEBUG main org.jboss.remoting.transport.http.HTTPClientInvoker - Setting request
header with SOAPAction : ""
| DEBUG main org.jboss.remoting.transport.http.HTTPClientInvoker - Setting request
header with Content-Type : text/xml; charset=UTF-8
| DEBUG main org.jboss.ws.core.soap.SOAPContentElement - MTOM enabled: Restore XOP data
| DEBUG main org.jboss.ws.extensions.xop.XOPContext - Replace base64 representation on
element [xmlName=inputMessage]
| DEBUG main org.jboss.ws.extensions.xop.jaxrpc.XOPMarshallerImpl - serialize:
[xmlName=attachment]
| DEBUG main org.jboss.ws.core.soap.attachment.CIDGenerator - generateFromName:
attachment-37b4f42c-7f38-43b1-b905-9e5d3a3b08c8(a)ws.jboss.org
| DEBUG main org.jboss.ws.extensions.xop.jaxrpc.XOPMarshallerImpl - Created attachment
part attachment-37b4f42c-7f38-43b1-b905-9e5d3a3b08c8(a)ws.jboss.org, with content-type
application/octet-stream
| DEBUG main org.jboss.ws.extensions.xop.XOPContext - Restored xop:Include element on
[xmlName=attachment]
| DEBUG main org.jboss.ws.core.soap.SOAPMessageUnMarshaller - getMimeHeaders from:
{X-Powered-By=[Servlet 2.4; JBoss-4.2.0.GA (build: SVNTag=JBoss_4_2_0_GA
date=200705111440)/Tomcat-5.5], ResponseCodeMessage=OK, http.basic.password=mypassword,
Date=[Tue, 26 Jun 2007 13:23:19 GMT], http.basic.username=myusername,
Content-Type=[text/xml;charset=UTF-8], Server=[Apache-Coyote/1.1],
HEADER={SOAPAction="", Content-Type=text/xml; charset=UTF-8},
Transfer-Encoding=[chunked], NoThrowOnError=true, ResponseCode=200}
| DEBUG main org.jboss.ws.core.soap.MessageFactoryImpl - createMessage:
[contentType=text/xml; charset=UTF-8]
|
Instead If I disable WS-Security the Content-Type is correct (and type too)
| ...
| DEBUG main org.jboss.remoting.MicroRemoteClientInvoker -
org.jboss.remoting.transport.http.HTTPClientInvoker@82751 connected
| DEBUG main org.jboss.ws.core.client.RemotingConnectionImpl - Remoting metadata:
{http.basic.password=mypassword, http.basic.username=myusername,
HEADER={SOAPAction="", Content-Type=multipart/related;
type="application/xop+xml"; start="<rootpart(a)ws.jboss.org>";
|
| start-info="text/xml";
|
| boundary="----=_Part_0_7896086.1182865340817"}, NoThrowOnError=true}
| DEBUG main org.jboss.remoting.transport.http.HTTPClientInvoker - Setting request
header with SOAPAction : ""
| DEBUG main org.jboss.remoting.transport.http.HTTPClientInvoker - Setting request
header with Content-Type : multipart/related; type="application/xop+xml";
start="<rootpart(a)ws.jboss.org>";
|
| start-info="text/xml";
|
| boundary="----=_Part_0_7896086.1182865340817"
| DEBUG main org.jboss.ws.core.soap.SOAPMessageUnMarshaller - getMimeHeaders from:
{Connection=[close], X-Powered-By=[Servlet 2.4; JBoss-4.2.0.GA (build:
SVNTag=JBoss_4_2_0_GA date=200705111440)/Tomcat-5.5], ResponseCodeMessage=Internal Server
Error, http.basic.password=mypassword, Date=[Tue, 26 Jun 2007 13:42:21 GMT],
http.basic.username=myusername, Content-Type=[text/xml;charset=UTF-8],
Server=[Apache-Coyote/1.1], HEADER={SOAPAction="",
Content-Type=multipart/related; type="application/xop+xml";
start="<rootpart(a)ws.jboss.org>";
|
| start-info="text/xml";
|
| boundary="----=_Part_0_7896086.1182865340817"},
Transfer-Encoding=[chunked], NoThrowOnError=true, ResponseCode=500}
| DEBUG main org.jboss.ws.core.soap.MessageFactoryImpl - createMessage:
[contentType=text/xml; charset=UTF-8]
| ...
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057717#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...