cancel
Showing results for 
Search instead for 
Did you mean: 

How can I expose CPI API endpoint as an REST service?

jonaswang
Advisor
Advisor
0 Kudos

Hi experts,

I have a scenario where the customer wants to expose their iFlow on CPI as an REST service so that it can be called by other web applications. Please provide any guidance on how to achieve that.

Accepted Solutions (0)

Answers (3)

Answers (3)

Sriprasadsbhat
Active Contributor
0 Kudos

Hello Jonas,

You can look at 2 options,

1) Usage of API management -You can have either Sender SOAP channel and consume the same in API management to build rest service.

2) Usage of OData provisioning in SAP CPI.( refer below blog from Midhun VP )

https://blogs.sap.com/2016/04/18/creating-odata-service-from-soap-using-hci/

Regards,

Sriprasad Shivaram Bhat

sumanth171
Active Participant
0 Kudos

Hello Sir,

Just want to understand a point - Is OData provisioning in CPI will be used to expose SOAP and REST services as OData services or the HTTP URL can be exposed as REST API?

nishant_kathuria
Explorer
0 Kudos

Hello Sriprasad,

Thanks for your response. Can you point to the documentation/blog that explains the following scenario? Most of the blogs use OData services provisioned from Cloud Integration as an example for exposing them as REST APIs using API Management

1) Usage of API management -You can have either Sender SOAP channel and consume the same in API management to build rest service.

Thanks

Nishant Kathuria

sumanth171
Active Participant
0 Kudos

Hi,

use HTTP sender channel only if option is Rest. But still it will be an end point for connecting to CPI interface but exposing an iFlow as Rest API is not possible. This can be achieved using API management in SCP.

0 Kudos

hey!

You can expose this as http or soap, at the start of the iFlow make sure the sender is either http or soap.

Regards

Akash