Skip to main content

Why APPINOUS team?

PI/PO REST Adapter

Hi Guys,

Do you look for a way of integrating your SAP PI landscape with other REST services or to publish a REST service yourself using an SAP PI Endpoint?
If yes, then this blog could be of interest for you.
Do you have already had a look at the SAP PI REST Adapter and its configuration and now you feel “a bit overwhelmed” by the amount of settings?
If yes, then this blog is also the right one for you.
We have prepared a collection of blog entries for the REST Adapter that shows architectural concepts and configuration of the SAP PI REST Adapter and explain the internal processing steps. We also added some sample scenarios to make it easier for you to understand how your scenario can be implemented using the PI REST Adapter.
Let’s get started.
The first Blog in this series is about the REST Adapter concept and its configuration capabilities. It is a good ramp-up start for working with the REST adapter. It is called
The next blog in the series deals with a simple scenario that shows how to consume a synchronous RESTful service. In the example, the target URL is set dynamically by using variables.
A useful scenario is the next one that shows how to call a SAP function module via PI’s RFC adapter, and expose the same as a RESTful service.
If you like to know more about JSON conversion within the REST adapter, take a look here:
In case of the provisioning of RESTful services using a REST sender adapter, you have full flexibility for defining the endpoint of the service. An example of a dynamic endpoint can be seen here:
PI REST Adapter – Defining a dynamic endpoint
Within the REST adapter we have shipped a set of pre-defined adapter specific atributes that can be used to control the message flow. Furthermore, you have the possibility to define own custom attributes. An example is shown here:
A new concept in PI which is unique to the REST adapter is that you are able to expose one and the same endpoint for addressing multiple Integration Flows. Besides the dynamic endpoint definition explained above, this gives you one more option in the definition of endpoints and your routing rules.
How the full set of CRUD operations can be mapped to the operations of a Service Interface in SAP PI is shown in the following examples.
In previous releases, we were limited to one Quality of Service per channel. So, in PI REST Adapter – Map CRUD operations to Service Interface Operations we stick to the POST, PUT, and DELETE operations which are all of asynchronous mode, and omitting the GET operation which is of synchronous mode.
With 7.31 SP16 / 7.4 SP11, we have introduced a new feature that allows you to dynamically set the Quality of Service either by HTTP operation or interface operation. This way, we are able to expose all operations as a single end point. An enhancement of the scenario is described in PI REST Adapter – Map CRUD operations to Service Interface Operations with dynamic setting of Quality of Service
If you like to learn more about the various options that the REST adapter supports for handling error situations, check out the following blog.
Some RESTful services require specific http headers. The following blog shows you along a use case how you can add custom http header elements to the receiver REST adapter.
If you like to poll REST APIs, check out this example: PI REST Adapter – Polling a REST API.
Learn how to access Concur travel and expense management solutions via its REST API, particularly focusing on the OAuth authorization at PI REST Adapter – Connect to Concur.
Still not found what you were looking for?
No problem! Just let us know what kind of information is missing and how we can help.

Comments

  1. Hey,

    Thanks for your blog !!!

    Do you have detail about handling Synchronous flow using Form-Data ?

    ECC ==> PO ==> REST (Sync)
    We will send details Sender data through Form-Data and to get response as attachment and we are

    ReplyDelete
  2. I feel really happy to have seen your webpage and look forward to so many more entertaining times reading here. Same as your blog i found another one Oracle BPM .Actually I was looking for the same information on internet for Oracle BPM and came across your blog. I am impressed by the information that you have on this blog. Thanks once more for all the details.

    ReplyDelete

Post a Comment

Popular posts from this blog

SAP PI Proxy to JDBC Scenario

Overview: Requirement is to insert/update SAP records in non-sap system’s Oracle Table. To achieve this, we create a Proxy-to-JDBC Asynchronous Outbound Scenario in SAP-PI. In SAPEcc, one ABAP function module is required to extract data from sap-table and pass it to PI-Proxy-structure and invoke the SAP-PI-Proxy. Scenario creation steps:        Scenario is called as SAP-PI’s “Proxy-to-JDBC Asynchronous Outbound scenario”. [I]   Steps in “ Enterprise Services Builder “: Repository objects Create DataType/MessageType for Proxy Structure Here include fields which are required to be fetch from SAP-Table Create DataType/MessageType for JDBC Table Query Operations For example JDBC query DataType would be like as below for Table ‘EmpTable’ Based on our requirement, here can provide different action method as follows INSERT When record insertion into JDBC table is in scope UPDATE When record updation into JDBC table is in scope UPDA...

PO useful links

SAP PI Learning Link PI node Function: http://saptechnical.com/Tutorials/XI/NodeFunctions/Page1.htm Format by example(in depth) http://saprainbow.com/sap-pi-mapping/collapsecontext-and-formatbyexample-to-convert-flat-structure-to-tree-structure/ Use One As Many (In depth) https://wiki.scn.sap.com/wiki/display/XI/Explain+node+functions   http://saprainbow.com/sap-pi-mapping/useoneasmany-explained-in-easy-exampl/ Netweaver BPM http://scn.sap.com/docs/DOC-28803 http://scn.sap.com/docs/DOC-60042 - BPM Example File content Conversion (FCC) http://saptechnical.com/Tutorials/XI/Contentconversion/page1.htm http://help.sap.com/saphelp_srm40/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm Html to CSV using java mapping http://scn.sap.com/community/pi-and-soa-middleware/blog/2016/02/28/conversion-of-html-wrapped-excel-file-into-csv-file-using-java-mapping-in-sap-pi-731 Cus...