<?xml version="1.0" encoding="UTF-8"?>
<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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>code.commongroove.com &#187; Web Services</title>
	<atom:link href="http://code.commongroove.com/category/web-services/feed/" rel="self" type="application/rss+xml" />
	<link>http://code.commongroove.com</link>
	<description>C#, T-SQL, and general IT mojo</description>
	<lastBuildDate>Thu, 26 Jan 2012 03:00:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>ASP.Net WebServices: Enabling or Disabling POST, GET, and Documentation Requests</title>
		<link>http://code.commongroove.com/2008/09/10/asp-net-webservices-enabling-or-disabling-post-get-and-documentation-requests/</link>
		<comments>http://code.commongroove.com/2008/09/10/asp-net-webservices-enabling-or-disabling-post-get-and-documentation-requests/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 03:38:20 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Web Services]]></category>
		<category><![CDATA[WinForms]]></category>

		<guid isPermaLink="false">http://code.commongroove.com/archive/2008/09/09/asp.net-webservices-enabling-or-disabling-post-get-and-documentation-requests.aspx</guid>
		<description><![CDATA[It is relatively easy to control access to the various HTTP request types (protocols) for your ASP.Net WebService. Add something like this to the system.web section of your web.config: &#60;webServices&#62; &#60;protocols&#62; &#60;add name=&#34;HttpSoap&#34;/&#62; &#60;add name=&#34;HttpGet&#34;/&#62; &#60;!-- Because this web service &#8230; <a href="http://code.commongroove.com/2008/09/10/asp-net-webservices-enabling-or-disabling-post-get-and-documentation-requests/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>It is relatively easy to control access to the various HTTP request types (protocols) for your ASP.Net WebService.</p>
<p>Add something like this to the system.web section of your web.config:</p>
<p><code class="codecolorer html4strict default"><span class="html4strict"><span style="color: #009900;">&lt;webServices&gt;</span><br />
<span style="color: #009900;">&lt;protocols&gt;</span><br />
<span style="color: #009900;">&lt;add <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;HttpSoap&quot;</span><span style="color: #66cc66;">/</span>&gt;</span><br />
<span style="color: #009900;">&lt;add <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;HttpGet&quot;</span><span style="color: #66cc66;">/</span>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- Because this web service is all GET methods remotely --&gt;</span><br />
<span style="color: #009900;">&lt;add <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;HttpPostLocalhost&quot;</span><span style="color: #66cc66;">/</span>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- So you can test/POST locally --&gt;</span><br />
<span style="color: #009900;">&lt;remove <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Documentation&quot;</span><span style="color: #66cc66;">/</span>&gt;</span>  <span style="color: #808080; font-style: italic;">&lt;!-- So the outside world can't see your method documentation --&gt;</span><br />
<span style="color: #009900;">&lt;remove <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;HttpPost&quot;</span><span style="color: #66cc66;">/</span>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- Remove general POSTs from the outside world --&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>protocols&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>webServices&gt;</span></span></code></p>
<p>Of course you will want to tailor this to the needs of your own web service. <img src='http://www.commongroove.com/code/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>﻿</p>
]]></content:encoded>
			<wfw:commentRss>http://code.commongroove.com/2008/09/10/asp-net-webservices-enabling-or-disabling-post-get-and-documentation-requests/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

