RESTClient tool to test RESTful web services
Related posts to test web services
- Testing RESTful web services with the cURL command line tool
- SoapUI for Web Service tetsing
- Web Services Interview Questions and Answers - RESTful Web Service Overview
- Firebug poster plugin
The http://www.wiztools.org/ has some handy open source Java tools like RESTClient, Regular Expression Tester, etc. RESTClient tool is GUI based and a good alternative to the Unix command line based tool CURL and the Firefox poster plugin. SoapUI is another GUI based client for both RESTful and SOAP based web services. This blog posts shows how easy it is to get started with RESTClient tool from WizTools. The example below shows a POST request as the GET requests are easier to test. The diagrams below illustrates posting of JSON data. The RESTful web service operations GET, POST, PUT, and DELETE correlates with the database CRUD operations Read, Create, Update, and Delete respectively.
Step 1: From WizTools click on the link to RESTClient.
Step 2: Download the JAR file "restclient-cli-3.1-jar-with-dependencies.jar". Create a short cut to the jar file. Double clicking on the short cut will open the RESTClient GUI as shown below. You can type in the URL and select "POST" as the HTTP method.
Take note of the HTTP headers passed with the request.
Step 3: You need to select the "Content-Type" that you want to post. Select "application/json" as the content-type.
The GET requests are very straight forward requiring only the URL.
The SoapUI tool requires a WADL file for the RESTFul web services. Here is an example of SOAP Web Service using the SoapUI tool.
Related posts to test web services
- Testing RESTful web services with the cURL command line tool
- SoapUI for Web Service tetsing
- Web Services Interview Questions and Answers - RESTful Web Service Overview
- Firebug poster plugin.
Labels: RESTClient, Testing, Tools, Web services
5 Comments:
You can also use SOAPSonar http://www.crosschecknet.ca/soapsonar-introduction-series-2-functional-testing/
HI Sir,
Is Spring IOC or DI will support the Restful Webservice.
If it support can you give simple example.
RESTFul web service is different from IOC/DI concept. If you search my blog for these keywords, you will find relevant blog posts.
Thank you Sir,
Is there any CRUD operation for Restful Web-service as
DATABASE+ECLIPSE+JSP+TOMCAT
Please give me one example for this..
Check the JEE tutorials tab.
Post a Comment
Subscribe to Post Comments [Atom]
<< Home