Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
alex_bundschuh
Product and Topic Expert
Product and Topic Expert
28,180
For those of you who were following our roadmap sessions at teched and other events, you were probably eagerly awaiting this announcement. I am more than happy to tell you that we have finally shipped our own so called REST (Representational State Transfer) adapter with the latest SP of SAP Process Integration / SAP Process Orchestration. The REST adapter has been supported as of 7.31 SP14 / 7.4 SP09.

In a nutshell, the following is supported:

  • Consumption and provisioning of REST based services

  • Default and custom url pattern of http end point for provisioning

  • Basic and client certification based authentication

  • Mapping of REST operations to service interface operations

  • Support for XML and JSON message format

  • JSON to XML conversion

  • Determine channel based on JSON element

  • Limit channel to particular operation

  • Extracting information from url and http operations


For more details about the adapter concept, its capabilities, and how it is configured, refer to the release notes of 7.31 SP14.

Furthermore, we have published a couple of blogs where we describe the concept and configuration along sample use cases, see PI REST Adapter - Blog Overview.

Further features have been shipped with 7.31 SP15 / 7.4 SP10, see also release notes of 7.31 SP15:

  • Logging of raw JSON content before and after conversion

  • Authentication with OAuth 2.0 and SAML Bearer Token profile

  • JSON to XML conversion enhancements to escape invalid XML name and XML name start characters

  • Setting of custom HTTP header elements in REST receiver adapter

  • Custom error handling


The following feature has been shipped with 7.31 SP16 / 7.4 SP11, see release notes of 7.31 SP16:

  • Sender side polling


The following features have been shipped with 7.31 SP17 / 7.4 SP13, see release notes of 7.31 SP17:

  • Namespace support and XML/JSON conversion

  • Further XML/JSON conversion options

  • Support for cross origin resource sharing (CORS)

  • Access Control List (ACL)

  • OAuth 2.0 Native Flow for Concur

  • Support for custom actions for a missing or empty incremental token

  • Custom error handling has been enhanced

  • Custom http header of response

61 Comments
Former Member
0 Kudos
Hi Alexander,

We came across a problem when using the REST Adapter with modern web services that send gzip compressed data.

It seem that the REST (sender) adapter is not handling gzip transport compression, even when the http header Content-Encoding: gzip is set by the sender, as per http standard.

We tried the same with the HTTP adapter, and it is able to handle it and automatically decompresses gzip the payload when it receives a call with the mentioned header set!

So I wonder if this has been forgotten in the implementation of the REST adapter by SAP. Can that be?

I also tried to write an adapter module that decompresses the message, but it seems the adapter somehow "corrupts" the binary data it receives, so that decompression fails with "not a gzip string" error (of course we unchecked “Convert to XML” so that the adapter should not try to convert the compressed string – we would do that in the custom module later).

Thanks,

Philippe
Former Member
0 Kudos
For the HIERARCHY_REQUEST_ERR in REST Adapter, Please check SAP Note 2305614 (https://launchpad.support.sap.com/#/notes/2305614)
varun_kasireddy
Explorer
0 Kudos
Hi All,

 

Regarding handling Binary data from Rest adapter refers to the SAP note 2435422 which is for PI 7.5 SP 10. But my PI version is 7.31 SP 19, how do I know that this version supports Binary data ?

 

Please advise.

 

Thanks,

Varun
alex_bundschuh
Product and Topic Expert
Product and Topic Expert
0 Kudos
Hi Varun,

it's only supported in 7.5, we haven't down ported the feature to 7.31 nor do we have any plans to do so, this blog is from 2014, then our code line was 7.31/7.4, nowadays we ship new features in 7.5 only

Alex
former_member475242
Discoverer
0 Kudos
Hi Alex,

SAP PI 7.31 i want to add OData adapter. Kindly guide me on this..

Regards,
Vijayakumar K

 
alex_bundschuh
Product and Topic Expert
Product and Topic Expert
0 Kudos
the OData adapter is part of the connectivity add-on

check out this note https://launchpad.support.sap.com/#/notes/1961175

 

Alex
Binod_Thakur
Participant
0 Kudos
Hi Alex,

I am using 7.40 and Oauth option is available only by SAML Bearer Assertion.

I don't know how to configure SAML to get oauth token dynamically, even i didn't get any link related to configuration of SAML



 



 

I have searched so many thing but i didn't get answer anywhere.

Please suggest me.
former_member607993
Contributor
0 Kudos
0 Kudos
HI experst,

I need help from you regarding

passing a parameter value from payload to the target URL for rest receiver channel get operation. and i am using pi 7.5 v.

0 Kudos
hello,

 

but in my scenario i have to check the strip operation outer element, there's another solution ?

 

Regards.

 

 

 
0 Kudos
Hi,

 

but in my scenario i should select the strip operation from message , do you have another solution ?

 

Regards.