<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Content Negotiation</title><link>http://www.asp.net</link><pubDate>Tue, 12 Mar 2013 12:04:46 GMT</pubDate><generator>umbraco</generator><description>Comments for Content Negotiation</description><language>en</language><atom:link href="http://www.asp.net/rss/comments/38492" rel="self" type="application/rss+xml" /><item><title>Comment Posted by halfbeard</title><link>http://www.asp.net/web-api/overview/formats-and-model-binding/content-negotiation</link><pubDate>Wed, 10 Oct 2012 07:05:11 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016597</guid><description><![CDATA[ <p>If a client sends</p><p>GET http://localhost.:21069/api/products/1 HTTP/1.1 </p><p></p><p>...will the server ever return the following?</p><p>{&quot;Id&quot;:0,&quot;Name&quot;:&quot;Gizmo&quot;,&quot;Category&quot;:&quot;Widgets&quot;,&quot;Price&quot;:1.99}</p><p></p><p>If I understand correctly, the client requests the product with id == 1, and the server returns the product with id == 0.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/halfbeard.jpg?forceidenticon=false&amp;dt=635048491200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by sync.gz</title><link>http://www.asp.net/web-api/overview/formats-and-model-binding/content-negotiation</link><pubDate>Wed, 14 Nov 2012 09:12:44 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016800</guid><description><![CDATA[ <p>That&#39;s it what I&#39;m looking for. Great job!!! Thx !!!</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/sync.gz.jpg?forceidenticon=false&amp;dt=635048491200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by MikeWasson</title><link>http://www.asp.net/web-api/overview/formats-and-model-binding/content-negotiation</link><pubDate>Wed, 16 Jan 2013 00:01:10 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018177</guid><description><![CDATA[ <p>@halfbeard: Good catch, that&#39;s a typo ... presumably the server should return the product with id== 1. </p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/MikeWasson.jpg?forceidenticon=false&amp;dt=635048491200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by fbuskens</title><link>http://www.asp.net/web-api/overview/formats-and-model-binding/content-negotiation</link><pubDate>Tue, 12 Mar 2013 12:04:46 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018665</guid><description><![CDATA[ <p>Hi Mike,</p><p></p><p>I created an OData source based on ASP.NET Web Api. Works great!</p><p>I notices that the default response is JSON and not XML, that is if the request header does not specify a content type. I like to use Excel to import this source into an spreadsheet (via Data-&gt;From Other Sources-&gt;From OData). Fiddler tells me Excel does not specify a content type so JSON is returned. But Excel does not know how to parse JSON, only XML. Can you tell me how to change the default from JSON to Atom/XML? Txs!</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/fbuskens.jpg?forceidenticon=false&amp;dt=635048491200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>