Hi,
I need to send a SOAP req to a SSL server.
I`ve modfied the SOAP example to do it but I need help
Which code must I use to do it?
I`using;
PostString = |
'<SOAP-ENV:Envelope xmlns:SOAP-ENV="
http://schemas.xmlsoap.org/soap/envelope/"> '&|
'<SOAP-ENV:Header> '&|
'<t:Transaction xmlns:t="xxs"> '&|
'<tc> '&|
'<iden u="devuser"/><provider session="WXMLPROD">Worldspan</provider> '&|
'</tc> '&|
'</t:Transaction> '&|
'</SOAP-ENV:Header> '&|
'<SOAP-ENV:Body> '&|
'<ns1:ProviderTransaction xmlns:ns1="xxs"> '&|
'<REQ> '&|
''&|
'<TTC><MSG>This is a test</MSG></TTC> '&|
''&|
'</REQ> '&|
'</ns1:ProviderTransaction> '&|
'</SOAP-ENV:Body> '&|
'</SOAP-ENV:Envelope> '&|
''
PostURL = '
http://xmlpropp.worldspan.com:443'
ThisWebClient.SetAllHeadersDefault()
ThisWebClient.Pragma_ = 'No-Cache' ! Force any proxies to not use their cache. Uses more bandwidth but will contact the webserver directly which is what we want.
ThisWebClient.CacheControl = 'No-Cache'! Force any proxies to not use their cache. Uses more bandwidth but will contact the webserver directly which is what we want.
ThisWebClient.ContentType = 'text/xml'
ThisWebClient.AcceptEncoding = ''
ThisWebClient.ContentLength = len (clip(PostString))
ThisWebClient.AsyncOpenTimeOut = 1200 ! 12 seconds
ThisWebClient.InActiveTimeout = 2000 ! 20 seconds
ThisWebClient.SSL = 1 ! Use SSL to make a Secure Web Server
ThisWebClient.SSLCertificateOptions.DontVerifyRemoteCertificateCommonName = 1
ThisWebClient.SSLCertificateOptions.DontVerifyRemoteCertificateWithCARoot = 1
! ThisWebClient.SSLCertificateOptions.CertificateFile = clip('web\') & clip('certificates\' & Clip(Glo:CertificateName)) & '.crt'
!message(clip('web') & '\' & clip('certificates\' & Clip(Glo:CertificateName)) & '.crt')
! ThisWebClient.SSLCertificateOptions.PrivateKeyFile = clip('web\') & clip('certificates\' & Clip(Glo:CertificateName)) & '.key'
ThisWebClient.Post(PostURL,PostString)
But I`m allways getting a timeout
Any help please!
Thanks
Alberto
PD: attached goes the client.app
[attachment deleted by admin]