cancel
Showing results for 
Search instead for 
Did you mean: 

OData makes POST instead of GET - Fiori List Report

aniketnpatil
Advisor
Advisor
0 Kudos

Hello,

I have created a simple OData V2 services (.xsodata) and integrated it with a Fiori application.

I have binded one of the entity/collections of the OData to the list report page and trying to check if my app is able to consume the OData and display the results.

However, I am getting the following error in my console after running the application:

Request failed with status code 403: POST my-dev-odata-service.xsodata/$batch - [{"code":"","message":"Communication error","persistent":true,"targets":[""],"type":"Error"}] sap.ui.model.odata.ODataMessageParser

It looks like a POST request is made instead of GET request.

Any suggestions are highly appreciated. Thanks.

View Entire Topic
jlongie
Product and Topic Expert
Product and Topic Expert
0 Kudos

Look at property useBatch which can be configured in your manifest.json

https://sapui5.hana.ondemand.com/sdk/#/api/sap.ui.model.odata.ODataModel/constructor

{
  "sap.ui5": {
    "models": {
      "yourV2ODataModel": {
        "dataSource": "yourDataSource",
        "settings": {
          "useBatch": false
        }
      }
    }
  }
}