Skip to Content

How to specify the format of response while building the Offline store

Jun 16, 2017 at 03:29 PM


avatar image
Former Member

Dear Team,

We are developing native applications which uses the Offline Store. In the gateway response all the Get requests from the store(ie, refresh) including the initial download is returning a json response by default.

How can we specify that the response should be in xml format while creating the store or during the refresh of the store?

We are trying with Delta enabled Gateway services. And JSON format is not supported in Delta enabled Gateway services. So we need to get the data in XML format. How can we do it using offline store.



10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Akos Grabecz
Jun 23, 2017 at 12:54 PM

Hi Dhani,

For getting an xml response from a server, you can add "?$format=xml" at the end the resourcePath which is given to the scheduleRequest method.

To have xml request format you should open the store with this: storeOptions.requestFormat = SODataDataFormatXML;

Let me know if this is not what you were searching for!

Best regards,


10 |10000 characters needed characters left characters exceeded