An Example of Using a PL/SQL REST Service as an Invoke (Target) Connection in an Integration
To better understand how to use Oracle E-Business Suite services in Oracle Integration, this chapter describes an integration example through the use of Oracle E-Business Suite Adapter as an invoke (target) connection.
Sample Business Scenario
Take a PL/SQL API called Sales Order Services (OE_INBOUND_INT) as an example to explain the integration between the Oracle E-Business Suite Adapter and a trigger (source) connection in Oracle Integration.
In this example, the Oracle E-Business Suite Adapter is used as an invoke (target) connection for service invocation, and the REST Adapter is used as a trigger (source) connection to provide a REST request. When the Oracle E-Business Suite Adapter receives the request message with input payload for order creation from the trigger (source) connection, the OE_INBOUND_INT REST service in Oracle E-Business Suite is invoked to create the order.
Once the integration is successfully executed at runtime, a sales order will be created in Oracle E-Business Suite.
Note:
Any application adapters can be used as trigger (source) connections to create integrations for your business needs. In this example, the REST Adapter is used as a trigger (source) connection.Prerequisites:
Before creating the integration in Oracle Integration, you need to ensure the following tasks are in place:
-
The "Sale Order Service (PROCESS_ORDER)" service operation contained in the Sales Order Services (OE_INBOUND_INT)" PL/SQL API is deployed as a REST service with alias
process_order
.For information on deploying REST services, see Deploying REST Web Services, Oracle E-Business Suite Integrated SOA Gateway Implementation Guide.
Record the following REST service endpoint from the WADL:
https://<host>:<port>/webservices/rest/<alias>/PROCESS_ORDER/
Replace
<alias>
withprocess_order
in this example. You will use this service endpoint later when you create a REST connection in Oracle Integration. -
Security grants are created for the
operations
user.For information on creating security grants for REST services, see Managing Grants for Interfaces with Support for SOAP and REST Web Services, Oracle E-Business Suite Integrated SOA Gateway Implementation Guide.
Based on the integration scenario, the sample tasks for using an Oracle E-Business Suite PL/SQL REST service in an integration are included in the Topics section:
Topics: