Hi all.
Perhaps someone can steer me in the right direction.
Help will be greatly appreciated.
Here is what we have and it is been working with TLS 1.0 flawlessly for years.
(very short version):
oleobject oXMLHttp
string s_xml, s_error, s_response
s_xml = &
'<?xml version="1.0" encoding="utf-8"?>' + &
'<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">' + &
'<soap:Header>' + &
'<SecurityContext xmlns="http://www.xxxx.com/bbb/1.0">' + &
'<ClientCode>code123</ClientCode>'
'</SecurityContext>' + &
'</soap:Header>' + &
'<soap:Body>' + &
'<data>' + &
'<CompanyCode>0</CompanyCode>' + &
'<VendorCode>0</VendorCode>'
'</data>' + &
'</soap:Body>' + &
'</soap:Envelope>'
oXMLHttp = CREATE oleobject
oXMLHttp.ConnectToNewObject('MSXML2.XMLHTTP')
try
oXMLHttp.Open ('POST', 'https://test-integration.xxxxx.com/xxxWebService.asmx', FALSE)
oXMLHttp.setRequestHeader('Content-Type', 'text/xml;charset=utf-8')
oXMLHttp.Send(s_xml)
s_response = oXMLHttp.ResponseText
catch (RuntimeError rte)
s_error = rte.getMessage()
end try
DESTROY oXMLHttp
if s_error <> '' then messagebox() and return
else parse s_response etc...
THE END
We received the notification from partner, that they will be changing to TLS 1.2
I did some digging around and come across:
Looks like exactly what i need, so i did some changes:
FROM:
//i_rc = oXMLHttp.ConnectToNewObject('MSXML2.XMLHTTP') // Msxml2.ServerXMLHTTP.6.0 or 'Microsoft.XMLHTTP
TO:
/**************** Begin force TLS 1.2 ******************************************************************/
// use WinHttp.WinHttpRequest.5.1 instead MSXML2.XMLHTTP ...
i_rc = oXMLHttp.ConnectToNewObject('WinHttp.WinHttpRequest.5.1')
// force TLS 1.2 ...
oXMLHttp.Option[9] = 2048
oXMLHttp.Option[6] = TRUE
********************************** END *************************************************************/
Doesn't look like it is working, getting back:
<html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
<hr><center>Microsoft-Azure-Application-Gateway/v2</center>
</body>
</html>
What am i missing? Doing wrong?
Any help will be greatly appreciated.
Thank you
Sincerely
Vlad