<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Test WCF web service &#8211; Hosted in ASP.NET Development Server</title>
	<atom:link href="http://billwg.wordpress.com/2008/10/31/test-wcf-web-service-hosted-in-aspnet-development-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://billwg.wordpress.com/2008/10/31/test-wcf-web-service-hosted-in-aspnet-development-server/</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Sat, 20 Jun 2009 12:22:15 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Bill</title>
		<link>http://billwg.wordpress.com/2008/10/31/test-wcf-web-service-hosted-in-aspnet-development-server/#comment-33</link>
		<dc:creator>Bill</dc:creator>
		<pubDate>Sat, 20 Jun 2009 12:22:15 +0000</pubDate>
		<guid isPermaLink="false">http://billwg.wordpress.com/?p=9#comment-33</guid>
		<description>I&#039;m just criouse, do you know Ewald Hofman? He&#039;s in Avandae too.</description>
		<content:encoded><![CDATA[<p>I&#8217;m just criouse, do you know Ewald Hofman? He&#8217;s in Avandae too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill</title>
		<link>http://billwg.wordpress.com/2008/10/31/test-wcf-web-service-hosted-in-aspnet-development-server/#comment-32</link>
		<dc:creator>Bill</dc:creator>
		<pubDate>Sat, 20 Jun 2009 12:09:36 +0000</pubDate>
		<guid isPermaLink="false">http://billwg.wordpress.com/?p=9#comment-32</guid>
		<description>Thank you for the EndpointAddressBuilder part.</description>
		<content:encoded><![CDATA[<p>Thank you for the EndpointAddressBuilder part.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill</title>
		<link>http://billwg.wordpress.com/2008/10/31/test-wcf-web-service-hosted-in-aspnet-development-server/#comment-31</link>
		<dc:creator>Bill</dc:creator>
		<pubDate>Sat, 20 Jun 2009 12:04:28 +0000</pubDate>
		<guid isPermaLink="false">http://billwg.wordpress.com/?p=9#comment-31</guid>
		<description>Well. I reviewed the post today. The AspNetDevelopmentServer does actually try to host web application at random ports. That&#039;s why we need to use TryUrlRedirection to redirect the web service proxy before involking the web service. 

By the way, I refined this post and published it on http://billwg.blogspot.com/2009/06/testing-wcf-web-services.html today. I also attached a sample project there. Hope it helps.</description>
		<content:encoded><![CDATA[<p>Well. I reviewed the post today. The AspNetDevelopmentServer does actually try to host web application at random ports. That&#8217;s why we need to use TryUrlRedirection to redirect the web service proxy before involking the web service. </p>
<p>By the way, I refined this post and published it on <a href="http://billwg.blogspot.com/2009/06/testing-wcf-web-services.html" rel="nofollow">http://billwg.blogspot.com/2009/06/testing-wcf-web-services.html</a> today. I also attached a sample project there. Hope it helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dawid</title>
		<link>http://billwg.wordpress.com/2008/10/31/test-wcf-web-service-hosted-in-aspnet-development-server/#comment-30</link>
		<dc:creator>dawid</dc:creator>
		<pubDate>Fri, 19 Jun 2009 14:52:49 +0000</pubDate>
		<guid isPermaLink="false">http://billwg.wordpress.com/?p=9#comment-30</guid>
		<description>Yup, I have that. Looks like AspNetDevelopmentServer ignores those settings and instead uses the passed in parameters, except a port number.  Thanks for your help.</description>
		<content:encoded><![CDATA[<p>Yup, I have that. Looks like AspNetDevelopmentServer ignores those settings and instead uses the passed in parameters, except a port number.  Thanks for your help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill</title>
		<link>http://billwg.wordpress.com/2008/10/31/test-wcf-web-service-hosted-in-aspnet-development-server/#comment-29</link>
		<dc:creator>Bill</dc:creator>
		<pubDate>Fri, 19 Jun 2009 07:59:13 +0000</pubDate>
		<guid isPermaLink="false">http://billwg.wordpress.com/?p=9#comment-29</guid>
		<description>Hi Dawid

I can’t say it for sure now. In the Property page of the WCF project, please try setting a specific port in the Web tab.</description>
		<content:encoded><![CDATA[<p>Hi Dawid</p>
<p>I can’t say it for sure now. In the Property page of the WCF project, please try setting a specific port in the Web tab.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dawid</title>
		<link>http://billwg.wordpress.com/2008/10/31/test-wcf-web-service-hosted-in-aspnet-development-server/#comment-27</link>
		<dc:creator>Dawid</dc:creator>
		<pubDate>Fri, 19 Jun 2009 01:10:58 +0000</pubDate>
		<guid isPermaLink="false">http://billwg.wordpress.com/?p=9#comment-27</guid>
		<description>Hi,

This is of big help, but I must be missing a step.  The AspNetDevelopmentServer is trying to host the Service at a random port, but the Service has an endpoint with port number defined in the web.config, so it throws an exception: No protocol binding matches the given address.  How do I fix this?

Thanks,
Dawid</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>This is of big help, but I must be missing a step.  The AspNetDevelopmentServer is trying to host the Service at a random port, but the Service has an endpoint with port number defined in the web.config, so it throws an exception: No protocol binding matches the given address.  How do I fix this?</p>
<p>Thanks,<br />
Dawid</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: djijr5</title>
		<link>http://billwg.wordpress.com/2008/10/31/test-wcf-web-service-hosted-in-aspnet-development-server/#comment-23</link>
		<dc:creator>djijr5</dc:creator>
		<pubDate>Sun, 17 May 2009 08:40:19 +0000</pubDate>
		<guid isPermaLink="false">http://billwg.wordpress.com/?p=9#comment-23</guid>
		<description>Hello, Very nice site. Universe help us, dont worry man.</description>
		<content:encoded><![CDATA[<p>Hello, Very nice site. Universe help us, dont worry man.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: riezebosch</title>
		<link>http://billwg.wordpress.com/2008/10/31/test-wcf-web-service-hosted-in-aspnet-development-server/#comment-16</link>
		<dc:creator>riezebosch</dc:creator>
		<pubDate>Thu, 02 Apr 2009 09:31:52 +0000</pubDate>
		<guid isPermaLink="false">http://billwg.wordpress.com/?p=9#comment-16</guid>
		<description>Tweaked your solution a bit to remove the need of reflection (generics FTW!). Also used the EndpointAddressBuilder to make sure all endpoint information is copied.

public static bool TryUrlRedirection(ClientBase client, TestContext context, string identifier)
    where T: class
{
    try
    {
        identifier = string.Format(&quot;AspNetDevelopmentServer.{0}&quot;, identifier);
        Uri webServerUri = context.Properties[identifier] as Uri;

        EndpointAddressBuilder builder = new EndpointAddressBuilder(client.Endpoint.Address);
        builder.Uri = new Uri(client.Endpoint.Address.Uri.OriginalString.Replace(client.Endpoint.Address.Uri.Authority, webServerUri.Authority));
        
        client.Endpoint.Address = builder.ToEndpointAddress();
    }
    catch (Exception)
    {
        return false;
    }
    
    return true;
}</description>
		<content:encoded><![CDATA[<p>Tweaked your solution a bit to remove the need of reflection (generics FTW!). Also used the EndpointAddressBuilder to make sure all endpoint information is copied.</p>
<p>public static bool TryUrlRedirection(ClientBase client, TestContext context, string identifier)<br />
    where T: class<br />
{<br />
    try<br />
    {<br />
        identifier = string.Format(&#8220;AspNetDevelopmentServer.{0}&#8221;, identifier);<br />
        Uri webServerUri = context.Properties[identifier] as Uri;</p>
<p>        EndpointAddressBuilder builder = new EndpointAddressBuilder(client.Endpoint.Address);<br />
        builder.Uri = new Uri(client.Endpoint.Address.Uri.OriginalString.Replace(client.Endpoint.Address.Uri.Authority, webServerUri.Authority));</p>
<p>        client.Endpoint.Address = builder.ToEndpointAddress();<br />
    }<br />
    catch (Exception)<br />
    {<br />
        return false;<br />
    }</p>
<p>    return true;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cameron</title>
		<link>http://billwg.wordpress.com/2008/10/31/test-wcf-web-service-hosted-in-aspnet-development-server/#comment-14</link>
		<dc:creator>Cameron</dc:creator>
		<pubDate>Fri, 13 Feb 2009 21:12:05 +0000</pubDate>
		<guid isPermaLink="false">http://billwg.wordpress.com/?p=9#comment-14</guid>
		<description>I actually did not even need the redirect method call:

/// 
///A test for GetItem
///
[TestMethod()]
[AspNetDevelopmentServer(&quot;test&quot;, @&quot;C:\tfs\R&amp;D\MyWCFService\&quot;)]
public void TestGetItem()
{
 ...
}

Thanks</description>
		<content:encoded><![CDATA[<p>I actually did not even need the redirect method call:</p>
<p>///<br />
///A test for GetItem<br />
///<br />
[TestMethod()]<br />
[AspNetDevelopmentServer("test", @"C:\tfs\R&amp;D\MyWCFService\")]<br />
public void TestGetItem()<br />
{<br />
 &#8230;<br />
}</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stelios Tzavaras</title>
		<link>http://billwg.wordpress.com/2008/10/31/test-wcf-web-service-hosted-in-aspnet-development-server/#comment-10</link>
		<dc:creator>Stelios Tzavaras</dc:creator>
		<pubDate>Mon, 22 Dec 2008 15:48:31 +0000</pubDate>
		<guid isPermaLink="false">http://billwg.wordpress.com/?p=9#comment-10</guid>
		<description>Very helpful post. The last few days I have been researching/studying the capabilities of Visual Studio&#039;s Test Tools, and I was looking for an MSDN entry on &quot;How to test WCF services&quot;. Your post is exactly what I was looking for, and your example works like a charm. Thanks...

Stelios Tzavaras 
Athens, Greece</description>
		<content:encoded><![CDATA[<p>Very helpful post. The last few days I have been researching/studying the capabilities of Visual Studio&#8217;s Test Tools, and I was looking for an MSDN entry on &#8220;How to test WCF services&#8221;. Your post is exactly what I was looking for, and your example works like a charm. Thanks&#8230;</p>
<p>Stelios Tzavaras<br />
Athens, Greece</p>
]]></content:encoded>
	</item>
</channel>
</rss>
