This blog will cover the configuration steps of the ODATA Adapter in SAP CPI.
What is OData Protocol
OData is an open standard protocol that allows service providers to define access to their resources in a standardized manner. The service definition is available via the service metadata document (EDMX).
OData allows resources (Entity Sets) to be identified using Uniform Resource Identifiers (URIs) and defined in an abstract data model.
More details about OData protocol at http://www.odata.org/
ODATA Adapter in SAP CPI
The OData adapter allows you to communicate with an OData service using the OData protocol. You use messages in ATOM-XML or JSON format for communication.
To under the configuration of the ODATA adapter in sap CPI, we will create a scenario to call OData service.
Here is a free ODATA service available which will be used in IFlow
https://services.odata.org/V3/(S(bid50yrhxb1npwijxs1xdnpv))/OData/OData.svc/
Integraition Flow
HTPPS–> SAP CPI–> ODATA
Configure OData Adapter
Select the receiver adapter type as ODATA.
In Connection Tab put
Address: https://services.odata.org/TripPinRESTierServic.
Authentication: None ( as this is free service but use the appropriate for your odata connection)
Select the Tab Processing
This tab provides the information on how the query needs to process
Choose the appropriate Operation. In this case its GET
Resource Path: click on select and it will open a pop-up
Click Step2
Select the Entity
In this case, we will be using People.
Select the fields and Finish.
Now Save and deploy the Iflow.
Using Postman test the Iflow
Reference
More CPI Blogs
SOAP To Mail Scenario in SAP CPI
I like your post very much. please keep posting on SAP PI and CPI topics.