As following Step 7 with SAP S/4HANA Cloud SDK: Secure your Application on SAP Cloud Platform, CloudFoundry and Application programming model I'm able to create Java application exposing OData service and secure it with approuter.
Now I need to connect the odata service to my UI5 application via the approuter endpoint url.
I've created a destination in NEO and tried to connect to the service when generating UI5 template. However, the error 500 Internal server error appears.
How can I connect UI5 app with approuter endpoint url?
UPDATE: Please try to replicate the scenario:
Create an Java application with APM on SAP WebIDE Full stack
Create approuter for this application
Try to create UI5 application with the destination of the approuter.
UPDATE:
- It seems I was wrong. The one I need is the url to Java application in MTA file.
- I am able to set it in MTA and when deploying to CF, it'll find the odata service exposed by Java application automatically.
Answer: I couldn't find a correct answer. Therefore, I have to include the UI5 application within the same multi-target project. So it can make a call to java module.
Regards,
Tri