Link to home
Start Free TrialLog in
Avatar of netformx
netformx

asked on

How to call to sharepoint web services from ASP.NET, using on both IIS Windows authentication?

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?
ASKER CERTIFIED SOLUTION
Avatar of Ted Bouskill
Ted Bouskill
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial