cancel
Showing results for 
Search instead for 
Did you mean: 

How to test Web Services without passing WSDL

Highlighted
Contributor

How to test Web Services without passing WSDL

Shall we test  web services without passing Web Service Definition URL.

Is their any other approach to test the web services.
8 REPLIES 8
Highlighted
Community Hero

RE: How to test Web Services without passing WSDL

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

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
Highlighted
Contributor

RE: How to test Web Services without passing WSDL

Actually 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?
Highlighted
Moderator

RE: How to test Web Services without passing WSDL

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

Helen Kosova
SmartBear Documentation Team Lead
________________________

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Highlighted
Contributor

RE: How to test Web Services without passing WSDL

Thanks Helen for reply. I will use this sample code and will let you know if face issue while implementing the same.



Thanks again.





Highlighted
Contributor

RE: How to test Web Services without passing WSDL

Hi 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.



Highlighted
Moderator

RE: How to test Web Services without passing WSDL

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?

Helen Kosova
SmartBear Documentation Team Lead
________________________

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Highlighted
New Contributor

Re: RE: How to test Web Services without passing WSDL

The URL does not work. Please update

Highlighted
Community Hero

Re: RE: How to test Web Services without passing WSDL

Hi,

 

https://community.smartbear.com/t5/TestComplete-Functional-Web/TestComplete-web-service-communicatio...

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
New Here?
Join us and watch the welcome video:
Announcements
Script Wanted
Let's start July with new challenges!

Create a script to pass custom command-line arguments as a test parameter for the TechCorner tag!

Will you dare to take the challenge?