[MonoTouch] Webservice or ?

Nic Wise nicw at fastchicken.co.nz
Thu Dec 8 09:03:34 EST 2011


BTW, if you haven't done ASMX or WCF before (and hence are not tied to
them) try ServiceStack (it's on github). Ment to be VERY good.

On Thu, Dec 8, 2011 at 14:02, Nic Wise <nicw at fastchicken.co.nz> wrote:
> Oh hell yes :) :)
>
> GET /api/v1/query?lat=51.567&lon=-1.234
>
> result:
>
> {
>  "points": [
>      { "name": "mikes coffee bar", "address":"1 Mike St", "lat":
> "50.123", "lon": "-1.222" },
>      { etc }
>
>    ]
> }
>
>
> you can use NewtonSoft  Json.NET (or possibly the built in one - I've
> not tried it) and just serialize a list of objects. Usually the
> serializers have an option to remove as much whitespace as possible
> (no CR/LF, few spaces). Use the same code on either side (server and
> client) and you can de-serialize into the same class defn.
>
> On Thu, Dec 8, 2011 at 12:33, MojoDK <mrj at fpr.dk> wrote:
>> Well for example I need to tell the server my gps position and get a list
>> (about 100) result back with customers around me. Still JSon?
>>
>> --
>> View this message in context: http://monotouch.2284126.n4.nabble.com/Webservice-or-tp4172578p4172597.html
>> Sent from the MonoTouch mailing list archive at Nabble.com.
>> _______________________________________________
>> MonoTouch mailing list
>> MonoTouch at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/monotouch
>
>
>
> --
> Nic Wise
> t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
> b. http://www.fastchicken.co.nz/
>
> Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p
> mobileAgent (for FreeAgent): get your accounts in your pocket.
> http://goo.gl/IuBU
> Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
> London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2



-- 
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p
mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2


More information about the MonoTouch mailing list