Reputation: 3051
for some days me and my colleague are discussing whats the best practice for transferring data from Android, iOS and Windows Phone 7 apps to a windows server in the internet.
The apps on the different platforms should refresh (sync, get new data from server) each 5-10 seconds. The data which should be transferred has a size about 10kb (as plain text).
Now our questions: What is the best practices to transfer this data? (TCP, REST, SOAP, HttpWebRequest??)
How to format the data? (XML, JSON??)
Upvotes: 0
Views: 585
Reputation: 46883
A lot depends on the nature of your application.
The easiest is JSON through a REST interface.
Using HTTP(REST) gives you a number of advantages, one of which that often is overlooked is ease of debugging (setup fiddler as an HTTP proxy).
Unless you need schema validation, there really isn't much of a reason to choose XML over JSON. All platforms have simple json parsing frameworks.
Upvotes: 3