1

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 ?

0

This question may help: https://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");

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.