Javatpoint Logo
Javatpoint Logo

Create SOAP Project in SoapUI Tool

Simple Object Access Protocol (SOAP) is a network platform used in a web service to exchange or communicate data between two different machines on a network. It uses the XML format of data to transfer messages over the HTTP protocol. We import a WSDL file in a SOAP project that contains all requests or endpoints exposed by WSDL. Similarly, we can also perform functional and non-functional testing, load testing, WS security, WS addressing, etc. using the SoapUI tool.

Create SOAP Project

It is simple to create a SOAP project in the SoapUI tool. When creating a Soap project, we need to add the WSDL URL. Open the SoapUI application and follow the instruction to proceed with the project.

Step 1: Go to the File menu and click on the New SOAP Project option, as shown below.

Create SOAP Project in SoapUI Tool

Apart from this, we can also click on the SOAP icon to create a New SOAP Project, as shown below.

Create SOAP Project in SoapUI Tool

After performing the above step, it opens the New SOAP Project window, as shown below.

Create SOAP Project in SoapUI Tool

Step 2: Enter the WSDL Web URL (http://www.dneonline.com/calculator.asmx?WSDL) in the Initial WSDL text box. It automatically retrieves the Project Name, as shown below.

Create SOAP Project in SoapUI Tool

Note: To check the WSDL URL, open the browser and paste the WSDL URL in the address bar and hit the enter key. It shows the XML based content of the calculator, as shown below.

Create SOAP Project in SoapUI Tool

Step 3: After clicking the OK button, it processes the WSDL URL for successful execution and then, it displays various services and properties of the project calculator, as shown below.

Create SOAP Project in SoapUI Tool

Execute Services to check Request and Response Operation in the SoapUI

Step 4: Expand the service of the project calculator by clicking on the + symbol, as shown below.

Create SOAP Project in SoapUI Tool

Furthermore, if we want to create more than one Request in the calculator, right-click on the Add service to expand and click on the New request option, as shown below.

Create SOAP Project in SoapUI Tool

It shows a pop-up dialog box, as shown below.

Create SOAP Project in SoapUI Tool

Step 5: After double-clicking on the (+) Request 1 Service, it shows the below screen.

Create SOAP Project in SoapUI Tool

Here is the XML file of Request 1 Service.

Step 6: Enter the value for 'IntA' and 'IntB' to perform the Add request Service, as shown below.

Create SOAP Project in SoapUI Tool

In our case, we have passed the value for IntA and IntB is 3 and 5, respectively.

Step 7: After inserting the values, click on the Submit Response icon for executing the Add Request, as shown below.

Create SOAP Project in SoapUI Tool

We get the following Response output:

Create SOAP Project in SoapUI Tool

Here is the Response XML file.

Similary, we can perform the service request for Divide, Multiply and Subtraction in the calculator project based on the WSDL web service. In the next topic, we will learn about how to create test suite, test cases, and test step in SoapUI test tool.







Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA