Using SOAP UI Tool for Testing SOAP Web Services

SoapUI is an open-source web service testing application for SOAP and REST web services.

Its functionality covers web service inspection, invoking, development, simulation and mocking, functional testing, load and compliance testing.

A commercial version, SoapUI Pro, which mainly focuses on features designed to enhance productivity, is also available. 

 

Need for SOAP UI

SOAP UI is a very handy tool especially for testing SOAP Based web services. 

We tested our Java SE web service with a client we wrote and we have tested the web service deployed into Glassfish using the Glassfish tester. However, we need a way to test SOAP web services in general and we should be able to test any web service available (and not just hosted on Glassfish). SOAP UI is such a tool that can help us testing web services easily.

There are other tools also, but SOAP UI is one of the most popular ones. 

 

Getting started with SOAP UI

You can download and install SOAP UI like any other software or you can install it as an eclipse plugin and then use it from within the eclipse. 

SOAP UI can be downloaded from http://www.soapui.org.

SOAP UI eclipse plugin can be configured by following the steps given @ http://www.soapui.org/soapui-for-ide/eclipse/eclipse-plugin.html. 

 

Simple SOAP web service testing with SOAP UI

  1. Open SOAP U

  2. Create a 'New SOAP Project'. Either go through File menu or right click the 'Projects' heading link.

  3. While creating the project you need to provide the url to your wsdl.

  4. Once the project is created, expand the project and double click on the 'Request'.

  5. Replace question marks with actual values that need to be sent in the request.

  6. Click on the test button (triangular play button) to send the SOAP request and view the SOAP response in the tab window.

 

There are lots of additional functionalities to SOAP UI than this. You may refer to the reference books (given below) to learn more about the SOAP UI tool and additional functionalities.

Search the Web

Custom Search

Searches whole web. Use the search in the right sidebar to search only within javajee.com!!!