<?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>Dev Team Assemble &#187; url rewriter</title>
	<atom:link href="http://www.calvinirwin.net/tag/url-rewriter/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.calvinirwin.net</link>
	<description>Evil beware!</description>
	<lastBuildDate>Wed, 28 Jul 2010 12:55:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SharePoint, Webservices and URL Rewrite&#8230;</title>
		<link>http://www.calvinirwin.net/2010/07/28/sharepoint-webservices-and-url-rewrite/</link>
		<comments>http://www.calvinirwin.net/2010/07/28/sharepoint-webservices-and-url-rewrite/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 12:55:01 +0000</pubDate>
		<dc:creator>Calvin</dc:creator>
				<category><![CDATA[Configuration]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[url rewriter]]></category>
		<category><![CDATA[WebServices]]></category>

		<guid isPermaLink="false">http://www.calvinirwin.net/?p=255</guid>
		<description><![CDATA[So I was having a strange problem in SharePoint the other day trying to run a webservice from a client script.  Every time I called the service (in this case and .asmx in the layouts dir) it was doing nothing...no communication at all with the service.  What made this particularly strange is that this exact [...]]]></description>
			<content:encoded><![CDATA[<p>So I was having a strange problem in SharePoint the other day trying to run a webservice from a client script.  Every time I called the service (in this case and .asmx in the layouts dir) it was doing nothing...no communication at all with the service.  What made this particularly strange is that this exact same setup was working fine for everyone else in my team...figures.</p>
<p>When I ran the web methods from the service page itself (which loaded just fine) I got the following error :<a href="/ThreadNavigation.aspx?PostID=1278431&amp;NavType=Previous"><span> </span></a> <strong>Request format is unrecognized for URL unexpectedly ending in  '/[webmethod_name]'.</strong> Didn't make sense...I checked my web configuration and compared it against the other people in my team and all was well.  I tried following Microsoft's recommendation of adding the following snippet to the system.web section of the config file.</p>
<p>&lt;<span>webServices</span>&gt;<br />
&lt;<span>protocols</span>&gt;<br />
&lt;<span>add</span><span> name=</span><span>"HttpGet"</span>/&gt;<br />
&lt;<span>add</span><span> name=</span><span>"HttpPost"</span>/&gt;<br />
&lt;/<span>protocols</span>&gt;<br />
&lt;/<span>webServices</span>&gt;</p>
<p>All the above did was give me a 500 error.</p>
<p>After spending waaaaaaaaay to much time on the problem...a colleague of mine and I finally discovered that it was due to the Lower case rewrite inbound rule (converts the entire address to lower case).  Apparently webmethod names are case sensitive in the address bar (this was not a SharePoint problem)...the documentation is here on msdn:  <a href="http://msdn.microsoft.com/en-us/library/0c515353(VS.71).aspx">http://msdn.microsoft.com/en-us/library/0c515353(VS.71).aspx </a></p>
<p>So turning off the rule and everything started to work again.</p>

<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/SharePoint' rel='tag' target='_self'>SharePoint</a>, <a class='technorati-link' href='http://technorati.com/tag/url+rewriter' rel='tag' target='_self'>url rewriter</a>, <a class='technorati-link' href='http://technorati.com/tag/WebServices' rel='tag' target='_self'>WebServices</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://www.calvinirwin.net/2010/07/28/sharepoint-webservices-and-url-rewrite/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>URL Rewriter</title>
		<link>http://www.calvinirwin.net/2009/07/26/url-rewriter/</link>
		<comments>http://www.calvinirwin.net/2009/07/26/url-rewriter/#comments</comments>
		<pubDate>Sun, 26 Jul 2009 18:59:46 +0000</pubDate>
		<dc:creator>Calvin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[url rewriter]]></category>

		<guid isPermaLink="false">http://www.calvinirwin.net/?p=25</guid>
		<description><![CDATA[I came across this neat tool (well a colleague of mine did and told me about it) from Helicon called URL Rewriter. Basically it allows you to use an ISAPI filter to rewrite the url that the server uses to work with in IIS and is essentially a copy of the mod_rewrite utility available in [...]]]></description>
			<content:encoded><![CDATA[<p>I came across this neat tool (well a colleague of mine did and told me about it) from Helicon called<a href="http://www.helicontech.com/"> URL Rewriter</a>. Basically it allows you to use an ISAPI filter to rewrite the url that the server uses to work with in IIS and is essentially a copy of the mod_rewrite utility available in Apache.</p>
<p>It uses Regular expressions...so if you are not an expert in those (as I am clearly not) then this little tidbit of code may help. It allows you to rewrite the url that comes in as subdomain.domain.com as domain.com/subdomain. The top portion is the header and sets up logging and such...the real meat is the last two lines.</p>
<p>Here it is</p>
<p># Helicon ISAPI_Rewrite configuration file<br />
# Version 3.1.0.48<br />
RewriteEngine On<br />
RewriteCompatibility2 On<br />
RepeatLimit 200<br />
RewriteBase<br />
ReWriteLog C:\rewrite.log<br />
RewriteLogLevel 9</p>
<p>RewriteCond %{HTTP_HOST} ^(?!www)(\w+).christiedigital\.com<br />
RewriteRule (.*) /%1/$1 [L]</p>
<p>Hope this helps</p>

<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/Development' rel='tag' target='_self'>Development</a>, <a class='technorati-link' href='http://technorati.com/tag/IIS' rel='tag' target='_self'>IIS</a>, <a class='technorati-link' href='http://technorati.com/tag/mod_rewrite' rel='tag' target='_self'>mod_rewrite</a>, <a class='technorati-link' href='http://technorati.com/tag/url+rewriter' rel='tag' target='_self'>url rewriter</a>, <a class='technorati-link' href='http://technorati.com/tag/Windows' rel='tag' target='_self'>Windows</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://www.calvinirwin.net/2009/07/26/url-rewriter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
