cancel
Showing results for 
Search instead for 
Did you mean: 

How to test Web Services without passing WSDL

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
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 Expert Group]
____
[Community Expert Group] members 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. Postings made by [Community Expert Group] members
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.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
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?
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 Technical Writer
________________________
Vote up helpful replies.
Accept this reply if you think it's the best solution to your question.
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.





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.



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 Technical Writer
________________________
Vote up helpful replies.
Accept this reply if you think it's the best solution to your question.
New Contributor

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

The URL does not work. Please update

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 Expert Group]
____
[Community Expert Group] members 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. Postings made by [Community Expert Group] members
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.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
New Here?
Join us and watch the welcome video: