Skip to main content

Testing your Webservice Applications using SOAP UI

SOAP UI is a standard desktop application for testing the Web Services projects. It provides full support for debugging, developing and testing of your web services applications.
The tool support data driven development and also provides platform for creating test suites where you can create services for regression testing. For example if you want to test the complete flow of your SOA application, you can create Test Suites using SOAP UI and can perform end to end testing of your applications. The test suits can be configured to run in multiple environments (dev, sit, uat or production).

Okay, let’s start the working on SOAPUI. I will show you the simple webservice testing that I developed in my last blog.

Prerequisites:
-You have developed your webservices
-Webservice is ready and running on your local server
-Installed SOAP UI tool

Step-1
Download the SOAPUI tool

Step-2
Open the soap UI Tool

Setp-3
Right click on the project and choose New SOAP Project. Import Project is the option for adding existing web service project.



Step-4
Give the name for your new SOAP Project and add the WSDL url.

Step-5
Enter the localhost and port number, the name and location of your schema + .wsdl ex. http://localhost:8081/springproject/country/countryLookup.wsdl

Step-6
Click OK





Step-7
Click Yes on the Create default requests for all operations. This will add all the mandatory and option request parameters from your webservice.

Step-8
The new webservice will now be created in the project and automatically has one request


           


Step-9
Double click Request 1

Step-10
The left side of the new window displays the request for the Webservices Inputs.
Enter the input data in place of “?”.
    

Step-11
You can have both mandatory and required inputs for your service. You can ignore option inputs.

(If you have some requirement of implementing security with the service. That can be implemented using header tag.)

Step-12
Now once you have provided the required inputs submit the request.

Step-13
Click the Play button at the upper left portion of the request window  .

The right side should now display the response



Step-14
After the success of the response message right click and select validate



Step-15
It should show a Validation OK


                 



Once the Validation shows as OK. It’s all well.

Comments

Popular posts from this blog

Know your Repository Statistics

Being in software development, everyone of us must be using some or the other repository to save our work( popularly know as check-in check-out :) ). Recently while working on one of my project I thought of finding out the statistics of our project repository for some management reports. While there are so many tools available in the market to explore the stats, I chose to go with Tortoise SVN tool with some plugins. Following are other tools that can be very useful based on scenarios: -Commit Monitor -Winmerge -Visual SVN -SVN Monitor -CM Synergy from Telelogic -Many more are there If you are using Tortoise SVN and want to know the details(for example : no of java classes checked-in, lines of codes written, developers name, total code base details and many more ) about your repository You can use the following steps to find the details: 1-check if the SVN has been installed and working properly or not by using following command: C:\>svn help It will output something ...

It's All Mobile

In the digital era, where anything is available on finger tip and we want everything in our pocket, It will not be wrong to say that mobile devices have become our life line. These devices are impacting our lives on a daily basis. Today we have an app(as the modern world calls it) for everything. You name an application, its there on app store/play store. For any company(small or big), having a mobile application can be a smart way to connect with people and get started with their business very quickly.  I can say it has become a must first step for businesses to have mobile presence if they want to reach out to their customers easily and on time. This is high time for them to get their feet wet and jump into this App world. Today's world of technical innovation is taking business owners closer to their customers and giving them opportunity to know the customers need. This can be a good way to understand your customer instead of solving their problem. Demand for mobile software a...