-
-
Notifications
You must be signed in to change notification settings - Fork 3
Adding Custom Headers
Cussa Mitre edited this page Feb 7, 2018
·
1 revision
In case you need to provide some custom header to the webservice, you just need to call the method AddHeader, passing the key and the value for it.
var wsCon = new WebService("http://localhost/XitSoap/ProductService.asmx");
wsCon.AddHeader("CustomHeaderKey", "Custom Header Value");
var result = wsCon.Invoke<Product>("SearchProduct");
- Home
- Migrating from v1 to v2
- Referencing the Library
- Make a simple call
- Adding Parameters
- Adding Authentication
- Adding Custom Headers
- Calling a web method without use a typed return
- Using the WsContract and the ServiceCatalog
- Using the WsContract just to use the namespace
- Using the WsMapper: no more ugly properties!
- SoapActionComplement: because sometimes it's necessary even more!