[WebServices] How to test the interface with SOAPUI

Source: Internet
Author: User

  1. Unzip the Soapui tool and click the Bin/soapui.bat Run tool
  2. Open the Soapui tool's start window:

  3. Right-click on projects, select New Soap Project (Create a new SOAP item),

  4. 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:
  5. 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:
  6. 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.
  7. 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:

  8. 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

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.