I am trying to access list information on MOSS 2007 using web services.
SppLists.ListsSoapClient proxy = new SurveyMerge.SppLists.ListsSoapClient();
proxy.ClientCredentials.Windows.AllowNtlm = true;
proxy.ClientCredentials.Windows.AllowedImpersonationLevel = System.Security.Principal.TokenImpersonationLevel.None;
proxy.ClientCredentials.Windows.ClientCredential = (System.Net.NetworkCredential)System.Net.CredentialCache.DefaultCredentials;
XmlNode node = proxy.GetListCollection();
I get the following error message:
The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'NTLM'.
What must I do to authenticate the request?