Web Service is a network-based, distributed modular component that executes specific tasks and complies with specific technical specifications. These specifications Enable Web service to interoperate with other compatible components. Web services mainly uses HTTP and soap protocols to transmit commercial data on the Web. Soap calls commercial objects through http to execute remote function calls, web users can use soap and HTTP to call remote objects through web calling methods.
Web Services System
The Web Services system mainly includes the following aspects:
Unified Service of various programming languages through standard Internet
① Web services components.Includes three components:
Service provider: provides services and registers them for service availability;
Service Proxy: the media between the service provider and the service requestor;
Service Requestor: requests services from the Service proxy and calls these services to create applications.
② Web services operations.There are three types of operations:
Publish/unpublished (publish/unpublish): The provider publishes (registers) services to the agent or does not publish (migrate)
Go to) register these services;
Find: the service requestor performs the find operation on the Service proxy. The service requestor describes
Service and Service proxy distribute matching results;
BIND: bind between the service requestor and the service provider.
You can access and call the provider's services.
③ UDDI-General discovery, description, and integration.
This is an Information Registration specification for Web Services. The Discovery Method of UDDI-based Web Services registration can be found: There is a distributed Registration Service on the web, business and services are described in a common XML format. Structured Data in XML is easy to discover, analyze, and operate.
④ WSDL-Web Service Description Language.
Web Service Description Language (WSDL) is an XML syntax that provides service providers with methods to describe the basic formats of web services requests built on different protocols or encoding methods. WSDL is used to describe what a web service can do, where it is located, and how to call it. Assume that soap/HTTP/mime is used as a remote object call mechanism, WSDL will play the largest role. UDDI registration describes the vast majority of Web Services, including service binding details. WSDL can be viewed as UDDI.
A subset of the service description.
Relationship between WebService and SOA
WebService is a specific implementation of SOA.
SOA is an idea
Just like the relationship between object-oriented and J2EE
WebService Communication
Web services are actually implementing communication between applications. Now we have two methods for Application Communication: RPC remote process call and message transmission.
Simple Object Access Protocol (SOAP) provides standard RPC methods to call Web Services. XML is the data encoding method of soap.
Missing information about message transmission