Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

How to consume Northwind OData service using Eclipse IDE

$
0
0

Hello,

 

I'm trying to consume Northwind OData sevice in the app using Eclipse IDE and when I test the app locally, it works, but when I uploaded it to SAP Cloud Platform, it gave me error.

 

Here is the model declaration that works locally:

var oModel = new sap.ui.model.odata.ODataModel("proxy/http/services.odata.org/V2/(S(ql0iexfh2tyudc5p4qhx5gdf))/OData/OData.svc");

After the upload I get the following error:

GET https://<account and app name>.hana.ondemand.com/OData/proxy/http/services.odata.org/V2/(S(ql0iexfh2tyudc5p4qhx5gdf))/OData/OData.svc/$metadata 500 (Internal Server Error)

If the problem is in destinations, then how do I consume the destination (which is defined in the cockpit) from Eclipse? How shoul I define the destination if I want to use it from Eclipse?

If it's not the destination issue, then what's the problem here?

 

Thank you,

Yuri


Viewing all articles
Browse latest Browse all 6178

Trending Articles



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