This document describes how to create your first soapui project based on requests and test cases. In this example, we mainly use the web service provided by Amazon.com. Soapui is very easy to get started with, but to have a better understanding of soapui functions, you also need to have a better understanding of the following concepts and technologies: l WSDL-basic concepts (Service, port, binding, port type), related XML-schemal soap-basic concepts, related WSDL (binding, and so on ), different encoding types (soap-encoded/literal) and message types (document/RPC) l XML-related technologies-XPath, XML schema, namespaces, and so on can be found in W3C; w3schools and relevant tutorials. Zvon.org
Installation and runningSoapuiFollow the steps below to install and run soapui: L from the top page of the site, you can install the latest version online through Java WebStart L from the site SourceForge, download and install the Windows version of soapui, this version includes the required Java Runtime Environment (jre1.5 ). If you are not sure that your system has installed the appropriate JRE, or you want to have a start menu and can uninstall it later, you can use this version to install L from site SourceForge and download the binary release (for example: ”soapui-1.7.5-bin.zip), decompress it manually, and run soapui under the bin directory. BAT or soapui. sh script (your system needs to install the Java environment) regardless of the above installation method, soapui will start with an empty workspace.
Create and import a projectAfter installing and running soapui, you can create the first soapui project. L right-click the workspace node in the left-side Navigation Pane and select new WSDL project. L before the project is saved, you must enter the project name and the corresponding content in the local WSDL file l. This will help you create an empty project in the workspace. If it is not installed online, there is an example project in the root directory of the downloaded file; select import project and find the sample-soapui-project.xml. You can get more information about the project from the user guide.
Add ProjectWebServiceNow you can add a WebService porttypes interface for the project ). L right-click the project node and select "add WSDL from URL" l enter the URL of the WSDL interface: soapui will prompt you whether to create a default request for each operation, generally, select the "yes" button l soapui to create a SOAP/HTTP binding for Amazon's port type "awsecommerceserviceporttype" and create a node for each operation. You can get more information about interfaces from the user guide.
Operation RequestThe above operation has added the Amazon Web service, and then you can execute the request. When the interface is added above, a default request has been created for each operation according to the schema definition of WSDL. L expand any operation node under the interface, you can see the created "request 1" node l double-click the request node, the request editor will appear on the right side of soapui (refer) l The request editor is divided into three parts. The toolbar at the top contains a set of request-related actions and operations. The request area on the left is the request area. The response area on the right is the default request generated by soapui ,"?" Indicates the content to be replaced. You can replace or delete these values as needed. By pressing the leftmost button (Green Arrow) on the toolbar, send a request. The request is executed in the background, the response content appears on the right of the editor. You can get more about the request content from the user guide.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.