Transport level information does not match with SOAP Message namespace URI
--------------------------------------------------------------------------

                 Key: AXIS2-2129
                 URL: https://issues.apache.org/jira/browse/AXIS2-2129
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: transports
    Affects Versions: 1.1
         Environment: Windows XP, Tomcat 5.5.20
            Reporter: WY Ho
         Attachments: codeSrc.zip

Hi,

I got the following error:

10:10:43,890  [main] DEBUG Wire : << "<?xml version='1.0' 
encoding='UTF-8'?><soapenv:Envelope xmlns:ws"
10:10:43,890  [main] DEBUG StAXUtils : XMLStreamReader is 
com.sun.xml.stream.XMLReaderImpl
10:10:43,905  [main] DEBUG Wire : <<"a="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:96F2F716A6F976F660117086104378010</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: 
[\n]"
10:10:43,905  [main] DEBUG Wire : << "[0x9]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>"
10:10:43,905  [main] DEBUG StAXOMBuilder : START_ELEMENT:
{http://schemas.xmlsoap.org/soap/envelope/}Envelope:Envelope
10:10:43,921  [main] DEBUG StAXSOAPModelBuilder : Starting to process SOAP 1.1 
message
10:10:43,921  [main] DEBUG StAXSOAPModelBuilder : Build the OMElelment 
EnvelopeBy the StaxSOAPModelBuilder
org.apache.axis2.AxisFault: Transport level information does not match with 
SOAP Message namespace URI; nested exception is: 
        org.apache.axiom.soap.SOAPProcessingException: Transport level 
information does not match with SOAP Message namespace URI
        at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:126)
        at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:67)
        at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:381)
        at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:295)

It looks like the client stub class is creating a SOAP 1.2 envelope message, as 
the following:
_operationClient.getOptions().getSoapVersionURI() returns 
http://www.w3.org/2003/05/soap-envelope (namespace SOQP1.2)

But the StAXSOAPModelBuilder is trying to process it as SOAP 1.1 message (?), 
refer to the above logs.

Any pointers how to solve this?
Check the wso has article on this, http://wso2.org/library/559.
But how do you control the
_operationClient.getOptions().getSoapVersionURI() to return the correct SOAP 
version?

Thanks in advance,
wen


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