Development of Integration having Lookups
In the previous blog we have seen how to define Lookups in OIC. In this blog we will use that defined lookups in an Integration.
STEP 1 : create a App Driven Orchestration
Enter Below details and click Create :
*what do you want to call your Integration : Country code to
Country Name (you can give any meaningful name)
– Advertisement –
STEP 2 : Search for the connection name RESTConnection and click on it.
(you can access this blog to configure this REST connection)
Enter the below details and click NEXT (as shown in below image )
Save the below schema as Input.xsd to your desktop
<?xml version = ‘1.0’ encoding = ‘UTF-8’?>
choose the above schema file at Schema Location and click NEXT
Similarly save the below schema as Output.xsd
<?xml version = ‘1.0’ encoding = ‘UTF-8’?>
<xs:schema attributeFormDefault=”unqualified” elementFormDefault=”qualified” xmlns:xs=”http://www.w3.org/2001/XMLSchema”>
<xs:element name=”IntegrationResponse”>
<xs:complexType>
<xs:sequence>
<xs:element name=”Output” maxOccurs=”unbounded”>
<xs:complexType>
<xs:sequence>
<xs:element name=”CountryName” type=”xs:string” minOccurs=”0″/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
choose the above schema file at Schema Location and click NEXT
– Advertisement –
STEP 3 : Now add one Assign Activity (as shown in below image )
Enter below details and click Create
*Name : TempVariable
Click on “+” icon to add variable
Enter Variable Name as “vCountryCode” and click EDIT
(as shown in below image )
Drag and Drop the Lookup Value function in Expression window
Select your Lookup (CountryLookup) which was created in previous blog
– Advertisement –
Click NEXT
Replace the SrcValue with your Input parameter (as shown in below
image )
Integration development is completed
Please see the Next blog for its testing…
You may also like
2 comments
Leave a Reply to Anonymous Cancel reply
Archives
- November 2024
- October 2024
- May 2024
- June 2023
- December 2022
- October 2022
- September 2022
- June 2022
- May 2022
- April 2022
- March 2022
- February 2022
- January 2022
- December 2021
- November 2021
- August 2021
- July 2021
- May 2021
- March 2021
- January 2021
- November 2020
- October 2020
- September 2020
- May 2020
- March 2020
- February 2020
- January 2020
- December 2019
- August 2019
- July 2019
- June 2019
- May 2019
- March 2019
Calendar
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | 30 | |||


























Why we have used PUT operation here for Lookup while developing Integration. Can GET be used for this scenario?
because we are triggering the integration with the input payload, that's why used HTTPS 'PUT' method
The GET Method
GET is used to request data from a specified resource
The PUT Method
PUT is used to send data to a server to create/update a resource.