ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
DEPENDENCIES BETWEEN
COORDINATION AND
COMPOSITION
Presented By:- Suveeksha Jain
College:- SJEC
Class:- Mtech 2 sem
CONTENTS
ï‚¢ Coordination protocols and composition schemas.
ï‚¢ Conversation Controllers and Composition
Engines
COORDINATION PROTOCOLS AND COMPOSITION
SCHEMAS
ï‚¢ Coordination protocol imposes constraints on
composition schema of web service implementing
logic.
ï‚¢ If a web service plays a role in coordination
protocol and implementation is done through
composition technologies, then composition
schema must include activities of send and receive
messages.
requestQuote
(to supplier)
checkShipAvailable
(to warehouse)
confirmOrder
(to customer)
orderGoods
(to supplier)
cancelOrder
(to customer)
makePayment
(to supplier)
orderShipment
(to warehouse)
getShipmentDetails
(to customer)
confirmShipment
(to warehouse)
confirmShipment
(to supplier)
supplier warehousecustomer
warehouse
confirms
warehouse
cancels
Fig 1: The procurement coordination protocol
ï‚¢ 1.Create role specific view of a protocol, which
include all the message exchanges that involve a
certain role. All the supplier should care about to
build composition schemas that generate correct
procurement conversations.
ï‚¢ 2.Goin from the role specific view of the protocol
to the definition of a process that exchanges
messages as prescribed by the role-specific view.
ï‚¢ 3.Build a skeleton of a process that include all
the activities that send and receive messages as
prescribed by the protocol.
HOW PROCESS SKELETONS CAN BE BUILT
FROM ROLE SPECIFIC VIEW
1. Request/reply operations invoked by a role R on
the supplier are mapped into receive and reply
activity.
2. One way operation invoked by another role on
the supplier are modeled as receive activities.
3. One way operations invoked by the supplier are
modeled as send activities.
4. Request/reply operations initiated by the
supplier are modeled as invoke activities.
5. The other constructs are mapped as is into the
process skeleton.
requestQuote
(to supplier)
checkShipAvailable
(to warehouse)
confirmOrder
(to customer)
orderGoods
(to supplier)
cancelOrder
(to customer)
makePayment
(to supplier)
orderShipment
(to warehouse)
supplier warehousecustomer
warehouse
confirms
warehouse
cancels
confirmShipment
(to supplier)
Fig:2 Supplier specific view of the procurement coordination protocol
invoke
checkShipAvailable
receive requestQuote
reply requestQuote
receive orderGoods
send confirmOrder
receive makePayment
send orderShipment
receive confirmShipment
send cancelOrder
Fig:3 An abstract process defining the behaviour of the supplier role in the
procurement coordination protocol.
ï‚¢ Advantage of abstract process is that they make
it easy to understand how composition is
constrained by the protocol and to define a
composition schema that implements a protocol.
ï‚¢ Developers can take abstract process and extend
it by adding details about internal logic.
invoke
checkShipAvailable
send confirmOrder
send cancelOrder
shippingAvail=trueshippingAvail=false
receive requestQuote
invoke lookupQuote
reply requestQuote
receive orderGoods
receive makePayment
send orderShipment
invoke collectPayment
supplier
receive confirmShipment
Fig:4 Implementation of the supplier role in the procurement protocol
ï‚¢ A web services can support only one protocol or several
protocols. In this example we take up one protocol for
interacting with warehouse.
ï‚¢ Till here discussed the path that goes from protocol
specification to role specific views, abstract process and
implementation of abstract process .It is common that
external behavior is designed before the internal one.
However inverse route can also be taken.
ï‚¢ BPEL is a language designed with service composition.
It can specify both the external and internal
implementations.
ï‚¢ ebXML also addresses both protocols and compositions.
CONVERSATION CONTROLLERS AND
COMPOSITION ENGINES
ï‚¢ Conversation controllers verifies protocol compliance
and routes messages to the composition engines.
ï‚¢ Composition engine is the internal object that
implements the conversation.
ï‚¢ If the conversation controller and the SOAP router
leave header information in the message when
routing it to the engine , then coordination context
can be used to determine the target instance.
ï‚¢ If conversation controllers strips header information
from the SOAP message and just delivers the
payload, then the engine has to find some other way
to correlate messages with instances.
ï‚¢ The solution is to have the composition schema
explicitly include correlation information.
ï‚¢ For ex orderID parameter where each conversation
carries unique order number.
another Web
service
conversation controller
composition engine
service provider
object
(Web service implementation)
object
(Web service implementation)
Instance of a
composition schema
instance of a
composition schema
checkLocalStock
checkShipAvailable
confirmOrder
inStock=false
cancelOrder
inStock=true
shippingAvail=true
shippingAvail=false
receive requestQuote
lookupQuote
reply requestQuote
receive orderGoods
messages related to
protocols implemented by
basic Web services (or
anyway services implemented
by means of conventional
programming languages)
messages related to
protocols implemented
through service
composition technologies
the engine has to match
messages with instances,
just like the conversation
controller has to match
messages with objects
Fig:5 The composition engine is faced with a conversation routing problem similar to the one
addressed by the conversation controller
THANK YOU

More Related Content

Similar to web services (20)

An E-Business Integration And Collaboration Platform For B2B E-Commerce
An E-Business Integration And Collaboration Platform For B2B E-CommerceAn E-Business Integration And Collaboration Platform For B2B E-Commerce
An E-Business Integration And Collaboration Platform For B2B E-Commerce
Andrew Parish
Ìý
Topic3 Enterprise Application Integration
Topic3 Enterprise Application IntegrationTopic3 Enterprise Application Integration
Topic3 Enterprise Application Integration
sanjoysanyal
Ìý
Subscription based control system to automate management of events for robots
Subscription based control system to automate management of events for robotsSubscription based control system to automate management of events for robots
Subscription based control system to automate management of events for robots
dbpublications
Ìý
Transaction Based Verification Methodology - 2000
Transaction Based Verification Methodology - 2000Transaction Based Verification Methodology - 2000
Transaction Based Verification Methodology - 2000
Steve Cox
Ìý
Internet Programming. For event-driven architecture, how does pollin.pdf
Internet Programming. For event-driven architecture, how does pollin.pdfInternet Programming. For event-driven architecture, how does pollin.pdf
Internet Programming. For event-driven architecture, how does pollin.pdf
wasemanivytreenrco51
Ìý
Ontology based dynamic business process customization
Ontology   based dynamic business process customizationOntology   based dynamic business process customization
Ontology based dynamic business process customization
ieijjournal
Ìý
Dnyaneshwar_Anantwar_Resume
Dnyaneshwar_Anantwar_ResumeDnyaneshwar_Anantwar_Resume
Dnyaneshwar_Anantwar_Resume
aryan9011079624
Ìý
Implementation in mule esb
Implementation in mule esbImplementation in mule esb
Implementation in mule esb
Vamsi Krishna
Ìý
Formal Specification of QoS Negotiation in ODP System
Formal Specification of QoS Negotiation in ODP System Formal Specification of QoS Negotiation in ODP System
Formal Specification of QoS Negotiation in ODP System
IJECEIAES
Ìý
Understanding Web Services by software outsourcing company india
Understanding Web Services by software outsourcing company indiaUnderstanding Web Services by software outsourcing company india
Understanding Web Services by software outsourcing company india
Jignesh Aakoliya
Ìý
Oracle OSB Tutorial 2
Oracle OSB Tutorial 2Oracle OSB Tutorial 2
Oracle OSB Tutorial 2
Rakesh Gujjarlapudi
Ìý
Integration Approach for MES
Integration Approach for MESIntegration Approach for MES
Integration Approach for MES
Vinod Kumar
Ìý
Machine Learning Applications in Grid Computing
Machine Learning Applications in Grid ComputingMachine Learning Applications in Grid Computing
Machine Learning Applications in Grid Computing
butest
Ìý
Web Modeling-based Approach to Automating Web Services Mediation, Choreograph...
Web Modeling-based Approach to Automating Web Services Mediation, Choreograph...Web Modeling-based Approach to Automating Web Services Mediation, Choreograph...
Web Modeling-based Approach to Automating Web Services Mediation, Choreograph...
Marco Brambilla
Ìý
Development using anypointstudio
Development using anypointstudioDevelopment using anypointstudio
Development using anypointstudio
himajareddys
Ìý
Dot Net Training Wcf Dot Net35
Dot Net Training Wcf Dot Net35Dot Net Training Wcf Dot Net35
Dot Net Training Wcf Dot Net35
Subodh Pushpak
Ìý
Tulsa Tech Fest2008 Service Oriented Development With Windows Communication F...
Tulsa Tech Fest2008 Service Oriented Development With Windows Communication F...Tulsa Tech Fest2008 Service Oriented Development With Windows Communication F...
Tulsa Tech Fest2008 Service Oriented Development With Windows Communication F...
Jason Townsend, MBA
Ìý
WINDOWS COMMUNICATION FOUNDATION
WINDOWS COMMUNICATION FOUNDATIONWINDOWS COMMUNICATION FOUNDATION
WINDOWS COMMUNICATION FOUNDATION
Deepika Chaudhary
Ìý
Components in real time systems
Components in real time systemsComponents in real time systems
Components in real time systems
Saransh Garg
Ìý
Top wcf interview questions
Top wcf interview questionsTop wcf interview questions
Top wcf interview questions
tongdang
Ìý
An E-Business Integration And Collaboration Platform For B2B E-Commerce
An E-Business Integration And Collaboration Platform For B2B E-CommerceAn E-Business Integration And Collaboration Platform For B2B E-Commerce
An E-Business Integration And Collaboration Platform For B2B E-Commerce
Andrew Parish
Ìý
Topic3 Enterprise Application Integration
Topic3 Enterprise Application IntegrationTopic3 Enterprise Application Integration
Topic3 Enterprise Application Integration
sanjoysanyal
Ìý
Subscription based control system to automate management of events for robots
Subscription based control system to automate management of events for robotsSubscription based control system to automate management of events for robots
Subscription based control system to automate management of events for robots
dbpublications
Ìý
Transaction Based Verification Methodology - 2000
Transaction Based Verification Methodology - 2000Transaction Based Verification Methodology - 2000
Transaction Based Verification Methodology - 2000
Steve Cox
Ìý
Internet Programming. For event-driven architecture, how does pollin.pdf
Internet Programming. For event-driven architecture, how does pollin.pdfInternet Programming. For event-driven architecture, how does pollin.pdf
Internet Programming. For event-driven architecture, how does pollin.pdf
wasemanivytreenrco51
Ìý
Ontology based dynamic business process customization
Ontology   based dynamic business process customizationOntology   based dynamic business process customization
Ontology based dynamic business process customization
ieijjournal
Ìý
Dnyaneshwar_Anantwar_Resume
Dnyaneshwar_Anantwar_ResumeDnyaneshwar_Anantwar_Resume
Dnyaneshwar_Anantwar_Resume
aryan9011079624
Ìý
Implementation in mule esb
Implementation in mule esbImplementation in mule esb
Implementation in mule esb
Vamsi Krishna
Ìý
Formal Specification of QoS Negotiation in ODP System
Formal Specification of QoS Negotiation in ODP System Formal Specification of QoS Negotiation in ODP System
Formal Specification of QoS Negotiation in ODP System
IJECEIAES
Ìý
Understanding Web Services by software outsourcing company india
Understanding Web Services by software outsourcing company indiaUnderstanding Web Services by software outsourcing company india
Understanding Web Services by software outsourcing company india
Jignesh Aakoliya
Ìý
Integration Approach for MES
Integration Approach for MESIntegration Approach for MES
Integration Approach for MES
Vinod Kumar
Ìý
Machine Learning Applications in Grid Computing
Machine Learning Applications in Grid ComputingMachine Learning Applications in Grid Computing
Machine Learning Applications in Grid Computing
butest
Ìý
Web Modeling-based Approach to Automating Web Services Mediation, Choreograph...
Web Modeling-based Approach to Automating Web Services Mediation, Choreograph...Web Modeling-based Approach to Automating Web Services Mediation, Choreograph...
Web Modeling-based Approach to Automating Web Services Mediation, Choreograph...
Marco Brambilla
Ìý
Development using anypointstudio
Development using anypointstudioDevelopment using anypointstudio
Development using anypointstudio
himajareddys
Ìý
Dot Net Training Wcf Dot Net35
Dot Net Training Wcf Dot Net35Dot Net Training Wcf Dot Net35
Dot Net Training Wcf Dot Net35
Subodh Pushpak
Ìý
Tulsa Tech Fest2008 Service Oriented Development With Windows Communication F...
Tulsa Tech Fest2008 Service Oriented Development With Windows Communication F...Tulsa Tech Fest2008 Service Oriented Development With Windows Communication F...
Tulsa Tech Fest2008 Service Oriented Development With Windows Communication F...
Jason Townsend, MBA
Ìý
WINDOWS COMMUNICATION FOUNDATION
WINDOWS COMMUNICATION FOUNDATIONWINDOWS COMMUNICATION FOUNDATION
WINDOWS COMMUNICATION FOUNDATION
Deepika Chaudhary
Ìý
Components in real time systems
Components in real time systemsComponents in real time systems
Components in real time systems
Saransh Garg
Ìý
Top wcf interview questions
Top wcf interview questionsTop wcf interview questions
Top wcf interview questions
tongdang
Ìý

Recently uploaded (20)

Year 10 The Senior Phase Session 3 Term 1.pptx
Year 10 The Senior Phase Session 3 Term 1.pptxYear 10 The Senior Phase Session 3 Term 1.pptx
Year 10 The Senior Phase Session 3 Term 1.pptx
mansk2
Ìý
English 4 Quarter 4 Week 4 Classroom Obs
English 4 Quarter 4 Week 4 Classroom ObsEnglish 4 Quarter 4 Week 4 Classroom Obs
English 4 Quarter 4 Week 4 Classroom Obs
NerissaMendez1
Ìý
Rass MELAI : an Internet MELA Quiz Prelims - El Dorado 2025
Rass MELAI : an Internet MELA Quiz Prelims - El Dorado 2025Rass MELAI : an Internet MELA Quiz Prelims - El Dorado 2025
Rass MELAI : an Internet MELA Quiz Prelims - El Dorado 2025
Conquiztadors- the Quiz Society of Sri Venkateswara College
Ìý
How to Configure Flexible Working Schedule in Odoo 18 Employee
How to Configure Flexible Working Schedule in Odoo 18 EmployeeHow to Configure Flexible Working Schedule in Odoo 18 Employee
How to Configure Flexible Working Schedule in Odoo 18 Employee
Celine George
Ìý
How to Configure Restaurants in Odoo 17 Point of Sale
How to Configure Restaurants in Odoo 17 Point of SaleHow to Configure Restaurants in Odoo 17 Point of Sale
How to Configure Restaurants in Odoo 17 Point of Sale
Celine George
Ìý
A PPT on the First Three chapters of Wings of Fire
A PPT on the First Three chapters of Wings of FireA PPT on the First Three chapters of Wings of Fire
A PPT on the First Three chapters of Wings of Fire
Beena E S
Ìý
TPR Data strategy 2025 (1).pdf Data strategy
TPR Data strategy 2025 (1).pdf Data strategyTPR Data strategy 2025 (1).pdf Data strategy
TPR Data strategy 2025 (1).pdf Data strategy
Henry Tapper
Ìý
Blind Spots in AI and Formulation Science Knowledge Pyramid (Updated Perspect...
Blind Spots in AI and Formulation Science Knowledge Pyramid (Updated Perspect...Blind Spots in AI and Formulation Science Knowledge Pyramid (Updated Perspect...
Blind Spots in AI and Formulation Science Knowledge Pyramid (Updated Perspect...
Ajaz Hussain
Ìý
How to use Init Hooks in Odoo 18 - Odoo ºÝºÝߣs
How to use Init Hooks in Odoo 18 - Odoo ºÝºÝߣsHow to use Init Hooks in Odoo 18 - Odoo ºÝºÝߣs
How to use Init Hooks in Odoo 18 - Odoo ºÝºÝߣs
Celine George
Ìý
The Constitution, Government and Law making bodies .
The Constitution, Government and Law making bodies .The Constitution, Government and Law making bodies .
The Constitution, Government and Law making bodies .
saanidhyapatel09
Ìý
FESTIVAL: SINULOG & THINGYAN-LESSON 4.pptx
FESTIVAL: SINULOG & THINGYAN-LESSON 4.pptxFESTIVAL: SINULOG & THINGYAN-LESSON 4.pptx
FESTIVAL: SINULOG & THINGYAN-LESSON 4.pptx
DanmarieMuli1
Ìý
Kaun TALHA quiz Prelims - El Dorado 2025
Kaun TALHA quiz Prelims - El Dorado 2025Kaun TALHA quiz Prelims - El Dorado 2025
Kaun TALHA quiz Prelims - El Dorado 2025
Conquiztadors- the Quiz Society of Sri Venkateswara College
Ìý
Information Technology for class X CBSE skill Subject
Information Technology for class X CBSE skill SubjectInformation Technology for class X CBSE skill Subject
Information Technology for class X CBSE skill Subject
VEENAKSHI PATHAK
Ìý
CRITICAL THINKING AND NURSING JUDGEMENT.pptx
CRITICAL THINKING AND NURSING JUDGEMENT.pptxCRITICAL THINKING AND NURSING JUDGEMENT.pptx
CRITICAL THINKING AND NURSING JUDGEMENT.pptx
PoojaSen20
Ìý
Eng7-Q4-Lesson 1 Part 1 Understanding Discipline-Specific Words, Voice, and T...
Eng7-Q4-Lesson 1 Part 1 Understanding Discipline-Specific Words, Voice, and T...Eng7-Q4-Lesson 1 Part 1 Understanding Discipline-Specific Words, Voice, and T...
Eng7-Q4-Lesson 1 Part 1 Understanding Discipline-Specific Words, Voice, and T...
sandynavergas1
Ìý
Adventure Activities Final By H R Gohil Sir
Adventure Activities Final By H R Gohil SirAdventure Activities Final By H R Gohil Sir
Adventure Activities Final By H R Gohil Sir
GUJARATCOMMERCECOLLE
Ìý
Storytelling instructions...............
Storytelling instructions...............Storytelling instructions...............
Storytelling instructions...............
Alexander Benito
Ìý
Database population in Odoo 18 - Odoo slides
Database population in Odoo 18 - Odoo slidesDatabase population in Odoo 18 - Odoo slides
Database population in Odoo 18 - Odoo slides
Celine George
Ìý
APM People Interest Network Conference - Tim Lyons - The neurological levels ...
APM People Interest Network Conference - Tim Lyons - The neurological levels ...APM People Interest Network Conference - Tim Lyons - The neurological levels ...
APM People Interest Network Conference - Tim Lyons - The neurological levels ...
Association for Project Management
Ìý
Kaun TALHA quiz Finals -- El Dorado 2025
Kaun TALHA quiz Finals -- El Dorado 2025Kaun TALHA quiz Finals -- El Dorado 2025
Kaun TALHA quiz Finals -- El Dorado 2025
Conquiztadors- the Quiz Society of Sri Venkateswara College
Ìý
Year 10 The Senior Phase Session 3 Term 1.pptx
Year 10 The Senior Phase Session 3 Term 1.pptxYear 10 The Senior Phase Session 3 Term 1.pptx
Year 10 The Senior Phase Session 3 Term 1.pptx
mansk2
Ìý
English 4 Quarter 4 Week 4 Classroom Obs
English 4 Quarter 4 Week 4 Classroom ObsEnglish 4 Quarter 4 Week 4 Classroom Obs
English 4 Quarter 4 Week 4 Classroom Obs
NerissaMendez1
Ìý
How to Configure Flexible Working Schedule in Odoo 18 Employee
How to Configure Flexible Working Schedule in Odoo 18 EmployeeHow to Configure Flexible Working Schedule in Odoo 18 Employee
How to Configure Flexible Working Schedule in Odoo 18 Employee
Celine George
Ìý
How to Configure Restaurants in Odoo 17 Point of Sale
How to Configure Restaurants in Odoo 17 Point of SaleHow to Configure Restaurants in Odoo 17 Point of Sale
How to Configure Restaurants in Odoo 17 Point of Sale
Celine George
Ìý
A PPT on the First Three chapters of Wings of Fire
A PPT on the First Three chapters of Wings of FireA PPT on the First Three chapters of Wings of Fire
A PPT on the First Three chapters of Wings of Fire
Beena E S
Ìý
TPR Data strategy 2025 (1).pdf Data strategy
TPR Data strategy 2025 (1).pdf Data strategyTPR Data strategy 2025 (1).pdf Data strategy
TPR Data strategy 2025 (1).pdf Data strategy
Henry Tapper
Ìý
Blind Spots in AI and Formulation Science Knowledge Pyramid (Updated Perspect...
Blind Spots in AI and Formulation Science Knowledge Pyramid (Updated Perspect...Blind Spots in AI and Formulation Science Knowledge Pyramid (Updated Perspect...
Blind Spots in AI and Formulation Science Knowledge Pyramid (Updated Perspect...
Ajaz Hussain
Ìý
How to use Init Hooks in Odoo 18 - Odoo ºÝºÝߣs
How to use Init Hooks in Odoo 18 - Odoo ºÝºÝߣsHow to use Init Hooks in Odoo 18 - Odoo ºÝºÝߣs
How to use Init Hooks in Odoo 18 - Odoo ºÝºÝߣs
Celine George
Ìý
The Constitution, Government and Law making bodies .
The Constitution, Government and Law making bodies .The Constitution, Government and Law making bodies .
The Constitution, Government and Law making bodies .
saanidhyapatel09
Ìý
FESTIVAL: SINULOG & THINGYAN-LESSON 4.pptx
FESTIVAL: SINULOG & THINGYAN-LESSON 4.pptxFESTIVAL: SINULOG & THINGYAN-LESSON 4.pptx
FESTIVAL: SINULOG & THINGYAN-LESSON 4.pptx
DanmarieMuli1
Ìý
Information Technology for class X CBSE skill Subject
Information Technology for class X CBSE skill SubjectInformation Technology for class X CBSE skill Subject
Information Technology for class X CBSE skill Subject
VEENAKSHI PATHAK
Ìý
CRITICAL THINKING AND NURSING JUDGEMENT.pptx
CRITICAL THINKING AND NURSING JUDGEMENT.pptxCRITICAL THINKING AND NURSING JUDGEMENT.pptx
CRITICAL THINKING AND NURSING JUDGEMENT.pptx
PoojaSen20
Ìý
Eng7-Q4-Lesson 1 Part 1 Understanding Discipline-Specific Words, Voice, and T...
Eng7-Q4-Lesson 1 Part 1 Understanding Discipline-Specific Words, Voice, and T...Eng7-Q4-Lesson 1 Part 1 Understanding Discipline-Specific Words, Voice, and T...
Eng7-Q4-Lesson 1 Part 1 Understanding Discipline-Specific Words, Voice, and T...
sandynavergas1
Ìý
Adventure Activities Final By H R Gohil Sir
Adventure Activities Final By H R Gohil SirAdventure Activities Final By H R Gohil Sir
Adventure Activities Final By H R Gohil Sir
GUJARATCOMMERCECOLLE
Ìý
Storytelling instructions...............
Storytelling instructions...............Storytelling instructions...............
Storytelling instructions...............
Alexander Benito
Ìý
Database population in Odoo 18 - Odoo slides
Database population in Odoo 18 - Odoo slidesDatabase population in Odoo 18 - Odoo slides
Database population in Odoo 18 - Odoo slides
Celine George
Ìý
APM People Interest Network Conference - Tim Lyons - The neurological levels ...
APM People Interest Network Conference - Tim Lyons - The neurological levels ...APM People Interest Network Conference - Tim Lyons - The neurological levels ...
APM People Interest Network Conference - Tim Lyons - The neurological levels ...
Association for Project Management
Ìý

web services

  • 1. DEPENDENCIES BETWEEN COORDINATION AND COMPOSITION Presented By:- Suveeksha Jain College:- SJEC Class:- Mtech 2 sem
  • 2. CONTENTS ï‚¢ Coordination protocols and composition schemas. ï‚¢ Conversation Controllers and Composition Engines
  • 3. COORDINATION PROTOCOLS AND COMPOSITION SCHEMAS ï‚¢ Coordination protocol imposes constraints on composition schema of web service implementing logic. ï‚¢ If a web service plays a role in coordination protocol and implementation is done through composition technologies, then composition schema must include activities of send and receive messages.
  • 4. requestQuote (to supplier) checkShipAvailable (to warehouse) confirmOrder (to customer) orderGoods (to supplier) cancelOrder (to customer) makePayment (to supplier) orderShipment (to warehouse) getShipmentDetails (to customer) confirmShipment (to warehouse) confirmShipment (to supplier) supplier warehousecustomer warehouse confirms warehouse cancels Fig 1: The procurement coordination protocol
  • 5. ï‚¢ 1.Create role specific view of a protocol, which include all the message exchanges that involve a certain role. All the supplier should care about to build composition schemas that generate correct procurement conversations. ï‚¢ 2.Goin from the role specific view of the protocol to the definition of a process that exchanges messages as prescribed by the role-specific view. ï‚¢ 3.Build a skeleton of a process that include all the activities that send and receive messages as prescribed by the protocol.
  • 6. HOW PROCESS SKELETONS CAN BE BUILT FROM ROLE SPECIFIC VIEW 1. Request/reply operations invoked by a role R on the supplier are mapped into receive and reply activity. 2. One way operation invoked by another role on the supplier are modeled as receive activities. 3. One way operations invoked by the supplier are modeled as send activities. 4. Request/reply operations initiated by the supplier are modeled as invoke activities. 5. The other constructs are mapped as is into the process skeleton.
  • 7. requestQuote (to supplier) checkShipAvailable (to warehouse) confirmOrder (to customer) orderGoods (to supplier) cancelOrder (to customer) makePayment (to supplier) orderShipment (to warehouse) supplier warehousecustomer warehouse confirms warehouse cancels confirmShipment (to supplier) Fig:2 Supplier specific view of the procurement coordination protocol
  • 8. invoke checkShipAvailable receive requestQuote reply requestQuote receive orderGoods send confirmOrder receive makePayment send orderShipment receive confirmShipment send cancelOrder Fig:3 An abstract process defining the behaviour of the supplier role in the procurement coordination protocol.
  • 9. ï‚¢ Advantage of abstract process is that they make it easy to understand how composition is constrained by the protocol and to define a composition schema that implements a protocol. ï‚¢ Developers can take abstract process and extend it by adding details about internal logic.
  • 10. invoke checkShipAvailable send confirmOrder send cancelOrder shippingAvail=trueshippingAvail=false receive requestQuote invoke lookupQuote reply requestQuote receive orderGoods receive makePayment send orderShipment invoke collectPayment supplier receive confirmShipment Fig:4 Implementation of the supplier role in the procurement protocol
  • 11. ï‚¢ A web services can support only one protocol or several protocols. In this example we take up one protocol for interacting with warehouse. ï‚¢ Till here discussed the path that goes from protocol specification to role specific views, abstract process and implementation of abstract process .It is common that external behavior is designed before the internal one. However inverse route can also be taken. ï‚¢ BPEL is a language designed with service composition. It can specify both the external and internal implementations. ï‚¢ ebXML also addresses both protocols and compositions.
  • 12. CONVERSATION CONTROLLERS AND COMPOSITION ENGINES ï‚¢ Conversation controllers verifies protocol compliance and routes messages to the composition engines. ï‚¢ Composition engine is the internal object that implements the conversation. ï‚¢ If the conversation controller and the SOAP router leave header information in the message when routing it to the engine , then coordination context can be used to determine the target instance. ï‚¢ If conversation controllers strips header information from the SOAP message and just delivers the payload, then the engine has to find some other way to correlate messages with instances. ï‚¢ The solution is to have the composition schema explicitly include correlation information. ï‚¢ For ex orderID parameter where each conversation carries unique order number.
  • 13. another Web service conversation controller composition engine service provider object (Web service implementation) object (Web service implementation) Instance of a composition schema instance of a composition schema checkLocalStock checkShipAvailable confirmOrder inStock=false cancelOrder inStock=true shippingAvail=true shippingAvail=false receive requestQuote lookupQuote reply requestQuote receive orderGoods messages related to protocols implemented by basic Web services (or anyway services implemented by means of conventional programming languages) messages related to protocols implemented through service composition technologies the engine has to match messages with instances, just like the conversation controller has to match messages with objects Fig:5 The composition engine is faced with a conversation routing problem similar to the one addressed by the conversation controller