Send large data to ios application through asp.net web service
I want to send large amount of data(a table with thousands of rows) to my fellow ios developer(working on xcode) through asp.net web service.
I am using visual studio 2005 and sql server 2000.
I tried sending DataSet to him but he said he cant use datasets in ios.
Please help which approach should i choose?
Regards, A开发者_如何学编程bdullah
Send it as XML or JSON, so its easy for him to parse it. TSV or CSV can be parsed by hand too. For mobile phones since JSON is lightweight and easy to consume.
This is a pretty good resource for what you are trying to do using JSON:
DataTable JSON Serialization in JSON.NET and JavaScriptSerializer
Thanks for suggesting the approaches i should use. I went for JSON. it was quite easy to create webservice that returns data in that format. This link provided me exactly what i wanted.
http://www.codeproject.com/KB/webservices/jsonwebservice.aspx
精彩评论