I have a simple web client in c# .Net framework 3.5 that calls a SOAP service HelloWorld like this:
HelloService myservice = new HelloService();
string result = myservice.HelloWorld();
I am using some middle-ware that adds basic security by asking for an Authorization Header: “Authorization=Bearer 123456abcd” which works with a REST service, but I wanted to consume the service with the .Net client above…
How can I add the header to the Service Call?
Does exists something like: myservice.addHeader("authorization=blah");?
You should use
OperationContextScopeFor Authorization