Hi,
I have serious problem with one request I'm trying to send to SOAP server with SSL. Still using Nettalk 5 but I was able to access secure SOAP services with it before. This is the code I use:
LOC:AuthStr = 'userid:password'
LOC:AuthStrLen = LEN(CLIP(LOC:AuthStr))
ThisWebClient.SetAllHeadersDefault()
ThisWebClient.ConnectionKeepAlive = 0
ThisWebClient._HTTPVersion = 'HTTP/1.0'
ThisWebClient.ContentType = 'text/xml; charset=utf-8'
ThisWebClient.CanUseProxy = 0
ThisWebClient.HeaderOnly = 0
ThisWebClient.Cookie = ''
ThisWebClient.CustomHeader = ''
ThisWebClient.Referer = ''
ThisWebClient.UserAgent = 'Evision Sourcing'
ThisWebClient.AcceptEncoding = 'gzip,deflate'
ThisWebClient.Accept_ = ''
ThisWebClient.AcceptLanguage = ''
ThisWebClient.ContentLength = len (clip(PostString))
ThisWebClient.Authorization = 'Basic ' & NetBase64Encode (LOC:AuthStr, LOC:AuthStrLen)
ThisWebClient.AsyncOpenTimeOut = 1200
ThisWebClient.InActiveTimeout = 2000
ThisWebClient.SSL = 1
ThisWebClient.SSLCertificateOptions.CertificateFile = ''
ThisWebClient.SSLCertificateOptions.PrivateKeyFile = ''
ThisWebClient.SSLCertificateOptions.DontVerifyRemoteCertificateCommonName = 1
ThisWebClient.SSLCertificateOptions.DontVerifyRemoteCertificateWithCARoot = 1
ThisWebClient.SSLCertificateOptions.CARootFile = '.\Ca_Roots.pem'
ThisWebClient.Post(PostURL,PostString)
I'm receiving the following error all the time
Error Code: -53
Error Message: The requested connection could not be opened. The Open command timed out or failed to connect. The error number was -53 which means Open Timeout or Failure error. - [SSL Error = 11]
Passed Message: The requested connection could not be opened. The Open command timed out or failed to connect
Function: NetSimple.TakeEvent
CA_Roots.pem is in the app directory as well as all 4 DLLs needed for SSL. Please help. It is urgent.
Thanks,
Alex
P.S. I'm trying both
https://wstest.aviall.com/services/SOAPProcessor and
https://wstest.aviall.com/services/SOAPProcessor:443 as post urls but nothing changes