on 06-16-2017 4:29 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.