Exemple #1
0
 public HospitalWebServiceClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
     base(HospitalWebServiceClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
Exemple #2
0
 private static System.ServiceModel.Channels.Binding GetDefaultBinding()
 {
     return(HospitalWebServiceClient.GetBindingForEndpoint(EndpointConfiguration.BasicHttpBinding_HospitalWebService));
 }
Exemple #3
0
 public HospitalWebServiceClient(EndpointConfiguration endpointConfiguration) :
     base(HospitalWebServiceClient.GetBindingForEndpoint(endpointConfiguration), HospitalWebServiceClient.GetEndpointAddress(endpointConfiguration))
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }