Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 Formalizing Web Service Choreographies Antonio Brogi, Carlos Canal, Ernesto Pimentel, Antonio Vellecillo presented by Axel Polleres

Similar presentations


Presentation on theme: "1 Formalizing Web Service Choreographies Antonio Brogi, Carlos Canal, Ernesto Pimentel, Antonio Vellecillo presented by Axel Polleres"— Presentation transcript:

1 1 Formalizing Web Service Choreographies Antonio Brogi, Carlos Canal, Ernesto Pimentel, Antonio Vellecillo presented by Axel Polleres

2 2 Overview Formalizing WSCI descriptions in a process algebra (CCS): – WSCI – CCS Exemplify how this formalization can be used to prove certain properties such as: – compatibility of services – automatic generation of adaptors – deadlock-freeness Use for WSMO? – Usability of WSCI for WSMO interface descriptions? – Interesting: suggested algorithm for automatic adaptor generation from a general mapping description.

3 3 WSCI Allows to describe more complex interface descriptions on top of WSDL: Describe message flow from the viewpoint of each web service. construct allows to model “externally observable behavior” of the service. construct: collection of interfaces and links between these interfaces: – allows for combination of two or more interface definitions and modeling their collaboration by linking symmetric WSDL operations of the respective interfaces.

4 4 WSCI: Constructs sequence, parallel, choice, switch, loop, activities etc. exceptions: onFault, onTimeout, onMessage calling (synchronous) or spawning (asynchronous) named processes

5 5 Running Example:... placesAvailable Book Confirmation Refusal TravelAgencyWS bookingReq bookingAck bookingConf bookingRef Global Model:... ...

6 6 CCS (Calculus of Communicating Systems) by Robin Milner Three kinds of atomic actions α : internal action … τ reception via channel a… a?(x) transmission via channel a … a!(x) Processes: P ::= 0 | α.P | P + P | P║P | A(x) A(x) = P … process definition, s.t. A(y) behaves like P{x/y}, allows also for recursive definitions Transition rule for synchronization: Formalizing WSCI P  P’Q  Q’ a!(x)a?(y) P║Q  P’║Q’{x/y}

7 7 Translating WSCI to CCS: Each WSDL message is represented by a CCS channel Connections between operations in WSCI global model are naturally modelled by putting the corresponding processes in parallel, and linking their channels accordinlgy to what is specified in the global model

8 8 Translating WSCI to CCS: [[in port/op/msg]]  port/op/msg?() [[out port/op/msg]]  port/op/msg!() [[empty]]  τ [[all P1 P2 … Pn]]  [[P1]] ║ [[P2]] ║ [[Pn]] Seq = sequence P1 P2 … Pn  [[Seq(sq 0, sq n )]] = [[P1 ]](sq 0, sq 1 ) || [[P2 ]](sq 1, sq 2 ) … [[Pn ]](sq n-1, sq n ) where [[P]](begin,end) = begin?().[[P]].end!() Similar translations for switch, choice, (by means of “+”), timeouts, exception handlers (by spawning a parallel Timer process or introducing an extra argument for aborting execution when timeout is reached or an exception is raised)

9 9 Example: [[BookTrip]]  BStoTraveller/Book/bookingReq?(). BSToTraveller/Book/bookingAck!(). ( τ. BSToTraveller/Confirmation/bookingConf!().0 + τ. BSToTraveller/Refusal/bookingRef!().0) Remark: τ in combination + with here models a local choice, only depending on an internal condition of the service which cannot be checked from outside.

10 10 Checking Web Service Compatibility A set of interfaces is compatible if the system formed by the several entities always performs a finite number of silent actions τ leading to the inaction 0. In case of infinite loops, we redefine this definition to: system fails, whenever it could get stuck by a finite set of silent actions leading to a process different from 0 which cannot perform any further action by itself. Weaker def. of compatibility: A system is compatible if it does not fail  check by recursively matching input and output actions on translated interfaces. For instance: Traveller = TravellerToBS/Book/bookingReq!(). TravellerToBS/Book/bookingAck?(). TravellerToBS/Book/bookingConf?().0 is NOT compatible with BookTrip!

11 11 Checking Web Service Replacability S1 is replaceable by S2 if – Required services of S2 are a subset of req services for S1 – Behavior of both services ist consistent (behavioral subtyping): (i)S2 preserves the semantics of WS1 (concerning global choices) (ii)S2 does not extend S1 (i.e. all actions in S2 are also in S1) (iii)WS2 terminates whenever WS1 does. For instance: ImprovedBookTrip = BStoTraveller/Book/bookingReq!(). BStoTraveller/Book/bookingAck?(). BStoTraveller/Confirmation/bookingConf?().0 Is a valid substitute for the original BookTrip. Remark: any behavioral subtype is compatible with more clients thant its supertype.

12 12 Web Service adaption Paper provides a notation for mappings of messages beyond simple (one-to-one) WSCI mappings for global model, for instance: S = { request!()<> bookingReq?(), bookingAck!(); reply?(“confirmed”) <> bookingConf!(); reply?(“refused”) <> bookingRef!()} Paper defines algorithm for incrementally building up an “adapter entity” from such a mapping spec. and the respective interface definitions which successfully establishes a compatible system.

13 13 Conclusion & Outlook Authors claim that formalization in a process algebra allows to apply model-checking techniques for checking complex properties (such as compatibility, replacability, and beyond) Compatibility & Replacebility only sketched but not formally explained here (references to previous work on a formal notion on behavioral compatibility using CORBA given). Mapping definitions more general than WSCI global model (not only one-to-one message mappings. “Adapter generation” is more like derivation of the interface of an adaptor, no hints whether this is possible in general. – This is rather checking whether the mapping is feasible than “adaptor generation”: Mapping between messages has to be given beforehand.

14 14 Use for WSMO More in-depth study of process algebras (CCS, CSP, etc. and their use for modeling choreographies!) Use case modeling necessary, the examples here can serve as a starting point First steps in the direction of process mediation (mediators including dynamics)


Download ppt "1 Formalizing Web Service Choreographies Antonio Brogi, Carlos Canal, Ernesto Pimentel, Antonio Vellecillo presented by Axel Polleres"

Similar presentations


Ads by Google