Free Web Services - Herong's Tutorial Examples - Version 1.11, by Dr. Herong Yang

Generating REST Test Requests

This section provides a tutorial example on how to generate a test REST request against a GET method defined in a WADL document.

Once a REST Web service is loaded, you can create create a test request very quickly:

1. Run soapUI 3.6.1 and load Hello_REST.wadl as shown in the previous tutorial.

2. Right click on "Hello" operation in the project object tree and select "New Request". A small dialog box shows up.

3. Enter Hello_Test_Request as the request name and check the "Open Request" checkbox.

4. Click OK. A sample request shows up in the request editor. You will see that this method supports 1 input parameter: Message.

5. Enter "Hello from client." as the value for the "Message" parameter. An REST test request is ready to be submitted to the service provider as shown here:
soapUI 3.6.1 Generate Test REST Request

Last update: 2011.

Table of Contents

 About This Book

 soapUI 3.6.1 - Web Service Testing Tool

REST Web Service and soapUI

 What Is REST Web Service?

 Hello REST Web Service

 WADL (Web Application Description Language)

 Loading WADL Documents into soapUI

 Viewing REST Service Properties

Generating REST Test Requests

 Submit REST Test Requests

 GetCountries - Get All Countries and Territories

 GetCurrencies - Get Currencies from All Countries and Territories

 GetGMTbyCountry - Get GMT Information of a Given Country

 GetISD - Get ISD Phone Code of a Given Country

 GetCitiesByCountry - Get Cities by Country

 LatLonListCityNames - Return Latitudes and Longitudes of US Cities

 GetInfoByState - Get ZIP Codes of a Given US State

 GetAirportInformationByCountry - Get Airport Code by Country

 GetGeoIP - Get Country by IP Address

 ConvertTemp - Convert Temperature Unit

 ChangeLengthUnit - Convert Length Unit

 ConvertWeight - Convert Weight Unit

 ChangeAreaUnit - Convert Area Unit

 Code39 - Generate Bar Code Images in Code 39 Format

 GenerateBarCode - Generate Bar Code Images

 GetMortgagePayment - Calculate Mortgage Payment

 ConversionRate - Get Currency Exchange Rate

 GetQuote - Get Stock Quote

 getTime - Get the Current Time

 GetSunSetRiseTime - Get Airport Code by Country

 GetWeatherByZipCode - Get Weather by ZIP Code in US

 NDFDgenByDay - US Weather Forecast by Day

 NDFDgen - US-Weather Forecast for a Single Location

 questionSearch - Search Yahoo! Questions and Answers

 flickr.interestingness.getList - Get Interesting Photos

 Hotwire - Get Travel Ticker Deals

 References

 Printable Copy - PDF Version

Generating REST Test Requests - Updated in 2011, by Dr. Herong Yang