[
https://issues.apache.org/jira/browse/AXIS2-2463?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12486861
]
Keith Godwin Chapman commented on AXIS2-2463:
---------------------------------------------
Hi Steven,
I understand your concern. May be I was not that clear before. Heres how it
works...
In the genarated stub the soap envelop is created as follows
env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI());
Unless the SOAP version is set explicitly the getSoapVersionURI() method
returns the SOAP 1.1 namespace (which is the default that axis2 uses). This is
the reson for setting the SOAP 1.2 namespace explicitly as Axis defaults to
SOAP 1.1.
Thanks,
Keith.
> WSDL 2 bindings to SOAP 1.2 over HTTP should cause ServiceClient to use SOAP
> 1.2 by default
> -------------------------------------------------------------------------------------------
>
> Key: AXIS2-2463
> URL: https://issues.apache.org/jira/browse/AXIS2-2463
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: wsdl
> Affects Versions: nightly
> Environment: N/A
> Reporter: Steven E. Harris
> Assigned To: Keith Godwin Chapman
> Priority: Minor
>
> Per the discussion at
> Getting client stub to use SOAP version 1.2
> http://thread.gmane.org/gmane.comp.apache.webservices.axis.user/54837
> when a WSDL 2.0 file specifies a binding to SOAP 1.2 over HTTP with the
> attribute
> wsoap:protocol="http://www.w3.org/2003/05/soap/bindings/HTTP"
> the AXIS2 WSDL2Java program (or whatever else is involved) should force the
> generate stub's ServiceClient to use SOAP 1.2 by default, rather than SOAP
> 1.1 as it does now.
> The workaround at present is to call
> stub._getServiceClient().getOptions().
> setSoapVersionURI(
> org.apache.axiom.soap.SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI );
> but that step should not be necessary.
--
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]