Forum Discussion
We actually finally got it to work using TestComplete last night. A couple months in the making, but we are good to go. Thanks to you all for offering your help!
- AlexKaras8 years agoCommunity Hero
> [...] got it to work using TestComplete last night. A couple months in the making, [...]
Good to know that you got it working... though... why not to ask at least month ago?.. :)
- TanyaYatskovska8 years ago
Alumni
Hi Jesse,
We are glad to here that you have managed to resolve the issue.
Do you mind sharing the cause of it with us? It may help other community members.
Thanks.
- jhall68w8 years agoContributor
The last thing that was causing issues was this part of the script: (straight from TC documentation)
// Create an XMLHTTP object for sending the SOAP request
XmlHttpRequest = getActiveXObject("MSXML2.XMLHTTP.3.0");We just needed to update it to:
XmlHttpRequest = getActiveXObject("MSXML2.XMLHTTP");
We also removed the array information as that portion was not necessary for our request.
And the last thing was not using the "code" generated from the web services screen (modified to false values):
function Transaction()
{
var Result;
var TypeFactory;
//Get the type factory for the web service
TypeFactory = WebServices.QA.TypeFactory;
Result = TypeFactory.Transaction;
//Result.item1 = ;
//Result.item2 = ;
return Result;
}to
RequestObj.item1
RequestObj.item2