Create a New Project in SOAPUI
Now that we have setup the environment for testing in Soapui in the previous tutorial, let’s see how to create a project in this tutorial to do various types of testing like functional testing, load testing, security testing, etc.,
Before we start creating a new project in soapui 4.5.1, you need to know some of the important terms.
SOAP is a simple XML-based protocol to let applications exchange information over HTTP. Or more simply: SOAP is a protocol for accessing a Web Service.
Why SOAP??
It is important for application development to allow Internet communication between programs. Today’s applications communicate using Remote Procedure Calls (RPC) between objects like DCOM and CORBA, but HTTP was not designed for this. RPC represents a compatibility and security problem; firewalls and proxy servers will normally block this kind of traffic. A better way to communicate between applications is over HTTP, because HTTP is supported by all Internet browsers and servers. SOAP was created to accomplish this. SOAP provides a way to communicate between applications running on different operating systems, with different technologies and programming languages.
WSDL:
WSDL stands for Web Services Description Language. It is written in XML. So we can say, WSDL is an XML document. WSDL is used to describe Web services. It is also used to locate Web services. It is a W3C recommendation and specifies the location of the service and the operations (or methods) the service exposes.
W3C Recommendation:
A W3C Recommendation is the final stage of a ratification process of the World Wide Web Consortium (W3C) working group concerning a technical standard. This designation signifies that a document has been subjected to a public review, has circulated amongst W3C member organizations for review, has taken account of feedback on how implementable the document is and that it has finished these processes. At this stage, the document has been formally approved by W3C’s director preventing any further technical changes and making it ready for wide deployment in its problem domain. The purpose of the recommendation is to standardise the Web technology. It is the equivalent of a published technical standard in many other industries.
With the knowledge of what is WSDL and what is SOAP, lets see how to create a project now in SOAP UI step by step.
Step 1: Click on soapUI 4.5.1.exe, this will open the SOAPUI as shown.
Step 2: SOAPUI is displayed as shown.
The window and its panes are described in image as shown below.
Step 3: To create a new project, Click on File –> New SOAPUI Project.
Step 4: New SOAPUI project is displayed as shown in figure. This allows the user to select various options while creating a project.
Step 5: In the above window just give the project name and provide the wsdl url or wsdl file location by clicking on Browse and click on OK as shown in the image below.
For sample testing, use the wsdl url provided,
http://www.mobilefish.com/services/web_service/countries.php?wsdl
Step 6: Clicking on OK, will display the progress of loading definition as shown below.
Step 7: Thus the soapui project is created successfully as shown in the image below.
The various components available in a project is explained in the forth coming tutorials.