Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 0 down vote accepted

This question may help: http://stackoverflow.com/questions/2084487/is-it-possible-to-pass-network-credentials-to-a-web-service-from-silverlight-ui

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
add comment

Your Answer

 
discard

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.