public TrainTimeWebServiceSoapClient(EndpointConfiguration endpointConfiguration) : base(TrainTimeWebServiceSoapClient.GetBindingForEndpoint(endpointConfiguration), TrainTimeWebServiceSoapClient.GetEndpointAddress(endpointConfiguration)) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
public TrainTimeWebServiceSoapClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) : base(TrainTimeWebServiceSoapClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
private static System.ServiceModel.Channels.Binding GetDefaultBinding() { return(TrainTimeWebServiceSoapClient.GetBindingForEndpoint(EndpointConfiguration.TrainTimeWebServiceSoap)); }