title: Getting error calling a web service in VFP via HTTPS
body: <p>I'm trying to call a web service in VFP 9.0 SP2. The site hosting the service is only available via HTTPS. I have used this service in ASP.NET projects with no issues but when I try to access it in VFP I get the following error.</p>
  
  <p>Error: 1429 - OLE IDispatch exception code 0 from Connector: Connector:Bad certificate. HRESULT=0x800A1529 - Client:An unanticipated error occurred during the processing of this request. HRESULT=0x800A1529 - Client:Sending the Soap message failed or no recognizable response was received HRESULT=0x800A1529 - Client:Unspecified client error. HRESULT=0x800A1529..
  Connector:Bad certificate. HRESULT=0x800A1529 - Client:An unanticipated error occurred during the processing of this request. HRESULT=0x800A1529 - Client:Sending the Soap message failed or no recognizable response was received HRESULT=0x800A1529 - Client:Unspecified client error. HRESULT=0x800A1529</p>
  
  <p>Is there an issue with VFP and web services that require SSL?</p>
  
  <p>Here is a bit of code I used to test the connection.</p>
  
  <p>Here is a bit of sample code...</p>
  
  <p>CLEAR</p>
  
  <pre><code>LOCAL lcEndPointURL
  
  lcEndPointURL = "https://geocoding.bit-co.com/WS_Geo_v1/Service1.asmx?WSDL"
  
  o = CREATEOBJECT("MSSoap.Soapclient30")
  ? o.MSSoapInit(lcEndPointURL)
  ? o.GetGeoCoderVersion
  </code></pre>
  
  <p>This results in the error above.</p>
  
  <p>Here is a bit of VB.NET code-behind that works just fine (once the webservice is referenced).</p>
  
  <pre><code>Public Class About
      Inherits System.Web.UI.Page
      Dim wsGeo As New wsGeo.Service1
  
      Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
          Dim GCVersion As String = wsGeo.GetGeoCoderVersion
          lblGCVersion.Text = GCVersion
      End Sub
  End Class
  </code></pre>
  
  <p>This code produces the expected results</p>