Presentation is loading. Please wait.

Presentation is loading. Please wait.

Web Services.

Similar presentations


Presentation on theme: "Web Services."— Presentation transcript:

1 Web Services

2 Giới thiệu 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 thông qua Web bởi một ứng dụng khác.

3 Đặ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 .

4 Kiến trúc Webservices Network Web Service

5 Các giao thức truyền WS đượ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.

6 Web Service Wires Format : SOAP
Là 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)

7 Mô hình ứng dụng Web service

8

9 Web Services Solutions
Two of the most popular Web Services Solutions: SUNTM OPEN NET ENVIRONMENT (SUN ONE)

10 Important Components Service Provider Publish Bind Service Registry
Broker Service Requestor Find

11 Life Cycle 6. Unpublish the Web service when not needed
5. Invoke the Web service 4. Search for the Web service 3. Publish the Web service on the Internet or intranet 2. Define service interface and invocation methods for the Web service 1. Create a Web service

12 Working of a Web Service
Service Description Get Type info (XML Schema) Parameters Soap Protocol XML over HTTP Return Value Client Application Web Server (With Web Service)

13 Application Model Web Services WinForm Users Web Services Web Browser
WebForm Internet Java Databases Web Service Consumer

14 Call Web Method through Proxy
Communication WSDL download Web Service Consumer Web Service Proxy SOAP Message Call Web Method through Proxy

15 Create a Simple Web Service
Web Browser Web Service Consumer Web Service Hello(name)

16 Create a web service

17

18

19 Test web service

20

21 Web Service consumers

22 Add Web Reference

23

24

25

26 Run web consumer

27 Sử dụng WS sẵn có


Download ppt "Web Services."

Similar presentations


Ads by Google