2

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

Thanks SR

1

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;

  • 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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