SOAPMessageFormatter is called for serializing both multipart/related and text/xml responses. However, it seems like some code in Carbon is overriding the Content-Type set by the formatter. I'm trying to replace CarbonServlet with AxisServlet and see what happens.
On Tue, Jan 4, 2011 at 9:26 PM, Ruwan Linton <[email protected]> wrote: > Looks like the content type or the message type property is being altered > and the SOAP message formatter is selected instead of the multipart-related > message formatter. > > Ruwan > > On Tue, Jan 4, 2011 at 8:53 PM, Afkham Azeez <[email protected]> wrote: > >> This looks like an error on our end. I created a simple service and set >> the enableMTOM parameter to true. >> >> When I deployed that service *on Simple Axis server*, and invoked it >> using SOAP UI, I got the following response: >> >> HTTP/1.1 200 OK >> Date: Tue, 04 Jan 2011 15:14:42 GMT >> Server: Simple-Server/1.1 >> Transfer-Encoding: chunked >> *Content-Type: multipart/related; >> boundary="MIMEBoundary_826ad2cd3c9f9139ddc2e9428b810eb4137fd90930f13ff8"; >> type="application/xop+xml"; start="< >> [email protected]>"; >> start-info="text/xml"* >> >> --MIMEBoundary_826ad2cd3c9f9139ddc2e9428b810eb4137fd90930f13ff8 >> Content-Type: application/xop+xml; charset=UTF-8; type="text/xml" >> Content-Transfer-Encoding: binary >> Content-ID: < >> [email protected]> >> >> <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv=" >> http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns:additionResponse >> xmlns:ns="http://charitha.org >> "><ns:return>244</ns:return></ns:additionResponse></soapenv:Body></soapenv:Envelope> >> --MIMEBoundary_826ad2cd3c9f9139ddc2e9428b810eb4137fd90930f13ff8-- >> >> >> However, when I deployed that same service *on WSO2 AS *I got the invalid >> response: >> >> HTTP/1.1 200 OK >> Server: Apache-Coyote/1.1 >> *Content-Type: text/xml;charset=UTF-8* >> Transfer-Encoding: chunked >> Content-Encoding: gzip >> Vary: Accept-Encoding >> Date: Tue, 04 Jan 2011 15:19:52 GMT >> >> --MIMEBoundary_54171ca790b7b96d69703973e02d7a486e1fb748ceefd6fb >> Content-Type: application/xop+xml; charset=UTF-8; type="text/xml" >> Content-Transfer-Encoding: binary >> Content-ID: < >> [email protected]> >> >> <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv=" >> http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns:additionResponse >> xmlns:ns="http://charitha.org >> "><ns:return>244</ns:return></ns:additionResponse></soapenv:Body></soapenv:Envelope> >> --MIMEBoundary_54171ca790b7b96d69703973e02d7a486e1fb748ceefd6fb-- >> >> As you can clearly see, in WSO2 AS, the Content type is not properly set: >> *Content-Type: text/xml;charset=UTF-8* >> >> >> _______________________________________________ >> Carbon-dev mailing list >> [email protected] >> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev >> >> > > _______________________________________________ > Carbon-dev mailing list > [email protected] > https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > -- *Afkham Azeez* Senior Software Architect & Senior Manager; WSO2, Inc.; http://wso2.com, * * *Member; Apache Software Foundation; **http://www.apache.org/*<http://www.apache.org/> * email: **[email protected]* <[email protected]>* cell: +94 77 3320919 blog: **http://blog.afkham.org* <http://blog.afkham.org>* twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez> * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware*
_______________________________________________ Carbon-dev mailing list [email protected] https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
