Reputation: 449
I am following the "Application Best Practices Example" in the OpenUI5 docs. In the Component Configuration step I use the same value for "serviceUrl" that is configured in the guide:
serviceUrl : "/uilib-sample/proxy/http/services.odata.org/V2/(S(sapuidemotdg))/OData/OData.svc/"
However this url is converted to a address in "localhost" in the actual app. I can see in the Chrome Dev Tools Console that I get a 404 response when trying to get this URL. As a result of this, I cannot see a list of products or add a new product to the service, as you can see in this screenshot: Error screenshot How I am supposed to configure the OData Service URL to get read/write access to the Products List?
Thanks in advance!
Upvotes: 2
Views: 1537
Reputation: 1021
The uilib-sample-application has a server side proxy servlet, which returns the content of whatever URL is given to it.
So you either need a proxy-servlet on your "localhost" machine or a local service that you can use. The alternative (for testing) is to use chrome and start it with the "--disable-web-security" parameter, then you can use the real service URL.
Upvotes: 2