Continue with the previous summary
Starting with Web Service Basics
Let's take a look.
Web service concept
WebServer is an application that provides an API that can be called through the Web. Access web applications through programming
Web services are mainly used for online transactions and bank transfers.
Necessity of Web Services
Communication between Distributed Systems
Data Exchange in E-commerce
Classification is reflected in
Application Services and system services
But they must be registered before they can be used.
Access Diagram
The following describes how to access the Web service.
First
1 UDDI (integrated unified search description)
List retrieved by the UDDI service
2. send a request to the Web service to obtain the service request description.
Here, UDDI describes the directory of the web service. You can locate the center of the service.
The WSDL (Description Language) is used to describe Web Services and describe interfaces or algorithms.
Describe the services available
Methods that can be called by the outside world
Web service networking:
Soap is the main protocol for XML Web Service communication.
How to Use Web Services
First, let's take a look at the web usage diagram.
First, modify the webserver
(Webmethod) before external access
XML is the interface used to describe the service interface.
(Note that the returned value is also an XML document)
Call Web Services
Three methods are provided.
Post
Get http://blog.csdn.net/han_yankun2009/article/details/9155135
Soap
The first two methods have been described in detail in the previous article,
Here we will mainly explain how to call soap.
Soap is a lightweight protocol for distributed computers to exchange information.
It facilitates access to objects and servers in a platform-independent manner.
Using XML, you can call methods with specific values
Web Service Proxy
You can call a proxy remotely.
The proxy is called to add web references. Search for services in the Web and add them.
Finally, create a proxy object on the page and call the object method.
Summary above
The server on which the web service runs on integer,
Provides a set of interfaces,
Webmethod
Eliminates regional differences,
XML eliminates the differences in data formats