Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3363

Unable to consume ODATA service in UI5

$
0
0

Dear Experts,

 

I have a working ODATA service, tested in both Gateway & REST client.

 

In Eclipse, in a UI5 project..have written the below code

 

var Modelo = new sap.ui.model.odata.ODataModel( "serviceurl",

                                                                              false,

                                                                             "user",

                                                                             "password");

 

The service url, user and password all are valid and correct.

 

When i try to test the application locally, i don't see any data returned from Get Operation of ODATA service.

 

Attached screenshot has the error that i see in browser's console is...

 

 

Any inputs on solving the issue would be appreciated.

 

Downloaded Apache & set up reserve proxy as mentioned in the below link, it did not help.

 

 

http://scn.sap.com/community/developer-center/front-end/blog/2013/06/29/solving-same-origin-policy-issue-in-different-ways#jive_content_id_221_Download_Apache_HTTP_Server

 

Thanks, Deni


Viewing all articles
Browse latest Browse all 3363

Trending Articles