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