Headers are provided as key value pairs that specify the header name and the value.
Note these are HTTP headers not SOAP headers which are not directly supported by the proxy class. SOAP Headers require overriding the generated C# proxy class.
Note: Headers are not cleared after a Web Service call - they are global to this proxy instance. Use ClearHeaders() to clear headers and the reset headers as needed.
o.SoapHttpClientProtocol.AddHeader(string headerKey, string value)
value
The header value to set