wt0vremr
9 years agoOccasional Contributor
IXMLDOMDocument in Python to call SOAP from testcomplete?
Hello. I'm usint TestComplete 11 at work. So.
Let's say I have a web service in TestComplete, called PetService.
Here's my code. I wrote it after reading TC docs related to SOAP testing.
def run(): WebServiceInfo = WebServices.CreateWebServiceInfoFromItem("PetService") requestObj = WebServiceInfo.PrepareRequestObject("GetClientPets") requestObj['clientCode'] = 2947 WebServiceInfo.PrepareRequest("GetClientPets", requestObj)
Now I need to send the request, get the response and parse it. I tried to create XmlHttpRequest, but all my attempts failed.
By the way, TestComplete documentation is still missing some useful python examples.