[ 
https://issues.apache.org/jira/browse/AXIS2-4554?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nuwan Bandara updated AXIS2-4554:
---------------------------------

    Attachment: AxisService2WSDL11.patch

Hi,

According to http://www.w3.org/TR/ws-addr-wsdl/ section 3.1

{addressing}=optional should be translated as wsdl:required="false", I have 
made the required changes and attaching a patch. please verify and commit.

Regards
/Nuwan

> The AxisService2WSDL11 class sets the wsdl:required attribute of the 
> wsaw:UsingAddressing element to true even if addressing is set as optional
> -----------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-4554
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4554
>             Project: Axis2
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.5
>            Reporter: Dave Bryant
>            Priority: Minor
>         Attachments: AxisService2WSDL11.patch
>
>
> The AxisService2WSDL11 class optionally inserts the wsaw:UsingAddressing 
> element in the generateSoap11Binding() and generateSoap12Binding() methods if 
> the appropriate parameter is set on the AxisService indicating that 
> WS-Addressing is in use.  That parameter value supports values indicating 
> that it is either required (AddressingConstants.ADDRESSING_REQUIRED) or 
> optional (AddressingConstants.ADDRESSING_OPTIONAL).  However, at present the 
> generated element in the WSDL always sets the wsdl:required attribute to 
> true, regardless of whether it is marked as required or not.
> Section 3.1 of the addressing wsdl binding specification 
> (http://www.w3.org/TR/ws-addr-wsdl/) indicates that the wsdl:required 
> attribute can be set to false if the addressing headers are optional.
> The problem is trivially resolved by changing the appropriate values in the 
> generate binding methods from "true" to "false".

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