SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is this possible to login into the SharePoint site using the username and password from web service soap header?

Thanks SR

share|improve this question
Have a look at the first response in this question… – Renzo Jan 2 '13 at 12:43

If your SharePoint site is using FBA, you can use authentication.asmx webservice to get the authentication cookie. If your site is using Windows, you can directly assign defaultcredentials of logged in user like :

proxy.Credentials = System.Net.CredentialCache.DefaultCredentials;

share|improve this answer
Hi @Amit Kumawat thanks for your response. My site is using Windows Authentication. I have valid username and password in web service. So i need to pass that user to the sharepoint site like /* using (SPSite site = new SPSite("url", usertoken)) */ – SRanj Jan 3 '13 at 4:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.