[ 
https://issues.apache.org/jira/browse/AXIS2-2463?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12486687
 ] 

Steven E. Harris commented on AXIS2-2463:
-----------------------------------------

I'm confused by your wording. In the first sentence you say AXIS2 uses SOAP 1.2 
by default, then that the Stub class defaults to 1.1, and that WSDL 2.0 
defaults to 1.2. At that point, we've established that the Stub's default is 
incorrect.

In the next paragraph, you mention a property that can be set to change the 
SOAP version. My complaint here relates not to whether such a property exists, 
but to what the default version should be for the Stub.

You also mention that my binding is missing a SOAP version specification. In 
section 5.4.4 of the document you reference (Mapping from XML Representation to 
Component properties), we find the following text in table 5-1 
(http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/wsdl20/wsdl20-adjuncts.html?content-type=text/html;%20charset=utf-8#tab_SOAP_version_Mapping):

  Property: soap version
  Value: The actual value of the wsoap:version attribute information item if 
present, otherwise "1.2".

Note the "if present, otherwise" clause; the version attribute is optional. 
That is, there's an component model property that denotes the SOAP version, but 
it's not required to be denoted explicitly in a binding, as it has a specified 
default value. This point is repeated in section 5.4.1:

  By default, SOAP 1.2 is used.

Can you please clarify whether AXIS2's generated stub is intended to default to 
SOAP 1.2?

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

Reply via email to