Generating SOAP 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 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:

SoapUI Generate SOAP Request
SoapUI Generate SOAP Request

Here is content of the test request:

<soapenv:Envelope
   xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
   xmlns:ser="https://www.herongyang.com/Service/">
   <soapenv:Header/>
   <soapenv:Body>
      <ser:HelloRequest>Hello from client.</ser:HelloRequest>
   </soapenv:Body>
</soapenv:Envelope>

Table of Contents

 About This Book

 Introduction to WSDL 2.0

 WSDL 2.0 Document Structure and Syntax

 WSDL Version 2.0 Part 2: Adjuncts

 WSDL 2.0 Document Examples with SOAP Binding

 Using WSDL Document in Java Apache Axis2/Java for WSDL

 Apache Woden for WSDL Documents in Java

 SoapUI - Web Service Testing Tool

 PHP SOAP Extension for WSDL

 Perl SOAP::Lite for WSDL

 Introduction to WSDL 1.1

 WSDL 1.1 Document Structure and Syntax

 WSDL 1.1 Binding Extension for SOAP 1.1

SoapUI as WSDL 1.1 Testing Tool

 Validating and Inspecting WSDL 1.1 Documents

 Using Interface Viewer on Bindings

 Generating HTML Documentations On Bindings

Generating SOAP Requests on Operations

 Submit SOAP Requests to the Server

 MockService - Web Service Simulator

 Submitting Request to MockService

 Loading Incorrect WSDL Documents

 WSDL 1.1 and SOAP 1.1 Examples - Document and RPC Styles

 PHP SOAP Extension for WSDL 1.1

 Perl SOAP::Lite for WSDL 1.1

 Apache Axis2/Java for WSDL 1.1

 Using WSDL2Java to Generate Web Service Stub Classes

 WSDL 1.1 Binding Extension for SOAP 1.2

 WSDL 1.1 and SOAP 1.2 Examples - Document and RPC Styles

 SOAP 1.2 Binding - PHP, Java and Perl Clients

 Python SOAP Client: Zeep

 WSDL Related Terminologies

 Archived Tutorials

 References

 Full Version in PDF/EPUB