-
Aug 16th, 2012, 09:39 AM
#1
How to add http headers in the soap Message
Hi guys,
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?
Mariateresa
-
Aug 16th, 2012, 12:12 PM
#2
-
Aug 16th, 2012, 12:16 PM
#3
Hello Artem,
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
.getConnection();
connection.getConnection().addRequestProperty("hea derParameter",
"headerValue");
return true;
HTH to someone else.
Mariateresa
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules