Please get an update of Axis2 trunk, and build the Axis2 orbit as well as Carbon core projects.
On Tue, Jan 4, 2011 at 10:35 PM, Afkham Azeez <az...@wso2.com> wrote: > This problem is there even in Axis2. In manifests itself only when Axis2 is > deployed as a WAR. We've been doing all our testing using SimpleAxisServer, > so the AxisServlet does not get called. Once I deployed the axis2.war on > Tomcat, I was able to reproduce the same error we've been seeing on Carbon. > > Azeez > > > On Tue, Jan 4, 2011 at 10:19 PM, Afkham Azeez <az...@wso2.com> wrote: > >> The culprit seems to be the following lines 162-164 of code in AxisServlet >> (CarbonServlet extends AxisServlet and uses the doPort method). That code >> overrides the content type set by the MessageFormatters. Once I removed that >> code, everything seems to be working fine. >> >> response.setContentType("text/xml; charset=" >> + msgContext >> >> .getProperty(Constants.Configuration.CHARACTER_SET_ENCODING)); >> >> On Tue, Jan 4, 2011 at 9:50 PM, Afkham Azeez <az...@wso2.com> wrote: >> >>> 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 <ru...@wso2.com> 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 <az...@wso2.com> 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="< >>>>> 0.926ad2cd3c9f9139ddc2e9428b810eb4137fd90930f13...@apache.org>"; >>>>> start-info="text/xml"* >>>>> >>>>> --MIMEBoundary_826ad2cd3c9f9139ddc2e9428b810eb4137fd90930f13ff8 >>>>> Content-Type: application/xop+xml; charset=UTF-8; type="text/xml" >>>>> Content-Transfer-Encoding: binary >>>>> Content-ID: < >>>>> 0.926ad2cd3c9f9139ddc2e9428b810eb4137fd90930f13...@apache.org> >>>>> >>>>> <?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: < >>>>> 0.44171ca790b7b96d69703973e02d7a486e1fb748ceefd...@apache.org> >>>>> >>>>> <?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 >>>>> Carbon-dev@wso2.org >>>>> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> Carbon-dev mailing list >>>> Carbon-dev@wso2.org >>>> 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: **az...@wso2.com* <az...@wso2.com>* 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* >>> >>> >> >> >> -- >> *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: **az...@wso2.com* <az...@wso2.com>* 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* >> >> > > > -- > *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: **az...@wso2.com* <az...@wso2.com>* 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* > > -- *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: **az...@wso2.com* <az...@wso2.com>* 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 Carbon-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev