Hi all,
I am using apache-servicemix-4.0.0. I have a http provider end point which
is defined as below
  <http:endpoint service="test:hello"
               endpoint="endpoint"
                 role="provider" 
                
locationURI="http://localhost:80/axis2/services/TestService";
                
            soapVersion ="1.2"
                 />  
I am calling an external web service defined in Axis2 web server
when I am using below soap message it works
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope";
xmlns:test="http://test";>
   <soap:Header
xmlns:wsa="http://www.w3.org/2005/08/addressing";><wsa:Action>urn:hello</wsa:Action>
<wsa:To>http://localhost:80/axis2/services/TestService</wsa:To>

<entity>abc</entity></soap:Header>
   <soap:Body>
      <test:hello>
         <!--Optional:-->
         <test:i>1</test:i>
      </test:hello>
   </soap:Body>
</soap:Envelope>

if i use soap 1.2 namesapce as below 
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope";
xmlns:test="http://test";>
   <soap:Header
xmlns:wsa="http://www.w3.org/2005/08/addressing";><wsa:Action>urn:hello</wsa:Action>
<wsa:To>http://localhost/axis2/services/TestService</wsa:To>

<entity>abc</entity></soap:Header>
   <soap:Body>
      <test:hello>
         <!--Optional:-->
         <test:i>1</test:i>
      </test:hello>
   </soap:Body>
</soap:Envelope>
it is returning me soap fault as below. I am sure axis2 is soap1.2 enabled,
because if I send the above message from soapui to axis2 it returns correct
result to me.
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";><soapenv:Header
xmlns:wsa="http://www.w3.org/2005/08/addressing";><wsa:Action>http://www.w3.org/2005/08/addressing/soap/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soap:VersionMismatch</faultcode><faultstring>Transport
level information does not match with SOAP Message namespace
URI</faultstring><detail/></soapenv:Fault></soapenv:Body></soapenv:Envelope>

Please suggest

-- 
View this message in context: 
http://old.nabble.com/smx4-http-provider-soap12-version-mismatch-tp28250751p28250751.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to