BasicHttpBinding basicHttpbinding = new BasicHttpBinding(BasicHttpSecurityMode.None);
basicHttpbinding.Name = "BasicHttpBinding_temp";
basicHttpbinding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Windows;
basicHttpbinding.Security.Message.ClientCredentialType = BasicHttpMessageCredentialType.UserName;
EndpointAddress endpointAddress = new EndpointAddress("http://siteurl/Service.svc");
Create an object for the service referenced and pass the above two objects as its constructor parameter
basicHttpbinding.Name = "BasicHttpBinding_temp";
basicHttpbinding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Windows;
basicHttpbinding.Security.Message.ClientCredentialType = BasicHttpMessageCredentialType.UserName;
EndpointAddress endpointAddress = new EndpointAddress("http://siteurl/Service.svc");
Create an object for the service referenced and pass the above two objects as its constructor parameter
No comments:
Post a Comment