OIC/Integration/2 → REST Connection in Oracle Integration Cloud
--
This is a post on Oracle Integration Cloud highlighting the integration of REST adapter in the flow.
(1) Flow: [a] REST (Rest trigger) → [b] Map Request to SOAP Invoke → [c] Invoke Hello Soap (Soap Invoke) → [d] Map Response to Reply → [e] Reply
(2) Flow Description: Here we are creating an App Driven Orchestration flow which exposes as a REST service and when it is invoked, it calls a target SOAP service, get the SOAP response and return it to the caller of the flow.
(3) Steps:
First, we will create a REST connection from OIC console → Connections like below.
Go to OIC console → Integrations → Create an App Driven Integration with your project name.
[a] REST trigger:
Here we are going to expose a REST connection (method: POST) through our flow which will accept JSON request and reply with a JSON response. During the set up need to use sample JSONs.
REQ Inline sample:
{
"FirstName" : "",
"LastName" : ""
}
RESP Inline sample:
{
"Response" : "Hi Amit Misra !!"
}
[c] Invoke Soap:
Now we will set up for the target SOAP service call. Create a call using the SOAP connection we set up earlier in following article.
https://medium.com/@rrjdev/oic-integration-soap-connection-in-oracle-integration-cloud-20e524b73f10
[b] Map Request to SOAP Invoke:
[d] Map Response to Reply:
Flow:
………………………………………………………………………………………………