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

Loading WADL Documents into soapUI

This section provides a tutorial example on loading a WADL document for a REST Web service into soapUI to validate and inspect the WADL document.

In the previous chapter, we learned that soapUI can be used to load a WSDL document for a SOAP Web service. Now let's try to load a WADL document for a REST Web service into soapUI to validate the WADL document and review detailed information of the Web service.

1. Run soapUI and click "File" > "New soapUI Project"

2. On the dialog box, enter these values:

Project Name: HelloProject
Initial WSDL/WADL: 
   http://www.herongyang.com/Service/Hello_REST.wadl
Create Requests: checked
Create TestSuite: unchecked
Create MockService: unchecked
Add REST Service: unchecked
Relative Paths: unchecked

3. Click OK. soapUI will validate and import the specified WADL document.

4. When importing is done, "HelloProject" is created and displayed on the left of the windows. There should be no importing error, because Hello_REST.wadl is valid WADL document.

5. Click to open all sub objects under the project "HelloProject", you should see the "Hello_REST" service, the "Hello_REST.php" resource, the "GET" method, and a sample request "Request 1" as shown in this picture:
soapUI 3.6.1 REST Object View

Very nice. My Hello_REST.wasl has been validated and imported correctly. soapUI allows you to inspect interface properties and method properties.

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

Loading WADL Documents into soapUI - Updated in 2011, by Dr. Herong Yang