<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>REST in WCF: Varying response content type based on HTTP Request Headers</title><link>http://blogs.msdn.com/dotnetinterop/archive/2008/11/04/rest-in-wcf-varying-response-content-type-based-on-http-request-headers.aspx</link><description>Damian Mehers made a comment on my blog post from April , but I felt it was worth a full reblog. Damian's used the same WCF extensibility points I used to produce some boilerplate that varies the response content type from JSON to XML, based on the Accept</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: REST in WCF: Varying response content type based on HTTP Request Headers</title><link>http://blogs.msdn.com/dotnetinterop/archive/2008/11/04/rest-in-wcf-varying-response-content-type-based-on-http-request-headers.aspx#9106824</link><pubDate>Mon, 17 Nov 2008 08:06:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9106824</guid><dc:creator>Kyle Beyer</dc:creator><description>&lt;p&gt;Hi Dino - Thanks for sharing this. &amp;nbsp;I really like Damian's approach as well.&lt;/p&gt;
&lt;p&gt;One thing I noticed while starting to use it in conjunction with the WCF REST starter kit is that there also needs to be support for dynamic *request* serialization. So, I’ve extended your code a bit and merged it into the starter kit code to enable this.&lt;/p&gt;
&lt;p&gt;You can download source here: &lt;a rel="nofollow" target="_new" href="http://daptivate.com/archive/2008/11/16/wcf-and-rest-an-approach-to-using-the-content-type-and-accept-http-headers-for-object-serialization.aspx"&gt;http://daptivate.com/archive/2008/11/16/wcf-and-rest-an-approach-to-using-the-content-type-and-accept-http-headers-for-object-serialization.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Any chance this capability can make it into the next version of the starter kit? :)&lt;/p&gt;
</description></item><item><title>re: REST in WCF: Varying response content type based on HTTP Request Headers</title><link>http://blogs.msdn.com/dotnetinterop/archive/2008/11/04/rest-in-wcf-varying-response-content-type-based-on-http-request-headers.aspx#9122220</link><pubDate>Wed, 19 Nov 2008 09:19:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9122220</guid><dc:creator>DotNetInterop</dc:creator><description>&lt;p&gt;Kyle! &amp;nbsp;I like the way you are thinking. &amp;nbsp; I like your suggestion - will get back to you on it. &amp;nbsp;&lt;/p&gt;
</description></item><item><title>re: REST in WCF: Varying response content type based on HTTP Request Headers</title><link>http://blogs.msdn.com/dotnetinterop/archive/2008/11/04/rest-in-wcf-varying-response-content-type-based-on-http-request-headers.aspx#9792786</link><pubDate>Sat, 20 Jun 2009 06:47:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9792786</guid><dc:creator>Mike O'Brien</dc:creator><description>&lt;p&gt;The WCF REST Contrib library allows you to do this as well: &lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://wcfrestcontrib.codeplex.com/"&gt;http://wcfrestcontrib.codeplex.com/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: REST in WCF: Varying response content type based on HTTP Request Headers</title><link>http://blogs.msdn.com/dotnetinterop/archive/2008/11/04/rest-in-wcf-varying-response-content-type-based-on-http-request-headers.aspx#9931699</link><pubDate>Thu, 03 Dec 2009 00:09:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9931699</guid><dc:creator>The Farmer</dc:creator><description>&lt;p&gt;Great idea but it somehow interferes with the WebProtocolException processing. &amp;nbsp;When I plug this behavior in and the operation throws a WebProtocolException, instead of my error object being returned, I just get a generic &amp;quot;Request Error&amp;quot;.&lt;/p&gt;
&lt;p&gt;The SerializeReply method is not called on error so I can't explain how it could interfere with error processing.&lt;/p&gt;
&lt;p&gt;Trying to change big brother's ways is never this easy ;).&lt;/p&gt;
</description></item></channel></rss>