I am currently trying to reach an OData Service that is defined on a basic HANA XS app from a HTML5 application. Both apps run in my HCP Trial Account. Somehow I seem to miss out some last configuration. When the UI5 ODataModel in my HTML5 app sends it metadatacall I get this error-response:
The OData Service on my hanaXS app can be reached with this URL:
I am not sure if this is public exposed, but I can reach it from my PC and it works as intended.
In order to expose this to other apps I created a destination for this service like this:
(This might be already the crucial point as I am not sure if this is the right configuration for this use-case)
In addition I defined this destination in my neo-app.json in the webIDE...
...and after deploying this app to the hcp I can see that it got mapped right there in the required application ressources:
Finally the ODataModel instantiation looks like this:
var oModel = new sap.ui.model.odata.v2.ODataModel("mdService");
But the model calling for data runs into the already described error.
Hope someone can help!