<?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/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:dtvmedia="http://participatoryculture.org/RSSModules/dtv/1.0"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>J Mathews &#187; WCF</title>
	<atom:link href="http://www.justinemathews.com/category/wcf/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.justinemathews.com</link>
	<description>expertise in .Net technologies</description>
	<lastBuildDate>Tue, 17 Feb 2015 19:31:43 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.1</generator>
	<!-- podcast_generator="podPress/8.5" -->
		<copyright>&#xA9; </copyright>
		<managingEditor>justinemathews@gmail.com ()</managingEditor>
		<webMaster>justinemathews@gmail.com</webMaster>
		<category></category>
		<itunes:keywords></itunes:keywords>
		<itunes:subtitle></itunes:subtitle>
		<itunes:summary>expertise in .Net technologies</itunes:summary>
		<itunes:author></itunes:author>
		<itunes:category text="Society &amp; Culture"/>
		<itunes:owner>
			<itunes:name></itunes:name>
			<itunes:email>justinemathews@gmail.com</itunes:email>
		</itunes:owner>
		<itunes:block>No</itunes:block>
		<itunes:explicit>no</itunes:explicit>
		<itunes:image href="http://www.justinemathews.com/wp-content/plugins/podpress/images/powered_by_podpress_large.jpg" />
		<image>
			<url>http://www.justinemathews.com/wp-content/plugins/podpress/images/powered_by_podpress.jpg</url>
			<title>J Mathews</title>
			<link>http://www.justinemathews.com</link>
			<width>144</width>
			<height>144</height>
		</image>
	<item>
		<title>Hello world with WCF</title>
		<link>http://www.justinemathews.com/2008/04/hello-world-with-wcf/</link>
		<comments>http://www.justinemathews.com/2008/04/hello-world-with-wcf/#comments</comments>
		<pubDate>Wed, 23 Apr 2008 19:01:41 +0000</pubDate>
		<dc:creator><![CDATA[J Mathews,MCSD.Net]]></dc:creator>
				<category><![CDATA[WCF]]></category>
		<category><![CDATA[.Net]]></category>
		<category><![CDATA[Hello World]]></category>
		<category><![CDATA[J Mathews]]></category>

		<guid isPermaLink="false">http://www.justinemathews.com/?p=12</guid>
		<description><![CDATA[<p>When I have started reading about WCF it looks like it involves lot XML configuration but its really cool.In this article I have started with simple example which does Hello world with WCF. 1) Create WCF Service Application Create a Console application and reference it with System.ServiceModel. Add an interface/Contract through we expose the service...
<p><a class="read-more" href="http://www.justinemathews.com/2008/04/hello-world-with-wcf/">Read More &#8594;</a></p>
<p>The post <a rel="nofollow" href="http://www.justinemathews.com/2008/04/hello-world-with-wcf/">Hello world with WCF</a> appeared first on <a rel="nofollow" href="http://www.justinemathews.com">J Mathews</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>When I have started reading about WCF it looks like it involves lot XML configuration but its really cool.In this article I have started with simple example which does Hello world with WCF.</p>
<h3>1) Create WCF Service Application</h3>
<p>Create a Console application and reference it with System.ServiceModel. Add an interface/Contract through we expose the service functionalities. You could do this by attaching [ServiceContract] attribute for the interface.And add method that you want expose through the service contract, by attaching the attribute [OperationContract]. Now its time for the implementation of the method in your WCF service.</p>
<p>As shown below in the code snippet,</p>
<p><img alt="" src="http://www.justinemathews.com/wp-content/WCFSayHello_Images/WCFServer.png" /></p>
<ol>
<li>
<h3>2) Configure your WCF Service.</h3>
</li>
</ol>
<p>Add configuration file to the solution to define the end points of your service.The <em>endpoint</em> of a service specifies an address where the service can be found, a binding that contains the information that a client must communicate with the service, and a contract that defines the functionality provided by the service to its clients.</p>
<p>Also define the service behavior and enable the service metadata behavior. End point is specified with the full length namespace of your contract which is WCFExample.WCFServer.ServerService.IWCFExample.</p>
<p>Now we specify the host base address in service tag. and it is http://localhost:8080/ServerService</p>
<p>The Configuration file will look as below,</p>
<p><img alt="" src="http://www.justinemathews.com/wp-content/WCFSayHello_Images/ServerAppConfig.png" /></p>
<ol>
<li>
<h3>3) running the WCF service</h3>
</li>
</ol>
<p>Instantiate the service in your Main as shown below.</p>
<p><img alt="" src="http://www.justinemathews.com/wp-content/WCFSayHello_Images/RunHost.png" /></p>
<ol>
<li>
<h3>4) Create a Client console application.</h3>
</li>
</ol>
<p>Add the service reference using the host address.it will create WCF client reference.Using the reference you could instantiate the WCF service and call the method, as shown below</p>
<p><img alt="" src="http://www.justinemathews.com/wp-content/WCFSayHello_Images/wcfClient.png" /></p>
<p>Start WCF service and when you run the client application you could see the out put.</p>
<p><img alt="" src="http://www.justinemathews.com/wp-content/WCFSayHello_Images/wcfOutput.png" /></p>
<p>The post <a rel="nofollow" href="http://www.justinemathews.com/2008/04/hello-world-with-wcf/">Hello world with WCF</a> appeared first on <a rel="nofollow" href="http://www.justinemathews.com">J Mathews</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.justinemathews.com/2008/04/hello-world-with-wcf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
