One, the difference between Web service (SOAP) and HTTP interface 1. What is a Web service? WebService is the meaning of Web services, the corresponding application layer protocol is soap (equivalent to the HTTP protocol), can be understood as remote call technology. 2. FeaturesThe format of the request principal content (Request message) sent by the client is in XML formatThe format of the response body content (response message) returned by the interface is in XML format3. Is Web service relative to HTTP (post/get) good?
- Interface implementation of the methods and requirements of the parameters at a glance
- Don't worry about capitalization.
- Don't worry about Chinese urlencode problem
- The code does not have to declare the authentication (account, password) parameters
- Pass parameters can be arrays, objects, etc...
4. Is the Web service relative to HTTP (post/get) fast? The speed may be reduced due to XML parsing. 5. Introduction of WSDLis the WebService interface corresponding to the WSDL file, the file is described in XML format how to call, can be regarded as WebService interface document (instruction manual). For example:http://www.webxml.com.cn/WebServices/WeatherWebService.asmx?wsdl second, using SOAPUI for WebService interface test Soapui is an open source test tool that examines, invokes, and implements the functionality/load/Compliance testing of Web service through Soap/http. Because less is used in actual test work, this article simply writes out the usage. 1. New SOAP Project 2, import the WSDL (directly fill in the WSDL address above), the name will be entered automatically. 3 . Open any request message, change the parameters at the place of greeting, click the green small arrow to send the request.
SOAPUI and WebService Interface test