How to join the results from 2 webservices using BPEL?Architecture question

Hi,
I am new to BPEL. BPEL process calls two webservices, which return complex results. I need to process the results from 2 webservices using BPEL .The result will be a complex xml, join/merge of previous results.
What is the best practice to do it with BPEL?
I see three ways:
1.To do the processing (join/ merge) inside the BPEL process itself and return complex xml.
2.Develop auxiliary webservice in java. Auxiliary webservice will do the processing (join/merge). Call this webservice from BPEL process.
3.Do a plain concatenation of the two XMLs in BPEL and forward it to the frontend. Frontend then will do all the logic on its side
Thanks,
Boris

you could process the XMLs one at a time, and use XSL transformations to process the payload to a target schema.
Activity 1:
output from webservice1 -> transform 1 -> partial XML (of target schema)
Activity 2:
output from webservice2 -> transform 2 -> completed XML (of target schema)
Regards,
Shanmu.

Similar Messages

  • How to join the result from one autocomplete textbox to many textboxes

    Hi,
    I have one textbox which run as autocomplete from SQL database as i write the customer name so i get all his information(such: phone, address, email, ...), And this file connected with master page. Now i want to get each record (phone, address, email, ...)
    data from this autocomplete textbox to many textboxs. What i can do?

    Hello,
    What you can't do is work off normal methods such as TextChanged as these events will not work simply because when AutoComplete is utilized TextChanged will fire twice, once for user enter data, once for suggestions. You could have the user press ENTER and
    get the text in the TextBox via KeyDown event of the TextBox. I have an example in
    the following article.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

  • Is it possible to have the result from webservices with oracle8i

    hi,
    i call webservices MS .net with package utl_http under oracle 8i.
    exemple:
    DECLARE
    x utl_http.html_pieces;
    msg varchar2(12);
    BEGIN
    x := utl_http.request_pieces('http://localhost/ServiceNotification/Notification.asmx/NotifT?messagetmp=' || msg);
    END;
    I don't know how to have a result from a webservices!
    thanks for helping me.

    While the following paper is Oracle9i DB specific, conceptually, what is done should work with Oracle8i.
    Bear in mind that the use of XMLType is specific to Oracle9i DB R2 so if you were to follow the example, you would have to use varchars and probably acept the result into the PL/SQL XML Parser. See:
    http://otn.oracle.com/tech/webservices/htdocs/samples/dbwebservice/DBWebServices.html
    Mike.

  • How to dispatch the result from test cases to the function that loads

    Hi ,
         I am currently working on writing a test case and i ant to execute the test case and the result of the test cases needs to be returned to function that loads the swf file using loader.
    Below is the structure
    1) Project A
             Has a action script file that has a loader which inturn loads the swf file.
    public function testRunner():void {
                loader = new Loader();
                loaderDispatcher = loader.contentLoaderInfo;         
                sharedEvents = loaderDispatcher.sharedEvents;
                parentURL = loaderDispatcher.loaderURL;
                parentDomain = URLUtil.getServerNameWithPort(parentURL);
                parentScheme = URLUtil.getProtocol(parentURL);
                load("http://localhost:8000/abc.swf");
        var callback:Function = addAsync(onMessage, 30000, {}, handleTimeout);
        sharedEvents.addEventListener("message", callback);
        /*Listener added to receive message event*/
        sharedEvents.addEventListener(MessageEvent.MESSAGE, onMessageEvent);
            private function load(location:String):void {
                // create SWF loader
                loaderDispatcher.addEventListener(Event.OPEN, onOpenEvent);
                loaderDispatcher.addEventListener(Event.INIT, onINIT);
                loaderDispatcher.addEventListener(HTTPStatusEvent.HTTP_STATUS, onStatus);
                loaderDispatcher.addEventListener(Event.COMPLETE, onComplete);
                loaderDispatcher.addEventListener(IOErrorEvent.IO_ERROR, onError);
                loaderDispatcher.addEventListener(Event.UNLOAD, onUnload);
                loaderDispatcher.addEventListener(Event.CLOSE, onClose);
                var request:URLRequest = new URLRequest(location);
        //request.idleTimeout = 8000;
        try{
    loader.load(request);
    _subMovie.addChild(loader);
           catch (error:Error)
                     trace("Unable to load URL: " + error);
                // listen for DISPATCH events
                sharedEvents = loader.contentLoaderInfo.sharedEvents;
        sharedEvents.addEventListener(DISPATCH_EVENT_TYPE, handleDispatch);
    2) Project B
          Project B has the test cases written and teh swf file for this project is abc.swf.
    test.mxml
    public function go():void {
    var core:FlexUnitCore = new FlexUnitCore();
    core.addListener(new TestCaseListener());
    core.run(ABCTest);
    var messageEvent:MessageEvent = new MessageEvent("message","action test","action testing");
    //loaderInfo.sharedEvents.dispatchEvent(messageEvent);
    When I load abc.swf file this inturn call the mxml file which runs the testcases by using the FlexUnitCore .
    What I am looking for is dispatching the result that is available in TestcaseListener to the call of loader ie; in Project A
    public class TestCaseListener extends RunListener  {
    public override function testRunFinished(result:Result):void {
    trace("testRunFinished invoked 1 ::");
    trace("failureCount::"+result.failureCount);
    trace("failures::"+result.failures);
    trace("successful::"+result.successful);
    Is there any way in which i can dispatch the result from testcaselistener to the call where this swf file is loaded .

    Hello Sue,
    I just tried to export to excel with the esdev extension and got java.lang.NumberFormatException. I found the workaround at Re: Windows Multi-language env, - how do I set English for application lang?
    open the file sqldeveloper\jdev\bin\sqldeveloper.conf and add the following two lines:
    AddVMOption -Duser.language=en
    AddVMOption -Duser.country=USyet now my date formats in excel are 'american-style' instead of german. For example 01-DEC-01 so excel does not recognize it as date and therefore I can not simply change the format.
    When export to excel will be native to 1.1 perhaps someone can have a look at this 'feature'
    Regards
    Marcus

  • How to export the result from executing sql statement to excel file ?

    HI all,
    Great with Oracle SQL Developer, but I have have a trouble as follwing :
    I want to export the result from executing sql statement to excel file . I do easily like that in TOAD ,
    anyone can help me to do that ? Thanks so much
    Sigmasvn

    Hello Sue,
    I just tried to export to excel with the esdev extension and got java.lang.NumberFormatException. I found the workaround at Re: Windows Multi-language env, - how do I set English for application lang?
    open the file sqldeveloper\jdev\bin\sqldeveloper.conf and add the following two lines:
    AddVMOption -Duser.language=en
    AddVMOption -Duser.country=USyet now my date formats in excel are 'american-style' instead of german. For example 01-DEC-01 so excel does not recognize it as date and therefore I can not simply change the format.
    When export to excel will be native to 1.1 perhaps someone can have a look at this 'feature'
    Regards
    Marcus

  • How to JOIN the results of multiple SELECT statements

    Hello,
    I currently have a table where each row represents a single census date for a given tag number, where each tag number can have multiple census dates and data which are represented by their own row in the table.
    I currently have 2 SELECT statements that select all tag numbers given a census date, and would like to combine those 2 queries so that the data is presented in a manner such that for each tag number, instead of obtaining 2 rows for each tag number, I would be presented with 1 row for each tag number consisting of three columns: tag_number, data1, and data2.
    Both of the requested dates are not necessarily present for all tag numbers, and in the event that only one date is present, the other column should contain null, but if both dates are not present for a given tag number, the tag number is omitted.
    The two queries I would like to JOIN are:
    SELECT a.tag_number, a.data AS data1
    FROM tab1 a
    WHERE
    a.census_date='11/21/2009'and
    SELECT b.tag_number, b.data AS data2
    FROM tab2 b
    WHERE
    b.census_date='11/24/2009'The table from which I am selecting the data looks like such:
    tag_number  census_date     data
        1       11/21/2009      10
        1       11/23/2009      11
        1       11/24/2009      12
        2       11/19/2009      13
        2       11/21/2009      14And the data that I would like to result looks like:
    tag_number  data1           data2
        1       10              12
        2       14              nullAny help would be greatly appreciated.
    Thank you in advance,
    -Justin
    Edited by: m8r-qbkka9 on Nov 24, 2009 4:17 PM

    Hi,
    This looks like a job for pivot
    SELECT       a.tag_number
    ,       MAX (CASE  WHEN a.census_date = TO_DATE ('11/21/2009'
                                                       'MM/DD/YYYY'
                   THEN a.data
                END
               )          AS data1
    ,       MAX (CASE  WHEN a.census_date = TO_DATE ('11/24/2009'
                                                       'MM/DD/YYYY'
                   THEN a.data
                END
               )          AS data2
    FROM      tab1    a
    WHERE       a.census_date  IN ( TO_DATE ( '11/21/2009'
                                      , 'MM/DD/YYYY'
                       , TO_DATE ( '11/21/2009'
                                      , 'MM/DD/YYYY'
    GROUP BY  a.tag_number
    ;Comparing DATEs to stirngs, like '11/24/2009', is simply asking for trouble.
    Always use a conversion function (like TO_DATE) or DATE literals instead.

  • How to tokenize the result from a query

    Hi,
    I need some help in writing a query or stored procedure for the following scenario
    select rname from emp where username='user200';
    This query will return the result,as comma separated,in the format r100,r101,r102
    Now,I have to write another query using the above result like below
    select place from loc where rname in ('r100','r101','r102');
    Basically,I need to break the string 'r100,r101,r102' into 3 tokens.Can someone help me write a stored procedure or query for this?
    Thanks
    Ravi.

    Ravi, Try this.
    CREATE OR REPLACE procedure str_token
    is
    input_buffer varchar2(100);
    var1 varchar2(10);
    var2 varchar2(10);
    var3 varchar2(10);
    n1 number(4);
    n2 number(4);
    n3 number(4);
    cursor c1 is
    select place from loc1 where rname in (var1,var2,var3);
    begin
    select rname into input_buffer from emp1 where username='user200';
    n1 := instr(input_buffer,',',1,1);
    n2 := instr(input_buffer,',',1,2);
    n3 := length(input_buffer) + 1 ;
    select
    substr(input_buffer,1,n1-1),
    substr(input_buffer,n1+1,n2-n1-1),
    substr(input_buffer,n2+1,n3-n2-1)
    into var1, var2, var3
    from dual;
    for i in c1
    loop
    dbms_output.put_line('place:'||i.place);
    end loop;
    end;
    Regs,
    Karthik

  • How to extract the number from image using java

    Hello every one
    i want to develope a project which can extract the number from image
    that i can use as inter or String or char.
    Is there any API in java which provide this type of facility.
    right now i m using java 5
    thanks in Advance
    Jignesh

    In my project i have a image in that i have a
    co-ordinate (x,y) I am still puzzled as to what you seek. It sounds to me like you have a point (x, y) represented by p. in java it's just p.getX() p.getY()
    i want to convert that cordinate to numeric form,
    i mena i want to use that cordinate in somewhere else
    in project.point.getX() point.getY()
    So need to convert it into numeric form u can called
    it OCR also.OCR is optical character recognition. If I want out and took a picture of the US Declaration of Independence and then wanted the words on the parchement in the picture in text form, then I would run the picture through a software program and it would try to optically recognise what lettering and number were present in the picture. In the end, I would have a text of what is written on the US Declaration of Independence.
    Is that what you want?

  • How to return the result ( fields ) form using the BDC in background mode ?

    hi,
    I am now having to develop a sub routines for executing the transaction COR1 using BDC ( transaction SHDB ) , in the FORM i pass the 4 params for the fields of the screens of the transaction ( COR1 is used for creating the process order ) , and at last i have to take the number of the process order that has been created by the transaction , how can i do that , if we can no , in which table it is contained ( AUFNR ) ?  .
    In fact , i use the CALL TRANSACTION 'COR1' USING BDCDATA......
    so , if you please to help me resolve this problem ( it is really urgent )...
    Thank you so much .

    Thank you so much for your reply , I think that it would be very useful to me .
    Hi Vijay Sai  , i have used the itab TYPE BDCMSGCOLL for calling the transaction but just for taking the error messages , so as you say , it contains all the values of the fields including AUFNR ( which i need to get the its value after creating with COR1 ) .......if it is right , we  just need to access the new value by using the query at the internal table just like :
    LOOP AT itab INTO wa.
    if wa-fname = 'AUFNR' .
    res = ws-fval .
    ENDIF.
    Is that right  ?

  • How to get the result from graph  based on table prompt?

    I have one report in which I am having one table and three Graphs. I have added table prompt for one column i.e department. In that I have given three values. The values of my table changes as per the table prompt. But my requirement is my graphs should show me the result as per the selection of departments in table prompt. Please give me the solution for the same.

    Hi,
    Create a event channel the table view and refer the same channel name in the graph properties.
    Edit Graph --> Edit properties --> Enable Master-Details Events --> Give the channel name.
    It will work for the selection of table .
    Mark if helps.
    Raja Mohamed

  • How to pass the data in jsp using bpel

    Hi,
    Please find the below requirement.
    i need to call jsp post method service using hidden variable i need to pass the input and authentication parameters.
    1. I am using SOA suite 11g and jdev11g
    2. I created a BPEL process and call java wrapper service in that service isent thorugh the post(but here i am trying to it should open al JSP page)
    3. For that JSP page i need to send xml as string and creadentials also as hidden variables.
    4. once i send the request it should open the target system UI page the user will do modifications in target system
    5. The rest of the process is taken care by the target system.
    Please suggest me any other alternatives.
    Note:- here the jsp action is method post . I tried to write a java code to send the request but i am not able to show the response in browser
    Regards,
    Sri.

    Hi vladodias,
    Thanks for the response.
    So i approached the concept calling ADF as a service interface through bpel. from ADF i will call JSP
    But in ADF i am not able to set context. Steps had followed to create Service Interface
    1. created allicaton as a FusionWebApplication(ADF)
    2. created model project and selected adfbusiness components, java
    3. created viewcontroller project and selected ADFFaces,ADFPageFLOW,HTML,JSF,java,xml and jsp servlets
    4. In model i created a applicationmodule and in that i write custommethod validate(String un,String pwd,String input)
    5. in validate method i am calling back bean
    6. In backing bean java class i am trying to access the validate method variables using context but i am not able to set any Faces context.
    Note: here i converted Application module class as a service interface in that i exposed custom Method validate(String un,String pwd,String input)
    Regards,
    Sri.

  • How to get the callback from an asynchronous BPEL?

    Hi, I have deployed an asynchronous BPEL on Oracle Application Server as a Web Service. The BPEL is named CreditRatingBPEL. The input is a social security number (Ssn) and the output is a credit rating.
    Now I have some troubles in consuming BPEL with Axis1.4. I have generated the client stubs by WSDL2Java tools. I have initiated the asynchronous BPEL successfully. Now I want to get the callback from the BPEL, but I don't know how to do it.Here are some Java snippets:
    public static void main(String[] args) throws ServiceException, RemoteException {
    // TODO Auto-generated method stub
    CreditRatingBPEL_Service service = new CreditRatingBPEL_ServiceLocator();
    CreditRatingBPEL_PortType requestPortType = service.getCreditRatingBPELPort();
    CreditRatingBPELProcessRequest request = new CreditRatingBPELProcessRequest();
    request.setSsn("31060931");
    // asynchronous invoke
    requestPortType.initiate(request);
    // how can I get the callback from the web service?
    I will be very appreciated if you can give me some suggestions. Best regards!

    Checkout following link -
    http://www.sapfans.com/sapfans/forum/intface/messages/4289.html
    Cheers
    Sanjeev

  • How to processing the results from the select statement in SQL query?

    Hi
    This might be too simple, but my knowledge of the SQL is very limited...
    I have table where I do have details from calls (Lync QoE).
    I can take all calls from the table, but I would like to count the concurrent calls on the table. This is how I got it work on the Excel to work (but I would like to do that on the SQL statement to get it more dynamic use):
    Table have these line and this is what I get out from the Select):
    [callid],[start],[end]
    1ABC,1.1.2014 01:00:15, 1.1.2014 01:01:00
    5DEF,1.1.2014 01:00:45, 1.1.2014 01:05:00
    FDE2,1.1.2014 01:03:15, 1.1.2014 01:04:00
    KDJ8,1.1.2014 01:04:15, 1.1.2014 01:06:00
    FDJ8,2.1.2014 01:04:15, 2.1.2014 01:06:00
    KDSE,3.1.2014 01:04:15, 3.1.2014 01:06:00
    The information I would like to get, is what is the maximum amount of the concurrent calls per day.
    On the excel I basically count line by line how many concurrent calls each line have had, and then pickup the highest one. On above example the calls 5DEF, FDE2 and FDE2 have been active at the same time which gives 3 for the first day.
    The table is ordered by the start. So let say the code is on the third line (FDE2). I need to count calls from before which end time is after the start time (of FDE2), but also I need to count calls after (FDE2) which are started before the current
    call has ended.
    Petri

    Unfortunately your post is off topic as it's not specific to SQL Server Samples and Community Projects.  
    This is a standard response I’ve written in advance to help the many people who post their question in this forum in error, but please don’t ignore it.  The links I provide below will help you determine the right forum to ask your question in.
    For technical issues with Microsoft products that you would run into as an end user, please visit the Microsoft Answers forum ( http://answers.microsoft.com ) which has sections for Windows, Hotmail,
    Office, IE, and other products.
    For Technical issues with Microsoft products that you might have as an IT professional (like technical installation issues, or other IT issues), please head to the TechNet Discussion forums at http://social.technet.microsoft.com/forums/en-us, and
    search for your product name.
    For issues with products you might have as a Developer (like how to talk to APIs, what version of software do what, or other developer issues), please head to the MSDN discussion forums at http://social.msdn.microsoft.com/forums/en-us, and
    search for your product or issue.
    If you’re asking a question particularly about one of the Microsoft Dynamics products, a great place to start is here: http://community.dynamics.com/
    If you think your issue is related to SQL Server Samples and Community Projects and I've flagged it as Off-topic, I apologise.  Please repost your question and include as much detail as possible about your problem so that someone can assist you further. 
    If you really have no idea where to post your question please visit the Where is the forum for…? forum http://social.msdn.microsoft.com/forums/en-us/whatforum/
    When you see answers and helpful posts, please click Vote As Helpful,
    Propose As Answer, and/or Mark As Answer
    Jeff Wharton
    MSysDev (C.Sturt), MDbDsgnMgt (C.Sturt), MCT, MCPD, MCSD, MCSA, MCITP, MCDBA
    Blog: Mr. Wharty's Ramblings
    Twitter: @Mr_Wharty
    MC ID:
    Microsoft Transcript

  • How to Uninstall the MIDlet from mobile using J2Me

    hi all,
    I have a preinstaller MIDlet that will checks the mobile configuration and downloads the original application from my server. After downloading the original application I want to delete the preinstaller MIDlet from my mobile.
    Is it Possible?
    Please give me some idea..

    One way is you have the same application for preinstaller and original,
    preinstaller will be a dummy with no data jad entries should be same other
    than version and recordstores if any ,
    so user can update the same application you can use platformRequest
    read docs
    If the URL specified refers to a MIDlet suite (either an Application Descriptor or a JAR file), the application handling the request MUST interpret it as a request to install the named package. In this case, the platform's normal MIDlet suite installation process SHOULD be used, and the user MUST be allowed to control the process (including cancelling the download and/or installation). If the MIDlet suite being installed is an update of the currently running MIDlet suite, the platform MUST first stop the currently running MIDlet suite before performing the update. On some platforms, the currently running MIDlet suite MAY need to be stopped before any installations can occur.

  • How to sum the result from 2 different queries?

    Hi ,
    I would like to add the reslut of the below queries and insert into the status_count column of the temp table called edr_status_by_report_data.
    How could I do that ?
    SELECT         
              COUNT(status_code)
        FROM (SELECT site_id,
                     site_lane_id,
                    (SELECT NVL(MAX(interval_start_date_time), date_time)
                       FROM edr_rpt_tmp_grouping_table
                      WHERE interval_start_date_time <= date_time) bin_start_date_time,
                            TO_NUMBER(TO_CHAR(date_time, 'hh24')) period,
                            vehicle_status  status_code
                       FROM edr_status_by_veh_data
                      WHERE vehicle_error_count = 0                         
                        AND vehicle_status > 0                   
             ) vehicles
    SELECT         
              COUNT(status_code)
        FROM (SELECT site_id,
                     site_lane_id,
                    (SELECT NVL(MAX(interval_start_date_time), date_time)
                       FROM edr_rpt_tmp_grouping_table
                      WHERE interval_start_date_time <= date_time) bin_start_date_time,
                            TO_NUMBER(TO_CHAR(date_time, 'hh24')) period,
                            vehicle_status  status_code
                       FROM edr_status_by_veh_data
                      WHERE vehicle_error_count = 0                         
                        AND vehicle_status = 0                   
             ) vehicles
          ;              

    That just becomes:
    SELECT count(*)
    FROM   (SELECT site_id,
                   site_lane_id,
                   (SELECT NVL(MAX(interval_start_date_time), date_time)
                    FROM   edr_rpt_tmp_grouping_table
                    WHERE  interval_start_date_time <= date_time) bin_start_date_time,
                   TO_NUMBER(TO_CHAR(date_time, 'hh24')) period,
                   vehicle_status status_code
            FROM   edr_status_by_veh_data
            WHERE  vehicle_error_count = 0
            AND    vehicle_status >= 0);Or, if you needed to have both columns separately for some other purpose, you could still get them in one query:
    SELECT COUNT(CASE WHEN status_code > 0 THEN 1) count_gt_zero,
           COUNT(CASE WHEN status_code = 0 THEN 1) count_zero,
           COUNT(CASE WHEN status_code > 0 THEN 1)
             + COUNT(CASE WHEN status_code = 0 THEN 1) total
    FROM   (SELECT site_id,
                   site_lane_id,
                   (SELECT NVL(MAX(interval_start_date_time), date_time)
                    FROM   edr_rpt_tmp_grouping_table
                    WHERE  interval_start_date_time <= date_time) bin_start_date_time,
                   TO_NUMBER(TO_CHAR(date_time, 'hh24')) period,
                   vehicle_status status_code
            FROM   edr_status_by_veh_data
            WHERE  vehicle_error_count = 0
            AND    vehicle_status >= 0);

Maybe you are looking for

  • Keyboard and trackpad unresponsive on Late 2013 15" MBP Retina w/ Nvidia graphics

    I just got my a new 15" retina MacBook Pro and am experiencing trackpad and keyboad unresponsiveness. The issue doesn't resolve itself with a restart. I can unblock myself by doing an SMC reset (http://support.apple.com/kb/HT3964?viewlocale=en_US&loc

  • Preview pictures not displaying after BTV+ Update

    My BT Vision + box got its update last week and it seemed fine for a few days but it has now started to do something really annoying.  When I go to browse On Demand content the preview pictures remain blank, I can move to them and see what they are b

  • How to check the tran code for specific activity.

    Hello friends , could you please let me know how to check the tran code for specific activity . AS in table , i can check , what transaction does what ? But now i need to check the transaction for specific activity . E.g , For Administrator workbench

  • Error Re-installing photoshop and premiere elements 9?

    Hi, I have problems reibstalling my photoshop and premiere. The serial numbers work. It starts to upload properly. Then when its almost finished an install wizard error message flashes up. Can u help please? I just tried talking to rahul and kashul i

  • SAP XI STANDARD CONTENT

    Hi gurus, Any expanation on this? Regards Sreeni