Skip to Content
0

Consuming Synchronous RESTful service in HCI

Nov 30, 2016 at 10:43 AM

1.1k

avatar image

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.

hci | rest | iflow
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

Bhavesh Kantilal Dec 05, 2016 at 05:01 AM
1

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

Share
10 |10000 characters needed characters left characters exceeded
Mark Bernabe Dec 06, 2016 at 04:19 AM
0

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.

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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?

0

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.

0
Beverely Parks Aug 25, 2017 at 09:18 PM
0

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.

Share
10 |10000 characters needed characters left characters exceeded
Beverely Parks Aug 25, 2017 at 09:18 PM
0

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.

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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

0

Thank you!

0