O
oliver.wulff
I did the following to add http basic authentication for calling a
webservice:
chz11086.HelloAuthTestService service = new
chz11086.HelloAuthTestService();
service.Credentials = new System.Net.NetworkCredential("oliver",
"oli");
service.Url="http://chz11086:10001/xmlbus/HelloAuthTest/HelloAuthTestService/HelloAuthTestPort/";
String retValue = service.hello("Oli from .NET");
But it fails. I've added an interceptor which dumps the whole soap request
and http headers. I'm missing the http header Authorization: BASIC: ......
What am I doing wrong?
Can I add an http header manually?
webservice:
chz11086.HelloAuthTestService service = new
chz11086.HelloAuthTestService();
service.Credentials = new System.Net.NetworkCredential("oliver",
"oli");
service.Url="http://chz11086:10001/xmlbus/HelloAuthTest/HelloAuthTestService/HelloAuthTestPort/";
String retValue = service.hello("Oli from .NET");
But it fails. I've added an interceptor which dumps the whole soap request
and http headers. I'm missing the http header Authorization: BASIC: ......
What am I doing wrong?
Can I add an http header manually?