Generating SOAP Test Request

This section provides a tutorial example on how to generate a test SOAP request against an operation defined in a WSDL document using SoapUI.

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

Here is content of the SOAP 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: 2014.

Table of Contents

 About This Book

 Introduction to Web Service

 Introduction to SOAP (Simple Object Access Protocol)

 SOAP Message Structure

 SOAP Message Transmission and Processing

 SOAP Data Model

 SOAP Encoding

 SOAP RPC Presentation

 SOAP Properties Model

 SOAP Message Exchange Patterns

 SOAP HTTP Binding

 SOAP Perl Implementations

 SOAP PHP Implementations

 SOAP Java Implementations

 Perl SOAP::Lite - SOAP Server-Client Communication Module

 Perl Socket Test Program for HTTP and SOAP

 Perl SOAP::Lite for GetSpeech SOAP 1.1 Web Service

 Perl SOAP::Lite 0.710 for SOAP 1.2 Web Services

 Perl SOAP::Lite 0.710 for WSDL

 PHP SOAP Extension Client Programs

 PHP SOAP Extension Server Programs

 Java Socket and HttpURLConnection for SOAP

 SAAJ - SOAP with Attachments API for Java

SoapUI - SOAP Web Service Testing Tool

 What Is SoapUI?

 Downloading and Installing SoapUI 5.0.0

 Validating and Inspecting WSDL Documents

 Using Interface Viewer on Bindings

Generating SOAP Test Request

 Submiting SOAP Test Requests to Server

 WS-Security - SOAP Message Security Extension

 WS-Security X.509 Certificate Token

 Web Services and SOAP Terminology

 References

 PDF Printing Version