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

Reply via email to