cancel
Showing results for 
Search instead for 
Did you mean: 

Consuming Synchronous RESTful service in HCI

markbernabe
Active Participant
0 Kudos

Hi experts,

The scenario is to call a RESTful web service and expose it as a RESTful service. It is something similar to the interface explained in this blog:(https://blogs.sap.com/2014/12/18/pi-rest-adapter-exposing-a-function-module-as-restful-service/)

But instead of Function Module, the inbound interface that will be called by the receiver is a RESTful web service. The request is via GET method using URL parameters. In PI, this can be easily achieved by REST adapter (both sender & receiver). But since there's no REST adapter in HCI, I guess we have to use HTTPS/HTTP.

Has anyone ever done something similar before? Appreciate any inputs or if you can direct me to existing guides/blogs that talk the same.

Thank you.

Accepted Solutions (0)

Answers (4)

Answers (4)

bhavesh_kantilal
Active Contributor

Hello Mark,

Would exposing your Interface as an ODATA Restful Service via HCI meet your requirement?

If yes, you can expose a Interface in HCI as an ODATA Service as explained in this blog and its youtube video:

https://blogs.sap.com/2016/04/13/introduction-to-creating-odata-service-in-hana-cloud-integration/

Regards,

Bhavesh

beverely_parks2
Participant
0 Kudos

Mark - How did you get your end point generated? I'm also trying to do this, except that I only have the HTTPS adapter available. When I deploy, I get "no end point configured" even though I have populated this.

Former Member
0 Kudos

Hi Beverely,

The end point would be: https://<host>:443/http/Address

E.g., if your address in HTTPS sender channel is /abc1, then the endpoint URL will be:

https://<host>:443/http/abc1

Regards,

Prasanna

beverely_parks2
Participant
0 Kudos

Thank you!

beverely_parks2
Participant
0 Kudos

Mark - How did you get your end point generated? I'm also trying to do this, except that I only have the HTTPS adapter available. When I deploy, I get "no end point configured" even though I have populated this.

markbernabe
Active Participant
0 Kudos

Hi Bhavesh,

We've managed to use the HTTP adapter https://<host>:<port>/http/address) to meet the requirement. But thanks for the info! That's really helpful.

Former Member
0 Kudos

Hello Mark! I hope you are fine!

I found the same difficulty I need to use a REST connection and wanted to do this. How did you do?

markbernabe
Active Participant
0 Kudos

Hi Thallita,

You can use the HTTPS adapter for Receiver if you want to consume a REST service and HTTP adapter for Sender if you want to expose a REST web service from HCI.