title: Using WSDL service over https with certificate
body: <p>I have same wsdl service, that I connected in VS,
  certificate that I recieved from service administrator
  and https adress for connection.
  So, I need to call one method from this wsdl service (MigomCommonService) and this is my code for that:</p>
  
  <pre><code>            string adress = "https://xxxx.xxx.com/MigomCommonService/MigomCommonPort";
              string thumbprint = "xx xx xx xx xx xx xx xx xx xx xx xx xx xx";
  
              WSHttpBinding binding = new WSHttpBinding();
              binding.Name = "MigomCommonBinding";
              binding.Security.Mode = SecurityMode.Transport;
              binding.Security.Message.ClientCredentialType = MessageCredentialType.Certificate;
  
              EndpointAddress addr = new EndpointAddress(adress);
  
              MigomCommonService.MigomCommonPortTypeClient migomClient = new MigomCommonService.MigomCommonPortTypeClient(binding, addr);
              migomClient.ClientCredentials.ClientCertificate.Certificate = GetCertificate(thumbprint);
  
              migomClient.Open();
  
              Session sessionPart = SessionPartRequest();
              string requestPart = CountryListRequest();
              string response = migomClient.MigomCommonOperation(ref sessionPart, requestPart);
  </code></pre>
  
  <p>When I'm calling MigomCommonOperation method I'm getting authentification error (407), but i can call this wsdl service via browser successfully.
  What's wrong in this code? Maybe I forgot something in binding part or another thing ?</p>