Philip_Baird
12 years agoCommunity Expert
Trouble creating request object for complex web service
Hi, I am trying to test a complex Web Service (26 Proxy Classes are created by consuming the WSDL) and am having trouble with passing null data.
Some of the properties of the Proxy Classes are Variant Arrays of other Proxy Classes with generated code similar to
Result.ICP.Meter = BuiltIn.CreateVariantArray(0, 10);
The problem I am having is the Web Service is generic and the scenarios I am testing only require a small sub set of data to be sent in the request.
To this end, I would like to pass some of the collections as null or empty but Test Complete will not let me, not matter what I ALWAYS end up with Arrays of at least one element with no data, which leads to the following, EVER so helpful error message
---------------------------
TestComplete
---------------------------
JScript runtime error.
OLE error 80131604
Error location:
Unit: "ARC\MEP\Script\TestMMFileWebProxy"
Line: 38 Column: 3.
---------------------------
OK
---------------------------
1.Is it possible to handle null data and Arrays in a Web Service request object and if so, how?
2. What does the above error even mean?
Some of the properties of the Proxy Classes are Variant Arrays of other Proxy Classes with generated code similar to
Result.ICP.Meter = BuiltIn.CreateVariantArray(0, 10);
The problem I am having is the Web Service is generic and the scenarios I am testing only require a small sub set of data to be sent in the request.
To this end, I would like to pass some of the collections as null or empty but Test Complete will not let me, not matter what I ALWAYS end up with Arrays of at least one element with no data, which leads to the following, EVER so helpful error message
---------------------------
TestComplete
---------------------------
JScript runtime error.
OLE error 80131604
Error location:
Unit: "ARC\MEP\Script\TestMMFileWebProxy"
Line: 38 Column: 3.
---------------------------
OK
---------------------------
1.Is it possible to handle null data and Arrays in a Web Service request object and if so, how?
2. What does the above error even mean?