paulvinders
5 years agoContributor
Calling webservices
Hi,
w're calling urls in the appserver in the following way:
function verifyUrl(url) {
var httpObj = Sys.OleObject("MSXML2.ServerXMLHTTP.6.0");
httpObj.open("GET", url, true);
httpObj.send();
while (httpObj.readyState != 4) {
Delay(500);
httpObj.send();
}
return httpObj.status == 404 ? false: true;
}
This worked fine in TC11. In TC 14.0 the test stays in the while loop...Is this approach not supported anymore?
sincerely
Paul Vinders
SOPTIM AG
Germany
The solution is:
httpObj.open("GET", url, false);
instead of
httpObj.open("GET", url, true);
sincerely
P. Vinders
SOPTIM AG