vinodtc
14 years agoContributor
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
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