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: Axis 2.0 (Axis2)
Issue Type: Bug
Components: kernel
Affects Versions: 1.5
Reporter: Dave Bryant
Priority: Minor
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.