23

There is a similar question here but it only covers some of the issues below.

We have a client who requires web services using REST.

We have tons of experience using SOAP and over time have gathered together a really good set of tools for SOAP development and testing e.g.

  • soapUI
  • Eclipse plugins
  • wsdl2java
  • WSStudio

By "tools" I mean a product "out of the box" that we can start using. I'm not talking about cutting code to "roll our own" using Ajax or whatever.

The tool set for REST doesn't seem to be nearly as mature?

  • What tools are out there (we use C# and Java mainly) ?

  • Do the tools handle GET, POST, PUT, and DELETE?

  • Is there a decent Eclipse plugin?

  • Is there a decent client testing application like WSStudio where you point the tool to the WSDL and it generates a proxy on the fly with the appropriate methods and inputs and you simple type the data in?

  • Are there any good package monitoring tools that allow you to look at the data? (I'm not thinking about sniffers like Wireshark here but rather things like soapUI that allow you to see the request / response) ?

15 Answers 15

13

I googled and found this plugin for chrome.

POSTman REST Client.

2
  • 1
    This is by far the best.
    – Zasz
    Commented Sep 27, 2012 at 15:42
  • Can't get this extension to work in Chromium 18. The only function that works is sending a GET request – but that is something I could do with any Web-Client.
    – feeela
    Commented Nov 26, 2012 at 15:43
9

For starters, you need a tool that lets you construct an arbitrary HTTP request (including headers such as content-type, HTTP method, HTTP authentication and request body) and inspect the HTTP response (including status code, headers and response body). It's nice if it's scriptable tool.

Have a look at:

To auto-generate a proxy I guess you are looking for something that parses WADL, the REST answer to WSDL. Unfortunately, I do not know anything like that.

1
  • Just for completeness, soapUI seems to have added WADL support.
    – wwerner
    Commented Jul 27, 2010 at 13:22
6

I found a nice Firefox plugin called Poster that allows you to act as a REST client similar to rest-client and the others. I wish it would render the response to a firefox tab (rather than a custom output window) so any returned XML could be colorized by Firefox's awesome syntax highlighting. But overall seems to work OK.

Update: Oh, even better. I found another firefox plugin callsed RestClient https://addons.mozilla.org/en-US/firefox/addon/9780. This seems to do the syntax highlighting.

5

In terms of Java, there is the JAX-RS API, which is the Java Api for Xml using Restful Services or something like that. Basically, JAX-RS provides a more standard way to build RESTful services in Java.

There is also Restlet, which allows easily development of Restful services and is based on the JAX-RS specification.

Also, checkout SOAP-UI which has recently added nice support for REST.

http://www.restlet.org/

http://jcp.org/en/jsr/detail?id=311 - JAX-RS

http://www.eviware.com/content/view/134/1/ - SOAP-UI

http://sourceforge.net/projects/soapui - SOAP-UI

1
3

The easy and best client tool to test your REST API calls is a Firefox add-on RESTClient.

Install the add on and test the API calls.

2

Runscope is a cloud based service that allows you to inspect the requests to and responses from a web API. It also does testing and measurement of API performance.

Disclaimer: I work for Runscope.

1

I'd like to underline that the Restlet project supports two APIs to develop RESTful applications:

  • Core Restlet API : class-based, client and server-side, multi-protocol, very large features scope
  • JAX-RS API : annotation-based, only server-side, smaller features scope

Restlet can deploy in Servlet containers, standalone (pure JVM), in GWT for the client-side, in Spring, in Mule ESB or in OSGi containers. Here is the complete list of features.

Best regards,

Jerome Louvel

1
  • Surely the question is about tools, not about APIs. Commented Nov 20, 2008 at 11:05
0

SOA Cleaner, is a test tool that tests both soap and rest (also WCF, but it seems you don't need that feature). It's very intuative, and usable. Written in .NET. A free version is also available. can be downloaded from http://xyrow.com. Good luck!

0

In terms of a client testing application, I had a similar problem. I couldn't find a tool that I could use to quickly test data going in and out of the web services I was creating/using. So I created my own tool using C# .NET. It's essentially a client application that you can use for GET, POST, PUT, and DELETE queries on rest services.

The software is called REST Scratch Pad. It lets you enter the data to send to the REST service and view the results of queries along with their headers and response times. It will handle basic authentication and will remember the URLs you've used in prior sessions (to avoid having to re-type long URLs).

The current version is free. The next version will use a newer version of .NET and cover more authentication methods.

REST ScratchPad

0

There are some tools that do these type of things but few support RESTful APIs as yet.

"Rose" does: http://www.ibm.com/developerworks/rational/library/design-implement-restful-web-services/index.html

but you will need deep pockets...

Not aware of any others at the moment. Would like to know though (of something afordable)

0

A fine tester for REST web services is HttpMaster.

It supports various http methods and allows you to monitor complete request/responses data. You can also use dynamic parameters to execute a group of requests, it also supports simple response data validations. It's easy to use, but it only runs on Windows (it's a .NET application).

0

https://play.google.com/store/apps/details?id=com.snmba.restclient

is a very powerful tool to troubleshoot rest services directly from android devices.

0

You could try the REST Assured library which makes it very easy to test REST services from Java. For example given that your resource is called "greeting" and returns the following JSON:

{ "greeting" : { "firstName" : <first_name>, "lastName" : <last_name> } }

you can test it like this in REST Assured:

given().
        param("first_name", "John").
        param("last_name", "Doe").
when().
        get("/greeting").
then().
        statusCode(200).
        body("greeting.firstName", equalTo("John").
        body("greeting.lastName", equalTo("Doe");
-1

SoapUI, despite its name, can also support REST requests. Because REST usually does not supply anything like a WSDL, you are on your own creating the requests needed for your web interface though. Depending on the complexity of the REST webservice, this could be anything from trivial to demanding, but it should at least get you some results instantly.

-1

https://restclientgui.codeplex.com Stable version downloadable from Downloads section.

Not the answer you're looking for? Browse other questions tagged or ask your own question.