Dec 18th, 2008, 10:50 AM
WS-Addressing Required Headers
I'm using Spring WS 1.5.5 together with the SimpleActionEndpointMapping, but getting wsa:MessageAddressingHeaderRequired errors from the server when I don't expect them.
As I understand it, the only required WS-Addressing header is wsa:Action, but Spring-WS is complaining if I don't specify either a wsa:To or wsa:MessageID header. According to the WS-Addressing standard(s) it seems like both the latter headers should be optional.
I had a look at the source code for org.springframework.ws.soap.addressing.MessageAddr essingProperties, and the hasRequiredProperties() method would appear to confirm the observed behaviour; however it only insists on a MessageID if either ReplyTo or FaultTo have been specified. As I'm not sending either of those I wonder if the stack has inserted a default "anonymous endpoint" value into one or both and that is triggering the error.
Am I missing something, or is the implementation a little too constrained?
Tags for this Thread