[MonoTouch] Webservice or ?

Josh Handel Josh.Handel at catapultsystems.com
Thu Dec 8 15:03:39 EST 2011


Go give Web.API a scan.. Its not your normal WCF experience.. I had REST services up and running in no time.. And if you return iqueriables you can actually query and filter your data via querystring args you pass in.. So rather than writing a "query service" or handling how you want to query data.. you can use the OpenData protocal and the new Web.API stuff will take the results from your service call (as an iqueriable) parse and run the passed in query on top of it, then serialize and send the trimmed data down in XML or JSON..

Normally I would say go with some Ruby platform like Rails or Sinatra if all you are doing is REST calls.. but this new Web.API stuff is a game changer..  For instance, I use DTOs to model my data crossing the wire from my REST call to my mobile device.. I actually reuse those POCO cs files in my mobile app and JSON.NET deserializes right in to them.. Because they are shared source, change the POCO in one file and both my client and my server continue to talk the same language :-)..

Josh Handel
Mobile Architect
512.328.8181 | Main
512.328.0584 | Fax
512.577-6568 | Cell
www.catapultsystems.com<https://webmail.catapultsystems.com/owa/UrlBlockedError.aspx>

CATAPULT SYSTEMS INC.
THE MICROSOFT CONSULTING COMPANY
________________________________
From: monotouch-bounces at lists.ximian.com [monotouch-bounces at lists.ximian.com] on behalf of Tom Opgenorth [tom at opgenorth.net]
Sent: Thursday, December 08, 2011 10:17 AM
To: Nic Wise
Cc: monotouch at lists.ximian.com
Subject: Re: [MonoTouch] Webservice or ?

Starting to go down this road myself.

Right now I'm going with REST and JSON. Using Sinatra for the server side for now.  If it turns out the server has to be .NET, I was going to use Nancy (due to its similiarity to Sinatra) or maybe Open Rasta.  Although, I might now have to take a look at ServiceStack too.

My experiences with WCF have been tolerable, but I'd shy away from it if I was starting fresh.

On Thu, Dec 8, 2011 at 05:31, Nic Wise <nicw at fastchicken.co.nz<mailto:nicw at fastchicken.co.nz>> wrote:
How complex is your data?

For very simple stuff: JSON over HTTP gets my vote.

For more complex stuff... JSON over HTTP. Unless you have SOAP/WCF
services already written.

On Thu, Dec 8, 2011 at 12:26, MojoDK <mrj at fpr.dk<mailto:mrj at fpr.dk>> wrote:
> Hi,
>
> I'm new to this, so please bear wtih me. :)
>
> I need my MT iPhone app to communicate with my company server. What is the
> best way to do this? Through webservices? JSon?
>
> Thanks!
> Mojo
>
> --
> View this message in context: http://monotouch.2284126.n4.nabble.com/Webservice-or-tp4172578p4172578.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> MonoTouch at lists.ximian.com<mailto:MonoTouch at lists.ximian.com>
> http://lists.ximian.com/mailman/listinfo/monotouch



--
Nic Wise
t.  +44 7788 592 806<tel:%2B44%207788%20592%20806> | @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
_______________________________________________
MonoTouch mailing list
MonoTouch at lists.ximian.com<mailto:MonoTouch at lists.ximian.com>
http://lists.ximian.com/mailman/listinfo/monotouch



--
http://www.opgenorth.net

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monotouch/attachments/20111208/e03370af/attachment.html 


More information about the MonoTouch mailing list