Forum Discussion

vinodtc's avatar
vinodtc
Contributor
14 years ago

Error is throwing, while accessing the web service returned object attributes

Hi,



I am calling a web service and executing properly. But when I access the data member/attribute of returned object, TestComplete is throwing error like "Object required."



In the attached screenshot,

Webservice: TMI_EU_Status

Method: getBDRStatusByBDRID

Retuned object: ClickAndBuy_Transaction_BDRStatus



I am trying to access the attribute (BDRID) and written code to call the webservice as below.



set obj= webservices.TMI_EU_Status.getBDRStatusByBDRID(129409981,"testtest1",0,449048011)   

 msgbox obj.BDRID





Error from above code is



An exception occurred in the "TMI_EU" unit at line 31:

Microsoft VBScript runtime error

Object required: 'obj'



Please help in this regard, what could be changed.

Please post the comment if you require more data.



Regards,

Vinod












11 Replies


  • Hi Ragavendra,


     


    Let me quote the reply you've got from Aleksey Kolosov from our TestComplete Customer Care team:


    It looks like your server connection is terminated by timeout. This might happen if the machine on which the web service is hosted is not available from your current location or was not available at a specific moment due to a temporary network issue. Another option is that something crashed on the server side and therefore the response has never been sent. To help us investigate this problem, please follow the steps below:


     


    1. Try opening your web service URL in a web browser from the problematic machine and check whether it opens in reasonable time (less than a minute).


     


    2. If the URL can be opened successfully, modify your test to make it post the WebServices.Patient.LastResponse.xml property value to the test log and reproduce the problem from TestComplete again (this will help us exclude the random network error).


     


    3. If the problem persists, this means that my second assumption regarding server side crash is, most probably, correct. If so, please zip your entire project suite folder along with the log of the failed test execution and send me the archive. Make sure that messages in your log correspond to the latest version of your tests.