Skip to Content

DOES THE XSODATA SERVICE POST REQUEST RETURN ONLY XML FORMAT???

Hello Experts,

When I perform a successful POST request using Odata services (*.xsodata) it returns only XML format? Is it possible to perform a POST request and get a JSON as a result?

I know that when you are performing a GET request you can just add the parameter ?$format=json to get a JSON as a result but it did not work for POSTS requests.

regards,

Filipe

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Dec 06, 2016 at 06:01 AM

    Hello Filipe,

    in the POST request you have to set the "Accept" header to "application/json" (or "application/json; charset=utf-8") to get a JSON back as response.

    Regards,
    Florian

    Add comment
    10|10000 characters needed characters exceeded