34
Web Services and Semantic Web - Introduction to Web Services von Andreas Weiler

Web Services and Semantic Web - Introduction to Web Services

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Web Services and Semantic Web - Introduction to Web Services

Web Services and Semantic Web- Introduction to Web Services

von Andreas Weiler

Page 2: Web Services and Semantic Web - Introduction to Web Services

Introduction to Web Services

Definitionen Beispiele

Technologien

Vorteile Kritik Abschlussbeurteilung

Fragen?

Page 3: Web Services and Semantic Web - Introduction to Web Services

Introduction to Web Services

Definition von IBM:

„Web services are a new breed of Web application. Theyare self-contained, self-describing, modular applicationsthat can be published, located, and invoked across theWeb. Web services perform functions, which can beanything from simple requests to complicated businessprocesses.

Neue Art von Web Anwendungen Unabhaengig und Selbstbeschreibend Verbreitung, Bereitstellung, Abruf uebers Internet Simple Anfragen aber auch komplizierte Prozesse

Page 4: Web Services and Semantic Web - Introduction to Web Services

Introduction to Web Services

Definition aus W3C:

„A Web service is a software system designedto support interoperable machine-to-machineinteraction over a network. It has an interfacedescribed in a machine-processable format(specifically WSDL). Other systems interactwith the Web service in a manner prescribedby its description using SOAP-messages,typically conveyed using HTTP with an XMLserialization in conjunction with other Web-related standards.“

Page 5: Web Services and Semantic Web - Introduction to Web Services

Introduction to Web Services

Definition aus W3C:

Software System zum Aufruf von Diensten ueberdas Internet

Web Service wird durch einen URI identifiziert(Standard um Objekte eindeutig zu identifizieren)

Schnittstelle des Web Service ist maschinenlesbarund wird durch WSDL beschrieben

Kommunikation des Web Service mit anderenSoftwarekomponenten durch XML Nachrichten

Nachrichtenaustausch insbesondere ueberInternetprotokolle (z.B. HTTP, SMTP)

Page 6: Web Services and Semantic Web - Introduction to Web Services

Introduction to Web Services

Beispiel: eBay Shopping Web Service

Suche nach Ipod ueber Web Service Schnittstelle1. Benutzer sucht nach "ipod" in der Anwendung.2. Die Anwendung benutzt eine Suchanfrage fuer "ipod" an den eBay WebService.3. Die eBay Datenbank sucht nach "ipod".4. Die eBay Datenbank sendet eine Antwort an die Anwendung zurueck.5. Die Anwendung stellt die Suchergebnisse dem Benutzer dar.

Page 7: Web Services and Semantic Web - Introduction to Web Services

Introduction to Web Services

Beispiel: Amazon Music Web Service

Page 8: Web Services and Semantic Web - Introduction to Web Services

Introduction to Web Services

Suchmaske:

Suchbegriffeingabe:

Page 9: Web Services and Semantic Web - Introduction to Web Services

Introduction to Web Services

Ergebnis:

Page 10: Web Services and Semantic Web - Introduction to Web Services

Introduction to Web Services

Beispiel: Bezahlservices

Page 11: Web Services and Semantic Web - Introduction to Web Services

Introduction to Web Services

Aufbau eines Web Service

Page 12: Web Services and Semantic Web - Introduction to Web Services

Introduction to Web Services

Aufbau eines Web Service Servicekonsument (Benutzer):

Findet/bindet Web Service ueberServicebroker

Nutzt angebotenen Dienst Datenaustausch direkt mit Serviceanbieter Integriert Service in seine Anwendung

Servicebroker (Verzeichnisdienst): Speichert Web Services mit Beschreibungen Verwaltet Web Services Ermoeglicht automatisches Auffinden von

Diensten

Page 13: Web Services and Semantic Web - Introduction to Web Services

Introduction to Web Services

Aufbau eines Web Service Serviceanbieter (eBay, Amazon…):

Bietet Web Service ueber das Internet an Publikation des Web Service bei

Servicebroker Datenaustausch direkt mit Servicekonsument Uebernimmt Implementierung, Wartung und

Betrieb

Page 14: Web Services and Semantic Web - Introduction to Web Services

Introduction to Web Services

Beispiel: Web Service mit Servicebroker

Page 15: Web Services and Semantic Web - Introduction to Web Services

Introduction to Web Services

Beispiel: Amazon Web Service mitBroker

Page 16: Web Services and Semantic Web - Introduction to Web Services

Introduction to Web Services

Technologien: Web Service Stack:

Standards festgelegt durch weltgroessteSoftwarehersteller (Microsoft, IBM…)

Page 17: Web Services and Semantic Web - Introduction to Web Services

Introduction to Web Services

Technologien: SOAP: Simple Object Access Protocol

Protokoll zum Datentransfer Definition von Struktur und

Verarbeitungsvorschrift einer Nachricht Basiert auf XML, plattform- und

programmiersprachenunabhaengig Sehr flexibel einsetzbar:

Versendung beliebiger Anwendungsdaten Verwendbar mit vielen unterschiedlichen

Netzwerkprotokollen (http, smtp, …) Unterstuetzung unterschiedlicher

Interaktionsmuster (Request/Response,einzelne Nachrichten, beliebiges Muster)

Page 18: Web Services and Semantic Web - Introduction to Web Services

Introduction to Web Services

Technologien: SOAP: Simple Object Access Protocol

SOAP-Nachrichten sindvergleichbar mit einem Brief Umschlag (<Envelope>)

als Behaelter Briefkopf (<Header>)

mit beliebigenMetainformationen

Brief (<Body>) mitbeliebigen XML Daten

Page 19: Web Services and Semantic Web - Introduction to Web Services

Introduction to Web Services

Technologien: SOAP: Simple Object Access Protocol

XML Nachricht mit Wurzelknoten „Envelope“ Header: Kontrollinformationen (ID,…) Body: Nutzungsinformationen (Bestellung,…)

Page 20: Web Services and Semantic Web - Introduction to Web Services

Introduction to Web Services

Technologien: WSDL: Web Services Description Language

Beschreibung der Web Service Schnittstelle Ermoeglicht automatische Kommunikation zwischen

Applikationen durch Definition der Schnittstelle

Page 21: Web Services and Semantic Web - Introduction to Web Services

Introduction to Web Services

Technologien: WSDL: Web Services Description Language

Was bietet der Web Service an? Welche Nachrichten versteht er? Welche ausgehenden Nachrichten erzeugt er? Welche Operationen bietet er an? Port Type definiert Schnittstelle

Wie arbeitet der Web Service?: Welche Protokolle verwendet er? Wie werden die Nachrichten kodiert? Wird in Bindings zusammengefasst

Wo ist der Web Service erreichbar?: Name des Web Service + Internet-Adresse

Page 22: Web Services and Semantic Web - Introduction to Web Services

Introduction to Web Services

Technologien: WSDL: Web Services Description Language

Page 23: Web Services and Semantic Web - Introduction to Web Services

Introduction to Web Services

Technologien: UDDI: Universal Description, Discovery and

Integration Web Service Katalogisierung von Web Services

Registrierung an UDDI Server durch Anbieter Suche nach geeignetem Web Service in UDDI

Server durch Benutzer

Page 24: Web Services and Semantic Web - Introduction to Web Services

Introduction to Web Services

Technologien: UDDI: Universal Description, Discovery and

Integration Informationen ueber Web Services werden in

sogenannten White, Yellow und Green Pagesgehalten

White Pages: Telefonbuch mit Namen, Detailsund Kontaktinformationen

Yellow Pages: Branchenverzeichnis,klassifiziert die Web Services

Green Pages: Informationen ueberGeschaeftsmodell, Technologien des WebServices und Geschaeftsprozessen

Page 25: Web Services and Semantic Web - Introduction to Web Services

Introduction to Web Services

Technologien: UDDI: Universal Description, Discovery and

Integration UDDI Verzeichnis Services von IBM, Microsoft

und SAP wurden 2006 eingestellt Viele Eintraege waren nutzlos (falsche Eintraege,

nicht service relevant) Nachfrage nach globalem, gemeinsamem und

verwaltetem Internetkatalog

Beispiel fuer eine Web Service Registry im Web:

Seekda

Page 26: Web Services and Semantic Web - Introduction to Web Services

Introduction to Web Services

Technologien: UDDI: Microsoft UDDI Verzeichnis

Page 27: Web Services and Semantic Web - Introduction to Web Services

Introduction to Web Services

Zusammenfassung der Technologien:

Page 28: Web Services and Semantic Web - Introduction to Web Services

Introduction to Web Services

Zusammenfassung der Technologien:1. Beschreibung des Web Services mit WSDL Dokumentdurch Provider2. Veroeffentlichung des Web Services in UDDI Registry(mit Publishers API von UDDI)3. Requester sucht nach passendem Provider (mitInquiry API von UDDI)4. SOAP Anfrage nach entsprechendem WSDL Dokumentwird erstellt5. SOAP Kommunikation zwischen Requester undProvider des gefundenen Web Service

Page 29: Web Services and Semantic Web - Introduction to Web Services

Introduction to Web Services

Vorteile: Offene und flexible Architektur, durch

Verwendung von bereits bestehenden und weitverbreiteten Internetstandards (HTTP, XML, …)

Unabhaengig von Programmiersprache,Laufzeitumgebung und Betriebssystem (z.B.Kommunikation von Windows-C#-Clients mitJava-Servern die auf Linux implementiert sind)

Firewall freundlich Baut auf bestehender Internet-Infrastruktur auf Wird von fuehrenden Marktriesen unterstuetzt

(Microsoft, IBM, Sun, SAP, ...)

Page 30: Web Services and Semantic Web - Introduction to Web Services

Introduction to Web Services

Vorteile: Die benutzten Standards:

Haben sich bewaehrt (z.B. HTTP) Werden kontinuierlich weiterentwickelt (bei XML:

XPath, XQuery) Bieten viele Features (z.B. HTTPS) Sind verbreitet und schon implementiert (z.B. XML

Parser)

Page 31: Web Services and Semantic Web - Introduction to Web Services

Introduction to Web Services

Kritik: Sicherheit: Wichtige Webservices muessten

verschluesselt werden oder durch eineAuthentifizierung ueberprueft werden (z.B.HTTPS, XML-Encryption)

Firewall freundlich Performance:

Parsen von XML Dateien ist relativ langsam Erheblicher Overhead bei stark verteilten

Systemen

Spezielle APIs: Spezielle Bibliotheken fuer Web Services Schnittstelle muss genau definiert werden

Page 32: Web Services and Semantic Web - Introduction to Web Services

Introduction to Web Services

Amazon Web Service Demo I:

Tarantit.com

Amazon Web Service Demo II:

Amazon Explorer

Page 33: Web Services and Semantic Web - Introduction to Web Services

Introduction to Web Services

Abschlussbeurteilung: Einfache Bereitstellung an grosse

Anwendergruppe Hype der letzten Jahre Zukunft des Internets Amazon machte ueber 200 Mio. $ mit den

angebotenen Web Services Zukunft liegt in Google Gadgets, Yahoo

Widgets, Vista Sidebar gadgets… Alle Online Services auf dem Desktop

Page 34: Web Services and Semantic Web - Introduction to Web Services

Introduction to Web Services

Vielen Dank fuer die Aufmerksamkeit!

Fragen?