- Unzip the Soapui tool and click the Bin/soapui.bat Run tool
Open the Soapui tool's start window:
Right-click on projects, select New Soap Project (Create a new SOAP item),
- In the pop-up box, define the name in Project name and write it casually, Initial the address of the interface to be tested in the WSDL:
- After writing, click the OK button, and note the "? wsdl" suffix, if the creation fails with an error message, check the current environment or access address error, following the creation of a successful:
- Syncdata is the method name of the current interface, double-click the request to open the right page, <exp:arg0>?</exp:arg0>? "The parameters that need to be passed to write the current interface method.
- The current interface is a string that needs to be passed in an XML format, note that the syntax is <! [cdata[here is the XML]]>
We need to pay attention to:<exp:arg0> and <!. [CDATA ... No other characters, including spaces and line breaks, are allowed between them, otherwise parsing the XML throws an exception and parsing fails. Of course, if the string or number type is relatively simple, directly write parameters can be, see:
- Click Execute, the right side returns the execution result information, the following is the result of execution, because my type is invalid, the interface returns the corresponding error message:
[WebServices] How to test the interface with SOAPUI