Add the REST Adapter as an Invoke for the "Receivables" Activity
Perform the following steps to add the REST Adapter as an invoke connection:
-
Drag and drop the Oracle E-Business Suite connection "Receivables" from the INVOKES toolbar on the left to the integration, after the Get_Order activity in the Booked Order route.
The Configure Oracle REST Endpoint wizard appears. Enter the following information in the Basic Info page:
-
What do you want to call your endpoint? - Enter the name of this endpoint, such as "Create_Invoice".
-
What does this endpoint do? - Enter the usage of this endpoint, such as "Provide REST endpoint with input payload for invoice creation".
-
What is the endpoint's relative resource URI? - Enter "
/create_single_invoice/". -
What action does the endpoint perform? - Select "POST" from the drop-down list.
-
Configure a request payload for this endpoint - Select this check box indicating that a request payload is required in this activity.

Description of the illustration rest_basic_info.gifClick Next.
-
-
In the Request page, perform the following tasks:
-
In the "Select the request payload file" section, select the XML schema radio button.
Please note that the request payload file type can be either XML schema or JSON format.
-
Browse and select the sample XSD for the Create Invoice REST service.
For the sample XSD information, see Sample XSD for the Oracle E-Business Suite Adapter as a Trigger with a Business Event Example.
-
In the Element field, select "CREATE_SINGLE_INVOICE_Input" from the drop-down list.
-
In the "Select the type of payload with which you want the endpoint to receive" section, select the XML button as the payload type.

Description of the illustration rest_request.gifIn this example, we do not need to configure this endpoint to receive Response.
-
-
Click Next. This displays the Summary page with the following REST service information that you specified earlier:
-
REST Service URL:
http://<host name>:<port>/webservices/rest/invoice/create_single_invoice/. -
Method: POST
-
Request Media Type:
application/xml
Click Done.
The
Create_Invoiceactivity appears in the integration flow, listed as the last activity in the Booked Order rule.Similar to the "Get_Order" activity, the "Create_Invoice" map icon also appears (along with the
Create_Invoiceactivity) where you can define the mapping later. See: Create MappingsSave the integration.
-
At the end of this step, the integration flow contains the activities added in this section.

Description of the illustration event_order_to_invoice.gif