SoapHttpClientProtocol.AddHttpHeader

West Wind Web Service Proxy Generator specific implementation of the Proxy class that allows specification of additional HTTP Headers to send to the service. This allows for custom authentication schemes, router requirements.

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)                                          

Parameters

headerKey
The HTTP header to set. (ie. Negotiate, Custom)

value
The header value to set

See also:

Class SoapHttpClientProtocol


  Last Updated: 08/22/09 | © West Wind Technologies, 2010