C#: basic authentication at XML web-service
Sat, 2011-07-30 10:21 | SergeChel
In order to do a basic authentication, with username and password, for your request to remote XML web-service you have to set Credentials property of request object.
CredentialCache credentials = new CredentialCache(); credentials.Add("_site_uri_here_", "Basic", new NetworkCredential("_username_", "_password_")); request.Credentials = credentials;


