cancel
Showing results for 
Search instead for 
Did you mean: 

Connection to ODATA service not possible from UI5

Former Member
0 Kudos

Hi Gurus,

I am new to UI5. The issue that I am facing now is I am not able to connect to ODATA service.

Previously it was working fine and all of a sudden, it stops working. One thing I noticed is that the

windows security warning that used to pop up while connecting to the web service has now vanished.

It is not showing up now.

The code I used is :

var oModel = new sap.ui.model.odata.ODataModel("http://seasrv05.applexus.com:8000/sap/opu/odata/sap/ZAPLX_TS_USER_VALIDATE",true,user,pass);

Pls help me.

Regards,

Ashish Kumar

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member182874
Active Contributor
0 Kudos
  • If you are not clearing the caches and cookies then the first login which you did, will not appear. You will be in same session then it will be a problem.
  • Please clear browsing history from Google chrome and make a habit of using Incognito window in chrome through (ctrl+shift+n) which will be helpful for clearing the cache all the time.
  • Open a new browser window:

error : One thing I noticed is that the

windows security warning that used to pop up while connecting to the web service has now vanished.

Now you will be able to see the popup for security warning as well as where you give your credentials

Former Member
0 Kudos

Hi all,

Thanks for your reply. I figured out the problem. When I changed the security level of Internet, Local Internet and Trusted sites to low in internet options under security tab everything worked like a charm.

Once again thanks a lot for your support.

Regards,

Ashish Kumar

rpanneel
Participant
0 Kudos

Ashish Kumar,

If this is solved, please put your question on answered.

One thing though: using Google Chrome will be way better then internet explorer for testing your javascript/sapui5.

Kind regards,

Robin

rpanneel
Participant
0 Kudos

Hi,

So you can get the $metadata for the service by just copying the url in google chrome?

When developing in eclipse, you can also test using chrome, just copy the localhost:port url of your solution and investigate the errors you receive with chrome development tools (ctrl + shift + i if i'm correct)

Possibly it can be a cross-domain request issue. Then you need to open chrome with --disable_web_security

see:

http://joshuamcginnis.com/2011/02/28/how-to-disable-same-origin-policy-in-chrome/

This should work for development purposes.

Kind regards,

Robin

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Ashish,

Please check 2 things:

1. Are you able to ping/connect seasrv05.applexus.com server?

2. Did you try with server ip instead of host name?

Rgrds,

Jitendra

Former Member
0 Kudos

Hi Jitendra,

Thanks for the reply. But the thing is i am able to connect using a web browser. No issues with that. The issue is only when using eclipse..

Former Member
0 Kudos

are your eclipse proxy settings set up correctly? Please check Eclipse-->preferences-->proxy set up for http/https.

thanks

Ashish