cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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.

Regards,

Dhani

Accepted Solutions (0)

Answers (1)

Answers (1)

grabz
Employee
Employee
0 Kudos

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,

Ákos