<?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: A humble WCF feature request (or four)</title>
	<atom:link href="http://www.aaronlerch.com/blog/2007/07/16/a-humble-wcf-feature-request-or-four/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.aaronlerch.com/blog/2007/07/16/a-humble-wcf-feature-request-or-four/</link>
	<description></description>
	<lastBuildDate>Sat, 12 Nov 2011 20:10:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Damian Mehers</title>
		<link>http://www.aaronlerch.com/blog/2007/07/16/a-humble-wcf-feature-request-or-four/comment-page-1/#comment-470</link>
		<dc:creator>Damian Mehers</dc:creator>
		<pubDate>Sat, 01 Nov 2008 00:29:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.aaronlerch.com/blog/2007/07/16/a-humble-wcf-feature-request-or-four/#comment-470</guid>
		<description>I&#039;ve done something similar to what you are looking for, except that instead of having to have two methods (one for XML and one for JSON) you can have a single method, and depending on the content type that the client requests (via the &quot;Accept&quot; HTTP Request header), the appropriate format is automatically returned.

I do it by hooking in my own IDispatchMessageFormatter

All the code etc:
http://damianblog.com/2008/10/31/wcf-rest-dynamic-response/

/Damian</description>
		<content:encoded><![CDATA[<p>I&#8217;ve done something similar to what you are looking for, except that instead of having to have two methods (one for XML and one for JSON) you can have a single method, and depending on the content type that the client requests (via the &#8220;Accept&#8221; HTTP Request header), the appropriate format is automatically returned.</p>
<p>I do it by hooking in my own IDispatchMessageFormatter</p>
<p>All the code etc:<br />
<a href="http://damianblog.com/2008/10/31/wcf-rest-dynamic-response/" rel="nofollow">http://damianblog.com/2008/10/31/wcf-rest-dynamic-response/</a></p>
<p>/Damian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Using WCF for REST, Part 3 &#171; Infovark Underground</title>
		<link>http://www.aaronlerch.com/blog/2007/07/16/a-humble-wcf-feature-request-or-four/comment-page-1/#comment-96</link>
		<dc:creator>Using WCF for REST, Part 3 &#171; Infovark Underground</dc:creator>
		<pubDate>Tue, 27 May 2008 15:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.aaronlerch.com/blog/2007/07/16/a-humble-wcf-feature-request-or-four/#comment-96</guid>
		<description>[...] the bit between the one forward slash and another, or one querystring parameter. A few bloggers requested more flexibility in UriTemplates, and the WCF team answered with the soon-to-be-released 3.5 SP1. The ability to define variables [...]</description>
		<content:encoded><![CDATA[<p>[...] the bit between the one forward slash and another, or one querystring parameter. A few bloggers requested more flexibility in UriTemplates, and the WCF team answered with the soon-to-be-released 3.5 SP1. The ability to define variables [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aaron</title>
		<link>http://www.aaronlerch.com/blog/2007/07/16/a-humble-wcf-feature-request-or-four/comment-page-1/#comment-94</link>
		<dc:creator>aaron</dc:creator>
		<pubDate>Wed, 22 Aug 2007 23:29:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.aaronlerch.com/blog/2007/07/16/a-humble-wcf-feature-request-or-four/#comment-94</guid>
		<description>Good thought - except that the ACCEPT header can specify wildcard values, which would not play well with the well-defined interfaces WCF offers.  Besides, I think being explicit about encoding, etc. is a good thing - I just want to do it at the ServiceOperation level, not the endpoint binding level.&lt;BR/&gt;&lt;BR/&gt;Your blog post has some good points about the UriTemplate limitations. I think I read that the limitations will get better over time, but can&#039;t find my source (might&#039;ve been &lt;A HREF=&quot;http://hyperthink.net/blog&quot; REL=&quot;nofollow&quot;&gt;Steve Maine&#039;s blog&lt;/A&gt;</description>
		<content:encoded><![CDATA[<p>Good thought &#8211; except that the ACCEPT header can specify wildcard values, which would not play well with the well-defined interfaces WCF offers.  Besides, I think being explicit about encoding, etc. is a good thing &#8211; I just want to do it at the ServiceOperation level, not the endpoint binding level.</p>
<p>Your blog post has some good points about the UriTemplate limitations. I think I read that the limitations will get better over time, but can&#8217;t find my source (might&#8217;ve been <a HREF="http://hyperthink.net/blog" REL="nofollow">Steve Maine&#8217;s blog</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darrel Miller</title>
		<link>http://www.aaronlerch.com/blog/2007/07/16/a-humble-wcf-feature-request-or-four/comment-page-1/#comment-95</link>
		<dc:creator>Darrel Miller</dc:creator>
		<pubDate>Wed, 22 Aug 2007 23:29:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.aaronlerch.com/blog/2007/07/16/a-humble-wcf-feature-request-or-four/#comment-95</guid>
		<description>I&#039;m not too sure about your first request to allow extensions in the Uri.  Isn&#039;t the Accept HTTP header supposed to be used to indicate what type of media you want back?  The fact that the average browser does not let you specify the Accept header directly shouldn&#039;t encourage to re-invent the wheel.  &lt;BR/&gt;Having said that, if the UriTemplate allowed us to do&lt;BR/&gt;UriTemplate=&quot;/blog/tags/WCF{MediaType}&quot; then it would not be a problem.&lt;BR/&gt;I do like your second suggestion though.  The ability to apply an XSLT transform on the serialized return values would be excellent.&lt;BR/&gt;I posted a few weeks ago about a number of other limitations that I have come across with UriTemplate.&lt;BR/&gt;http://www.bizcoder.com/index.php/2007/07/24/systemuritemplate/</description>
		<content:encoded><![CDATA[<p>I&#8217;m not too sure about your first request to allow extensions in the Uri.  Isn&#8217;t the Accept HTTP header supposed to be used to indicate what type of media you want back?  The fact that the average browser does not let you specify the Accept header directly shouldn&#8217;t encourage to re-invent the wheel.  <br />Having said that, if the UriTemplate allowed us to do<br />UriTemplate=&#8221;/blog/tags/WCF{MediaType}&#8221; then it would not be a problem.<br />I do like your second suggestion though.  The ability to apply an XSLT transform on the serialized return values would be excellent.<br />I posted a few weeks ago about a number of other limitations that I have come across with UriTemplate.<br /><a href="http://www.bizcoder.com/index.php/2007/07/24/systemuritemplate/" rel="nofollow">http://www.bizcoder.com/index.php/2007/07/24/systemuritemplate/</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

