Beispiel #1
0
 public NTLMWebServiceSoapClient(EndpointConfiguration endpointConfiguration) :
     base(NTLMWebServiceSoapClient.GetBindingForEndpoint(endpointConfiguration), NTLMWebServiceSoapClient.GetEndpointAddress(endpointConfiguration))
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     //this.ChannelFactory.Credentials.UserName.UserName = "******";
     //this.ChannelFactory.Credentials.UserName.Password = "******";
     this.ChannelFactory.Credentials.Windows.ClientCredential = new System.Net.NetworkCredential("edwardzh", "Ed@1122");
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
Beispiel #2
0
 public NTLMWebServiceSoapClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
     base(NTLMWebServiceSoapClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }