Kelvin Lin <[EMAIL PROTECTED]> writes:
>
> I used printf to display om_str is:
>
> Sending OM : <SOAP-ENV:Envelope xmlns:SOAP-ENV = 'http://schemas.xmlsoap.org/
> soap/envelope/' xmlns:ns1 = 'http://stockquote' xmlns:xsi =
> 'http://www.w3.org/
> 1999/XMLSchema-instance' xmlns:SOAP-ENC = 'http://schemas.xmlsoap.org/soap/
> encoding/' xmlns:xsd = 'http://www.w3.org/1999/XMLSchema'><SOAP-ENV:Body>
> <ns1:getQuote><ns1:symbol>ABC</ns1:symbol></ns1:getQuote></SOAP-ENV:Body></
> SOAP-ENV:Envelope>
>
> But I used tcpmon to monitor is:
>
> <soapenv:Envelope xmlns:soapenv = 'http://www.w3.org/2003/05/soap-envelope'>
> <soapenv:Header></soapenv:Header><soapenv:Body xmlns:soapenv = 'http://
> www.w3.org/2003/05/soap-envelope'><SOAP-ENV:Envelope xmlns:SOAP-ENV = 'http://
> schemas.xmlsoap.org/soap/envelope/' xmlns:ns1 = 'http://stockquote' xmlns:xsi
> =
> 'http://www.w3.org/1999/XMLSchema-instance' xmlns:SOAP-ENC = 'http://
> schemas.xmlsoap.org/soap/encoding/' xmlns:xsd = 'http://www.w3.org/1999/
> XMLSchema'><SOAP-ENV:Body><ns1:getQuote><ns1:symbol>ABC</ns1:symbol></
> ns1:getQuote></SOAP-ENV:Body></SOAP-ENV:Envelope></soapenv:Body></
> soapenv:Envelope>
>
> I want the exactly soap message is:
>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://
> www.w3.org/1999/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/1999/XMLSchema
> " xmlns:ns1="http://stockquote">
> <SOAP-ENV:Body>
> <ns1:getQuote>
> <ns1:symbol>IBM</ns1:symbol>
> </ns1:getQuote>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
>
> Why could be this? I have no any idea. How should I do, then I can get the
> soap
> message I want.
This because your service client send SOAP1.2 message. If you need to
use SOAP1.1 need to tell it explicitly.
axis2_options_set_soap_version(options, env, AXIOM_SOAP11);
option will work. Please refer echo_blocking_soap11 [1] sample for
more information.
thanks,
Dinesh
[1].http://svn.apache.org/repos/asf/webservices/axis2/trunk/c/samples/user_guide/clients/echo_blocking_soap11.c
--
Dinesh Premalal
http://xydinesh.wordpress.com/
GPG ID : A255955C
GPG Key Finger Print : C481 E5D4 C27E DC34 9257 0229 4F44 266E A255 955C
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]