tailieunhanh - Bài giảng Lập trình mạng: RESTful Web Service - GV. Nguyễn Xuân Vinh
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/ Proxy-Connection: Keep-Alive User-Agent: Mozilla/ [en] (X11; I; Linux i686) Host: 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/ 200 OK Date: Mon, 23 May 2005 22:38:34 GMT Server: Apache/ (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/ Host: User-Agent: XMLRPC::Client (Ruby ) Content-Type: text/xml; charset=utf-8 Content-Length: 158 Connection: keep-alive lookupUPC . REST-RPC Hybrid Architectures 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/, based on the existing design of HTTP/ 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/ Proxy-Connection: Keep-Alive User-Agent: Mozilla/ [en] (X11; I; Linux i686) Host: 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/ 200 OK Date: Mon, 23 May 2005 22:38:34 GMT Server: Apache/ (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 .
đang nạp các trang xem trước