1.1
What is WebService
Web Serviceis aPlatformIndependent, low-coupling, self-contained,Programmingof theWebapplication, you can use an openXML(Standard Universal Markup Languagea subset of the following)Standardcome toDescription, Publish, Discover, orchestrate, and configure these applications for the development of distributed, interoperable Application. [1]
Web Service technology enables different applications running on different machines to exchange data or integrate with each other without the use of additional, specialized third-party software or hardware. applications that are implemented according to the Web Service specification can exchange data with each other, regardless of the language, platform, or internal protocol they are using. Web Serviceis a self-describing, self-contained, available network module that can perform specific business functions. Web ServiceAre also easy to deploy because they are based on a number of conventional industry standards and some of the existing technologies, such asStandard Universal Markup Languagethe subset underXML,HTTP. Web Servicereduces the cost of the application interface. Web Serviceprovides a common mechanism for integration of business processes across the enterprise and even across multiple organizations. A WSDL corresponding to each webservice.
WebService the characteristics
- WebService accepts customer requests via HTTP POST
- WebService and clients typically use the SOAP protocol to transfer XML data
It is designed for cross-platform or cross-language
1.2
Call the WebService service on the network
http://webxml.com.cn/
1.3
Soap and WSDL concepts
SOAP (Simple Object access Protocol)
HTTP protocol
post/getinfo.action http/1.1host www.javaweb.comcontentType text/html;charset=utf8id=001 &name=fyk&age=22 ...
SOAP protocol
post/getinfo.action http/1.1host www.javaweb.com contentType Text/xml;charset=utf8<!--The label structure is fixed dead and cannot be changed -<Envelop> <Body> <!--the label is not fixed after body - <GetInfo> <ID>001</ID> <name>Fyk</name> </GetInfo> </Body></Envelop>
- SOAP is used as an XML-based protocol for transmitting data over the Internet.
- SOAP = +xml data on the basis of HTTP .
- SOAP is HTTP-based .
- the composition of SOAP is as follows:
- envelope– must be part of. appears as the root element of the XML.
- headers– is optional.
- body– is necessary. In the Body section, the method that contains the server to be executed. And the data sent to the server.
WebService Study record (i)