Forum Discussion
- AlexKaras
Champion Level 3
Hi,
You must provide the path to the WSDL when creating Web Service test item in order for TestComplete can create a supporting infrastructure that can be used in tests.
It is possible to craft requests and parse responses manually via code, but this is not convenient and will require a lot of extra efforts.
More threads that might help:
Web Service wsdl URL as variable
http://smartbear.com/forums/f75/t81090/web-service-wsdl-url-as-variable
How to change the webservice wsdl url by script?
http://smartbear.com/forums/f75/t77029/how-to-change-the-webservice-wsdl-url-by-script
Consuming SOAP Web Services from VBScript
http://kapie.com/2007/consuming-soap-web-services-from-vbscript
Send request by HTTP POST method in VBS script
http://www.visualbasicscript.com/Send-request-by-HTTP-POST-method-in-VBS-script-m81142.aspx
How can i do a HTTP post from testcomplete
http://smartbear.com/forums/f74/t50150/how-can-i-do-a-http-post-from-testcomplete - harsh_chhibberContributorActually Our developers are implementing a REST Web Service and there is no WSDL.Type- HTTP is used.
How to test the restful web services using test complete? - HKosova
Alumni
For testing REST services, please check out our dedicated web service testing tool SoapUI:
http://www.soapui.org
It's possible to call REST services from TestComplete using the XMLHttpRequest object, but be prepared to write some code. Here's an example:
http://smartbear.com/forums/f81/fp170/t75732/testcomplete-web-service-communication#75900- slhollowNew Contributor
The URL does not work. Please update
- harsh_chhibberContributorThanks Helen for reply. I will use this sample code and will let you know if face issue while implementing the same.
Thanks again. - harsh_chhibberContributorHi Helen
This sample code works for me but webservice is using authentication and that information is contain in Header part of the service containing the signature and timestamp information.
How to handle authentication part of the webservice. - HKosova
Alumni
Hi Harsh,
What kind of authentication is that (OAuth, Basic, Digest, etc.)? Can you post an example of a raw request with the Header value?