DataDrivenTest Download Trial - Free 14 day evaluation

Your First SoapUI Project

PDF Print E-mail
User Rating:  / 283
Rate this article: PoorBest 

Note: The WSDL referenced in step 2 of this tutorial has been removed. Please use one of the following WSDL URLs instead:
http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL

http://www.webservicex.com/currencyconvertor.asmx?WSDL


 

 

Try the full experience of Pro:
Download Pro

In this guide you'll learn how to create your first SOAP project in SoapUI, add a WSDL-file, and get acquainted with SoapUI's interface. 
If you are more interested in REST testing, please see Getting Started with REST Testing

We´ll be using SoapUI Pro, so it's recommended that you download
soapUI Pro Trial before starting.


Watch the video tutorial:


The WSDL-file we use in this tutorial is: http://www.mobilefish.com/services/web_service/countries.php?wsdl




The step-by-step guide:


The SoapUI project is the central point in all SoapUI testing. Once the project is created, you can create and run Functional Tests, LoadTests, create MockServices or much more. In this tutorial, we will walk through two things how to:

  1. Create a SOAP project
  2. Add a WSDL

1) Create a SOAP project

  1. In the navigator, which is the tree structure at the left in the SoapUI GUI, right click on the project node Image of Project Node
    and select New SOAP Project
    New soapUI Project for Web Service Testing
    This will open a New SOAP Project Dialog.


    Note: you can also do ctrl+n (win) or cmd+n (mac) to open a new SOAP Project.
  2. In the New SOAP Project dialog enter a project name and click OK
    New SoapUI pProject dialog
  3. This will create a new project in the Navigator.
    New SoapUI Project in Navigator

Congratulations, you've just created your first SoapUI Project. Let's add a WSDL.

Note: If you would like to try importing a project, try importing the Sample SoapUI Project, see Web Service sample project for more details.

2) Add a WSDL

In SoapUI the SOAP projects are mostly based on a WSDL. It’s not necessary to start by importing a WSDL, but it makes testing easier since the WSDL contains all information you need about the web service tested; information about the requests and responses, what they contain and much more, which simplifies SoapUI testing greatly.

Let’s add a WSDL to the project;

  1. Right click on the project node and select Add WSDL
    Add WSDL to a Web Service Test Project
    The Add WSDL dialog will now open.
  2. Enter
    (Note that this has been removed. Check the top of this article for other alternatives)
    http://www.mobilefish.com/services/web_service/countries.php?wsdl

    Click OK.
    Point to the WSDL
  3. You should now see that the WSDL was successfully added to the project by seeing the operations in the Web Service in the navigator.
    List of operation
  4. You can double click the Project for a window that gives you overview of your project. As your project and test skills grow, this view will be very important since you can manage a great deal of things at project level, like JDBC Connections (SoapUI Pro only), Security Configurations. SoapUI even contains basic Requirements functionality in the Project Window.
    SoapUI Overview
  5. You can also double click the Interface for an Interface view.
    Double click the Interface
    This view shows a lot of information about the WSDL itself. This is very useful for browsing and examining a WSDL.
    The Interface view

 

Try SoapUI Pro for free!


By going Pro you get everything thats in SoapUI plus a bunch of productivity and time-saving enhancements. Download our 2-week free trial and try them out for yourself!