Free Web Services - Herong's Tutorial Examples - v2.13, by Herong Yang
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, https://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="https://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.
Congratulations! We have successfully created a REST project and made a request call to the REST web service.
Table of Contents
SoapUI - Web Service Testing Tool
Creating SOAP Project with WSDL
SOAP Web Service Request Template
HTTP Request and Response Raw Data
Mock Web Services - herongyang.com/Service
"SoapResponder" and Web Service Test Tool
"Calculator" for 4 Integer Operations
DataFlex Web Service for Country Information
LatLonListCityNames - Return Latitudes and Longitudes of US Cities
LatLonListZipCode - Return Latitudes and Longitudes of US Zip Code
TempConvert Web Service for Temperature Conversion
NDFDgenByDay - US Weather Forecast by Day
NDFDgen - US-Weather Forecast for a Single Location
Bitcoin Blockchain Data API (or Explorer)
flickr.interestingness.getList - Get Interesting Photos
NumberToWords - Convert Number in Digits to Words
TitleCaseWordsWithToken - Words to Title Case Format
"PUG SOAP" Web Service for PubChem Database
Discontinued: Currency Converter by kowabunga.net
Discontinued: GetCountries - Get All Countries and Territories
Discontinued: GetCurrencies - Get Currencies from All Countries
Discontinued: GetGMTbyCountry - Get GMT Information of a Given Country
Discontinued: GetISD - Get ISD Phone Code of a Given Country
Discontinued: GetCitiesByCountry - Get Cities by Country
Discontinued: GetInfoByState - Get ZIP Codes of a Given US State
Discontinued: GetAirportInformationByCountry - Get Airport Code by Country
Discontinued: GetGeoIP - Get Country by IP Address
Discontinued: ConvertTemp - Convert Temperature Unit
Discontinued: ChangeLengthUnit - Convert Length Unit
Discontinued: ConvertWeight - Convert Weight Unit
Discontinued: ChangeAreaUnit - Convert Area Unit
Discontinued: Code39 - Generate Bar Code Images in Code 39 Format
Discontinued: GenerateBarCode - Generate Bar Code Images
Discontinued: GetMortgagePayment - Calculate Mortgage Payment
Discontinued: ConversionRate - Get Currency Exchange Rate
Discontinued: GetQuote - Get Stock Quote
Discontinued: GetSunSetRiseTime - Get Sunrise and Sunset Time
Discontinued: GetWeatherByZipCode - Get Weather by ZIP Code in US
Discontinued: getTime - Get the Current Time
Discontinued: questionSearch - Search Yahoo! Questions and Answers