Free Web Services - Herong's Tutorial Examples - Version 2.10, by Dr. 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, 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.
Congratulations! We have successfully created a REST project and made a request call to the REST web service.
Last update: 2015.
Table of Contents