Calling SOAP Web Service

This section provides a tutorial example on how to call SOAP Web service by submitting a test request to the server represented by the port location defined in the WSDL document

With the request template generated by SoapUI as shown in the previous tutorial, we can replace question marks with real values in the template and call the SOAP Web service.

1. Double-click on "Request 1" below the "Hello" method of the "helloBinding". You will see a SOAP Web service request and response windows shows up.

2. Go to the request template displayed in the request area. And replace the question mark "?" with "Hello from client.":

      <ser:HelloRequest>Hello from client.</ser:HelloRequest>

3. Look at the icon area below the title bar of the request windows, the port location, http://www.herongyang.com/Service/Hello_SOAP_11.php, provided in the WSDL document is displayed.

3. Click the triangle icon, the one that says "Submit request to specified endpoint URL". In a second or two, the SOAP response received from the Hello Web service server will be displayed:

<soapenv:Envelope
   xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
   xmlns:hy="http://www.herongyang.com/Service/">
   <soapenv:Header/>
   <soapenv:Body>
      <hy:HelloResponse>
         Hello from server - herongyang.com.
      </hy:HelloResponse>
   </soapenv:Body>
</soapenv:Envelope>

The picture below shows you the request and response message. The "Submit" icon is highlighted too.

SOAP Web Service Request Call
SOAP Web Service Request Call

Congratulations! We have successfully created a REST project and made a request call to the REST web service.

Last update: 2015.

Table of Contents

 About This Book

 SoapUI - Web Service Testing Tool

SOAP Web Service and SoapUI

 What Is SOAP Web Service?

 What Is WSDL Document?

 A Sample WSDL 2.0 Document

 Creating SOAP Project with WSDL

 SOAP Project Interface Viewer

 SOAP Web Service Request Template

Calling SOAP Web Service

 HTTP Request and Response Raw Data

 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 Sunrise and Sunset Time

 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

 Outdated Tutorials

 References

 PDF Printing Version