26 September 2008 - 2.5-beta1 home user guide eclipse intellij netbeans maven PDF files forums bugs sourceforge eviware.com


Eviware Logo

Your first soapUI Project

If you have a copy of soapUI up and running, let's get going by creating your first project!

We are going to do the following:

  1. Set up a test project
  2. Add a WSDl that defines the Web Service
  3. Make some Requests

Create or Import a Web Service testing project

  • Right click on the workspace node in the left navigation pane and select "New WSDL Project"
  • You will be prompted for a project name and then for a local file where the project should be saved
  • If all is OK an empty project will be created in the workspace

If you have downloaded the offline version, a sample project is included in the root folder; select "Import Project" instead and browse to the sample-soapui-project.xml file.

Read more about projects in the soapUI User Guide

Create a project from a WSDL

Add a WSDL to create tests from

Now that you have a project you can start adding Interfaces (i.e. Web Service PortTypes) to it.
  • Right click on the project node and select "Add WSDL from URL"
  • You will be prompted for the URL to the Interfaces WSDL; enter
    http://webservices.amazon.com/AWSECommerceService/

    AWSECommerceService.wsdl
    to add the amazon web service and select "Ok".
  • soapUI will prompt you if you want to create default requests for each operation, simply select "Yes"
  • soapUI will now add the SOAP/Http Binding for the amazon "AWSECommerceServicePortType" PortType to your project and create nodes for each operation.

Read more about interfaces in the soapUI User Guide

Add WSDL to create tests from

Try some Web Service requests

Now that you have added the amazon Web Service you can start playing around with some requests. When you added the interface in the previous step soapUI created default requests for each operation in accordance with their WSDL and Schema definition.
  • Expand the Interface node and any Operation node under it, you should see the created "Request 1".
  • Double-click the request node to open the request editor in the right part of soapUI (see image below)
  • The request editor is divided into 3 parts:
    • A toolbar at the top with a number of request related actions/options
    • A request area to the left
    • A response area to the right
  • The default request created by soapUI will have "?" for each value that needs to be supplied in the request, replace or remove any values as required and post request by pressing the left-most toolbar button (a green arrow)
  • The request will run in the background and its response will be displayed in the right editor

Read more about working with requests in the soapUI User Guide

Web Service Requset in soapUI

Soap Test Request and Response View


Next: Getting Started with Functional Testing for Web Services