[ 
https://issues.apache.org/jira/browse/AXIS2C-776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12543783
 ] 

Sahan Gamage commented on AXIS2C-776:
-------------------------------------

agreed. We should send "Invalid content type" or something like that.  Since 
content type is used to infer soap version, receiving invalid content type 
means that we cannot infer sender's soap version at transport level and hence 
we might have to switch to default soap version when sending fault.. just 
thinking aloud ...

> 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]

Reply via email to