Closed gregturn closed 9 years ago
Arjen Poutsma commented
I am having problems reproducing this. Can you attach a simple, minimal test case that reproduces this behavior?
Dustin Clark commented
This is also happening to us in a Grails app and Spring WS 2.2.0. The ContentType header is set correctly while running locally, but running on Weblogic (10.3.6), the header is set to text/xml.
<Dec 30, 2014 12:52:45 PM CST> <Notice> <Stdout> <BEA-000000> <2014-12-30 12:52:45,931 [[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] TRACE MessageTracing.sent - Sent request [------=_Part_1_370067740.1419965565920
Content-Type: text/xml; charset=utf-8
Content-Transfer-Encoding: 8bit
Content-ID: <soapPart>
2014-12-30 12:43:23,021 [http-bio-8081-exec-14] TRACE MessageTracing.sent - Sent request [------=_Part_4_1021751216.1419965003018
Content-Type: application/xop+xml; charset=utf-8; type="text/xml"
Can we re-open?
Dustin Clark commented
Disregard. Pulling in saaj-impl 1.3.23 and preferring application classes for javax.xml.soap.* resolved this issue.
Govinda Reddy opened SWS-855 and commented
Spring WS isnot generating raw message as below mentioned
Any client accessing this web service expects Content-Type as application/xop+xml.
Due to this content type mismatch client is not receiving the response ant throwing error as below mentioned
System.ServiceModel.ProtocolException: The content type application/xop+xml;type="application/soap+xml" of the response message does not match the content type of the binding (multipart/related; type="application/xop+xml"). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly.”
XSD
Spring config
Please let me know how to fix this issue.
Affects: 2.1.3