cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

consume data from java api to sapui5

2,548

Hello,
I have built a java API(deployed on SAP Cloud Platform) on and want to display the acquired JSON data to sapui5.
Is there any way that I can call the java API for example, via URL?

Or is it necessary to use OData service?
If the answer is latter, could you guide me how it works or provide some documents for beginner.
I have read the blog https://blogs.sap.com/2016/02/08/odata-everything-that-you-need-to-know-part-1/
but I would like to know what would be the relationship among sapui5, java api and OData service.


I have also read the post below which is similar to my questions but could not figure out how the problem is solved.https://answers.sap.com/questions/10953428/consume-java-api-from-a-sapui5-application.html

Any help would be appreciate.

Best regards

Roan

View Entire Topic
ankit12
Active Participant
0 Likes

Hi Yuning Roan,

could you please tell that java API is on internet or is it on premise API you are trying to consume to SAP UI5?

if Java API is on internet then it should not be difficult.

but if you are trying to consume On premise API to SAP UI5 then you need Cloud connector to expose the service first. for more details you can refer this blog.

rest-service-using-sap-cloud-connector-with-sap-cloud-platform/

Regards,

Ankit Gupta

0 Likes

Hi Ankit Gupta,

Thank you for the instruction.
My java API is on the Internet.
However, I might consume on premise API one day in the future so thank you for the information.

Regards,
Yuning Roan