-
Notifications
You must be signed in to change notification settings - Fork 317
Closed
Milestone
Description
Leandro opened SWS-1031 and commented
The WS-Addressing 1.0 W3C Recomendation says the wsa:to
property is optional:
This OPTIONAL element (whose content is of type xs:anyURI) provides the value for the [destination] property. If this element is NOT present then the value of the [destination] property is "http://www.w3.org/2005/08/addressing/anonymous".
But org.springframework.ws.soap.addressing.client.ActionCallback.getTo() initializes the wsa:to property.
And even then, at AbstractAddressingVersion.addAddressingHeaders(), sets mustUnderstand = true to element.
So resulting message is:
<SOAP-ENV:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:To SOAP-ENV:mustUnderstand="1">https://example.com/ws/bla</wsa:To>
...
</SOAP-ENV:Header>
The wsa:to property must be optional and if set, it would be nice to have the chance to configure the mustUderestand attribute value.
Affects: 2.4.2, 3.0.3
Reference URL: https://stackoverflow.com/questions/51538667/spring-ws-wsato-element-is-not-optional
Referenced from: pull request #115