asp.net mvc - What's the best practice .net Architecture for a single simple json web service? -
so know of 3 .net architecture's can provide json data in form of web service:
1) classic asmx web service
2) asp.net mvc action returns json result.
3) wcf
(also there way use asp.net web forms ajax, i'm not going there)
i've worked 3 before, , seems classic asmx web service right pick job. i'm not sure if web services preferred way of providing json data in .net environment anymore.
the project have 1 web service , nothing else, @ point.
what's microsoft (tm) preferred architecture of creating simple json web service these days?
if application asp.net mvc application, don't need else. create controller returns jsonresult class
also, give wcf web api try : http://wcf.codeplex.com/releases/view/64449
watch of videos of glenn block here;
http://channel9.msdn.com/events/mix/mix11/frm14
http://channel9.msdn.com/events/devdays/devdays-2011-netherlands/devdays103
Comments
Post a Comment