Skip to Content
Former Member
Apr 01, 2015 at 08:23 PM

HCP: XS OData Service Destination Mapping for HTML5 App


Hi all,

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:

HTTP Status 500 - Error while parsing configuration for tenant configuration of tenant

The OData Service on my hanaXS app can be reached with this URL:$metadata

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!


dest.PNG (15.8 kB)
neoapp.PNG (10.9 kB)
mapping.PNG (9.6 kB)