<?xml version="1.0" encoding="utf-8"?>
<!-- generator="wordpress/2.1" -->
<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/"
	>

<channel>
	<title>George Tsiokos' blog</title>
	<link>http://george.tsiokos.com</link>
	<description>on c#, .NET, SharePoint, Windows and OS X</description>
	<pubDate>Thu, 09 Oct 2008 13:51:07 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1</generator>
	<language>en</language>
			<item>
		<title>WCF: Service Name</title>
		<link>http://george.tsiokos.com/posts/2007/03/13/wcf-service-name/</link>
		<comments>http://george.tsiokos.com/posts/2007/03/13/wcf-service-name/#comments</comments>
		<pubDate>Tue, 13 Mar 2007 13:00:39 +0000</pubDate>
		<dc:creator>George Tsiokos</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[WCF]]></category>

		<guid isPermaLink="false">http://george.tsiokos.com/posts/2007/03/13/wcf-service-name/</guid>
		<description><![CDATA[I&#8217;ve been working with a WCF service and wanted to change the name of the service without changing the class name (TypeName). Every example I&#8217;ve seen shows that the name of the type equals the name of the service.
The service is hosted in IIS, and the web.config is configured as:
&#60;system.serviceModel&#62;&#60;services&#62;
&#60;service name=&#34;Namespace.TypeName&#34; …
Filename.svc is configured:
&#60;% @ServiceHost [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been working with a WCF service and wanted to change the name of the service without changing the class name (<strong>TypeName</strong>). Every example I&#8217;ve seen shows that the name of the type equals the name of the service.</p>
<p>The service is hosted in IIS, and the web.config is configured as:<br />
<code>&lt;system.serviceModel&gt;&lt;services&gt;<br />
&lt;service name=&quot;Namespace.<strong>TypeName</strong>&quot; …</code><br />
Filename.svc is configured:<br />
<code>&lt;% @ServiceHost Service=&quot;Namespace.<strong>TypeName</strong> &quot; %&gt;</code><br />
When you browse to the filename.svc file:</p>
<blockquote><p><strong>TypeName</strong> Service<br />
You have created a service.<br />
To test this service, you will need to create a client and use it to call the service.</p></blockquote>
<p>After looking through the documentation, I found that the service name is configured through the ServiceBehavior attribute:<br />
<code>[ServiceBehavior (<strong>Name</strong> = &quot;The name of the service&quot;)]<br />
public class <strong>TypeName</strong> {…</code></p>
<p>Hope this helps…</p>
]]></content:encoded>
			<wfw:commentRss>http://george.tsiokos.com/posts/2007/03/13/wcf-service-name/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
