Free Web Services - Herong's Tutorial Examples
∟soapUI 3.6.1 - Web Service Testing Tool
∟Generating Test Requests on Operations
This section provides a tutorial example on how to generate a test SOAP request against an operation defined in a WSDL document.
If you are using "SOAP over HTTP" as the transportation protocol, soapUI can help you to create a test SOAP request very quickly.
1. Run soapUI 3.6.1 and load Hello_WSDL_11_SOAP.wsdl 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 click OK. A sample request shows up in the request editor.
4. Enter "Hello from client." in the HelloRequest element. I got a perfect SOAP test request for my Web service, helloService, as shown here:
Here is content of the test request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://www.herongyang.com/Service/"> <soapenv:Header/> <soapenv:Body> <ser:HelloRequest>Hello from client.</ser:HelloRequest> </soapenv:Body> </soapenv:Envelope>
Last update: 2011.
Table of Contents
About This Book
►soapUI 3.6.1 - Web Service Testing Tool
What Is soapUI 3.6.1?
Downloading and Installing soapUI 3.6.1
Validating and Inspecting WSDL Documents
Using Interface Viewer on Bindings
►Generating Test Requests on Operations
Submit Test Requests to the Server
REST Web Service and soapUI
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