How to test a SOAP Interface with SoapUI

SoapUI is a testing program to test any SOAP interface. This is a method of how to use SoapUI and test an interface.

    1. Open the SoapUI program (demo images with 5.2.0)
    2. Follow these instruction to create a new test project.
      1. Click on an new empty folder in the top left to contain the new Service Tests.
new empty folder
new empty folder

b. Right click the new folder and rename it to the logic name it needs to be.

c. With that folder selected, press the new SOAP Service Project button next to the folder button.

new SOAP Service Project
new SOAP Service Project

d. Enter the project name and the endpoint for the WSDL. This is normally the name of the service with ‘SOAP’ appended and the WDSL is the URL plus the endpoint plus ‘?WSDL’ e.g https://serviceURL.com/Interface/1.0?WSDL

project name and the endpoint for the WSDL
project name and the endpoint for the WSDL

e. Then press OK.

    1. To test the Service.
      1. If one has not been created then you will need to create a new ‘Request’
        1. Right click on the ‘MockService’ and select ‘New Request’
New Request
New Request

ii. Enter a name then click OK.

b. Double Click the ‘Request’

c. A window with the XML will show. Change the content in the fields to pass the information you require to test.

Service XML
Service XML

d. Press the Play button the top left to run the service.

Run Test
Run Test

e. You will then either be returned XML or Raw detail as the status of success.

returned XML or Raw detail
returned XML or Raw detail
Advertisements

Leave a message please

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s