Forum Discussion
AlexKaras
Champion Level 1
12 years agoHi Nishay,
To provide you with more precise answer, I would like to ask you either for the web address of the tested web service if it is accessible from the internet or for the files from the WebServices subfolder of TestComplete project.
Without this informationI can say the following generic things:
-- I did not use JScript for web services test but DelphiScript and VBScript, so the code might need convertion of arrays for JScript;
-- I also did not use .ParseResponse because according to my understanding it is required only when the whole request to web service is created by test code but not using the means provided by TestComplete (http://smartbear.com/forums/f73/t48530/how-to-run-the-webservices-test/, http://smartbear.com/forums/f75/t59793/adding-header-to-the-web-services-in-test-compl/);
-- When response returned an array of objects, usually the code like this worked:
Deals := WebService.DealSearch(criterions);
WebService.GetDealInfo(StrToInt(Deals.item[0].text), dsResult);
i.e. TestComplete was able to extract from the WSDL file that the call to some method returns an array and provide access to the array elements.
To provide you with more precise answer, I would like to ask you either for the web address of the tested web service if it is accessible from the internet or for the files from the WebServices subfolder of TestComplete project.
Without this informationI can say the following generic things:
-- I did not use JScript for web services test but DelphiScript and VBScript, so the code might need convertion of arrays for JScript;
-- I also did not use .ParseResponse because according to my understanding it is required only when the whole request to web service is created by test code but not using the means provided by TestComplete (http://smartbear.com/forums/f73/t48530/how-to-run-the-webservices-test/, http://smartbear.com/forums/f75/t59793/adding-header-to-the-web-services-in-test-compl/);
-- When response returned an array of objects, usually the code like this worked:
Deals := WebService.DealSearch(criterions);
WebService.GetDealInfo(StrToInt(Deals.item[0].text), dsResult);
i.e. TestComplete was able to extract from the WSDL file that the call to some method returns an array and provide access to the array elements.