<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>Calling a Web API From a .NET Client</title><link>http://www.asp.net</link><pubDate>Thu, 28 Mar 2013 05:27:01 GMT</pubDate><generator>umbraco</generator><description>Comments for Calling a Web API From a .NET Client</description><language>en</language><atom:link href="http://www.asp.net/rss/comments/42697" rel="self" type="application/rss+xml" /><item><title>Comment Posted by paul-e</title><link>http://www.asp.net/web-api/overview/web-api-clients/calling-a-web-api-from-a-net-client</link><pubDate>Thu, 02 Aug 2012 07:36:24 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016102</guid><description><![CDATA[ <p>Any chance of a .net 4.0 post example as you&#39;ve done with the get?  Great set of tutorials can&#39;t wait to get using web-api in anger!</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/paul-e.jpg?forceidenticon=false&amp;dt=635045956800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by joshnoe</title><link>http://www.asp.net/web-api/overview/web-api-clients/calling-a-web-api-from-a-net-client</link><pubDate>Thu, 02 Aug 2012 12:23:29 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016103</guid><description><![CDATA[ <p>Very helpful article, thanks!  However, a .Net 4.0 post example would be greatly appreciated.  I&#39;m trying to infer the code from your get methods, but the code inside the ContinueWith is never hit, nor is my Web Api post method.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/joshnoe.jpg?forceidenticon=false&amp;dt=635045956800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by mtabaj</title><link>http://www.asp.net/web-api/overview/web-api-clients/calling-a-web-api-from-a-net-client</link><pubDate>Sat, 11 Aug 2012 06:05:02 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016149</guid><description><![CDATA[ <p>Hi Mike</p><p></p><p>Thanks for your articles, very clears and usefull.  </p><p>I&#39;m using PostAsJsonAsync and it&#39;s works very well, but I can&#39;t use PutAsJsonAsync:</p><p></p><p>await client.PutAsJsonAsync(&quot;service/users/&quot; + SelUser.UserID.ToString(), SelUser);</p><p></p><p>doesn&#39;t work, I allways get 404-Not found message.  I tried it in different ways, without success.</p><p></p><p>Can you help me, please?</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/mtabaj.jpg?forceidenticon=false&amp;dt=635045956800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by totti_acmilan17</title><link>http://www.asp.net/web-api/overview/web-api-clients/calling-a-web-api-from-a-net-client</link><pubDate>Tue, 23 Oct 2012 00:15:51 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016667</guid><description><![CDATA[ <p>hi, nice work</p><p>actually I got problem to consume web api from json with different domain as I searched it is cross domain problem ??</p><p>please give me a sample that how can I consume my web api from json </p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/totti_acmilan17.jpg?forceidenticon=false&amp;dt=635045956800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by ahmadalli</title><link>http://www.asp.net/web-api/overview/web-api-clients/calling-a-web-api-from-a-net-client</link><pubDate>Thu, 06 Dec 2012 10:36:44 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016950</guid><description><![CDATA[ <p>Thanks for the article. It helped me a lot!</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/ahmadalli.jpg?forceidenticon=false&amp;dt=635045956800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by kraeg</title><link>http://www.asp.net/web-api/overview/web-api-clients/calling-a-web-api-from-a-net-client</link><pubDate>Thu, 06 Dec 2012 18:37:04 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016953</guid><description><![CDATA[ <p>I arrived here via the EF --&gt; Get Started --&gt; N-Tier page.  It promised information about change tracking when disconnected from the context, such is the case in an N-Tier architecture.</p><p></p><p>I can&#39;t find any information at all!</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/kraeg.jpg?forceidenticon=false&amp;dt=635045956800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by mtaylor794</title><link>http://www.asp.net/web-api/overview/web-api-clients/calling-a-web-api-from-a-net-client</link><pubDate>Fri, 21 Dec 2012 23:37:23 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000017048</guid><description><![CDATA[ <p>Mike</p><p>Good job. Nice to have an article that is very  basic and clean as opposed to over complexifying examples. Armed with the basics we programmers can commence to complexify at will.</p><p>Keep up the good work.</p><p>h.mitch</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/mtaylor794.jpg?forceidenticon=false&amp;dt=635045956800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by ratanLive</title><link>http://www.asp.net/web-api/overview/web-api-clients/calling-a-web-api-from-a-net-client</link><pubDate>Sun, 06 Jan 2013 13:21:10 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000017124</guid><description><![CDATA[ <p>You say to search and select &quot;Microsoft.AspNet.WebApi.Client&quot; and show a picture of it but then say to install the ASP.NET Web API Self Host package... which one is right?</p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/ratanLive.jpg?forceidenticon=false&amp;dt=635045956800000000&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/web-api-clients/calling-a-web-api-from-a-net-client</link><pubDate>Fri, 11 Jan 2013 14:17:47 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018159</guid><description><![CDATA[ <p>@ratanLive: Picture is correct, text is wrong. I&#39;ll fix this - thanks!</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/MikeWasson.jpg?forceidenticon=false&amp;dt=635045956800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by mikehj</title><link>http://www.asp.net/web-api/overview/web-api-clients/calling-a-web-api-from-a-net-client</link><pubDate>Thu, 17 Jan 2013 07:52:30 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018193</guid><description><![CDATA[ <p>Hi Mike.</p><p>Great set of articles on Web API.</p><p>I have a question about error handling on the client side.</p><p>What&#39;s the best way of extracting error details from a response message?</p><p>e.g. If my server raises a HttpResponseException with an inner exception (e.g. a SQL exception), how do I extract the Message and InnerException details etc on the client side? I have tried EnsureSuccessStatusCode but this only gives the StatusCode and ReasonPhrase.</p><p>Thanks.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/mikehj.jpg?forceidenticon=false&amp;dt=635045956800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by mnea461@ecy.wa.gov</title><link>http://www.asp.net/web-api/overview/web-api-clients/calling-a-web-api-from-a-net-client</link><pubDate>Thu, 07 Mar 2013 19:56:29 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018611</guid><description><![CDATA[ <p>Mike - there is a lot of good information here but it does not read like a tutorial.  Starts well but then rapidly moves into confusion.  It is not clear where any code goes and how it all fits together is a mystery.  Again the information looks good but it is unclear how to use it. </p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/mnea461@ecy.wa.gov.jpg?forceidenticon=false&amp;dt=635045956800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by NeoZhou</title><link>http://www.asp.net/web-api/overview/web-api-clients/calling-a-web-api-from-a-net-client</link><pubDate>Mon, 11 Mar 2013 07:25:50 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018645</guid><description><![CDATA[ <p>When I use this method to call a webapi project in another webapi project.</p><p>It&#39;s become very strange.</p><p>The HttpClient is not calling the url I give to it.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/NeoZhou.jpg?forceidenticon=false&amp;dt=635045956800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by sarosi</title><link>http://www.asp.net/web-api/overview/web-api-clients/calling-a-web-api-from-a-net-client</link><pubDate>Thu, 28 Mar 2013 05:27:01 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018794</guid><description><![CDATA[ <p>Hi, where can I get the source code from? Thanks.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/sarosi.jpg?forceidenticon=false&amp;dt=635045956800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>