Introduction of SOAPUI
Soap:
WebService sending requests and receiving results through the HTTP protocol, both the requested content and the result content are encapsulated in XML format, and some specific HTTP headers are added to describe the content format of the HTTP headers. These specific HTTP headers and XML content formats are the SOAP protocols. SOAP provides a standard RPC method to invoke WebService.
SOAP protocol = HTTP protocol + XML data format
The SOAP protocol defines the format of the SOAP message, the SOAP protocol is based on the HTTP protocol, SOAP is based on XML and XSD, and XML is the data encoding method of soap. Analogy: HTTP is a common highway, XML is the middle of the green belt and the two sides of the fence, soap is the ordinary highway through the belt and the protection of the highway modified by the fence.
Wsdl:
As we go to the store to buy things, first of all to know what to buy in the store, and then to buy, the business is to put up advertising posters. WebService also, WebService client to invoke a WebService service, first have to know the address of this service where, as well as this service has what method can call, so, The WebService server must first use a WSDL file to explain what services are available to call from home. What the service is (what are the methods in the service, what parameters are accepted by the method, what is the return value), which URL address is used for the service's network address, and how the service is invoked.
The WSDL (Web Services Description Language) is an xml-based language that describes the WEB service and its functions, parameters, and return values. It is a standard format that can be understood by both the WebService client and server side. Because it is xml-based, WSDL is both machine-readable and readable, which is a great benefit. Some of the latest development tools generate WSDL documents based on your Web service, import WSDL documents, and generate proxy class code that invokes the corresponding webservice.
The WSDL file is saved on the Web server and can be accessed through a URL address. Before a client invokes a WebService service, it needs to know the address of the WSDL file for that service. The WebService service provider can expose its WSDL file address in two ways: 1. Register to a UDDI server for people to find; 2. Tell the client caller directly.
WebService working principle: to the client, we give the various WebService client APIs to pass the URL address of the WSDL file, these APIs will create the underlying proxy class, I call these agents, you can access the WebService service. The proxy class turns the client's method call into a SOAP-formatted request data and sends it through the HTTP protocol, and returns the received SOAP data to the return value. For the service side, the essence of various WebService framework is a large servlet, when the remote call client sends it over the HTTP protocol to send over the SOAP format of the request data, it analyzes the data, it knows which Java class to call which method, The object is then searched or created, and its methods are called, and the results returned by the method are packaged into SOAP-formatted data and returned to the client via an HTTP response message.
SOAPUI is a testing tool specifically for WebService interfaces, when testing the same WebService interface, Soaqui performance is superior, truer, and more closely reflects the performance of the interface, for SOAPUI, The results provided are not as detailed and comprehensive as the LR.
Second, the installation
Execute under Bin
If it is not successful, use Super Administrator privileges.
Demo
First create a new Soapui Project and enter the address of the WSDL in initial Wsdl/wadl
When project is established, SOAPUI generates a list tree to the left based on the format of the WSDL, including Operation Cux_0_ws_server_prg_binding for WSDL Binding,invokefmsws Binding. Double-click Request1 to see the contents of the SOAP request message.
In the request message, fill in the necessary request information, and in the lower left-hand corner of the request properies input username, password and wss-pasword type, and then click the Green Run button, you can generate a SOAP response message on the right.
Just a simple introduction to SOAPUI, mainly to view the interface provided by the Web service, as well as the results of the return, SOAPUI features far more than that, it can perform functional and performance testing of the Web service.
Soapui parameter Description: http://www.soapui.org/Working-with-soapUI/preferences.html
Further information can be read: http://www.51testing.com/ddimg/uploadsoft/20100204/SoapUI.pdf
In addition to sharing a few public webservice sites, you can casually recruit a few services to test
Http://www.webservicex.net/WS/wscatlist.aspx
http://www.service-repository.com/
Http://www.webxml.com.cn/zh_cn/index.aspx