Dec 8th, 2008, 10:34 AM
WS-Addressing: How to generate UsingAddressing element on the wsdl
I am playing with Spring-Ws and Ws-Addressing and so far i am successfully able to create Ws-Addressing enabled web-services. However i need a way to inform the consumer of my webservice that this service requires Ws-addressing header and if the headers are absent in the request envelope i want to send a SOAP Fault back. After doing some research, i found out that one way of achieving this behavior is to have
<wsaw:UsingAddressing wsdl:required="true" /> on the wsdl. Unfortunately, i cant figure out how to tell Spring-Ws to generate this tag on the WSDL.
Right now if the caller does not send addressing header Spring-Ws throws an no endpoint mapping found exception.
Is there anyway to achieve the desired behavior using Spring-WS