My Oracle Support Banner

How To Call External Web Service in R12 Using Java Rule Function "oracle.apps.fnd.wf.bes.WebServiceInvokerSubscription" (Doc ID 741783.1)

Last updated on FEBRUARY 17, 2023

Applies to:

Oracle Workflow - Version 12.0 to 12.0.6 [Release 12]
Information in this document applies to any platform.

Goal

Requirement is to call an external Web Service(BPEL process) in R12 using the seeded Java Rule Function "oracle.apps.fnd.wf.bes.WebServiceInvokerSubscription". Need a solution approach/configuration sample which covers the scenario of raising the event and subsequently invoking the web service.

As per Oracle Workflow Developer's guide for R12 , apart from standard default rule function named WF_RULE.Default_Rule which performs basic subscription processing , Oracle Workflow also provides additional standard rule functions that you can use for advanced processing, testing, debugging, or other purposes. "oracle.apps.fnd.wf.bes.WebServiceInvokerSubscription" is one of them which Invokes a business process execution language (BPEL) process or other Web service using the Simple Object Access Protocol (SOAP).

To invoke a BPEL process, identify the triggering business event, and define the BPEL process to accept the event data payload. Then identify the Web Services Description Language (WSDL) description URL and other Web service properties for the BPEL process, and define a subscription to your event with those properties set as the subscription parameters. When the event occurs, the Business Event System executes the subscription and invokes the BPEL process.

To invoke any other Web service, identify the triggering business event, identify the WSDL description URL and other properties for the Web service, and define a subscription to the event with those properties set as the subscription parameters. When the event occurs, the Business Event System executes the subscription and invokes the Web service.

The oracle.apps.fnd.wf.bes.WebServiceInvokerSubscription Java class is a standard rule function that implements the SubscriptionInterface Java interface. This rule function sends the event data to the Web service when the subscription is executed. This class can also be extended to add custom processing if needed.

The following are the parameters which the rule function accepts in order to invoke the web service:

Pre-Requisites: Understanding of concepts of BPEL and WebServices and how to read and understand the different components of a WSDL file.

 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.