Can int-ws:outbound gateway auto-set soapAction header instead of enriching manually
Hi I am using int-ws as a ws client to connect a remote .NET WCF WS server module.
As the remote WS servers uses ws-addressing. I have to manually set the SoapAction header enrichment using the the config below before I pass the request message to the ws outbound gateway.
<ws:header-enricher input-channel="in" output-channel="out">
<ws:soap-action value="http://someURI"/>
</ws:header-enricher>
My questions is, Can this enrichment done automatically by Spring integration, as the WSDL has all the soap-action URI defined anyway, Is there a setting anyway I could use?
If above is not possible? Is there any simple way I could simplfy the maintenance of the list of soap-action URIs? as I do not really want to "hard code" them in my config files. I suppose I could parse through the WSDL file and get a list of SoapAction URI in a custom enricher class.
What's the aim of setting soap-action enrichment manually in spring config? Is it a because of spring integration could not auto handle ws-addressing? I really do not see the point of setting it manually for every web method?
Your thoughts are very welcome...
Jack