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

Our SharePoint site is not accessible from outside. So I am working on a WebService (not hosted in SP) that will consume SP WebService (ListData Wcf). It's a kind of wrapper.

Anonymous access are not allowed with ListData, and on my development machine, everything works just fine by using my own credential

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

I guess it won't work when deploying to the Integration machine. May I add account credentials in order to the webservice to consume SP WebService ?

share|improve this question
up vote 0 down vote accepted

This question may help:

If I understand your question you want to add a specific account's credentials then try something like this:

list.Credentials = new System.Net.NetworkCredential("user", "pass");
share|improve this answer

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.