Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
None
Description
When sending following request with setting following parameter
<parameter name="enableRESTInAxis2MainServlet" locked="true">true</parameter>
got SOAP fault , and I found the issue is due to problem in AxisServlet line 540.
POST /axis2/services/FirstService HTTP/1.1
User-Agent: Axis2
Host: localhost:8000
Transfer-Encoding: chunked
Content-Type: application/soap+xml; charset=UTF-8;action="urn:weekdayOfDate";
14a
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Header />
<soapenv:Body>
<ns1:weekdayOfDate xmlns:ns1="http://pojo/xsd">
<ns1:year>2006</ns1:year>
<ns1:month>11</ns1:month>
<ns1:dayOfMonth>29</ns1:dayOfMonth>
</ns1:weekdayOfDate>
</soapenv:Body>
</soapenv:Envelope>0
==== Response ====
HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=UTF-8
Transfer-Encoding: chunked
Date: Wed, 29 Nov 2006 11:19:02 GMT
Connection: close
335
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header>
<wsa:ReplyTo>
<wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
</wsa:ReplyTo>
<wsa:MessageID>urn:uuid:52E50C5E42695616EA11647991428604</wsa:MessageID>
<wsa:Action>http://www.w3.org/2005/08/addressing/soap/fault</wsa:Action>
</soapenv:Header>
<soapenv:Body>
<soapenv:Fault>
<faultcode></faultcode>
<faultstring>Content type should be one of /n text/xml/n application/x-www-form-urlencoded/n multipart/related; nested exception is: org.apache.axis2.AxisFault: Content type should be one of /n text/xml/n application/x-www-form-urlencoded/n multipart/related</faultstring>
<detail />
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>