Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Objectives: answers to questions - you’ve build web sites that can be used by other people, Can you build web sites that are usable by machines? | RESTful Web Service A complex system that works is invariably found to have evolved from a simple system that worked Editor: Nguyễn Xuân Vinh Problem You’ve build web sites that can be used by other people Can you build web sites that are usable by machines? Web must be Web Service A complex system that works is invariably found to have evolved from a simple system that worked —John Gall Systemantics HTTP HTTP Header HTTP transmission HTTP request GET http://www.tiggerwigger.com/ HTTP/1.0 Proxy-Connection: Keep-Alive User-Agent: Mozilla/5.0 [en] (X11; I; Linux 2.2.3 i686) Host: www.tiggerwigger.com Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */ * Accept-Encoding: gzip Accept-Language: en Accept-Charset: iso-8859-1, *, utf-8 HTTP response HTTP/1.1 200 OK Date: Mon, 23 May 2005 22:38:34 GMT Server: Apache/1.3.3.7 (Unix) (Red-Hat/Linux) Last-Modified: Wed, 08 Jan 2003 23:11:55 GMT Etag: "3f80f-1b6-3e1cb03b" Content-Type: text/html; charset=UTF-8 Content-Length: 131 Connection: close An Example Page Hello World, this is a very simple HTML document. RPC Style POST /rpc HTTP/1.1 Host: www.upcdatabase.com User-Agent: XMLRPC::Client (Ruby 1.8.4) Content-Type: text/xml; charset=utf-8 Content-Length: 158 Connection: keep-alive lookupUPC . REST-RPC Hybrid Architectures http://www.flickr.com/services/rest?api_key=xxx&method=flickr.photos.search&tags=penguin Technologies on the Programmable Web HTTP URI XML-RPC SOAP WS-* WSDL WADL:Web Application: describe RESTful WS JAX-WS JAX-RS WS-* stack WS-Notification WS-Security WSDL SOAP Representational State Transfer (REST) Style of software architecture for distributed systems. Has emerged as a predominant web API design model Developed by W3C Technical Architecture Group (TAG) in parallel with HTTP/1.1, based on the existing design of HTTP/1.0 Why REST? Simple . | RESTful Web Service A complex system that works is invariably found to have evolved from a simple system that worked Editor: Nguyễn Xuân Vinh Problem You’ve build web sites that can be used by other people Can you build web sites that are usable by machines? Web must be Web Service A complex system that works is invariably found to have evolved from a simple system that worked —John Gall Systemantics HTTP HTTP Header HTTP transmission HTTP request GET http://www.tiggerwigger.com/ HTTP/1.0 Proxy-Connection: Keep-Alive User-Agent: Mozilla/5.0 [en] (X11; I; Linux 2.2.3 i686) Host: www.tiggerwigger.com Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */ * Accept-Encoding: gzip Accept-Language: en Accept-Charset: iso-8859-1, *, utf-8 HTTP response HTTP/1.1 200 OK Date: Mon, 23 May 2005 22:38:34 GMT Server: Apache/1.3.3.7 (Unix) (Red-Hat/Linux) Last-Modified: Wed, 08 Jan 2003 23:11:55 GMT Etag: "3f80f-1b6-3e1cb03b" Content-Type: text/html; charset=UTF-8 .