SOAP Web Service Tutorials - Herong's Tutorial Examples - v5.11, by Dr. Herong Yang
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:
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>
Table of Contents