Contributions
Re: Add SOAP Header only and still use WebService object
Thanks for the reply, it will be a great feature to have in TestComplete. In the meantime, i finally got my script working as follows: webserver.open("POST", "http://localhost/Services/DataIntegrationService.svc", false); // Had to add the following 2 lines in order to make a successul WS call after adding a custom element to the SOAP Header // I found this solution by various searches and examples; not 100% sure why I had to do this, but it works and eliminated error messages webserver.setRequestHeader("Content-type", "text/xml; charset=utf-8"); webserver.setRequestHeader("SOAPAction", "WebService.DataIntegration/DataIntegrationService/UpdateData"); webserver.send(RequestXml.xml);1.2KViews0likes0Comments- 1.2KViews0likes0Comments
Add SOAP Header only and still use WebService object
I've tried the examples from the help files on adding a soap:header and then using XmlHttpRequest to "POST" with no success. I would just like to use the normal WebService.WebService1.MyMethod(param1) with a modifiedxml. Any suggestions? thanks, jody20KViews0likes6Comments