Forum Discussion
jbuchanan
14 years agoNew Contributor
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);
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);
Related Content
- 15 years ago
- 3 years ago
Recent Discussions
- 2 days ago
- 2 days ago
- 5 days ago