Quantcast
Channel: SCN : Popular Discussions - SAP NetWeaver Gateway Developer Center
Viewing all articles
Browse latest Browse all 1657

Unable to consume odata service in UI5

$
0
0

Hello Collegues,      

   i am trying to consume the Nothwind odata service in my UI application. In the controller class, i have written the following block of code

 

var oModel1 = new sap.ui.model.odata.ODataModel("http://services.odata.org/Northwind/Northwind.svc/");

varoModel2 = new sap.ui.model.odata.ODataModel("proxy/http://services.odata.org/Northwind/Northwind.svc/");

 

 

In both the case in the debug mode I could see oMetadata of oModel1 and oModel2 is empty.

 

It should be filled with the metadata of the model.

 

Could any one help in this?

 

Thanks in Advance,

Mohan


Viewing all articles
Browse latest Browse all 1657

Trending Articles



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