When to use "my role" and "partner role" in BPEL?

I'm a bit confused when to set/use partner role and my role.
Can anyone shed a little light,
regards, Henrik

Saurabh,
> I humbly disagree with your explanation of inputs
No need to be humble, you can boldy disagree. :)
You're right that I did technically use the wrong term in that sentence of my explanation. I updated the post and corrected it. However the gist of what I was saying is still true.
There are two invocation types. People use different terms but here I'll call them request-response and one-way. A request-response invocation type is used for what we typically think of as a "synchronous" process. That is, the service consumer is blocked until the service responds. It's like methodA() in Java calling methodB(). methodA() is blocked until methodB() completes. (In fact, this is exactly what it's like since all invocations on our BPEL engine ultimately go through our Java API.)
In the case of one-way, the service consumer is not blocked. This is often referred to as fire-and-forget. It simply sends its request, then it is free to continue or do whatever it wants. Moreover, nothing is returned to the client (you fired-and-forgot, remember). Typical "asynchronous" BPEL processes uses this invocation type.
So we have those two invocation types. Yet the problem before us how to have an asynchronous process return a result. You can't use request-response because the service consumer is blocked until the process finishes. You can't just use a one-way because nothing is returned to the caller. What to do?
The way the BPEL standard solved the problem is to use two one-way invocation types. The first one is to invoke the process. The second one is a one-way from the BPEL process to the service consumer to return the result. There are some glaring implications of this:
1. When the BPEL process returns it's result, things have now switched: The BPEL process becomes the service consumer, and the (original) service consumer becomes the service.
2. The service consumer has to be able to listen for one-way invocation type requests.
3. The BPEL process has to know how and where to call the service consumer back. This information is passed in the original request. As well as containing the data payload, it contains a callback address and unique identifier. This, in essence, is what the WS-Addressing standard is about.
Now the definition of a one-way invocation type in a WSDL is:
    <portType name="aaa">
        <operation name="bbb">
            <input message="tns:ccc"/>
        </operation>
    </portType>Compare that to a request-response invocation type:
    <portType name="aaa">
        <operation name="bbb">
            <input message="tns:ccc"/>
            <output message="tns:ddd"/>
        </operation>
    </portType>Let's look again out our example WSDL:
    <portType name="SelectService">
        <operation name="processRequestQuote">
            <input message="tns:RequestQuote_processRequestQuote"/>
        </operation>
    </portType>
    <portType name="SelectServiceCallback">
        <operation name="processRequestQuoteResponse">
            <input message="tns:RequestQuote_processRequestQuoteResponse"/>
        </operation>
    </portType>Here comes the good bit... Both portTypes have an <input> operation. But that's because they are both one-way invocation types, and there is no choice but use the <input> element -- that's the standard. You can't imply put <output> because there's no such thing in the standard. However we know that one of those is to actually return the result. That is, it's the output, even though it's labelled <input>.
Hopefully that's given you enough information now. Re-read my first post, above, and it should make more sense.
Incidentally, this is why you rarely see try asynchronous web services, because the caller has to also be a listener. And if you want to call a service, who wants to also have to write code to listen, to handle responses coming out of order, etc. This is one of the advantages of using an orchestration engine like Oracle BPEL Process Manager. The framework takes care of the hard work, and you can simply call an aysnchronous service and not have to worry about how to get the response back -- the engine does it for you.
Regards,
Robin.

Similar Messages

  • When I use yahoo images and i open an image in a new window, it tweakes out firefox so that panes are distorted and exerything, the whole firefox browser looks like an F5 tornado took it apart and lumped it on my desktop... is this a known glitch?

    When I use yahoo images and open an image in a new window, the page, once I click its tab causes the entire browser to scramble graphically, making it nearly impossible to navigate further. I right-clicked and selected close tab. That regains the visual clarity of the browser. But how can I fix this to browse the images?

    Phillipp,
    I tried it again using "save link as", and this time it actually worked! I just now downloaded several more using the "save link as" option, and it works perfectly. Thanks. Problem solved.
    Littleberry

  • I hit Forget Network and now cannot get back onto my wireless home network. All of my other computers and iphones are fine.  How do I get the network back?  It shows in my list of networks but when I use the password and try to join it says not connected.

    I hit Forget Network and now cannot get back onto my wireless home network. All of my other computers and iphones are fine.  How do I get the network back?  It shows in my list of networks but when I use the password and try to join it says not connected.

    See if the iPad will accept the password after you restart it. It's worth a try.
    Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    You could also try a reset as well.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.

  • When to use the Adapters and in which case

    Hi Experts,
                         I am little worried and searched the sdn, but i am not getting the proper answer for my question.
    My Question is when to use which adapter and at what stage?
    1. File      --> when to use it and in which case
    2. IDOC
    3. RFC
    4. SOAP
    5. XI
    6. HTTP
    And also where to use BPM and Proxies, when should we go for them.
    Please help me out. I Beg the answer from experts.
    Regards,
    Raj

    Hi,
    If an incoming or outgoing message is a file(.txt,.csv etc), we use a file adapter
    If the outgoing message is an IDOC, we need an IDOC adapter.same for RFC also.
    SOAP for incoming/outgoing webservices
    XI while using proxy scenarios
    HTTP- while you an HTTP request.
    BPM and Proxies is a vast topic.
    For Proxies http://help.sap.com/saphelp_nw04/helpdata/en/5d/112d20f6ce6c46ba66afb98d278fbd/frameset.htm
    and for BPM http://help.sap.com/saphelp_nw04/helpdata/en/5d/112d20f6ce6c46ba66afb98d278fbd/frameset.htm
    this will be useful.
    Regards,
    Tiny

  • When to use Apps adapter and DB adapter?

    Hi All,
    For invoking a PL/SQL API(either a custom or System API) in Oracle Applications from BPEL Process which is better to use?When to use Apps adapter and DB adapter?
    Thanks,
    ChitraDevi

    As Sen correctly states for the DB adapter you have to set the context manually using the fun_global.apps_initilize or Fnd_Client_Info.SET_ORG_CONTEXT. This is usually done in a wrapper procedure.
    I wouldn't say I'm an expert in this field as I have only used the APPS adapter for 11.5.10. I believe things have changed a bit for R12, but from my experience with APPS, things change very slow so although R12 is 10g App Server I'm sure the principles are the same.
    Sen is also correct saying that base tables are not accessible via the APPS adapter. Basically the apps adapter is there to expose services, base tables are not services.
    My recommendation would be different based on the experience of the developer(s). The APPS adapter simplifies the development but may not have the flexibility. The apps adapters sweet spot is those services that are difficult to integrate with, e.g. business services, xml gateway. If these are used heavily I would use the APPS adapter.
    What I personally do, even if I'm not using APPS, if I'm connecting to the database I will implement a function, stored procedure, or AQ. It is a little more hassle during deployment, but it treats it more like a service and you are not impacted if the tables change. This is not an endorsement for you to go down this path because it does have a requirement to have PL/SQL knowledge, and it breaks the notion of service abstraction from the DB.
    cheers
    James

  • Hi when i use treeMap class and if i exit the program

    hi
    hi when i use treeMap class and if i exit the program,
    what will happen? the information that i put in the treeMap will be disappear??
    if it is like that,,how am i able to retrieve my data...when i restart my program..
    once i put ID as key and put my customer information,
    in it, after exit my program,, and i can't find
    my customers by their ID,,,,,,,,,how can,,i solve it......

    what will happen? the information that i put in the
    treeMap will be disappear??Yes. Of course. If you want data to hang around you have to tell the computer. If you want anything to happen you have to tell the computer.
    if it is like that,,how am i able to retrieve my
    data...when i restart my program..Tada! Tell the computer. Your simplest option is to use Serialization.
    Before exiting your program, serialize your TreeMap to disk. After starting your program serialize your TreeMap from disk.
    First stop should be your text book to learn what Serialization is and how it works, then try to write some code, then ask us to help with any problems.
    Dave.

  • When we using overflow-x and overflow-y in tbody its not working properly. In the previous version i.e. 3.7.1 its working fine the same coding....Please help me.

    ''Duplicate post, continue here - [https://support.mozilla.com/en-US/questions/828024]''
    when we using overflow-x and overflow-y in tbody its not working properly. In the previous version i.e. 3.7.1 its working fine the same coding....Please help me.

    See:
    *https://developer.mozilla.org/en/Firefox_4_for_developers#Miscellaneous_DOM_changes
    *http://www.cssplay.co.uk/menu/tablescroll.html
    A good place to ask questions and advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.<br />
    The helpers at that forum are more knowledgeable about web development issues.<br />
    You need to register at the mozillaZine forum site in order to post at that forum.<br />
    See http://forums.mozillazine.org/viewforum.php?f=25

  • Firefox does not open with the tabs I had open when I use the quit and save function. Firefox opens with my home page only. how to fix?

    When I use the "Save and Quit" function it has no effect. The next time I open Firefox it goes to my home page only.
    == This happened ==
    Every time Firefox opened
    == 3 days ago

    This is not a solution, nor a work-around. The only thing this points out is where the problem lies. Settings are meant to be used in all sessions, barring exceptions and the fact that Firefox asks if you'd rather SAVE and then quit, makes it an exception. The user has elected to skip the clear browsing history step.
    However, if the settings are permanently changed as you suggest, then the history will always be remembered for eternity when Firefox is closed. You then have to manually clear your history first at every session before closing.
    Older versions of Firefox never behaved in such manner and recognized that the Save and Quit superseded the setting to Clear History.

  • TS3274 A rectangular or sqaure bubble appears when I use my ipad and I always have to tap it twice. Also when I tried to go to setting to restart it, it wont go down or up. What do I do?

    A rectangular or sqaure bubble appears when I use my ipad and I always have to tap it twice. Also when I tried to go to setting to restart it, it wont go down or up. What do I do?

    try pressing the home button 3 times.

  • When we use calculation script and when we use business rule

    when we use calculation script and when we use business rule can anyone please tell me

    Re the OP's question, here is an excellent introduction to Calculation Manager and business rules. It was the first hit when I googled "calculation manager hyperion".
    http://ranzal.wordpress.com/2010/06/11/oracle-hyperion-calc-manager-%E2%80%93-part-1/
    You can also go to odtug.com -- the Tech Resources section has a series of presentations on Calculation Manager, from beginner to intermediate.
    The added benefit with business rules are that you can use variables and runtime prompts. You can also link planning with business rules and pass information from a web form into a business rules.^^^Only with Planning. There are no runtime prompts with Essbase in 11.1.2.2 but I hear it is coming back in 11.1.2.3
    We can use Business Rule for all applications and it is GUI.^^^Doesn't have to be GUI-based. You can (depending on version) flip back and forth between GUI and script. I have not tried writing (nor can I actually think why you would want to do this) a Calc Mgr rule for multiple apps. Maybe you are thinking of a script object that can be called multiple times?
    To check whether a calc script is executed or not you have to use the Essbase application database log file (Plan1.LOG)^^^As business rules are, sooner or later, translated to BSO (and hey, ASO too and HFM and Fusion and HPCM and they can differ, a lot, so this is not always true) calc script language, you can always check in the application log to see what is run if Planning or BSO Essbase.
    Regards,
    Cameron Lackpour

  • When I use my iPhone and go into the iTunes  Store Search,  it clocks/gets-stuck in Loading.  Also if I select iTunes and App Store in Settings, nothing happens.  Any advice?  Thanks.

    When I use my iPhone and go into the iTunes Store Search, it clocks/gets-stuck in Loading.
    Also if I select iTunes and App Store in Settings, nothing happens.
    Any advice?
    Thanks.

    I guess no advice.  Thanks anyway.

  • Safari is stop and reopen suddenly, when I use double tap and input data on safari. Do you give me a solution?

    Safari is stop and reopen suddenly, when I use double tap and input data on safari. Do you give me a solution?

    Tap Settings > General > Reset > Reset All Settings
    Then restart the device.
    message edited by:  cs

  • When to use IN Queue and When to use OUT Queue

    The architecture that we have is Client publishes the EDI 272 data to FTPS Server. We have ESB configured to pick the EDI data from FTP location, construct the B2B Header message and send to B2B. The B2B translates the EDI raw data to EDI XML. BPEL reads the EDI XML data from B2B. I have doubt here in using the IP_IN_QUEUE and IP_OUT_QUEUE. As per my understanding, IP_IN_QUEUE is used for messages inbound to B2B and IP_OUT_QUEUE is used for messages going out of B2B. If this is correct, ESB module would publish to IP_IN_QUEUE and BPEL would pick from IP_OUT_QUEUE.
    I'm confused here because I read few examples in which the queues were used other way around.
    Kindly clarify whether the usage of IN and OUT queus are correct.
    Thanks,
    Mani

    HI Mani,
    When B2B receives an inbound message from trading partner, it will send to IP_IN_QUEUE.
    When Back application wants to send a message to B2B, Backend application has to send the message to IP_OUT_QUEUE. B2B picks up the message from IP_OUT_QUEUE and send it to trading partner.
    The above mentioned queues are shipped with the product. However, users can can create there own queues.
    Thanks and Reagrds,
    Prasanna

  • I've seen all the posts for fixing the wifi on the 4s, none of them work!  So, who can tell me why my iPhone 4S cannot find any wifi when it used to easily, and when it does it can never connect?

    I've seen all the posts for fixing the wifi on the 4s, none of them work!  So, who can tell me why my iPhone 4S cannot find any wifi when it used to find wifi, and when it does find a wifi network it can never connect?  You think apple would have a clue how to fix it!  Because turning the wifi on and off doesn't work, resorting network settings doesn't work, even restoring phone to factory default doesn't work...

    Did not work. I've selected iMessage to ON and left it. After a few hours I recieved a message "activation unsuccessful. Turn on iMessage to try again". This has been going on for the past 3 days.

  • When to use Flexible Update and when Direct update??

    Hi ,
        I know some situations when to load flexible update( transaction , flat file) and when to use direct update (only for master data).
    Can some one correct me  and tell what are all the possible situations for these 2 types of Update when loading Infosource?
    Thanks alot in advance.

    hi,
    The direct update methods used previously used DataSources for attributes and
    texts connected directly with master data tables and text tables for the InfoObject.
    In the flexible update, the master data and text tables now appear as data targets. T
    he flexible update is used to fill these data targets from master data and text
    InfoSources that were created for the InfoObjects listed above. This enables you to
    use update rules for the data targets (master data/text tables) in addition to the
    transfer rules already used.
    check these links for detail.
    http://help.sap.com/saphelp_nw04/helpdata/en/98/3a14836fe5e1499a4e17d2d45f4612/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/86/cade377806e664e10000009b38f842/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/41/56ba275e032f1ee10000000a114b54/frameset.htm
    http://help.sap.com/search/highlightContent.jsp
    Regards,
    Manoseelan

  • When to use RFC ,Idoc and proxies

    When to use the RFC,IDoc and proxies.
    What is the difference in using RFC,Idoc and proxies.
    I want the therotical explanation of it.
    I gone through some of the links.
    i want the explanation which is there in simple words
    and which is easily understand by the bigginers
    those dont know more about adapters.

    hi,
    You use all these three things when the sender or receiver for XI is R/3 system.
    You use proxy in sap 6.0 version or higher.
    you use that when you dont want to use an adapter.
    or very high volume of data has to be transfered.
    you go for rfc which can be synchronous as well as asynchronous
    http://help.sap.com/saphelp_nw04/helpdata/en/22/042a3e488911d189490000e829fbbd/frameset.htm
    refer for idoc:
    http://help.sap.com/saphelp_nw04/helpdata/en/dc/6b828943d711d1893e0000e8323c4f/frameset.htm
    regards,
    ujjwal kumar

Maybe you are looking for