Dequeue Business event (AQ or AppsAdapter) in OSB and return results fails

I am new to OSB. The scenario is to publish out the results to SFDC (SalesForce.Com) any changes in EBS.
The Dequeueing works well within OSB. However when I am trying to return the results back.. It is failing. Is it because Dequeueing wsdl has only an input structure
and does not have an output structure?

I get the following error message
BEA-382040: Failed to set the value of context variable "body". Value must be an instance of {http://schemas.xmlsoap.org/soap/envelope/}Body. So basically the input definition of the Event is
  <soapenv:Envelope   xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header   xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
</soap:Header>
<soapenv:Body>
<even:WF_EVENT_T   xmlns:even="http://xmlns.oracle.com/xdb/APPS/EventListener">
<!--Optional:-->
<PRIORITY>1.051732E7</PRIORITY>
<!--Optional:-->
<SEND_DATE>string</SEND_DATE>
<!--Optional:-->
<RECEIVE_DATE>string</RECEIVE_DATE>
<!--Optional:-->
<CORRELATION_ID>string</CORRELATION_ID>
<!--Optional:-->
<PARAMETER_LIST>
<!--Zero or more repetitions:-->
<PARAMETER_LIST_ITEM>
<!--Optional:-->
<NAME>string</NAME>
<!--Optional:-->
<VALUE>string</VALUE>
</PARAMETER_LIST_ITEM>
</PARAMETER_LIST>
<!--Optional:-->
<EVENT_NAME>string</EVENT_NAME>
<!--Optional:-->
<EVENT_KEY>string</EVENT_KEY>
<!--Optional:-->
<EVENT_DATA>string</EVENT_DATA>
<!--Optional:-->
<FROM_AGENT>
<!--Optional:-->
<NAME>string</NAME>
<!--Optional:-->
<SYSTEM>string</SYSTEM>
</FROM_AGENT>
<!--Optional:-->
<TO_AGENT>
<!--Optional:-->
<NAME>string</NAME>
<!--Optional:-->
<SYSTEM>string</SYSTEM>
</TO_AGENT>
<!--Optional:-->
<ERROR_SUBSCRIPTION>ZQ==</ERROR_SUBSCRIPTION>
<!--Optional:-->
<ERROR_MESSAGE>string</ERROR_MESSAGE>
<!--Optional:-->
<ERROR_STACK>string</ERROR_STACK>
</even:WF_EVENT_T>
</soapenv:Body>
</soapenv:Envelope>
and then I replace the body with
<soapenv:Envelope  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header  xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
</soap:Header>
<soapenv:Body>
<get:GetSystemDateInput  xmlns:get="http://xmlns.oracle.com/pcbpel/adapter/db/GetSystemDate"/>
</soapenv:Body>
</soapenv:Envelope>
before the call to the business service GetSystemDate and then I get this error
  <soapenv:Envelope   xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server</faultcode>
<faultstring>
BEA-382040: Failed to set the value of context variable "body". Value must be an instance of {http://schemas.xmlsoap.org/soap/envelope/}Body.
</faultstring>
<detail>
<con:fault   xmlns:con="http://www.bea.com/wli/sb/context">
<con:errorCode>BEA-382040</con:errorCode>
<con:reason>
Failed to set the value of context variable "body". Value must be an instance of {http://schemas.xmlsoap.org/soap/envelope/}Body.
</con:reason>
<con:location>
<con:node>PipelinePairNode1</con:node>
<con:pipeline>PipelinePairNode1_request</con:pipeline>
<con:stage>stage1</con:stage>
<con:path>request-pipeline</con:path>
</con:location>
</con:fault>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>

Similar Messages

  • Enqueue JMS message to JMS advanced queue and raise business event.

    Hi,
    I am needing guidance on how to raise a business event with a JMS message type and enqueue it to an outbound queue WF_JMS_OUT from a PL/SQL stored procedure. I'm on version 11.5.10.2.
    I found an Oracle tutorial "Oracle Workflow and Java Messaging Service (JMS) Tutorial" which describes some of this but it mentions scripts to create the queues, listen for events, etc. and I can not find these (they are not included in the document).
    Any guidance, links or sample code, greatly appreciated!
    Cheers
    Graham

    I tried in the same way. But i got error in OSB.
    The error message is "Failed to lookup connection factory CustomConnectionFactory"
    CustomConnectionFactory -- This is my connection factory name.
    Do i need to make any jndi configurations in weblogic?
    Thank you.

  • Business Event not triggering the SOA BPEL Process with OA Adapter

    Hello Gurus,
    I am working on Business event "oracle.apps.per.api.employee.create_employee" and the event is getting triggered when creating an employee from EBS.
    The message has come till WF_BPEL_QTAB(I could seeit) and in "READY" status.We have a SOA BPEL Process that is subscribed to the event "oracle.apps.per.api.employee.create_employee" using OA Adapter.
    The issue is that the SOA BPEL process is not getting triggered and it is not dequeing the message from WF_BPEL_Q.
    Please let me know if I have missed any steps on SOA BPEL side.
    Note: Agent Listener is up and running.
    Thanks,
    Sunil

    Ofcourse, I subscribed to the business event using BPEL. Ideally the instances should be created and I should be able to receive the standard payload.
    Yes the JNDIs are correct. We have other business events working in the same fashion and we are using same JNDI.

  • Business Event Appraisal - Not showing in PA30

    Hi All,
    We are implementing TEM on SAP 5.0 and replaced the old appraisal system with new appraisal system.
    I have prepared the Appraisal for Business Event, by selecting Attendee as appraiser and Business Event as Apraisee, the problem I am encountering here is after the preparation the document is not shown in any of the following areas in PA30 for infotype 25.
    1) Appraisal where Apraiser
    2) Objective setting & Appraisal(Open)
    But the Appraisal templates which are created under Personnel Appraisal(in PHAP_CATALOG), is shown but not the Appraisal templates which are created under SAP Learning Solution(in PHAP_CATALOG).
    Is there any configuration inorder to get this done?
    Any help in this regard is highly appreciated.
    Thanks
    Ramakrishna Ramadurgam

    Lincoln,
    Can you be precise, I mean which Integration settings your asking me to look into?
    One thing I noticed while debugging the code, it is getting Add On Application as 'PA', and passing this parameter to get the Personel Appraisal templates, in case if I modify as 'PD' in the debugging mode, it is fetching the Business Event Appraisal along with Personel Appraisal. Is there any setting for this to have PD passed in to the Add on Application variable.
    Thanks
    Ramakrishna
    Thanks
    Ramakrishna Ramadurgam

  • Creation of Business Event Type

    Hi
    We have already created a Business Event Type called Safety Refresher. Actually this training will happen every month. already created Safety Refresher and again trying to create its showing business event type already exists. Now i want under safety refresher is it possible to maintain month wise for the whole year or particular perilod.

    Hi Suraish
    You have not to create Business Event Type again and again. You only have to create new Business Event only under the said business event type. Use copy function and copy the previous business event and assign a new Schedule for the next month, also assing resources if required and then you can book the attendees against that new business event.
    Regards
    Rao Imran

  • Oracle E-Business events - Launch worflow

    Hi All,
    Need some info regarding Oracle Workflow and E-Business Suite R12 events.
    We have defined a business event in a E-Biz R12 and its subscription is of type ‘Launch Work Flow’ to launch a node(activity) of the work-flow. This activity is not the start node(activity) of the wf. Name of the activity is ‘Receive data’
    ‘Receive data’ is defined as an ‘receive-event’ type of activity. We’ll invoke the workflow from back-end, it will halt at the ‘Receive data’. When e-Biz event is raised, workflow will be resumed.
    We’ll be running different instances of work-flow. So, how do I inform e-Biz event to resume a particular instance of work flow?
    My assumption is:
    Work-flow (wf) instances are distinguish based on item-key while e-Biz event takes event-key as an input parameter when it is raised. E-Biz event will match the event-key with item-key of workflow and resume the correct instance of wf. Is it correct?
    All pointers are appreciated.
    Thanks,
    MK

    Thanks Bhavesh for your inputs. But, I'm little bit confused.
    We have defined 'Event Name', 'Event Key' attributes but they are of type 'Text'. Could you please inform me if I need to change the type?
    Another question is regarding getting/fetching the parameters passed to e-Biz event in Work-flow. I want to fetch/get these parameters in the activity which is after 'Receive Data' Activity in my work flow.
    Could you please help me in this regard?
    Thanks,
    MK

  • Business Events regarding PO

    Hi all,
    We are having a requirement that we need the XML payload of the entire PO,when it is approved.We used oracle.apps.po.event.xmlpo business event for this purpose.
    But it returned only few values of approved PO.
    I need to know is there any other seeded business event available for getting the entire PO details after it gets approved.
    Also Iam in need of APIs that queries the PO headers and lines when passed values such as given PO number.
    Help me with your suggestions.
    Thanks,
    goutam

    Hi;
    All APIs are listed in Oracle Integration Repository
    http://irep.oracle.com/index.html
    API User Notes - HTML Format [ID 236937.1]
    R12.0.[3-4] : Oracle Install Base Api / Open Interface Setup Test [ID 427566.1]
    Oracle Trading Community Architecture API User Notes, June 2003 [ID 241320.1]
    Technical Uses of Customer Interface and TCA-API [ID 269121.1]
    Pelase also check below:
    Api's in EBS
    Re: Api's in EBS
    http://sairamgoudmalla.blogspot.com/2009/05/script-to-find-oracle-apis-for-any.html
    API
    Fixed Asset API
    List of API
    Re: List of APIs
    Oracle Common Application Components API Reference Guide
    download.oracle.com/docs/cd/B25284_01/current/acrobat/jta115api.pdf
    List of APIs and open interface R12
    Re: List of APIs and open interface R12
    Regard
    Helios

  • About Business Events

    Frntz,
    In Normally workflow I had created few wft files and completed it sucessfully and Now I need to know about Business events in Oracle Workflow.
    Does it required to login as SYSADMIN to create an event or else is there any more options available in it.

    Anyone who has the workflow administrator role assigned to his/her user can see create/update Business events.
    Navigation is :
    Login to Oracle Applications -> Workflow Administrator -> Administrator Workflow -> Business Events.
    Please make sure that the application in which the business events( seeded ) exist should be licensed and its status should be enabled.
    Also you need to make sure you have subscriptions to partciular events. The same also needs to be licensed and status should be enabled.

  • Attendee is not available for business event

    Dear all,
    After business event sceduled i booked 9 attendees and i try to book one more attendee i am getting errorr message Attendee is not available for business event.
    1. Attendee maintained in HR master data.
    2. Org management is also maintained properly
    3. Minimum capacity in business event is 15 maintained.
    Still i am getting problem
    Regards,
    Jai Ram.

    Hi,
    To day  only i created a Business event  the attendee is available for scheduled date.
    and dates are ok but still i am getting this error  only for particular person only..
    and he is not schedule for different business event also for the same date.
    Regards,
    Jai Ram.

  • How to Migrate Oracle Apps Business Events

    Hi,
    How to Migrate Oracle Apps R12 Business Events from DEV environment to STAGE and STAGE to PRODUCTION environment?
    Please help me as early as possible.
    Thanks,
    Sumit

    I have opened this link and I didn't get exactly because I am new in Business Events.
    Can you please help for simple steps for migrate Business Events from DEV to STAGE or TEST environment.
    Your prompt reply will highly appreciated.
    Thanks & Regards,Complete the steps under "Step 1: Locating and Downloading Business Events" and "Uploading Annotated File Back to a Database" sections to download/upload business events.
    Thanks,
    Hussein

  • Sample for Reference and Conformance business event in Quality Manager

    Hi All
    Can any one please tell me the business event that is to be enabled and the related transaction type to be configured/set for getting a notification when a sample has been taken using SFC / SFR Activity window in Quality Manager responsibility.
    Navigation:
    Go to Quality Manager
    Go to SFC/SFR Activity
    Thanks in Advance
    Prem.

    Hi David
    Thanks for your reply.
    Click on SFC/SFR Activity Form. It is a Create Immediate Form,in Quality Manager responsibility with name SFC/SFR Activity window. I have enabled and subscribed the event you mentioned before and created approval group in AME.
    My requirement is when quality department uses this form they should get a notification as SFC/SFR Sample required.
    As of now I am getting notifications as 'Sample Required For (CREI) Inventory Transaction: Item XXX', when other department eg., Stores Dept uses CREI form .
    Now I want to Change the Description of the Notifcation to 'Sample Required for SFC/SFR' and to generate a sample notification only when QC has used this form (CREI).
    Thanks in advance
    Prem.

  • Business Events Data Not Dequeuing

    Hi ,
    We would like to capture a few business events in oracle BOM and PO that are of interest to us. In order to do this,
    we deploy oracle SOA composite with BEPL in the Oracle Fusion Middleware Control. The oracle SOA composite is configured for a particular outbound business event. It should listens on a specific queue WF_BPEL_Q or WF_BPEL_QTAB and de-queues the messages from that Oracle Queue or Oracle AQ Table. In jDeveloper 11g we created a SOA project with oracle applications adapter partner link and a BPEL Process with a receive acvity.
    Specifically we are trying to capture the business outbound event oracle.apps.bom.component.modified just to get the event data in this receive.
    Partner link configuration: We added the database connection to the oracle EBS instance. Tested it and we
    succeded. Chose ANY_SCHEMA in partner link configuration.
    We ensured that the JNDI Name here( eis/Apps/Apps ) match the JNDI name provided in the weblogic-->Deployments--
    OracleAppsAdapter -->Configuration --> Outbound Connection Pools. For this outbound resource pool, Connection factory interface was javax.resource.cci.ConnectionFactory. Property name xADataSourceName was mapped to JNDI name of the configured JDBC datasource in the weblogic. When we created the connection pool. We tested and it worked fine. This data source had the connection pool configured to the oracle applications schema with APPS user.
    After adding the partner link with the above configuration, we added a receive. We deployed this configuration to the middleware. We went to the oracle EBS modified a BOM component and we expected to having running BPEL instances against the deloyed composite. However, the problem is we are not having any running instance for the composite.
    We found that there are entries in the view AQ$WF_BPEL_QTAB with an ENQ_TIME and ENQ_TIMESTAMP but with no DEQ_TIME or DEQ_TIMESTAMP. The ENQ_TIMESTAMP corresponds to the time we modified BOM in oracle BOM forms/Designer and MSG_STATE is READY
    The data is being written in WF_BPEL_QTAB for the BOM changes but not getting dequeued by oracle applications adapter/composites deployed in soa server.
    Please help me it quite urgent.
    Is there anything we are missing on EBS side to be activited for the events to be dequeued
    Any Help is appreciated.
    Abhinav
    Edited by: Abhinav on Jul 6, 2012 10:08 AM

    Hi
    I am able to dequeue the data using manual event testing button. BPEL instance are being created now.
    But now no records are being inserted in WF_BPEL_QTAB if i change any Oracle BOM component using Oracle EBS which was working till yesterday.
    In morning there were more than 100 records in WF_BPEL_QTAB as i have tested so many time changing bom component. I used this script
    DECLARE
    *     po dbms_aqadm.aq$_purge_options_t;*
    BEGIN
    po.block := FALSE;
    DBMS_AQADM.PURGE_QUEUE_TABLE(
    queue_table     => 'WF_BPEL_QTAB',
    purge_condition => NULL,
    purge_options   => po);
    END;
    after that Records are not gettingin WF_BPEL_QTAB when BOM Changes in Oracle EBS
    Problem Description
    we need to listen to the outbound business events of Oracle EBS for BOM/PO modules .
    we have created a subscription for the oracle.apps.bom.component.modified by using Oracle Apps Adapter in SOA Suite.
    1.
    When we are testing oracle.apps.bom.component.modified from(Business Events--Events ---TestBusiness Events) by giving
    dummy event key , send date, and xml payload and then click on Rainse in Java.
    Then a two records are being created in WF_BPEL_QTAB table and are getting polled by Oracle Apps adapter and two BPEL Instances
    are being created in SOA Suite showing the dummy payload which we entered while doing Business Event testing sigle time only.
    No record is being created in WF_BPEL_QTAB of oracle EBS if we hit Raise in PL/SQL. tab while doing manual event testing.
    2.
    If we open Oracle BOM form(Responsibilty-Bills of Material -Bills -Bills of Material SV1) and change the component and save it.
    No record entry/data is being created in WF_BPEL_QTAB of Oracle EBS .
    Why there is no record entry being created when we change any component from Oracle BOM Form.
    Edited by: Abhinav on Jul 6, 2012 2:38 PM

  • Facing issues with Oracle11i and SOA 10g integration using Business events.

    Hi ,
    I have created a custom business event and have added subscription for the same.
    When i am triggering a business event, event is raised and the event data is getting inserted in the Queue (AQ).
    In SOA i have created an OracleApps adapter that is listening to the queue ,
    but the Oracleapps adapter is not getting started even though there are data in the queue.
    I checked the WSDL file of Oracleapps adapter and there i can see there is field Consumer with some code.
    I have added the code snippet from Oracleapps adapter wsdl.
    <pc:inbound_binding />
    <operation name="DEQUEUE">
    <jca:operation
    ActivationSpec="oracle.tip.adapter.apps.AppsWFBesQueueDequeueActivationSpec"
    QueueName="WF_BPEL_Q"
    DatabaseSchema="APPS"
    Consumer="ORA_88p3cd9o74pj2cpg6p13cdhp75"
    MessageSelectorRule="tab.user_data.event_name = &apos;xxc.oracle.apps.soa.demo&apos;" >
    </jca:operation>
    I have checked the connection factory set up at loaction (application-deployments\default\AppsAdapter/oc4j-ra.xml)too and found it is correct.
    code snippet from oc4j-ra.xml:-
         <connector-factory location="eis/Apps/Apps" connector-name="AppsAdapter">
              <config-property name="xADataSourceName" value="jdbc/EBSDataSource"/>
              <config-property name="dataSourceName" value=""/>
              <connection-pooling use="none">
              </connection-pooling>
              <security-config use="none">
              </security-config>
              <connectionfactory-interface>javax.resource.cci.ConnectionFactory</connectionfactory-interface>
         </connector-factory>.
    Can anyone tell me where consumer for an event/queue is being defined in the Oracle apps.
    Thanks & Regards
    Saurav Kumar

    Hi,
    Can you check the log file.u are getting any error.can you check wf_error table also u are getting any error.
    Can you check consumer in AQ tables.
    Thanks,
    Rahul

  • How to invoke BPEL process using Oracle Business Event System (BES)?

    Hi,
    I want to invoke a BPEL process using Business Events and Subscriptions (Oracle BES/Workflow). If anyone knows how this can be done, please reply to this thread. You can also mail me at [email protected]
    Thanks,
    Gaurav.

    yeah you are 100% correct ..
    I have attached some stuff for CDH integration, where we used plsql to send out info on a created record to a queue.
    CREATE OR REPLACE
    TYPE XXBPEL_MESSAGE_TYPE AS OBJECT (
    MSG_ID VARCHAR2(128),
    INREPLYTO_MSG_ID VARCHAR2(128),
    FROM_PARTY VARCHAR2(512),
    TO_PARTY VARCHAR2(512),
    ACTION_NAME VARCHAR2(512),
    MSG_TYPE INT,
    PAYLOAD CLOB,
    ATTACHMENT BLOB
    EXECUTE DBMS_AQADM.create_queue_table (queue_table => 'XXBPEL_QTAB',queue_payload_type => 'XXBPEL_MESSAGE_TYPE',multiple_consumers => TRUE);
    EXECUTE DBMS_AQADM.create_queue (queue_name => 'XXBPEL_OUT_QUEUE',queue_table => 'XXBPEL_QTAB');
    EXECUTE DBMS_AQADM.start_queue(queue_name => 'XXBPEL_OUT_QUEUE',dequeue => TRUE,enqueue => TRUE);
    On BPEL side creata a process that listens to this queue (with and AQ partnerlink) as shown in $BPEL_HOME/integration\orabpel\samples\tutorials\124.AQAdapter\MulticonsumerInbound
    thx clemens

  • Business Event Appraisal in Training and event management

    Hi
    I am facing issue releated to Business Event Appraisal Functionality in ESS. I have maintained value as blank in field HAP00 REPLA switch.
    We have created I View of transacion PV7I in ESS. When i am selecting "APPRAISAL" button for attended event , i can select appraisal form from appraisal form list. On next screen i don't get Appraisal Form where i have to give feedback on different criteria's. I get Rating column and four buttons: Save, Check data, back, Complete.
    When i am executing PV7i through R3 then it's working properly. Why it is not working properly in ESS. Kindly help me ?
    Other issue..... :
    My client needs INSTRCUCTOR feedback functionality means feedback for instructors by participants for particular event. How we can configure in the system for TEM module not for LSO.
    KINDLY help me ...
    Thanks and Best Regards
    Puneet

    Good Day !
    Unfortunately the appraisal services (my_appraisals, my_app_create, my_appraisalsm) have not been migrated for the use with integrated ITS.
    Please review SAP notes 870126 and 771196
    Note:
    Since the appraisal services (My_appraisals, My_app_create) have not
    been migrated, you can no longer use the appraisal function from the
    services PV7I and PV8I with the integrated ITS.
    At the same time I am afraid the succession product is not an option
    for you as the TEM functionality is not integrated with the new
    appraisal functionality of 'Performance Management'. Performance
    Management only offers an integration with the succession product of
    TEM, i.e. LSO (Learning Solution).
    Hope this information helps you.
    Best Regards
    Chetan

Maybe you are looking for