Apr 16, 2013

RESTClient tool to test RESTful web services

Related posts to test web services

The 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

Labels: , , ,


Anonymous Anonymous said...

You can also use SOAPSonar

5:30 AM, August 13, 2013  
Blogger kancheti aneel said...

HI Sir,

Is Spring IOC or DI will support the Restful Webservice.
If it support can you give simple example.

11:14 PM, November 25, 2013  
Blogger Arulkumaran Kumaraswamipillai said...

RESTFul web service is different from IOC/DI concept. If you search my blog for these keywords, you will find relevant blog posts.

10:04 AM, November 26, 2013  
Blogger kancheti aneel said...

Thank you Sir,

Is there any CRUD operation for Restful Web-service as


Please give me one example for this..

3:48 PM, November 27, 2013  
Blogger Arulkumaran Kumaraswamipillai said...

Check the JEE tutorials tab.

10:36 AM, July 21, 2014  

Post a Comment

Subscribe to Post Comments [Atom]

<< Home