P
porter_wss
I am at a loss. I have a web service which uses Windows Integrated
Security.
If I use the following code to call my web service:
WServ wserv = new WServ();
wserv.Credentials = System.Net.CredentialCache.DefaultCredentials;
WServDS wservds = wserv.GetWServDS();
My web service works fine.
However, when I change to this:
WServ wserv = new WServ();
CredentialCache cc = new CredentialCache();
NetworkCredential nwc = new NetworkCredential("User", "Pass",
"Domain");
cc.Add(new System.Uri(wserv.Url), "Negotiate", nwc);
wserv.Credentials = cc;
WServDS wservds = wserv.GetWServDS();
I get a 401, Access Denied. I am creating the same credentials for
which I am logged in. I do not understand. I have searched all over
and seem to be doing exactly what is required. Can anyone think of
what I should check?
Security.
If I use the following code to call my web service:
WServ wserv = new WServ();
wserv.Credentials = System.Net.CredentialCache.DefaultCredentials;
WServDS wservds = wserv.GetWServDS();
My web service works fine.
However, when I change to this:
WServ wserv = new WServ();
CredentialCache cc = new CredentialCache();
NetworkCredential nwc = new NetworkCredential("User", "Pass",
"Domain");
cc.Add(new System.Uri(wserv.Url), "Negotiate", nwc);
wserv.Credentials = cc;
WServDS wservds = wserv.GetWServDS();
I get a 401, Access Denied. I am creating the same credentials for
which I am logged in. I do not understand. I have searched all over
and seem to be doing exactly what is required. Can anyone think of
what I should check?