public Service2Client() : base(Service2Client.GetDefaultBinding(), Service2Client.GetDefaultEndpointAddress()) { this.Endpoint.Name = EndpointConfiguration.BasicHttpBinding_IService2.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }