[
https://issues.apache.org/jira/browse/AXIS2C-776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12543795
]
Dinesh Premalal commented on AXIS2C-776:
----------------------------------------
I think for soap12 messages , media type "application/soap+xml" is recommendad
and "application/x-www-form-urlencoded" media type may not be suitable.
Therefore the request that I sent to the server is incorrect. On the other
hand, in server side engine decides that "application/x-www-form-urlencoded"
media types come only with REST messages and , it is trying to go ahead with
REST processing. My understanding is , this handling is quite pragmatic. When
processing REST message, though it is able to dispatch the service , it can not
locate the operation. Therefore , from that point of view , the soap fault I
got is also acceptable.
> For "Content-Type: application/x-www-form-url" echo service generates SOAP11
> fault
> ----------------------------------------------------------------------------------
>
> Key: AXIS2C-776
> URL: https://issues.apache.org/jira/browse/AXIS2C-776
> Project: Axis2-C
> Issue Type: Bug
> Components: core/engine, core/transport, xml/soap
> Affects Versions: 1.1.0, Current (Nightly)
> Reporter: Dinesh Premalal
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]