windows Ntlm's setting for Request.



UrlManagementSoapClient proxy = newUrlManagementSoapClient();


BasicHttpBinding basicHttpBinding = null;

basicHttpBinding =newBasicHttpBinding(BasicHttpSecurityMode.TransportCredentialOnly);

basicHttpBinding.Security.Transport.ClientCredentialType =HttpClientCredentialType.Ntlm;

proxy.Endpoint.Binding = basicHttpBinding;

proxy.ClientCredentials.Windows.ClientCredential.Domain ="{Domain}";

proxy.ClientCredentials.Windows.ClientCredential.Password ="{password}";

proxy.ClientCredentials.Windows.ClientCredential.UserName ="{username}";

你可能感兴趣的:(windows Ntlm's setting for Request.)