Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Invalid
-
1.1.0
-
None
Description
sent a request to echo service using wget. Though the request i sent is SOAP12 , Axis2/C engine sends me SOAP11 fault back.
request
======
POST /axis2/services/echo HTTP/1.0
User-Agent: Wget/1.10.2
Accept: /
Host: 127.0.0.1:9090
Connection: Keep-Alive
Content-Type: application/x-www-form-url
Content-Length: 512
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:To>http://localhost:9089/axis2/services/echo</wsa:To>
<wsa:Action>http://ws.apache.org/axis2/c/samples/echoString</wsa:Action>
<wsa:MessageID>0c69d0c6-86b6-1dc1-275c-001125b4e529</wsa:MessageID>
</soapenv:Header>
<soapenv:Body>
<ns1:echoString xmlns:ns1="http://ws.apache.org/axis2/services/echo">
<text>Hello World!</text>
</ns1:echoString>
</soapenv:Body></soapenv:Envelope>
response
======
HTTP/1.0 500 Internal Server Error
Content-Type: text/xml;charset=UTF-8
Connection: Keep-Alive
Content-Length: 255
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server</faultcode>
<faultstring>Operation Not Found</faultstring>
</soapenv:Fault>
</soapenv:Body></soapenv:Envelope>
However after setting "Content-Type: application/soap+xml;charset=UTF-8", it functions correctly.