 Copyright 2005 Digital Enterprise Research Institute. All rights reserved. Christoph Bussler Semantic Interfaces.

Slides:



Advertisements
Similar presentations
Web Service Modelling Ontology (WSMO)
Advertisements

18 Copyright © 2005, Oracle. All rights reserved. Distributing Modular Applications: Introduction to Web Services.
Service Description: WSDL COMP6017 Topics on Web Services Dr Nicholas Gibbins –
1 University of Namur, Belgium PReCISE Research Center Using context to improve data semantic mediation in web services composition Michaël Mrissa (spokesman)
An Introduction to Web Services Sriram Krishnan, Ph.D.
31242/32549 Advanced Internet Programming Advanced Java Programming
Web Service Ahmed Gamal Ahmed Nile University Bioinformatics Group
1 st COCOON review – March 8 th -9 th, SIXTH FRAMEWORK PROGRAMME PRIORITY e-Health COCOON (FP ) Building knowledge driven & dynamically.
Web Services Web Services are the basic fundamental building blocks of invoking features that can be accessed by an application program. The accessibility.
1 Understanding Web Services Presented By: Woodas Lai.
Web Services Darshan R. Kapadia Gregor von Laszewski 1http://grid.rit.edu.
WEB SERVICES DAVIDE ZERBINO.
Presentation 7: Part 1: Web Services Introduced. Outline Definition Overview of Web Services Examples Next Time: SOAP & WSDL.
 Copyright 2005 Digital Enterprise Research Institute. All rights reserved. Workflow utilization in composition of complex applications based.
 Copyright 2004 Digital Enterprise Research Institute. All rights reserved. Towards Dynamic Execution Semantics in Semantic Web Services.
6/11/2015Page 1 Web Services-based Distributed System B. Ramamurthy.
XML Technologies and Applications Rajshekhar Sunderraman Department of Computer Science Georgia State University Atlanta, GA 30302
The WSMO / L / X Approach Michael Stollberg DERI – Digital Enterprise Research Institute Alternative Frameworks for Semantics in Web Services: Possibilities.
CSE 636 Data Integration Web Services.
Kmi.open.ac.uk Semantic Execution Environments Service Engineering and Execution Barry Norton and Mick Kerrigan.
Web Service Architecture Part I- Overview and Models (based on W3C Working Group Note Frank.
Processing of structured documents Spring 2003, Part 6 Helena Ahonen-Myka.
SOA, BPM, BPEL, jBPM.
THE NEXT STEP IN WEB SERVICES By Francisco Curbera,… Memtimin MAHMUT 2012.
Demonstrating WSMX: Least Cost Supply Management.
Web Services Mohamed Fahmy Dr. Sherif Aly Hussein.
1 3. Implementing Web Services 1.Create SOAP proxy interfaces and WSDL based service descriptions 2.Register/publish services 3.Stores service descriptions.
 Copyright 2005 Digital Enterprise Research Institute. All rights reserved. Towards Translating between XML and WSML based on mappings between.
T Network Application Frameworks and XML Web Services and WSDL Sasu Tarkoma Based on slides by Pekka Nikander.
WSDL Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
 Copyright 2006 Digital Enterprise Research Institute. All rights reserved. WSMX: a Semantic Service Oriented Middleware for B2B Integration.
25./ Final DIP Review, Innsbruck, Austria1 D11.22 DIP Project Presentation V5 Oct 2006 Presented at Final Review Innsbruck, Oct, 2006.
Web Services Description Language CS409 Application Services Even Semester 2007.
Semantic Web Fred: Project Objectives & SWF Framework Michael Stollberg Reinhold Herzog Peter Zugmann - 07 April
T Network Application Frameworks and XML Web Services and WSDL Sasu Tarkoma Based on slides by Pekka Nikander.
10/18/20151 Business Process Management and Semantic Technologies B. Ramamurthy.
Using WSMX to Bind Requester & Provider at Runtime when Executing Semantic Web Services Matthew Moran, Michal Zaremba, Adrian Mocan, Christoph Bussler.
The Dynamic Discovery of Web Services Using WSMX Presented by Robert Zaremba.
XML Web Services Architecture Siddharth Ruchandani CS 6362 – SW Architecture & Design Summer /11/05.
An Ontological Framework for Web Service Processes By Claus Pahl and Ronan Barrett.
1 WSDL Tutorial Heather Kreger (borrowed from Peter Brittenham) Web Services Architect IBM Emerging Technologies.
WebService. Outline Overview of Web Services SOAP (messaging) WSDL (service description) UDDI (registry)
Christoph Bussler, Laurentiu Vasiliu Digital Enterprise Research Institute (DERI) National University of Ireland, Galway, Ireland SDK meeting.
XML and Web Services (II/2546)
WSDL – Web Service Definition Language  WSDL is used to describe, locate and define Web services.  A web service is described by: message format simple.
A Mediated Approach towards Web Service Choreography Michael Stollberg, Dumitru Roman, Juan Miguel Gomez DERI – Digital Enterprise Research Institute
WSDL : Web Service Definition Language Dr. Yuhong Yan NRC-IIT-Fredericton Internet logic.
Web services. Introduction to WSDL. February 23, 2006.
 Copyright 2005 Digital Enterprise Research Institute. All rights reserved. Dynamic RosettaNet Integration on Semantic Web Services Tomas.
 Copyright 2006 Digital Enterprise Research Institute. All rights reserved. Dynamic B2B Integration on the Semantic Web Services: SWS Challenge.
Introduction to Web Services Presented by Sarath Chandra Dorbala.
Lecture VI: SOAP-based Web Service CS 4593 Cloud-Oriented Big Data and Software Engineering.
Web Service Definition Language. Web Services: WSDL2 Web Service Definition Language ( WSDL ) What is a web service? [ F. Leymann 2003 ] A piece of code.
 Copyright 2005 Digital Enterprise Research Institute. All rights reserved. SOA-RM Overview and relation with SEE Adrian Mocan
DEVELOPING WEB SERVICES WITH JAVA DESIGN WEB SERVICE ENDPOINT.
Net-centric Computing Web Services. Lecture Outline  What is Web Service  Web Service Architecture  Creating and using Java Web Services  Apache Axis.
SE 548 Process Modelling WEB SERVICE ORCHESTRATION AND COMPOSITION ÖZLEM BİLGİÇ.
Business Process Execution Language (BPEL) Pınar Tekin.
WWW: WSMO, WSML, and WSMX in a Nutshell Dumitru Roman 1, Jos de Bruijn 1, Adrian Mocan 1, Holger Lausen 1,2, John Domingue 3, Christoph Bussler 2, and.
Java Web Services Orca Knowledge Center – Web Service key concepts.
Sabri Kızanlık Ural Emekçi
WEB SERVICES.
T Network Application Frameworks and XML Web Services and WSDL Sasu Tarkoma Based on slides by Pekka Nikander.
Web Service Modeling Ontology (WSMO)
Web Ontology Language for Service (OWL-S)
WEB SERVICES DAVIDE ZERBINO.
Distributed System using Web Services
Business Process Management and Semantic Technologies
Distributed System using Web Services
Toward an Ontology-Driven Architectural Framework for B2B E. Kajan, L
Presentation transcript:

 Copyright 2005 Digital Enterprise Research Institute. All rights reserved. Christoph Bussler Semantic Interfaces of Web Services Christoph Bussler

2 Contents Web Services Business-to-Business Integration Semantic Web Services Summary

3 Definition ‘Traditional’ Web Services –Two main technologies WSDL (Web Service Description Language) SOAP (Simple Object Access Protocol) –Main idea: remote invocation WSDL language to describe Web Service interface –Operations –Messages Implementation of Web Service interface provided by server SOAP message layout definition for client to send messages to Web Service and for it to send back result as message Intra- as well as Internet network remote invocation

4 Overview of Operation … joinStringResponse = joinStrings (‘TNC’, ‘2005’)... String Management Application Interface (in WSDL) joinStringResponse = joinStrings (firstString string, secondString string) Client requesting joining of strings SOAP message (XML) HTTP transport Company Boundary or Network Join String Service

5 Operational WSDL Example

6 Operational WSDL Example

7 Operational Client Example /* * Web Service client implemented using Apache WSIF * Copyright (c) 2005 National University of Ireland, Galway */ package src; import java.util.Map; import javax.xml.namespace.QName; import org.apache.wsif.WSIFMessage; import org.apache.wsif.WSIFOperation; import org.apache.wsif.WSIFPort; import org.apache.wsif.WSIFService; import org.apache.wsif.WSIFServiceFactory; import org.apache.wsif.providers.soap.apacheaxis.WSIFD ynamicProvider_ApacheAxis; import org.apache.wsif.util.WSIFPluggableProviders; import org.apache.wsif.util.WSIFUtils; import javax.wsdl.Definition; import javax.wsdl.Service; import javax.wsdl.PortType; /** * Web Service client implemented using Apache WSIF */ public class SimpleClient { public static void main(String[] args) { SimpleClient client = new SimpleClient(); try { client.wsifClient(); } catch (Exception e) { // handle the exception }

8 Operational Client Example /** * Use WSDL4j and WSIF apis to make the Web Service call. * Using the WSIF means that the client can invoke the Web * Service at run time based only on the service's WSDL document. * No stub or skeleton code for the client needs to be generated at * design time. Additionally, WSIF, abstracts the endpoint binding of * the operations of the service. WSIF supports bindings for: * SOAP/HTTP, JMS, J2EE, Java */ public void wsifClient() throws Exception { // Create the WSDL4j service object Definition wsdlDef = WSIFUtils.readWSDL(null, " uri/samples/SimpleWS/SimpleWS.wsdl"); String serviceNS = null, serviceName = null; Service wsdlService = WSIFUtils.selectService(wsdlDef, serviceNS, serviceName); PortType wsdlPortType = WSIFUtils.selectPortType(wsdlDef, null, null); // Create the WSIF service and operation objects WSIFServiceFactory factory = WSIFServiceFactory.newInstance(); WSIFService wsifService = factory.getService(wsdlDef, wsdlService, wsdlPortType); // Set the name of the port for the service WSIFPort wsifPort = wsifService.getPort("SimpleWS"); // Set the name of the operation to invoke WSIFOperation wsifOperation = wsifPort.createOperation("joinStrings"); // Create the input, output and fault messages associated with this operation WSIFMessage wsifInput = wsifOperation.createInputMessage(); WSIFMessage wsifOutput = wsifOperation.createOutputMessage(); WSIFMessage wsifFault = wsifOperation.createFaultMessage(); // Set the values of the input wsifInput.setObjectPart("in0", "first"); wsifInput.setObjectPart("in1", "second"); // Make the invocation // The return value will be "first ¦ second" try { wsifOperation.executeRequestResponseOperation(wsifInput, wsifOutput, wsifFault); String retValue = (String) wsifOutput.getObjectPart("joinStringsReturn"); System.out.println(retValue); } catch (Exception e) { System.out.println(e.getMessage()); }

9 Observation: Communication Paradigm Client / server –Server interface (= Web Service) defined –Client invocation interface undefined Relevance: recursive case, Web Service implementation itself can be client –What is client invocation interface? External visible invocations try { wsifOperation.executeRequestResponseOperation(wsifInput, wsifOutput, wsifFault); String retValue = (String) wsifOutput.getObjectPart("joinStringsReturn"); System.out.println(retValue); } catch (Exception e) { System.out.println(e.getMessage()); }

10 Observation: Service Definition Interface definition of Web Service only Web Service definition itself is non- existent –No composition definition possible in WSDL –No elementary definition possible –No non-functional properties can be defined

11 Observation: Data Semantics WSDL reduces data (message) definition to XML Schema No definition beyond the expressiveness of XML Schema possible Flashback example –What exactly does joinString mean? s1 blank s2 (‘TNC 2005’)? s1 | s2 (‘TNC|2005’)? s1s2 (‘TNC2005’)?

12 Operational Web Service Implementation /* * Sample Web Service * * Copyright (c) 2005 National University of Ireland, Galway * */ package src; /** * Join two strings together and return. */ public class SimpleWS { public String joinStrings(String s1, String s2) { return s1 + " ¦ " + s2; }

13 Intermediate Conclusion Communication paradigm –Client / server Service definition –Interface only Data semantics –Limited by XML Schema

14 Contents Web Services Business-to-Business Integration Semantic Web Services Summary

15 Company 2 B2B Integration Company 1 i Trading Partner 1Trading Partner 2

16 Company 2 B2B Integration Company 1 i Trading Partner 1Trading Partner 2 PO POA Inter-enterprise Coordination (External Behavior) Company 1

17 Company 2Company 1 B2B Integration Company 1 i Trading Partner 1Trading Partner 2 PO POA Application Intra-enterprise Coordination (Internal Behavior)

18 B2B Integration Company 1Company 2 i Trading Partner 1Trading Partner 2 PO POA Application Integration Server Integration Server PO’PO’’ POA’POA’’

19 B2B Integration Integration Server Trading Partner 1 (Merchant) i PO’ POA’ PO POA SHP’ SHP INVC INVC’ Application Integration Server

20 B2B Integration Integration Server Trading Partner 1 (Merchant) i PO’ POA’ SHP’ INVC’ Application INVCOK’ PO POA SHP INVC Integration Server

21 Communication Paradigm Conversation between trading partners –Not client / server behavior Possible representation: processes Integration Server PO POA SHP INVC Integration Server i

22 Communication Paradigm Conversation between trading partners –Not client / server behavior Possible representation: processes Integration Server PO POA SHP INVC Integration Server

23 Communication Paradigm Discovery –One way: client searches for provider –Other way: provider searches for client –Consequence: interfaces of both, client and server have to be defined for discovery and matching Integration Server PO POA SHP INVC Integration Server

24 Service Definition Complex invocation chains and relationships –Not just interfaces in client / server style –Company internally has to provide logic beyond interfaces Company 1Company 2Company 3Company 4Company 5

25 Company 2 Service Definition Relationship between service offer interface and service consumption interface –Must be defined –Follows interface – implementation abstraction Integration Server C D A B Integration Server E F

26 Data Semantics Complex documents –Constraints within documents on values Mediation –Different document definition of communicating trading partners Semantic complexity –Beyond XML schema Concepts, abstractions, complex consistency rules, correlation

27 Comparison CriteriaWeb ServicesB2B Requirements Communication paradigm Client / ServerConversation Service definition Service interfaceService interface and composition Data semanticsXML SchemaBeyond XML Schema

28 Intermediate Conclusion Web service cannot live up to B2B integration requirements due to naïve conceptual model –Communication paradigm –Service definition –Data semantics

29 Contents Web Services Business-to-Business Integration Semantic Web Services Summary

30 Semantic Web Services Semantic Web Services combine Semantic Web and Web Service technology Automatization of Web Service –Discovery –Combination, and –Invocation makes the technology scalable This combination is a pre-requisite to make Web Service technology scalable and mature

31 Semantic Web Services Mechanized support is needed in finding and comparing service providers and their offers –Machine processable semantics of information allows to mechanize these tasks Mechanized support is needed in dealing with numerous and heterogeneous data formats –Ontology technology is required to define such standards better and to map between them Mechanized support is needed in dealing with numerous and heterogeneous business and application logics –Mediation is needed to compensate these differences, allowing partners to cooperate properly

32 Semantic Web Services Fully enabled cooperation based on workable Web Services requires a modeling framework that is centered around two complementary principles: –Strong de-coupling of the various components that realize cooperations This de-coupling includes information hiding based on the difference of internal business intelligence and public message exchange protocol interface descriptions –Strong mediation service enabling anybody to speak with everybody in a scalable manner This mediation service includes the mediation of different terminologies as well as the mediation of different interaction styles

33 ontologiesmediators web services repositories Semantic Web Services The WSMF consists of four main different elements –Ontologies that provide the terminology used by other elements –Goal repositories that define the problems that should be solved by web services –Web services descriptions that define various aspects of a web service –Mediators which bypass interoperability problems

34 WSMO Conceptual Model Web Service Implemen- tation ChoreographyOrchestration Ontologies Mediators Web Service Goal

35 WSML Language namespace {_" dc _" tr _" foaf _" wsml _" bti _" webService _" importsOntology _" capability BookTicketCapability interface BookTicketInterface importsOntology _" choreography BookTicketChoreography orchestration BookTicketOrchestration... (see WSMO Primer, D3.1 at

36 Requirements Coverage Communication paradigm –Cooperative Web Services (or P2P) Service definition –Orchestration and Choreography Data semantics –Ontology –Mediation

37 WSMX Architecture Overview WSMX reference implementation of WSMO WSMX Semantic Web Service Definition Semantic Web Service Communication Semantic Web Service Invocation

38 WSMX Architecture Components

39 WSMO WG WSMX WGWSML WG A Conceptual Model for SWS A Formal Language for WSMO A Rule-based Language for SW An Execution Environment for WSMO Public Working Groups

40 WSMO – WSML – WSMX Mission of WSMO Providing a standard for describing Semantic Web Services Stands for the Web Service Modeling Ontology WSMO is derived from Web Service Modeling Framework (WSMF)

41 Contents Web Services Business-to-Business Integration Semantic Web Services Summary

42 Summary Web Services –Very simple and naïve conceptual model following the RPC paradigm Semantic Web Services –Expressive conceptual model –Semantic interfaces supported –B2B integration requirements covered

 Copyright 2005 Digital Enterprise Research Institute. All rights reserved. Christoph Bussler Semantic Interfaces of Web Services Christoph Bussler