Reputation: 629
I need some pro advice.
I'm working on an iPhone app that sends and receives a reasonable amount of data for one HTTP round trip.
Initially the server was sending XML back to the device, where the device parsed it and stored it within its sqlite3 database. But I've been thinking... why do I need to encode the data within XML, break it apart, then write a query client-side to store the data. Why can't I use the server to write the queries, and simply execute them on the device?
There may be a security threat here, perhaps, and I would love to hear what exactly that may be, but I'm not convinced that I absolutely need to encode the data in XML; unless I was building an API of some sort.
Anyways, I've been thinking about this problem for quite some time (I'm still very new to programming) and I would absolutely love some expert advice on this.
Thank you for your time,
Rob
Upvotes: 0
Views: 77
Reputation: 11696
You got a couple of options for data transmission:
1) For security you can use SSL via NSURLConnection.
2) You can use JSON instead on XML. Take a look at NSJSONSerialization.
3) Or depending on your server side and app needs, you could just send plain HTML (text).
It's kinda hard to give you more detailed input without knowing some specifics of what you are trying to do.
Upvotes: 2