1 Reply Latest reply on Nov 6, 2012 11:45 AM by Ajay Sharma

    How to call Web Service in OAF page registered as business event on apps?

    Ajay Sharma

      I created one business event and Subscribe the web service to it.

      How to call it in OAF page controller.

      currently I am using following code.
            String eventName = "oracle.apps.xxios.dashboardadmin.invoke";
            // invoker business event
                 // unique key for the web service invocation
                 String eventKey = "key1";
                 // event data - XML payload sent to web service as input
                 // String evtData = ....
                 Connection conn = ((OADBTransactionImpl)am.getOADBTransaction()).getJdbcConnection();//((OADBTransactionImpl)getOADBTransaction()).getJdbcConnection();
                 BusinessEvent event = null;
                     event = new BusinessEvent(eventName, eventKey);
                    // event.setData(evtData);
                 catch (BusinessEventException e) {
                     throw new OAException("Exception occured when invoking web service - "+e.getMessage());
                 } finally {
                 //String respData = (String)event.getResponseData();
                  dbParam = (String[])event.getResponseData();
                  throw new OAException ("Param = "+dbParam, OAException.INFORMATION);
      but I got following error.
      Exception occured when invoking web service - Exception when Invoking Web Service -> oracle.apps.fnd.wf.bes.InvokerException: Event payload is not available