title: ServicePointManager.ServerCertificateValidationCallback not being hit
body: <p>I have the following code.</p>
  
  <pre><code>public void Submit(string XML)
  {
  ServicePointManager.ServerCertificateValidationCallback = ValidateCertificate;
  TestWS.CW serv = new TestWS.CW();
  string s = serv.Check(XML);
  }
  
  private static bool ValidateCertificate(object sender, X509Certificate cert, X509Chain chain, System.Net.Security.SslPolicyErrors sslPolicyErrors)
  {
  return true;
  }
  </code></pre>
  
  <p>However the code never enters the <code>ValidateCertificate</code> method.... It does if I submit a standard <code>HttpsWebRequest</code> but if I use a webservice it does not work. What am I doing wrong?</p>