<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: ASP.NET MVC &#8211; Create easy REST API with JSON and XML</title>
	<atom:link href="http://aleembawany.com/2009/03/27/aspnet-mvc-create-easy-rest-api-with-json-and-xml/feed/" rel="self" type="application/rss+xml" />
	<link>http://aleembawany.com/2009/03/27/aspnet-mvc-create-easy-rest-api-with-json-and-xml/</link>
	<description>tech, web and the rest</description>
	<lastBuildDate>Thu, 11 Mar 2010 04:18:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Aleem</title>
		<link>http://aleembawany.com/2009/03/27/aspnet-mvc-create-easy-rest-api-with-json-and-xml/comment-page-1/#comment-28524</link>
		<dc:creator>Aleem</dc:creator>
		<pubDate>Mon, 27 Jul 2009 09:40:48 +0000</pubDate>
		<guid isPermaLink="false">http://aleembawany.com/?p=533#comment-28524</guid>
		<description>&lt;p&gt;The content type should not be form-urlencoded if you are serializing the form as json. If it is its will not be handled the by the filter. It&#039;s possible the submit button triggers the submission and preempts the Javascript.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>The content type should not be form-urlencoded if you are serializing the form as json. If it is its will not be handled the by the filter. It&#8217;s possible the submit button triggers the submission and preempts the Javascript.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emad Ibrahim</title>
		<link>http://aleembawany.com/2009/03/27/aspnet-mvc-create-easy-rest-api-with-json-and-xml/comment-page-1/#comment-28483</link>
		<dc:creator>Emad Ibrahim</dc:creator>
		<pubDate>Thu, 23 Jul 2009 09:23:53 +0000</pubDate>
		<guid isPermaLink="false">http://aleembawany.com/?p=533#comment-28483</guid>
		<description>&lt;p&gt;Great tip but I found that when I run this on a POST action e.g.&lt;/p&gt;

&lt;code&gt;[AcceptVerbs(HttpVerbs.Post)]
[JsonPox]
public ActionResult DeleteUser(Guid? id)
&lt;/code&gt;

&lt;p&gt;The ContentType is equal to &quot;application/x-www-form-urlencoded&quot;&lt;/p&gt;

&lt;p&gt;Instead, I use request.AcceptTypes[0]&lt;/p&gt;

&lt;p&gt;PS: I am using jquery to perform an ajax post e.g. &lt;/p&gt;

&lt;code&gt;$.post(url,data,callback,&quot;json&quot;)
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Great tip but I found that when I run this on a POST action e.g.</p>
<p><code>[AcceptVerbs(HttpVerbs.Post)]<br />
[JsonPox]<br />
public ActionResult DeleteUser(Guid? id)<br />
</code></p>
<p>The ContentType is equal to &#8220;application/x-www-form-urlencoded&#8221;</p>
<p>Instead, I use request.AcceptTypes[0]</p>
<p>PS: I am using jquery to perform an ajax post e.g. </p>
<p><code>$.post(url,data,callback,"json")<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JSON Serializers In .NET - Aleem Bawany</title>
		<link>http://aleembawany.com/2009/03/27/aspnet-mvc-create-easy-rest-api-with-json-and-xml/comment-page-1/#comment-28119</link>
		<dc:creator>JSON Serializers In .NET - Aleem Bawany</dc:creator>
		<pubDate>Sun, 31 May 2009 10:50:23 +0000</pubDate>
		<guid isPermaLink="false">http://aleembawany.com/?p=533#comment-28119</guid>
		<description>[...] was introduced to the various serialization options in .NET while trying to build the JSON and XML filter for ASP.NET MVC. In this post I’ll take a look at the different JSON serializers in .NET and the reasons to [...]</description>
		<content:encoded><![CDATA[<p>[...] was introduced to the various serialization options in .NET while trying to build the JSON and XML filter for ASP.NET MVC. In this post I’ll take a look at the different JSON serializers in .NET and the reasons to [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aleem</title>
		<link>http://aleembawany.com/2009/03/27/aspnet-mvc-create-easy-rest-api-with-json-and-xml/comment-page-1/#comment-28022</link>
		<dc:creator>Aleem</dc:creator>
		<pubDate>Wed, 20 May 2009 06:27:45 +0000</pubDate>
		<guid isPermaLink="false">http://aleembawany.com/?p=533#comment-28022</guid>
		<description>&lt;p&gt;I have perused through your posts but they seems overly complicated for something that should be fairly trivial. Regarding JSON/XML, in part 3 you handle it by having switch statements in your action methods which is tedious and repetitive with a management overhead--it should be done in a common location. Also I am not sure I agree with format type information as a query parameter (?format=json). It doesn&#039;t seem RESTful because that can be inferred by HTTP headers.&lt;/p&gt;

&lt;p&gt;The filter here is  very easy to implement, you just need to decorate your action methods and that&#039;s pretty much it. You don&#039;t need to write any special code to handle JSON/POX--it just works automatically.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>I have perused through your posts but they seems overly complicated for something that should be fairly trivial. Regarding JSON/XML, in part 3 you handle it by having switch statements in your action methods which is tedious and repetitive with a management overhead&#8211;it should be done in a common location. Also I am not sure I agree with format type information as a query parameter (?format=json). It doesn&#8217;t seem RESTful because that can be inferred by HTTP headers.</p>
<p>The filter here is  very easy to implement, you just need to decorate your action methods and that&#8217;s pretty much it. You don&#8217;t need to write any special code to handle JSON/POX&#8211;it just works automatically.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Piers Lawson</title>
		<link>http://aleembawany.com/2009/03/27/aspnet-mvc-create-easy-rest-api-with-json-and-xml/comment-page-1/#comment-28021</link>
		<dc:creator>Piers Lawson</dc:creator>
		<pubDate>Tue, 19 May 2009 23:42:00 +0000</pubDate>
		<guid isPermaLink="false">http://aleembawany.com/?p=533#comment-28021</guid>
		<description>&lt;p&gt;Have a look at my &lt;a href=&quot;http://www.shouldersofgiants.co.uk/Blog&quot; rel=&quot;nofollow&quot;&gt;series&lt;/a&gt; on creating a RESTful web service using MVC. I&#039;ve implemented XSLT based views, a &quot;Help&quot; representation etc. Hopefully it will be of use to you!&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Have a look at my <a href="http://www.shouldersofgiants.co.uk/Blog" rel="nofollow">series</a> on creating a RESTful web service using MVC. I&#8217;ve implemented XSLT based views, a &#8220;Help&#8221; representation etc. Hopefully it will be of use to you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Persistence Ignorance in ADO.NET Entity Framework - Aleem Bawany</title>
		<link>http://aleembawany.com/2009/03/27/aspnet-mvc-create-easy-rest-api-with-json-and-xml/comment-page-1/#comment-27762</link>
		<dc:creator>Persistence Ignorance in ADO.NET Entity Framework - Aleem Bawany</dc:creator>
		<pubDate>Mon, 06 Apr 2009 12:25:51 +0000</pubDate>
		<guid isPermaLink="false">http://aleembawany.com/?p=533#comment-27762</guid>
		<description>[...] previously published a JSON / POX Filter for MVC developers working with RESTful services. It works really well in that it allows a [...]</description>
		<content:encoded><![CDATA[<p>[...] previously published a JSON / POX Filter for MVC developers working with RESTful services. It works really well in that it allows a [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aleem</title>
		<link>http://aleembawany.com/2009/03/27/aspnet-mvc-create-easy-rest-api-with-json-and-xml/comment-page-1/#comment-27665</link>
		<dc:creator>Aleem</dc:creator>
		<pubDate>Tue, 31 Mar 2009 10:41:36 +0000</pubDate>
		<guid isPermaLink="false">http://aleembawany.com/?p=533#comment-27665</guid>
		<description>&lt;p&gt;Thanks, I will certainly check it out.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Thanks, I will certainly check it out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bret</title>
		<link>http://aleembawany.com/2009/03/27/aspnet-mvc-create-easy-rest-api-with-json-and-xml/comment-page-1/#comment-27644</link>
		<dc:creator>Bret</dc:creator>
		<pubDate>Mon, 30 Mar 2009 16:16:22 +0000</pubDate>
		<guid isPermaLink="false">http://aleembawany.com/?p=533#comment-27644</guid>
		<description>You should try SubSonic out I think that it flows with MVC a lot more as Rob Conery is now working on MVC and SubSonic.</description>
		<content:encoded><![CDATA[<p>You should try SubSonic out I think that it flows with MVC a lot more as Rob Conery is now working on MVC and SubSonic.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aleem</title>
		<link>http://aleembawany.com/2009/03/27/aspnet-mvc-create-easy-rest-api-with-json-and-xml/comment-page-1/#comment-27616</link>
		<dc:creator>Aleem</dc:creator>
		<pubDate>Sun, 29 Mar 2009 13:38:24 +0000</pubDate>
		<guid isPermaLink="false">http://aleembawany.com/?p=533#comment-27616</guid>
		<description>Well, with MVC going RTM it was hard to resist. Web forms are still good for what they do (VS designer, third-party controls, rapid prototyping with automatic handling of sessions states and postbacks) but for my present case, ASP.NET MVC is the better choice.

And now that ADO.NET Entity Framework has also gone RTM, I&#039;m giving it a good, hard look but my inclination is toward Linq to SQL (No NHibernate for now due to lack of jump-start scenarios with MVC or VS 2008).</description>
		<content:encoded><![CDATA[<p>Well, with MVC going RTM it was hard to resist. Web forms are still good for what they do (VS designer, third-party controls, rapid prototyping with automatic handling of sessions states and postbacks) but for my present case, ASP.NET MVC is the better choice.</p>
<p>And now that ADO.NET Entity Framework has also gone RTM, I&#8217;m giving it a good, hard look but my inclination is toward Linq to SQL (No NHibernate for now due to lack of jump-start scenarios with MVC or VS 2008).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shey</title>
		<link>http://aleembawany.com/2009/03/27/aspnet-mvc-create-easy-rest-api-with-json-and-xml/comment-page-1/#comment-27614</link>
		<dc:creator>Shey</dc:creator>
		<pubDate>Sun, 29 Mar 2009 13:05:29 +0000</pubDate>
		<guid isPermaLink="false">http://aleembawany.com/?p=533#comment-27614</guid>
		<description>Get to see that you finally jumped off of the ASP.NET webforms bandwagon, now when will you fall in love with ORM?</description>
		<content:encoded><![CDATA[<p>Get to see that you finally jumped off of the ASP.NET webforms bandwagon, now when will you fall in love with ORM?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->