[
https://issues.apache.org/jira/browse/AXIS2-2463?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12486608
]
Keith Godwin Chapman commented on AXIS2-2463:
---------------------------------------------
Axis uses SOAP 1.2 by default unless specified. The getFactory method which is
a static method in the Stub class therefore defaults to SOAP 1.1. Its true that
WSDL 2.0 defaults to SOAP 1.2 unless specified though.
Due to this reason the codegenaration framework sticks in the above property to
set the soap version. Thats the only way to change the soap version used.
In http://thread.gmane.org/gmane.comp.apache.webservices.axis.user/54837 I
noticed that your binding is missing a required attribute wsoap:version [1].
Thanks,
Keith.
[1]
http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/wsdl20/wsdl20-adjuncts.html?content-type=text/html;%20charset=utf-8.
> 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]