public static string GetCustomer(string customerId) { var wsHttpBinding = new WSHttpBinding(); wsHttpBinding.Security.Mode = SecurityMode.Transport; wsHttpBinding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Certificate; var client = new CMSClient(wsHttpBinding, new EndpointAddress(Cms.Uri)); var response = client.Customer(customerId); return response; }