Beispiel #1
0
 public static HospitalWebServiceClient getInstance()
 {
     lock (syncLock)
     {
         if (instance == null)
         {
             instance = new HospitalWebServiceClient();
         }
         return(instance);
     }
 }
Beispiel #2
0
 public HospitalWebServiceClient() :
     base(HospitalWebServiceClient.GetDefaultBinding(), HospitalWebServiceClient.GetDefaultEndpointAddress())
 {
     this.Endpoint.Name = EndpointConfiguration.BasicHttpBinding_HospitalWebService.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
Beispiel #3
0
 private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress()
 {
     return(HospitalWebServiceClient.GetEndpointAddress(EndpointConfiguration.BasicHttpBinding_HospitalWebService));
 }
Beispiel #4
0
 private static System.ServiceModel.Channels.Binding GetDefaultBinding()
 {
     return(HospitalWebServiceClient.GetBindingForEndpoint(EndpointConfiguration.BasicHttpBinding_HospitalWebService));
 }
Beispiel #5
0
 public HospitalWebServiceClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
     base(HospitalWebServiceClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
Beispiel #6
0
 public HospitalWebServiceClient(EndpointConfiguration endpointConfiguration) :
     base(HospitalWebServiceClient.GetBindingForEndpoint(endpointConfiguration), HospitalWebServiceClient.GetEndpointAddress(endpointConfiguration))
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }