Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Need a way to add arbitrary http headers before Soap message is sent out [SWS-479] #613
For a WS client, WebServiceMessageCallback allows setting the SoapAction http header, but no others. This seems like an ideal place to add a method like addHeader(String name, String value) to SoapMessage. See related forum entry for a quick and dirty workaround using AxiomMessage.
I'm not sure if the same functionality would be needed for the responsing server, but may be useful there as well.
Reference URL: http://forum.springframework.org/showthread.php?t=66558
5 votes, 6 watchers
Arjen Poutsma commented
You can access the underlying transport (i.e. HTTP) with the TransportContext: http://static.springsource.org/spring-ws/site/reference/html/common.html#transport-context