Skip to Content
0
Dec 13, 2013 at 07:20 AM

how to call an odata service in different servers

334 Views

Hi All,

I am using below Odata Model call it is working fine when odate service and my application are in same server.

var oModel = new sap.ui.model.odata.ODataModel("/sap/opu/odata/sap/ZEGEM_SRV_01/");

When i use below odata Model call it is working in local tomcat server.

var oModel = new sap.ui.model.odata.ODataModel("proxy/sap/opu/odata/sap/ZEGEM_SRV_01/");


Now my question is how to call odata model if odata service form one server and my application form another server.

Thanks in advance

Ravi Varma