Choreography example
Monday, April 05, 2010
10:49 AM
Choreography example
<interaction name="QuoteElicitation" 
             operation="getQuote" 
             channelVariable="tns:Buyer2SellerC">
    <description type="documentation"> Quote Elicitation</description>
    <participate relationshipType="tns:Buyer2Seller" 
                 fromRoleTypeRef="tns:BuyerRole" 
                 toRoleTypeRef="tns:SellerRole"/>
    <exchange name="QuoteRequest" 
                    informationType="tns:QuoteRequestType" 
                    action="request">
<description type="documentation">
Quote Request Message Exchange
</description>
<send variable="cdl:getVariable('quoteRequest','','')"/>
<receive variable="cdl:getVariable('quoteRequest','','')"/
</exchange>
<choose> 
<exchange name="QuoteResponse" 
                      informationType="tns:QuoteResponseType" 
                      action="respond">
<description type="documentation">
Quote Response Message Exchange
</description>
<send variable="cdl:getVariable('quoteResponse','','')"/>
<receive variable="cdl:getVariable('quoteResponse','','')"/
</exchange>
<exchange name="QuoteResponseFault" 
                      informationType="tns:QuoteResponseFaultType" 
                      action="respond" 
                      faultName="InvalidProductFault">
<description type="documentation">
Quote Response Fault Exchange
</description>
<send variable="cdl:getVariable('faultResponse','','')"/>
<receive variable="cdl:getVariable('faultResponse','','')"/
</exchange>
</choose> 
</interaction>
Pasted from <[link]> and edited (a bit).