BPEL and DbAdapter

Hello,
I am using BPEL and DbAdapter to insert a row into a table. Say, TABLE A with (ID NUMBER, NAME VARCHAR2(20).
I would like to use "Perform an Operation on a Table" and use native sequencing for ID.
Is there a way to return the ID value within a single invoke to DbAdapter?
Thanks,
Edmund

You can request a copy of a complete tutorial that showcases the DB adapter executing a SQL Server stored procedure in a BPEL process.
[Link to internal Oracle Web Site removed. Contact product management if you'd like a copy of the tutorial.]
Ask for "Adapter Tutorial 31 Integration with MS SQL Server Stored Procedure using DB Adapter" which is a ZIP of a complete tutorial.
The ZIP contains a command-line script (.bat file) that can be used to generate the BPEL artifacts. It's fairly straightforward. Read the PDF first.

Similar Messages

  • BPEL and RESTful WS

    Does BPEL and Oracle AS support requesting a RESTful WS in a BPEL Process? If it is supported, which Service component (from jDev's Components Palette) can I use to request a RESTful WS?
    Also, what is the "best" practice used in a BPEL Process to compare row of data returned from a WS to row of data in a database table? I was thinking about using an embedded Java that compares data returned from the WS and DBAdapter requests. Is this necessary?
    Thanks in advance!

    Hi,
    I haven't worked much on RESTful WS, but they are usually like HTTP GET/POST method, and in that case you can leverage http binding (702.Bindings\HTTPBinding). You can marshal the return xml string in XML object.
    Other way can be developing generic proxy service for calling RESTFul service is not very bad idea and exposing it is normal soap service.
    HTH
    Chintan

  • Passing value from ADF to BPEL, and to PL/SQL  procedure

    1. I have created BPEL which take 2 inputs and concatenate them.
    2. have created a PL/SQL procedure for invoking this BPEL( working fine).
    Now i need to create a simple ADF page which contain 2 text box, 2 for input and 1 for result(concatenate), this will take 2 inputs and send them into BPEL, this will invoke the BPEL process and perform the necessary concatenate function...
    in addition to this, i am passing code into PL/SQL procedure ...
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body xmlns:ns1="http://xmlns.oracle.com/OrderImportDemo">
    <ns1:InputRequest>
    <ns1:FirstName>abcdef</ns1:FirstName>
    <ns1:LastName>aaaaaa</ns1:LastName>
    </ns1:InputRequest>
    </soap:Body>
    </soap:Envelope>';
    this code will take vaule from BPEL and run properly.
    can you please help me,

    thanks for help, but the problem is diff.
    i don't have any schema, what i want i need to create a adf page that will contain 3 tent field, 2 for input and 1 for output. when i will enter 2 input field and click on ok button, this will invoke BPEL, BPEL will take these 2 inputs and do the concat on this and send back to adf with result.

  • Passing value from ADF to BPEL, and to PL/SQL

    1. I have created BPEL which take 2 inputs and concatenate them.
    2. have created a PL/SQL procedure for invoking this BPEL( working fine).
    Now i need to create a simple ADF page which contain 2 text box, 2 for input and 1 for result(concatenate), this will take 2 inputs and send them into BPEL, this will invoke the BPEL process and perform the necessary concatenate function...
    in addition to this, i am passing code into PL/SQL procedure ...
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body xmlns:ns1="http://xmlns.oracle.com/OrderImportDemo">
    <ns1:InputRequest>
    *<ns1:FirstName>abcdef</ns1:FirstName>*
    *<ns1:LastName>aaaaaa</ns1:LastName>*
    </ns1:InputRequest>
    </soap:Body>
    </soap:Envelope>';
    this code will take vaule from BPEL and run properly.
    can you please help me,

    Three simple steps you need to do :
    1) Generate proxy for your bpel process in Jdeveloper.
    2)Create simple ADF page with 2 input for taking value and a input for showing the result and one command button.
    3) In backing bean on command button action, get value from two inputs, pass the in the proxy service and update the the the third input with the result of service.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How To : Call External Webservice from BPEL and pass SOAP Message to the WS

    Hello All-
    Greetings to all BPEL gurus. I am currently facing difficulties in calling an External Webservice from my BPEL Process and passing SOAP Message to it. The details are below:
    <strong>1. The BPEL process, using database polling feature of DB Adapter, will get the records from the database.</strong>
    <strong>2. Transform the message</strong>
    <strong>3. Call the External Webservice and pass the transformed message as the input to it. However the Webservice expects the BPEL process to send SOAP headers in the input message.</strong>
    I am struggling on how to put the transformed message within a SOAP envelope in the BPEL process.
    If anyone had similar requirements and have successfully been able to send SOAP messages from BPEL process to an external webservice, kindly let me know.
    Also if there is some kind of documentation or any link in the forum that I can refer, please let me know that as well.
    I am new to Webservice integration using BPEL and would really appreciate your help.
    Thanks In Advance
    Regards,
    Dibya

    Hi Dharmendra,
    I am trying to send a SOAP message from my BPEL process to a web service. I have a complete SOAP message in a complex variable defined in the wsdl for the partnerlink (web service). My problem is that when I invoke the partnerlink it fails even though the content shown in the BPEL console looks valid.
    I have set up obtunnel to see what I am actually sending out from BPEL. You mention that BPEL creates the SOAP envelope automatically.
    I think that my problem is a result of this automatic SOAP envelope that BPEL is creating. Do you know if there is a way to turn it off?
    This is what I see in the TCP monitor, please note the double SOAP env:Body:
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <env:Body> <RCMR_IN000002NR01 xmlns="urn:hl7-org:v3" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
    <env:Header>
    <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://testhost/CCS/Service_Endpoint</wsa:To>
    <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
    <wsa:Address>http://localhost/CCS/Service_Endpoint</wsa:Address>
    <wsa:Metadata>
    <device xmlns:hl7="urn:hl7-org:v3">
    </device>
    </wsa:Metadata>
    </env:Header>
    <env:Body>
    <RCMR_IN000002NR01>
    </RCMR_IN000002NR01>
    </env:Body>
    </RCMR_IN000002NR01>
    </env:Body>
    </env:Envelope>
    Any help is appreciated.
    Regards,
    Aagaard
    Edited by: Aagaard on Oct 30, 2008 8:59 PM
    Should have mentioned. I am using BPEL 10.1.3.4
    Edited by: Aagaard on Oct 31, 2008 8:43 AM
    I have opened a new thread for this question so as to not confuse the issue more than necessary.
    How many SOAP envelopes do you really need?

  • Trying to add new elemwent to BPEL, and it is now having binding error

    I have a BPEL service that calls a PL SQL procedure. I have added a new element to the BPEL called quote_cart_line.
    All I had to the BPEL to accomplish this was edit 3 files -
    Async_Invoke_Import_Model.xsd (Source)
    <element name="orig_sys_line_ref" type="integer" minOccurs="1" nillable="true"/>
           <element name="quote_cart_line" minOccurs="1" nillable="true" type="integer"/>
          </sequence>
    .....APPS_NI_MODEL_IMPORT_UTIL_IMPORT_SELECTIONS.xsd (Target)
    <element name="ORIG_SYS_LINE_REF" type="decimal" db:type="NUMBER" minOccurs="0" nillable="true"/>
             <element name="QUOTE_CART_LINE" type="decimal" db:type="NUMBER" minOccurs="0" nillable="true"/>
          </sequence>
    .....Transform_NIE_Inputs.xsl (Transforming from Source to Target)
    <ns1:orig_sys_line_ref>
              <xsl:value-of select="/ns1:Async_Invoke_Import_ModelProcessRequest/ns1:import_line/ns1:orig_sys_line_ref"/>
            </ns1:orig_sys_line_ref>
            <ns1:quote_cart_line>
              <xsl:value-of select="/ns1:Async_Invoke_Import_ModelProcessRequest/ns1:import_line/ns1:quote_cart_line"/>
            </ns1:quote_cart_line>
          </ns1:import_line>
    .....I have done this to two other BPELs and they work fine. (1st BPEL calls the second BPEL passing this new element, which then passes it to this BPEL I am having trouble with, which then should be binding it to a PL SQL type)
    So this BPEL calls a PL SQL procedure, binding the elements from the BPEL to a PL SQL type (ni_model_import_line). So I edited the PL SQL type to accept this new parameter:
    orig_sys_header_ref       NUMBER,
           quote_cart_line           NUMBER,
           CONSTRUCTOR FUNCTION ni_model_import_line(p_part_number                IN VARCHAR2,
    MEMBER PROCEDURE add_orig_sys_header_ref(p_org_sys_header_ref          IN NUMBER),
           MEMBER PROCEDURE add_quote_cart_line(p_quote_cart_line                 IN NUMBER)
    MEMBER PROCEDURE add_quote_cart_line(p_quote_cart_line                 IN NUMBER) IS
    BEGIN
       quote_cart_line := p_quote_cart_line;
    END add_quote_cart_line;
    END;
    .....I invoke all of this, and the new element gets populated in 3 different BPELs, including this one I explained here. But when it comes time to call the PL SQL I am now getting an error:
    <fault>
    -<bpelFault>
    <faultType>0</faultType>
    -<bindingFault xmlns="http://schemas.oracle.com/bpel/extension">
    -<part name="summary">
    <summary>
    Exception occured when binding was invoked.
    Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'nie_import_2' failed due to: Interaction processing error.
    Error while processing the execution of the APPS.NI_MODEL_IMPORT_UTIL.IMPORT_SELECTIONS API interaction.
    An error occurred while processing the interaction for invoking the APPS.NI_MODEL_IMPORT_UTIL.IMPORT_SELECTIONS API. Cause: java.lang.NullPointerException
    The invoked JCA adapter raised a resource exception.
    Please examine the above error message carefully to determine a resolution.
    </summary>
    </part>
    -<part name="detail">
    <detail>null</detail>
    </part>
    -<part name="code">
    <code>null</code>
    </part>
    </bindingFault>
    </bpelFault>
    </fault>This doesnt happen if I remove the references to this new element and try again, so it obviously is a problem with the element, but I have no idea what it is. It works fine when going from BPEL to BPEL, but as soon as the process tries to call the PL SQL procedure this happens. It is even more frustrating because I have done this exactly before adding another element, and it worked fine...
    Any ideas or tips please?
    Edited by: 849655 on Aug 9, 2011 2:35 PM
    Edited by: 849655 on Aug 9, 2011 2:36 PM

    So is there any further info I can provide or anything like that? I am still no closer to solving this it appears...
    This makes no sense to me. I have edited these BPELs in this manner twice before and never had problems.
    I have 3 bpels. I added the new element to each of them.
    BPEL1 - calls some PL SQL and also passess the elements to the next BPEL (BPEL2)
    BPEL2 - passes the elements to BPEL 3
    BPEL3 - Calls PL SQL in exactly the same way as BPEL1
    however, where BPEL 1 is functioning fine, BPEL3 is resulting in the error above. So frustrating, because BPEL3 works exactly like BPEL1, there is no reason it shouldn't be working. The elements are the same order as the PL SQL type and procedure it is mapping to, so that isn't the problem
    Edited by: 849655 on Aug 11, 2011 7:51 AM

  • Performance tuning in BPEL and ESB

    Hi,
    Any one can tell me how to do Performance tuning in BPEL and ESB.
    How to create WEB SERVICES in BPEL

    Hi',
    Performance tuning in BPEL and ESB.
    ***This is very big topic I can give you 2 points here
    In BPEL we should avoid the use of duplicate variable, the best way to do this is, when ever we are creating a new variable
    we need to ask can we reuse variable from inside the process, example when creating the input/output variable in Invoke activity
    we need to check if we can use some existing variable instead of creating new.
    All the DB related operation should be performed in 1 single composite.
    How to create WEB SERVICES in BPEL
    Not sure what you want to ask here, as BPEL is itself a webservice.
    -Yatan

  • Purchase Order to Purchase Order using BPEL and/or XML Gateway

    Hi,
    Is there a way to do create a duplicate Purchase Order in another instance using BPEL and/or XML Gateway? We're looking to do A2A transactions, namely duplicating data from one instance to another (of course the functional setups would have to be the same). Thanks!!

    this is the perfect usace for the upcoming ESB (shuffling data with transforming from A to B) - but this can be done with BPEL too .. there are some solutions to this
    1) on a database level (db to db)
    2) having events setup'ed in the master instance, that fire a process that get's the data
    3) and then using the functions from iRep
    hth clemens

  • What is the main difference between BPEL and ESB

    Hi all,
    I am making use ESB in my application .Where the my client application calls ESB and inturn the ESB calls the BPEL process .
    I want to know the differences between BPEL and ESB,I came to know that ESB can do messaging and routing ,where my BPEL process can also do the same thing .
    I came to know form a vendor that ESB is used for connecting to multiple end points ,where as my BPEL process can also do this.
    SO what is main purpose of using ESB ?
    Cheers,
    Kalyan.
    Message was edited by:
    patti

    Hi,
    Look for the blog entry dated 1st october 2007.
    URL:
    http://abhishek-soablog.blogspot.com
    Cheers,
    Abhi...

  • Forcing HTTP comm between BPEL and ESB

    Hi all,
    for demo purposes, I'd like to disable the internal and non-HTTP communication between BPEL and ESB when both are deployed on same OC4J container.
    I do not want to modify any WSDL but, if possible, disable somehow such internal communication. AFAIK, there was a property named "optSoapShortcut" in 10.1.2 but it no longer exists in 10.1.3.
    Any clues?
    TIA

    Hi.
    Sometime ago I tried to work with a BPEL property named preferredBindings, but it didn't work at all.
    WSM Gateway is bypassed when WSDL has SOAP and JCA binding. How to choose??
    I don't know if I came across a bug, but in theory I believe this is something like this:
    To indicate you want ESB binding:
    <property name="preferredBindings">http://www.oracle.com/esb/</property>
    To indicate you want SOAP binding (I'm not sure):
    <property name="preferredBindings">http://schemas.xmlsoap.org/wsdl/soap/</property>
    Please let me know about your results.
    Regards.
    Denis

  • Way to protect my bpel and esb jar (SOA 10g)  from reverse engineering?

    Hi All
    We would be sharing our BPEL and ESB jars with some other company for deployment? Is there a way to protect them so that they are not able to peak into the contents of the jar?
    If I extract the jar file, i can see all my XSD, WSDL, XSL, BPEL and ESB files as it is (the same as in JDEV)?
    is there a way to protect them? Please help its urgent!

    The use of a Trusted Platform Module (TPM) is a viable and extremely cost-effective alternative to the HSM, if the encryption and key-management application is designed properly. This is the approach we took when storing encrypted data and encrypted-keys within a database for our key-,management system. However, when using cryptographic hardware modules in your solution (that also meet regulatory requirements for split-knowledge and multiple key-custodians), your design for the solution must be carefully thought out to ensure that the implementation is reasonably secure and that it meets regulatory requirements. Storing an unencrypted key (or password that decrypts a PBE-based key) anywhere on a disk is an invitation for disaster.

  • Set polling time with BPEL and ESB File Adapters

    We have create file adapters in BPEL and ESB. We see where you can set the frequency for polling but do not see a place to set the polling time. We would like it to check a directory every 24 hours at midnight. We can set the 24 hours but not the midnight. How does ESB and BPEL determine the time to run based upon the interval?

    Oracle SOA is started, from the time the adapter is loaded, the interval counting starts. It is not on a particular time.
    If you want to start a BPEL process on a certain time, you could use the quartz timer fucntionality of BPEL to start an instance on a particular time (like unix cron tab).
    Marc

  • Deployment of BPEL (and ESB) into Clustered Environment

    Hi All,
    I was after any view points / pointers into peoples experiences into deployment of BPEL and ESB into a clustered Oracle iAS SOA suite environment, where there are two or more nodes running BPEL, ESB etc with a corresponding OHS Loan Balancers. I have been unable to find any specific information with regards to recommendations into the best ways to deploy into a clustered environment.
    My viewpoints are there are two alternative approaches that could be used, both of which use ANT deployment scripts to register / deploy the various services.
    (1) Leaving all nodes up in the cluster and using a properties file to specify the relevant details, deploy to one environment allowing the load balancer to distribute the software to the respective nodes in the cluster
    (2) Deploy to each of the nodes in turn ensuring all other nodes in the cluster are taken down during each separate deployment
    What are other peoples thoughts / experiences / recommendations?
    Thanks in Advance
    Dave

    I don't believe there is any real information on deployments in a cluster in those documents.
    There is a note on metalink 457654.1 which says to apply to each node, while doing this shut down the other servers. From experience this worked for some configuration and not others.
    Can you say what cluster deployment you used, e.g. 10.1.3.1 or 10.1.3.3 with BPEL and ESB-RT in the same oc4j?
    Also what version are you on. If you are on 10.1.3.4 using the 10.1.3.3 deployment configuration you don't need to shutdown the nodes. And you can get away with just deploying to one node but make sure your <ORACLE_HOME>/bpel/system/config/collaxa-config.xml file has been set to cluster = true. Look at metalink note 746251.1.
    You can experience the notorious Process Lock Timeout Error when not shutdown cleanly but this is resolved using the best practice guide http://www.oracle.com/technology/tech/soa/soa-suite-best-practices/soa_best_practices_1013x_drop1.pdf
    ESB can be applied to just one node.
    Make sure that all your endpoints are pointing to the load balancer and not the actual node themselves.
    Also you connect string is different in your build.properties make sure of the following
    cluster = true
    oc4jinstancename = default_group
    local.oc4jinstancename = oc4j_soa (or the oc4j container with BPEL)
    esb
    deployer.uri=deployer:cluster:opmn://hostname:opmn port/default_group
    cheers
    James

  • I want Bpel and ESB process PDF

    Hi all,
    This is navin, I new to SOA BPEL and ESB, so could you plz provice any pdf's links to me..
    Thanks in Advance,
    Navin

    Hi Navin,
    SOA 11g documentation is here:
    http://download.oracle.com/docs/cd/E17904_01/ipu.htm
    You can easily find there links to PDF version.
    E.g. BPEL pdf is here
    http://download.oracle.com/docs/cd/E17904_01/integration.1111/e10224.pdf
    10g version is here:
    http://www.oracle.com/technetwork/documentation/appserver1013-101821.html
    Regards,
    Milan

  • Purging BPEL and ESB: Schedule or age based

    Hi
    We all know that it's easy to purge all instances in BPEL and in ESB we can manually purge everything older than a certain age etc.
    But, how can we automate this process? I would like ESB and BPEL to automatically purge everything complete, that is older than x days.
    Has anyone worked out a way of doing this?
    Cheers
    Chris

    Hey Chris,
    There is a thread in the BPEL forum with respect to the same: handling the ORABPEL-schema in production
    Cheers, Sjoerd

Maybe you are looking for

  • Premiere Pro has encountered an error [..\..\src\Backend.cpp-395]

    I am getting this error when I have all my exports queued up in the Media Encoder. It exports one file and then gets hung up when it tries to load the next sequence. I can export them one at a time, but I have about 20 videos that need to be done by

  • Milestone Billing with DownPayment Clearing

    Hi folks, I have a problem that the Downpayment made by the customer and posted through transaction F-29 is not being shown as the second line item (below the actual billing item). Actually as per the SAP documentation "those payments already made ar

  • How can I set default value to a transient parameter  in the VO

    I have created a transient parameter in the VO, which is type of boolean. When I try to input the "true" or "True" or "Y" in the 'default value', and then running the programm, but all failure. so I don't know how can i do. Genuinely waiting for you

  • Generic Trigger for Auditing in 10g R2

    I am using 10g R2 on Solaris. I tried to follow toms following article but could not fit in my requirement http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:59412348055 If a user modifies a column say SALARY, then according to above

  • Can i change the black background where I see pictures

    When looking at my pictures, the background is grey, but when I double click them, (big size) the background becomes black. So I don't see the outline of some pictures. Can you change that background?