How to call to sharepoint web services from ASP.NET, using on both IIS Windows authentication?
Posted on 2007-10-16
How to call to Sharepoint (MOSS 2007) web services from ASP.NET (I am calling from myWebService to sp web service). Both ASP.NET and Sharepoint are configured to work with windows authentication.
If I try from asp.net:
userGroup - is the web reference
userGroup.Credentials = System.Net.CredentialCache.DefaultCredentials;
Get 401 error
I have configured in web.config of my asp.net application impersonate=true.
If pass username, password
userGroup.Credentials = new System.Net.NetworkCredential(name, pass, domain);
- works OK, but I don't have user password ...
Should I use Kerberos authentication on my IIS and enable accoutns for delegation - or not nesesary?