Aug 16th, 2012, 09:39 AM
How to add http headers in the soap Message
I need to add a custom http header element and included it in the soap Message.
I added soap headers easily using an interceptor in the ws:outbound-gateway but
up to know I couldn't figure out how add HTTP headers.
Can you help me?
Aug 16th, 2012, 12:12 PM
Aug 16th, 2012, 12:16 PM
Thank you I figured it out with the following code
I wrote it in the interceptor handleRequest method:
TransportContext context = TransportContextHolder.getTransportContext();
HttpUrlConnection connection = (HttpUrlConnection) context
HTH to someone else.