Quantcast
Channel: SCN : All Content - SAP HANA Cloud Platform Developer Center
Viewing all articles
Browse latest Browse all 3285

HCP: XS OData Service Destination Mapping for HTML5 App

$
0
0

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 com.sap.core.jpaas.security.saml2.service.cfg.ConfigurationCacheEntryId@f1a40f6e

 

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

https://s6hanaxs.hanatrial.ondemand.com/p1941207519trial/dev/md1/1stMD/services/mdService.xsodata/$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)

dest.PNG

 

In addition I defined this destination in my neo-app.json in the webIDE...

 

neoapp.PNG

...and after deploying this app to the hcp I can see that it got mapped right there in the required application ressources:

 

mapping.PNG

 

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!


Viewing all articles
Browse latest Browse all 3285

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>