iphone - IPad SQLite Push and Pull Data from external MS SQL Server DB -
this carries on previous post (http://stackoverflow.com/questions/4182664/ipad-app-pull-and-push-relational-data). plan when ipad application starts going pull data (config data i.e. departments, types etc etc relational data used across system) webhosted ms sql server db via webservice , populate sql lite db on ipad. when load listing pull data on line again via webservice , populate sql lite db on ipad (than run select commands populate listing).
my questions are: 1. efficient way transfer data across line via web? seems different way. idea have webservice each type of data pull (e.g. retrievecontactlisting) query db , convert data "something" send across line. question "something" should converting into? 2. talks odata services. suited applications complex read , writes needed?
ive created simple iphone app before talked sql server db (i sent own structured xml across line) app data calls going lot larger efficiency key.
i'll give "standard" answer type of question (which gets ratings) - worked around specific issue bit:
forget fact you're "moving records 1 database another". you're reading data out of 1 database - sending on network - parsing - , writing iphone database.
to this:
on web server running ms sql server, write web page (perl, asp, whatever want) based upon web query (or not), reads applicable contents ms sql database, , outputs in xml format.
on ipad, use nsxmlparser class request , parse xml data. nice thing nsxmlparser, work of opening http connection, fetching data across network, , parsing xml all in 1 call, the:
- (id)initwithcontentsofurl:(nsurl *)url
use nsxmlparser calls data need parsed xml document, , write local iphone database standard core data services.
Comments
Post a Comment