cancel
Showing results for 
Search instead for 
Did you mean: 

how to call an odata service in different servers

former_member189929
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Ravi,

check out this blog post. It describes, how you can avoid the "Same Origin Policy" issue, so you can call services from any domains without getting security errors in your browser.

Regards

Michael

Former Member
0 Kudos

Hi Ravi,

               You'll have to configure Proxy on your NW AS or ABAP Server. the proxy prefix that you are using should not be used in productive systems. Refer to NW AS or ABAP Proxy Configuration Notes on how to do it.

Regards,

              Pruthvi.