on 2023 Jul 14 9:17 AM
Request clarification before answering.
The service you're referring to is not a "Northwind" service but a different service based on OData V3. The "sap.ui.model.odata.v2.ODataModel" class supports only the OData V2 standard.
The error code 5XX (e.g. 500 or 501) typically indicates a server error.
Generally, OData services from odata.org are poorly maintained, incomplete, and has many issues some of which I already reported: https://github.com/OData/ODataSamples/issues?q=is%3Aissue+author%3Aboghyon
Note that those services from odata.org don't support generating CSRF tokens. In that case, add tokenHandling: false when instantiating the v2.ODataModel:
new ODataModel({ // V2
serviceUrl: "...",
tokenHandling: false,
// ...
})
Instead of the services from odata.org, take a look at https://blogs.sap.com/2017/12/05/new-sap-gateway-demo-system-available/ for other sample OData services from SAP.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, In the northwind service, when I opted for Full Access Read and Write, it returned this https://services.odata.org/V3/(S(45h3q0wgq4reb1h143jkve1l))/OData/OData.svc/
I changed the standard from V3 to V2, ran Products EntitySet and it worked fine. But on controller, it is returning the above mentioned error.
avisheksharmacoder I just enhanced my answer.
avisheksharmacoder Yes, other OData services can be found in the blog post I mentioned in my answer. Let me know if it helps!
Hi avisheksharmacoder,
As you are mentioning both Northwind and OData , not getting clarity,
Follow these links listed below you will get more clarity on Northwind.
https://youtu.be/UsXRGve--Dw
Where OData services are of different: Look at this blog for reference:
https://blogs.sap.com/2023/07/03/step-by-step-process-to-create-odata-services-in-sap/
Thank You,
Shruthi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, here the implementation I have done is using Northwind's Odata V2 service. It seems to have worked for just READ ops but for R/W, I am getting errors.
Northwind only for Testing Purpose that too i worked on read operation only,
OData you can perform CRUD operations, based on your Scenario design,
Thank You.
Hi,
Did you check the Network tab in the developer tools to see if the URL is correct? I see that you're using an absolute URL without specifying the domain. This means that it is probably trying to access the same domain as your app instead of Northwind.
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is there any error description in the response?
User | Count |
---|---|
71 | |
33 | |
9 | |
8 | |
8 | |
7 | |
7 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.