Forum Discussion

sarya's avatar
Frequent Contributor
14 years ago

Webservices testing query


I am trying to test a webservices call using one XML checkpoint .I called this in my script but get an exception .I am not sure what is the reason for this exception .

function test()


var resultValue;

// Calling the method

resultValue = WebServices.WebService1.addGroupMembership(XML.XmlCheckpoint1);


test(){ resultValue;resultValue = .WebService1.addGroupMembership(.XmlCheckpoint1);}An exception occurred in the "Unit1" unit at line 7:

<soapenv:Fault xmlns:soapenv=""><faultcode>soapenv:Server.userException</faultcode><faultstring>org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.</faultstring><detail><ns1:hostname xmlns:ns1="">vm2k8</ns1:hostname></detail></soapenv:Fault>



1 Reply

  • Hi Sumedha,

    I guess the stored XML file has one or more nodes which cannot be processed by your web service correctly (the file's format does not match the format defined by the WSDL file of your web service). I recommend that you just create a web service checkpoint - in this case TestComplete will generate the needed input data automatically.