private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress() { return(HospitalWebServiceClient.GetEndpointAddress(EndpointConfiguration.BasicHttpBinding_HospitalWebService)); }
public HospitalWebServiceClient(EndpointConfiguration endpointConfiguration) : base(HospitalWebServiceClient.GetBindingForEndpoint(endpointConfiguration), HospitalWebServiceClient.GetEndpointAddress(endpointConfiguration)) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }