Forum Discussion

Philip_Baird's avatar
Philip_Baird
Community Expert
12 years ago

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?

1 Reply

  • AlexKaras's avatar
    AlexKaras
    Icon for Champion Level 1 rankChampion Level 1
    Hi Phil,



    Can your web service be accessed from outside? (And what is its web address in this case?) Alternatively, could you post here its WSDL file?

    Also, could you post your test code for some of the methods that you have problems with?