Forum Discussion

thuy's avatar
thuy
Occasional Contributor
10 years ago

Get VB error "Root element is missing" when calling a webservice method

I'm trying to call a webservice method in TestComplete but I'm getting a VB error "Root element is missing".  I can access and execute the method just fine through a browser so I think the link and the WSDL are good. 



Is there some setting that I need to set in TC or something? 



Please help!  I'm using TC v10.5 Here is what I have in Testcomplete:



1. Add a webservice, give it a URL to the WSDL file http://localhost:8080/XXXX

X/TestWebservice?wsdl




2. Verify that I can see all the expected methods.


3. Add the following like to the script

WebServices.FmsPlanningWebservice.clearFreightCache()



If I execute this, I get a VB error saying "Root element is missing".  Is this a TestComplete issue or is am I missing something?



Thanks,

TTT.


 


2 Replies