oliver.wulff@zurich.ch
7/12/2003 6:44:00 PM
Hi
my webservice is not running in IIS. To check if the authorization http
header has been added, the message is sent to a tcp monitor which
delegates the request to my webservice. Unfortunately, this header hasn't
been added by my .NET client. I've done the following:
String url = "http://chz11086:10001/xmlbus/berechtigung/Berechtigung_1_0Service/Berechtigung_1_0Porthttp://localhost:53205/xmlbus/berechtigung/Berechtigung_1_0Service/Berechtigung_1_0Port/";
chz110861.Berechtigung_1_0Service service = new
chz110861.Berechtigung_1_0Service();
service.PreAuthenticate = true;
NetworkCredential myCred = new NetworkCredential("cha3629","oli");
CredentialCache myCache = new CredentialCache();
myCache.Add(new Uri(service.Url), "Basic", myCred);
service.Credentials = myCache;
service.Url = url;
service.ping();
MessageBox.Show("Succeeded");