SOPERA User's Forum
 

Go Back   SOPERA User's Forum > SOPERA ASF > Development of Business Participants
You are not logged in.
Login

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11.02.2010, 13:03
ashakirin ashakirin is offline
SOPERA Staff
 
Join Date: 08.04.2009
Posts: 15
Default Conversation sessions via multicallbacks

Hi,

I would like to shortly anounce use-case of one of our customer and
describe solution proposed by SOPERA.

Service Provider receives messages from a business system.
Processing of each message is a complex process containing some steps and provider would like to inform consumer about each step of processing.
In other words, provider maintains kind of conversation session with consumer.

It looks like:
Code:
-------------------------------------
consumer                     provider
        --> request

        <-- response step 1

        <-- response step 2

        <-- response step 3

        <-- finish conversation
--------------------------------------
SOPERA supports this scenario via multi-callbacks.
By using request-callback communication style it is possible to define mutiple callback operations:

Code:
 <portType name="MulticallbackService">
    <operation name="OneWayOperation">
      <input message="tns:oneWayRequestMsg"/>
    </operation>
  </portType>
  <wsdl:portType name="MulticallbackServiceConsumer" sdx:partnerPortType="tns:MulticallbackService">
    <operation name="CallbackOperationStep1" sdx:partnerOperation="OneWayOperation">
      <input message="tns:CallbackOperationStep1"/>
    </operation>
    <operation name="CallbackOperationStep2" sdx:partnerOperation="OneWayOperation">
      <input message="tns:CallbackOperationStep2"/>
    </operation>
    <operation name="CallbackOperationStep3" sdx:partnerOperation="OneWayOperation">
      <input message="tns:CallbackOperationStep3"/>
    </operation>
    <operation name="CallbackOperationFinish" sdx:partnerOperation="OneWayOperation">
      <input message="tns:CallbackOperationFinish"/>
    </operation>
    <operation name="OneWayOperationCallbackFault"
      sdx:faultOperation="true" sdx:partnerOperation="OneWayOperation">
      <input message="tns:OneWayOperationCallbackFault"/>
    </operation>
  </wsdl:portType>
Provider can inform consumer about different steps of request processing via calls of different callback functions.
End of conversation can be recognized via special operation ("CallbackOperationFinish") or via message.

Sample sdx with muticallback is attached.
Attached Files
File Type: zip Multicallback.zip (778 Bytes, 0 views)
Reply With Quote
Reply

Bookmarks

Tags
callback, conversation, session

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT +2. The time now is 18:13.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.