Presentasi sedang didownload. Silahkan tunggu

Presentasi sedang didownload. Silahkan tunggu

Web Services. Definisi Menurut W3C [6] Web service adalah suatu sistem perangkat lunak yang didisain untuk mendukung interaksi mesin ke mesin pada suatu.

Presentasi serupa


Presentasi berjudul: "Web Services. Definisi Menurut W3C [6] Web service adalah suatu sistem perangkat lunak yang didisain untuk mendukung interaksi mesin ke mesin pada suatu."— Transcript presentasi:

1 Web Services

2 Definisi Menurut W3C [6] Web service adalah suatu sistem perangkat lunak yang didisain untuk mendukung interaksi mesin ke mesin pada suatu jaringan. menurut Michael C. Daconta, Web Service adalah aplikasi perangkat lunak yang dapat ditemukan, diuraikan, dan diakses berdasarkan pada XML dan protokol standard Web pada intranet, extranet, dan Internet.

3

4

5

6

7 PO Service Credit Service Purchase Order Credit Check Reserve Inventory Credit Response Inventory Response Invoice Consolidate Results Example: Web based purchase What Is Web Services Web services are self contained, self describing, modular applications that can be published, located, and invoked across the web. Web services perform functions, which can be anything from simple requests to complicated business processes" According to IBM Figure Taken from Oracle ---- According to IBM Figure Taken from Oracle Session id: 40024

8 Service Description Service Description Service Description Publish Directory Service Search / Use Service Integration Virtual Travel Agency B2B Features Of Web Services Migration Of Existing web Application Standards are the Base Communicate using messages Robust, Effective, Flexible Security Services Description Web Service Discovery Figure Taken from Intelligent agent course 2003/2004 by Dr. Omar Belakhdar

9 Why to use more than one computer? Distributed resourcesDistributed resources –access to shared data –access to shared programs –access to CPU (e.g. many desktop PCs together), to memory, to special devices (e.g. printer) Complete independence on the internal implementationComplete independence on the internal implementation

10 Distributed architecture givesgives –access to distributed resources –development encapsulation maintainability, re-usability, legacy-awarenessmaintainability, re-usability, legacy-awareness –implementation independence requiresrequires –adding a communication layer between parts –synchronization of efforts including such nasty things as distributed garbage collectionincluding such nasty things as distributed garbage collection

11 Sending requests, getting results Waiting for requests (known location, known port) Waiting for requests (known location, known port) Communication protocol, Data format Distributed architecture Basic questions are:Basic questions are: –What kind of protocol to use, and what data to transmit –What to do with requests on the server side

12 Sending requests, getting results Waiting for requests (known location, known port) Waiting for requests (known location, known port) Data as name/value pairs Traditional CGI-based approach cgi-bin scripts:cgi-bin scripts: –Data transmitted as name-value pairs (HTML forms) –Transport over (state-less) HTTP protocol –no standards for keeping user sessions (state-fullness) –server side: a script is called

13 Sending requests, getting results Waiting for requests (known location, known port) Waiting for requests (known location, known port) Data in binary format CORBA-based approach CORBA:CORBA: –Data transmitted as objects (at least it looks like that) –Transport (usually) over well standardised IIOP protocol – user sessions (state-fullness) very inter-operable –server side: an RPC call is made

14 Sending requests, getting results Waiting for requests (known location, known port) Waiting for requests (known location, known port) Data in XML format SOAP-based communication SOAP:SOAP: –Data in a well-defined XML format –Transport over various protocols HTTP, SMTP are the most used, perhaps because they are firewall-friendlyHTTP, SMTP are the most used, perhaps because they are firewall-friendly –server side: either an RPC call or a message delivered

15 Web services A collection of XML-based technologies developed by the e-business community to address issues of:A collection of XML-based technologies developed by the e-business community to address issues of: –service discovery –interoperable data exchange and/or application invocation –service compositions (workflow, business processes) Major developers include:Major developers include: –Apache, IBM, HP, SUN & Microsoft (.NET)

16 W3C (working group) definition "A Web service is a software application identified by a URI, whose interfaces and bindings are capable of being defined, described and discovered as XML artefacts. A Web service supports direct interactions with other software agents using XML based messages exchanged via internet-based protocols.""A Web service is a software application identified by a URI, whose interfaces and bindings are capable of being defined, described and discovered as XML artefacts. A Web service supports direct interactions with other software agents using XML based messages exchanged via internet-based protocols."

17 Characteristics of Web services Providing services to other computer programs (not to Web browsers) Interoperability between software applications running on different computers Loosely coupled Machine-processable Use of standards: XML, HTTP, SOAP, WSDL

18 Basic idea of Web services Exchange of messages – –Messages are encoded using XML  SOAP – Using standard protocols to transport messages – –HTTP, SMTP,... Message can be sent: – One-way: Call the service, but don’t expect an answer ! asynchronous messaging – Request / response: Call the service and wait for the response ¤ most common style ¤ synchronous messagging

19 SOAP (Simple Object Access Protocol)SOAP (Simple Object Access Protocol) Extensible Markup Language (XML)Extensible Markup Language (XML) Hypertext Transport Protocol (HTTP)Hypertext Transport Protocol (HTTP) Web Services Description Language (WSDL)Web Services Description Language (WSDL) Universal Discovery Description Integration (UDDI)Universal Discovery Description Integration (UDDI)

20 . Langkah 1, aplikasi klien menemukan informasi tentang Web Service A dalam suatu UDDI registry. Langkah 2, aplikasi klien mendapatkan WSDL untuk Web Service A dari UDDI registry untuk menentukan API milik Web Service A. Akhirnya, pada langkah 3 dan 4, aplikasi klien berkomunikasi dengan Web Service melalui SOAP, menggunakan API yang ditemukan dalam langkah 2.

21 UDDI provides a mechanism for clients to find web services.UDDI provides a mechanism for clients to find web services. WSDL defines services as collections of network endpoints or ports. A port is defined by associating a network address with a binding; a collection of ports define a service.WSDL defines services as collections of network endpoints or ports. A port is defined by associating a network address with a binding; a collection of ports define a service. SOAP is a message layout specification that defines a uniform way of passing XML-encoded data. It also defines a way to bind to HTTP as the underlying communication protocol. SOAP is basically a technology to allow for “RPC over the web”.SOAP is a message layout specification that defines a uniform way of passing XML-encoded data. It also defines a way to bind to HTTP as the underlying communication protocol. SOAP is basically a technology to allow for “RPC over the web”. State of the Art

22 URI HTMLHTTP UDDI WSDLSOAP State of the Art

23 Web Services Stack

24 SOAP (Simple Object Access Protocol)SOAP (Simple Object Access Protocol) Extensible Markup Language (XML)Extensible Markup Language (XML) Hypertext Transport Protocol (HTTP)Hypertext Transport Protocol (HTTP) Web Services Description Language (WSDL)Web Services Description Language (WSDL) Universal Discovery Description Integration (UDDI)Universal Discovery Description Integration (UDDI)

25 SOAP adalah spesifikasi yang mendefinisikan tata tata bahasa XML untuk mengirim (request) dan menanggapi (respond) pesan yang diterima dari pihak lain.SOAP adalah spesifikasi yang mendefinisikan tata tata bahasa XML untuk mengirim (request) dan menanggapi (respond) pesan yang diterima dari pihak lain. Standar SOAP memiliki dua bagian :Standar SOAP memiliki dua bagian : – Header yang membawa proses instruksi –Body yang berisi payload (berisi informasi yang dikirim) Pesan SOAP ada 3 tipe :Pesan SOAP ada 3 tipe : –Dokumen (XML) –RPC (Remote Procedure Calls)

26 XML Messaging Using SOAP

27 WSDL adalah sebuah spesifikasi yang berbasis XML yang digunakan untuk mendeskripsikan apa yang akan dilakukan oleh Web Service dan bagaimana untuk mengoperasikannyaWSDL adalah sebuah spesifikasi yang berbasis XML yang digunakan untuk mendeskripsikan apa yang akan dilakukan oleh Web Service dan bagaimana untuk mengoperasikannya WSDL memiliki bagian-bagian yang berisi detail bagaimana membuat koneksi ke service disimpanWSDL memiliki bagian-bagian yang berisi detail bagaimana membuat koneksi ke service disimpan

28 WSDL Web Services Definition LanguageWeb Services Definition Language –http://www.w3.org/TR/wsdl/ An XML-based language for describing Web ServicesAn XML-based language for describing Web Services –what the service does (description) –how to use it (method signatures) –where to find the service It does not depend on the underlying protocolIt does not depend on the underlying protocol But: It is not much human-readableBut: It is not much human-readable

29 UDDI adalah sebuah spesifikasi XML yang menggambarkan bagaimana calon pelanggan dari layanan Web bisa belajar tentang kemampuannya dan memperoleh informasi dasar yang dibutuhkan untuk membuat kontak awal dengan situsUDDI adalah sebuah spesifikasi XML yang menggambarkan bagaimana calon pelanggan dari layanan Web bisa belajar tentang kemampuannya dan memperoleh informasi dasar yang dibutuhkan untuk membuat kontak awal dengan situs Registry UDDI bisa public, private, atau semiprivateRegistry UDDI bisa public, private, atau semiprivate

30 UDDI (and alternatives) Universal Description, Discovery and IntegrationUniversal Description, Discovery and Integration –http://www.uddi.org UDDI creates a platform-independent, open framework & registry for:UDDI creates a platform-independent, open framework & registry for: –Describing services –Discovering businesses –Integrating business services The UDDI may be less used than predicted, especially on the Internet levelThe UDDI may be less used than predicted, especially on the Internet level BioMoby - an alternative for Life Sciences domain?BioMoby - an alternative for Life Sciences domain?

31 Mengintegrasikan sistem-sistem legacyMengintegrasikan sistem-sistem legacy Menurunkan biaya operasionalMenurunkan biaya operasional Menurunkan biaya pengembangan softwareMenurunkan biaya pengembangan software pengembangan sistem dilakukan lebih cepatpengembangan sistem dilakukan lebih cepat Antarmuka yang lebih baik untuk pelangganAntarmuka yang lebih baik untuk pelanggan Integrasi yang lebih baik dengan partner bisnisIntegrasi yang lebih baik dengan partner bisnis Peluang pendapatan baruPeluang pendapatan baru Merupakan model bisnis baruMerupakan model bisnis baru

32 Kesulitan tersembunyi dari Layanan Web :Kesulitan tersembunyi dari Layanan Web : –Masalah ketersediaan –Matching Requirements –Immutable Interfaces –Guaranteed Execution Memiliki masalah pada performance nyaMemiliki masalah pada performance nya Standarisasi Web service belum lengkap atau belum finalStandarisasi Web service belum lengkap atau belum final


Download ppt "Web Services. Definisi Menurut W3C [6] Web service adalah suatu sistem perangkat lunak yang didisain untuk mendukung interaksi mesin ke mesin pada suatu."

Presentasi serupa


Iklan oleh Google