Quản trị web - Web services

Webservices là gì ?

Web Services (tạm dịch là dịch vụ web) là tập hợp các phương thức của một đối tượng mà các Client có thể gọi thực hiện.

Là một abstract interface, được thể hiện trong HTML dựa trên sự tương tác của User & Web Server.

 Là một software application được truy xuất

ppt27 trang | Chia sẻ: Mr Hưng | Lượt xem: 974 | Lượt tải: 0download
Bạn đang xem trước 20 trang nội dung tài liệu Quản trị web - Web services, để xem tài liệu hoàn chỉnh bạn click vào nút DOWNLOAD ở trên
Web ServicesGiới thiệuWebservices là gì ?Web Services (tạm dịch là dịch vụ web) là tập hợp các phương thức của một đối tượng mà các Client có thể gọi thực hiện. Là một abstract interface, được thể hiện trong HTML dựa trên sự tương tác của User & Web Server. Là một software application được truy xuất thông qua Web bởi một ứng dụng khác.Đặc điểm Web Services được truy xuất thông qua Web bằng cách dùng URL Web Services liên lạc với thế giới bên ngoài dùng thông điệp XML gửi trực tiếp qua Web protocols Web Services được đăng kí tại nơi chung, và được đặc tả tất cả các chức năng .Kiến trúc WebservicesNetworkWeb ServiceCác giao thức truyềnWS được xây dựng dựa trên SOAP (Simple Object Access Protocal). SOAP có thể được gọi thực hiện và trả về kết quả Text (theo định dạng XML) và có khả năng hoặt động "xuyên qua" tường lửa.WS có thể phối hợp hoạt động giữa các ứng dụng rất tốt. VD: Các nhà hàng, khách sạn cung cấp các WS cho phép đặt phòng, đặt tiệc. Đường sắt Việt Nam cung cấp các WS cho phép đặt vé tàu. Việt Nam Airline cung cấp các WScho phép đặt vé cho các chuyến bay. Web Service Wires Format : SOAPLà giao thức được Web Service sử dụng để truyền dữ liệu qua Internet SOAP = XML + một giao thức có thể hoạt động trên Internet (HTTP, FTP, SMTP)Mô hình ứng dụng Web serviceTwo of the most popular Web Services Solutions:SUNTM OPEN NET ENVIRONMENT (SUN ONE)Service BrokerServiceRequestorServiceProviderService Registry1. Create a Web service2. Define service interface and invocation methods for the Web service3. Publish the Web service on the Internet or intranet 5. Invoke the Web service6. Unpublish the Web service when not needed4. Search for the Web serviceLife CycleWorking of a Web ServiceSoap ProtocolXML over HTTPParametersReturn ValueGet Type info(XML Schema)Service DescriptionWeb Server (With Web Service)Client ApplicationInternetApplication ModelWeb ServicesWeb ServicesDatabasesWinFormWebFormJavaWeb ServiceConsumerWeb BrowserUsersCommunicationWeb Service ConsumerWeb ServiceProxyWSDLdownloadSOAP MessageCall Web Method through ProxyCreate a Simple Web ServiceWeb ServiceHello(name)Web ServiceConsumerWeb BrowserCreate a web serviceTest web serviceWeb Service consumersAdd Web ReferenceRun web consumerSử dụng WS sẵn có

Các file đính kèm theo tài liệu này:

  • pptweb_services_2872.ppt
Tài liệu liên quan