private ProxyTracker() { System.ServiceModel.EndpointAddress address = new System.ServiceModel.EndpointAddress("http://trackviewerservice.cloudapp.net/TrackService.svc");// new System.ServiceModel.EndpointAddress("http://127.0.0.1:81/TrackService.svc"); System.ServiceModel.BasicHttpBinding binding = new System.ServiceModel.BasicHttpBinding(System.ServiceModel.BasicHttpSecurityMode.None); client = new Services.TrackService.TrackServiceClient(binding, address); }
private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress() { return(TrackServiceClient.GetEndpointAddress(EndpointConfiguration.BasicHttpBinding_ITrackService)); }
private static System.ServiceModel.Channels.Binding GetDefaultBinding() { return(TrackServiceClient.GetBindingForEndpoint(EndpointConfiguration.BasicHttpBinding_ITrackService)); }
public TrackServiceClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) : base(TrackServiceClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
public TrackServiceClient(EndpointConfiguration endpointConfiguration) : base(TrackServiceClient.GetBindingForEndpoint(endpointConfiguration), TrackServiceClient.GetEndpointAddress(endpointConfiguration)) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
public TrackServiceClient() : base(TrackServiceClient.GetDefaultBinding(), TrackServiceClient.GetDefaultEndpointAddress()) { this.Endpoint.Name = EndpointConfiguration.BasicHttpBinding_ITrackService.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }