Link to home
Start Free TrialLog in
Avatar of kbalaraju
kbalaraju

asked on

How to add something to the soap header in VB.NET

I'm developing a web service client application in VB.Net. I have added a web reference and able to invoke the service & get the back the response. But now I need to add following line to the http header in the request:
Cookie: xyz=somevalue

By default header part contains:
SOAPAction: ""
User-Agent: SOAPscope
Content-Type: text/xml; charset=UTF-8

I need to append "Cookie: xyz=somevalue" to above.

I tried adding element to cookieContainer but seems its not working. Is there a way to just append a line of text to the http header in the request?
Please help.
Thanks in advance.
ASKER CERTIFIED SOLUTION
Avatar of 123654789987
123654789987

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial