Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • 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,

    Ákos

    Add comment
    10|10000 characters needed characters exceeded