<?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>enableWebScript, UriTemplate, and HTTP methods</title><link>http://blogs.msdn.com/justinjsmith/archive/2008/02/15/enablewebscript-uritemplate-and-http-methods.aspx</link><description>A little while ago I ran into an interesting set of errors that may be of interest to you. Consider the following service contract snippet: [OperationContract] [WebGet(UriTemplate= &amp;quot;foobar/{value}&amp;quot; )] String GetData(String value ); .csharpcode,</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Calling Web Services via AJAX - Part 2</title><link>http://blogs.msdn.com/justinjsmith/archive/2008/02/15/enablewebscript-uritemplate-and-http-methods.aspx#8374969</link><pubDate>Thu, 10 Apr 2008 17:33:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8374969</guid><dc:creator>Kirk Allen Evans's Blog</dc:creator><description>&lt;p&gt;Looks like this is an interesting topic to a lot of people since part 1 of this series made it to the&lt;/p&gt;
</description></item><item><title>re: enableWebScript, UriTemplate, and HTTP methods</title><link>http://blogs.msdn.com/justinjsmith/archive/2008/02/15/enablewebscript-uritemplate-and-http-methods.aspx#8502951</link><pubDate>Wed, 14 May 2008 12:05:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8502951</guid><dc:creator>Nader</dc:creator><description>&lt;p&gt;In your MIX2008 presentation, you wrote this:&lt;/p&gt;
&lt;p&gt;Uri address = new Uri(&amp;quot;&lt;a rel="nofollow" target="_new" href="http://localhost:2000&amp;quot;"&gt;http://localhost:2000&amp;quot;&lt;/a&gt;);&lt;/p&gt;
&lt;p&gt;UriTemplate template = new UriTemplate(&amp;quot;{artist}/{album}&amp;quot;);&lt;/p&gt;
&lt;p&gt;Uri boundUri = template.BindByPosition(address, &amp;quot;Northwind&amp;quot;, &amp;quot;Overdone&amp;quot;);&lt;/p&gt;
&lt;p&gt;Console.WriteLine(address.ToString());&lt;/p&gt;
&lt;p&gt;The last line must been changed to:&lt;/p&gt;
&lt;p&gt;Console.WriteLine(boundUri.ToString());&lt;/p&gt;
</description></item><item><title>re: enableWebScript, UriTemplate, and HTTP methods</title><link>http://blogs.msdn.com/justinjsmith/archive/2008/02/15/enablewebscript-uritemplate-and-http-methods.aspx#9501217</link><pubDate>Mon, 23 Mar 2009 16:02:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9501217</guid><dc:creator>Mot</dc:creator><description>&lt;p&gt;Thanks for explaining this error.&lt;/p&gt;
&lt;p&gt;Can't the enableWebScript behavior be modified to overcome this issue?&lt;/p&gt;
</description></item><item><title>re: enableWebScript, UriTemplate, and HTTP methods</title><link>http://blogs.msdn.com/justinjsmith/archive/2008/02/15/enablewebscript-uritemplate-and-http-methods.aspx#9931697</link><pubDate>Thu, 03 Dec 2009 00:04:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9931697</guid><dc:creator>Keith Barrows</dc:creator><description>&lt;p&gt;I have the following code snippet:&lt;/p&gt;
&lt;p&gt;[OperationContract]&lt;/p&gt;
&lt;p&gt;[WebInvoke(BodyStyle = WebMessageBodyStyle.WrappedRequest, RequestFormat=WebMessageFormat.Json, ResponseFormat=WebMessageFormat.Json, UriTemplate=&amp;quot;/Decrypt&amp;quot;)]&lt;/p&gt;
&lt;p&gt;string Decrypt(string interactive);&lt;/p&gt;
&lt;p&gt;It throws the above error. &amp;nbsp;I am trying to get JSON to work on a WCF web service and am running in circles! &amp;nbsp;Any suggestions?&lt;/p&gt;
</description></item></channel></rss>