tags:

views:

46

answers:

2

I need to access a sharepoint application from my desktop application (written in C#). How should I pass credentials and verify authentication?

A: 

Maybe you will find this a handy reference.

Younes
not really ; 15 characters
Faisal
aha ; 15 characters
Younes
+4  A: 

1.Add WebService reference(Name : SourceLists) to the project (Web service URL https://……./sites/_vti_bin/lists.asmx) 2. SourceLists.Lists sourceListService = new SourceLists.Lists();

System.Net.NetworkCredential networkCredentials = new System.Net.NetworkCredential(“userid”, “pwd”);

sourceListService.Credentials = networkCredentials;

Ashutosh Singh