2004-11-2 Tuesday
XML, WebService and WSAD implementation
1. Motivation Answer: 1) Today, the main use of the World Wide Web is interactive access document and application; 2) Most of the time, these access is through the browser, audio player, or other interactive front-backend system; 3) W3C: "If the web supports the interaction between applications, the Web can get an eye-catching growth in the capacity and application.
2. Technical basics: Web services = XML http. XML: Universal data description language; HTTP: Widely supported by browser and Web Servers; 3. What is web service? A: 1) Web Service Recently, IT is an excessive term; 2) Web service is self-included, self-description, modular program, which can be published, positioned, and via web calls; 3) An example of a web service is to provide stock prices or handle credit cards transaction. Once a Web Service is stored, other applications can discover and call this service. 4) What industry can use Web Service?
4. Web Service Idea A: Web Service Based on this concept: When building an application, you can implement a certain feature by discovery and calling the current application on the network;
5. Self-included Answer: 1) On the client, no additional software; 2) Only the XML and HTTP protocol client support can begin; 3) On the server side, only one web server and servlet engine; 4) Web service makes an existing system to re-use without writing a line of code is feasible; 6. Self-description: 1) Whether it is the client or the server, it is not necessary to pay attention to anything else, and respond to anything; 2) Format definitions via messaging; 3) There is no additional soy-free storage or code generation tool; 7. Web services is a modular answer: 1) The Web Services standard framework provides a component model; 2) Web Services is a kind Technologies, for deploying and providing business features on Web; 3) J2EE, CORBA, and other standards are technologies to implement these Web Services; 8. Publish, Position, and Through Web Call: Some additional standards required:. SOAP: Simple Object Access Protocol, you can also understand the XML of Service-Oriented Architecture Protocol, RPC and Communication Protocol. WSDL: Web Service Description Language, a descriptive interface and protocol binding language. UDDI: Universal Description, Discovery, And Integration, a registration mechanism for finding Web Service Description.
9. Language-independent and interoperability Answer: 1) The client and server can be implemented in different environments; The implementation language of the client and server side; 10. Open-based standard answer: 1) XML and HTTP are the technical foundation of Web Services; 2) Very large part of Web Service technology uses open source projects; 3) Therefore, suppliers are independent of each other Operation is the real goal at this time.
11. Web Services is a dynamic answer: Dynamic e-commerce has become very realistic by using Web Services. Because UDDI and WSDL, Web Service Description and Discovery can be automatically performed. 12. Web Services is a combination: Simple Web Services can be combined into more complex Web Services, whether using workflow technology or calling more underlying Web Services.
13. Based on maturity techniques: 1) XML HTML 2) Compared to other distributed computing frameworks, there are many basic differences. For example, the transfer protocol is based on text instead of binary.
14. So the new opportunity came: 1) At this moment, Web Service has received a lot of attention, producing many job opportunities; 2) You should understand and quickly grasp these technologies.
15. Web Service Racist Answer: 1) Service Provider Creates Web Service and publish its interface and access information to the service registration office; 2) Service Broker (also known as service registry) is responsible for making the web service interface and implementation access information Potential Service Requestor is available; 3) Service Requestor In order to use Web Service, use a variety of lookups to define portions and bind to Service Provider in the Broker registry.
16. Web Services Architecture System Answer: 1) Web Services Deploys to the Web by Service Provider; 2) Web Service provides the function of WSDL; 3) Service Broker Helps Service Provider and Service Requestor to find each other; 4) Service Requestor Use the UDDI API to find the services it needs from Service Broker; 5) When Service Broker returns the result of the lookup, Service Requestor can bind to a specific service;
6) Web Service Description by Service Provider; 7) Web Service By Service Broker Organization and Find; 8) Web Service is positioned and called by Service Requester;
17. Web Services Components A: The three main components used in Web Service: 1) Service Provider: Provides services and allowing them to be available; 2) Service Broker: Pairing for Service Provider and Service Requestor; 3) Service Requester: Use Service Broker to find Web Service and call these services to create an application;
18. Service Provider Sub Role A: 1) The WSDL specification consists of two parts: service interface and service implementation; 2) The service interface provider and service implementator is a Sub-role of Service Provider; 3) Two roles, but not necessary Be borne by the same transaction;
19. Web Service Action Answer: 1) Publish / Defense Publishing. Publish Service to Register; Remove these Registration Terms Service Provider Contact Service Broker Publish / Cancel Service 2) Find operations Completed by Service Requestor and Service Broker: Service Requestor describes the type of service they look for; Service Broker submits the most matching request results. 3) Binding occurs rooms between Service Requestor and Service Provider, they will protocol so that Requestor can access and call Service Provider. 20. WSDL - Web Services Description Language: 1) WSDL is a language-based interface definition language that provides a classification and description of Web Service; 2) WSDL defines:. Web service interface, including : A. Operation mode (single-way, notification, request - response); b. Define the message of the web service; c. Data type (XML Schema); Web Service Access Protocol (SOAP over http);. Web Service Contact The end point (Web Service URL); if the required server application must support these interfaces, client users can know how to access a service from this document.
21. UDDI - Unified Find, Description, Description and Solutions: 1) UDDI provides a way to find a web service; 2) UDDI provides a global, platform-independent, open frame, making business applications:. Find each other; define their way to interact through the web;. Share information in a global registration site; The content registered in any registry is replicated by other registry; 5) The information provided in the UDDI Business Registration Office consists of three parts: "White Paper": Includes address, contact, and identifier; "Huang Pei": including standard classification The industry classification;. "Green Paper": Service Information of Service; 6) Web Service Provider and Requester Use SOAP API and UDDI Registry; 22. Soap - Simple Object Access (Simple Object Access Protocol Answer: 1) SOAP is a network neutral, lightweight protocol, information for switching two remote applications; 2) SOAP is an XML-based protocol, consisting of three parts: one definition Envelope, this framework describes the content of the information and how to deal with it. A series of coding rules for expressing the data type instance defined by the system; one agreement, is used to express remote processing calls and responses