<?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: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>debug mode......</title>
	<atom:link href="http://debugmode.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://debugmode.net</link>
	<description>debugging the learning </description>
	<lastBuildDate>Tue, 21 May 2013 03:53:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='debugmode.net' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/a4ee6598425293dab3d0c39b7600711a?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>debug mode......</title>
		<link>http://debugmode.net</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://debugmode.net/osd.xml" title="debug mode......" />
	<atom:link rel='hub' href='http://debugmode.net/?pushpress=hub'/>
		<item>
		<title>WCF Day: Revisiting</title>
		<link>http://debugmode.net/2013/05/21/wcf-day-revisiting/</link>
		<comments>http://debugmode.net/2013/05/21/wcf-day-revisiting/#comments</comments>
		<pubDate>Tue, 21 May 2013 03:15:22 +0000</pubDate>
		<dc:creator>Dhananjay Kumar</dc:creator>
				<category><![CDATA[Community]]></category>
		<category><![CDATA[Delhi Chapter]]></category>
		<category><![CDATA[WCF]]></category>

		<guid isPermaLink="false">https://dhananjay25.wordpress.com/?p=12801</guid>
		<description><![CDATA[View Photos from Event here Join Mindcracker Delhi Chapter here 18TH May 2013 was great Summer Saturday in Delhi. It was around 85 to 90 developers in one packed room to learn WCF. Developers were from various companies and organizations<span class="ellipsis">&#8230;</span><div class="read-more"><a href="http://debugmode.net/2013/05/21/wcf-day-revisiting/">Read more &#8250;</a></div><!-- end of .read-more --><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=12801&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><a href="https://www.facebook.com/media/set/?set=a.10201256385914612.1073741837.1320715905&amp;type=1&amp;l=e2488caf39">View Photos from Event here</a></p>
<p><a href="http://www.c-sharpcorner.com/Chapters/1/delhi-chapter.aspx">Join Mindcracker Delhi Chapter here</a></p>
<p>18<sup>TH</sup> May 2013 was great Summer Saturday in Delhi. It was around 85 to 90 developers in one packed room to learn WCF. Developers were from various companies and organizations with experience varying from 1 years to 10 years. This event was organized by <a href="http://www.c-sharpcorner.com/">Mindcracker Delhi Chapter </a></p>
<p><a href="http://dhananjay25.files.wordpress.com/2013/05/image11.png"><img style="background-image:none;padding-top:0;padding-left:0;display:inline;padding-right:0;border:0;" title="image" alt="image" src="http://dhananjay25.files.wordpress.com/2013/05/image_thumb11.png?w=602&#038;h=401" width="602" height="401" border="0" /></a></p>
<p>We started day with formal introduction and slowly move to various topics of WCF. In WCF day we talked about following topics,</p>
<p><b>Lab 1:  Write First WCF Service</b></p>
<ol>
<li>Creating first WCF Service</li>
<li>Configuring EndPoints</li>
<li>Working with different Bindings</li>
<li>Configuring multiple EndPoints</li>
<li>Working with different Hosting option</li>
<li>Consuming in different clients</li>
</ol>
<p><b>Lab 2:  Working with Data Contract </b></p>
<ol>
<li>Understanding  Data Contract and Serialization</li>
<li>Data Contract Attributes</li>
<li>Data Contract hierarchy</li>
<li>Data Contract versioning</li>
<li>Working with Collections</li>
<li>Exposing CRUD operation as service</li>
</ol>
<p><b>Lab 3:  Working with Fault and Exception </b></p>
<ol>
<li>Error isolation and decoupling</li>
<li>Fault propagation</li>
<li>Fault Contracts</li>
<li>Fault and call backs</li>
<li>Working with errors</li>
</ol>
<p><b>Lab 4: Security in Service </b></p>
<ol>
<li>Authentication</li>
<li>Authorization</li>
<li>Transport level security</li>
<li>Message level security</li>
</ol>
<p><b>Lab 5: Instance management in WCF </b></p>
<ol>
<li>Per call service</li>
<li>Per session service</li>
<li>Singleton service</li>
</ol>
<p>Whole day audience were interacting at top level. Even they refused to take break from sessions. Everyone was learning , coding and trying their hands on WCF.</p>
<p><a href="http://dhananjay25.files.wordpress.com/2013/05/image12.png"><img style="background-image:none;padding-top:0;padding-left:0;display:inline;padding-right:0;border:0;" title="image" alt="image" src="http://dhananjay25.files.wordpress.com/2013/05/image_thumb12.png?w=602&#038;h=401" width="602" height="401" border="0" /></a></p>
<p>I thank Suchit Khanna and Brij Mishra for their support as speaker. They both were tremendous in delivering and teaching WCF.</p>
<p><a href="http://dhananjay25.files.wordpress.com/2013/05/image13.png"><img style="background-image:none;padding-top:0;padding-left:0;display:inline;padding-right:0;border:0;" title="image" alt="image" src="http://dhananjay25.files.wordpress.com/2013/05/image_thumb13.png?w=602&#038;h=401" width="602" height="401" border="0" /></a></p>
<p>Our next event is on 22<sup>nd</sup> June. To get information about events <a href="http://www.c-sharpcorner.com/Chapters/1/delhi-chapter.aspx">Join Mindcracker Delhi Chapter here</a></p>
<p><a href="https://www.facebook.com/media/set/?set=a.10201256385914612.1073741837.1320715905&amp;type=1&amp;l=e2488caf39">View Photos from Event here</a></p>
<p>I hope WCF day was useful. See you soon with another technology on 22<sup>nd</sup> June.</p>
<br />Filed under: <a href='http://debugmode.net/category/community/'>Community</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dhananjay25.wordpress.com/12801/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dhananjay25.wordpress.com/12801/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dhananjay25.wordpress.com/12801/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dhananjay25.wordpress.com/12801/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dhananjay25.wordpress.com/12801/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dhananjay25.wordpress.com/12801/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dhananjay25.wordpress.com/12801/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dhananjay25.wordpress.com/12801/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dhananjay25.wordpress.com/12801/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dhananjay25.wordpress.com/12801/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dhananjay25.wordpress.com/12801/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dhananjay25.wordpress.com/12801/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=12801&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://debugmode.net/2013/05/21/wcf-day-revisiting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c90eb841e3efad072a72427a27409cd1?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">dhananjay25</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2013/05/image_thumb11.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2013/05/image_thumb12.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2013/05/image_thumb13.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>GIDS Presentation 2013: Revisiting</title>
		<link>http://debugmode.net/2013/05/20/gids-presentation-2013-revisiting/</link>
		<comments>http://debugmode.net/2013/05/20/gids-presentation-2013-revisiting/#comments</comments>
		<pubDate>Mon, 20 May 2013 12:00:29 +0000</pubDate>
		<dc:creator>Dhananjay Kumar</dc:creator>
				<category><![CDATA[Community]]></category>
		<category><![CDATA[GIDS]]></category>
		<category><![CDATA[Presentation]]></category>

		<guid isPermaLink="false">https://dhananjay25.wordpress.com/?p=12791</guid>
		<description><![CDATA[In GIDS 2013 I presented on topic Cross Platform Mobile Application with Data in the Cloud. It was great experience presenting in front of esteem audience. In my session I talked about working with data in cloud and hybrid application.<span class="ellipsis">&#8230;</span><div class="read-more"><a href="http://debugmode.net/2013/05/20/gids-presentation-2013-revisiting/">Read more &#8250;</a></div><!-- end of .read-more --><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=12791&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>In <a href="http://www.developermarch.com/developersummit/conference.html">GIDS 2013 </a>I presented on topic Cross Platform Mobile Application with Data in the Cloud.</p>
<p><a href="http://dhananjay25.files.wordpress.com/2013/05/image9.png"><img style="background-image:none;padding-top:0;padding-left:0;display:inline;padding-right:0;border:0;" title="image" alt="image" src="http://dhananjay25.files.wordpress.com/2013/05/image_thumb9.png?w=347&#038;h=231" width="347" height="231" border="0" /></a></p>
<p>It was great experience presenting in front of esteem audience. In my session I talked about working with data in cloud and hybrid application. I demoed on fetching SQL Azure data from KendoUI mobile based Hybrid Application.</p>
<p><a href="http://dhananjay25.files.wordpress.com/2013/05/image10.png"><img style="background-image:none;padding-top:0;padding-left:0;display:inline;padding-right:0;border:0;" title="image" alt="image" src="http://dhananjay25.files.wordpress.com/2013/05/image_thumb10.png?w=602&#038;h=338" width="602" height="338" border="0" /></a></p>
<p>Presentation consist following topics,</p>
<ul>
<li>Creating WCF Data Service on SQL Azure database</li>
<li>Creating Kendo Datasource from OData service</li>
<li>Creating Template</li>
<li>Working with KendoUI Listviews</li>
</ul>
<p>Below find PPT from session,</p>
<p>&nbsp;</p>
<iframe src='http://www.slideshare.net/slideshow/embed_code/21514984' width='605' height='496'></iframe>
<p>&nbsp;</p>
<p>I had great time presenting at GIDS. Excited to see you next year.</p>
<br />Filed under: <a href='http://debugmode.net/category/community/'>Community</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dhananjay25.wordpress.com/12791/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dhananjay25.wordpress.com/12791/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dhananjay25.wordpress.com/12791/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dhananjay25.wordpress.com/12791/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dhananjay25.wordpress.com/12791/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dhananjay25.wordpress.com/12791/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dhananjay25.wordpress.com/12791/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dhananjay25.wordpress.com/12791/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dhananjay25.wordpress.com/12791/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dhananjay25.wordpress.com/12791/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dhananjay25.wordpress.com/12791/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dhananjay25.wordpress.com/12791/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=12791&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://debugmode.net/2013/05/20/gids-presentation-2013-revisiting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c90eb841e3efad072a72427a27409cd1?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">dhananjay25</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2013/05/image_thumb9.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2013/05/image_thumb10.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Can we implement Inheritance in WCF ServiceContract : WCF Interview Series #2</title>
		<link>http://debugmode.net/2013/05/17/can-we-implement-inheritance-in-wcf-servicecontract-wcf-interview-series-2/</link>
		<comments>http://debugmode.net/2013/05/17/can-we-implement-inheritance-in-wcf-servicecontract-wcf-interview-series-2/#comments</comments>
		<pubDate>Fri, 17 May 2013 02:02:21 +0000</pubDate>
		<dc:creator>Dhananjay Kumar</dc:creator>
				<category><![CDATA[Interview Questions]]></category>
		<category><![CDATA[WCF]]></category>
		<category><![CDATA[Inheritence]]></category>
		<category><![CDATA[Service Contract Hierarchy]]></category>

		<guid isPermaLink="false">https://dhananjay25.wordpress.com/?p=12783</guid>
		<description><![CDATA[Can we implement Inheritance in WCF ServiceContract? YES we can have Contract Inheritance in WCF. In other words in WCF one ServiceContract can inherit other ServiceContract. Let us take an example that you have a ServiceContract named IParentService as given<span class="ellipsis">&#8230;</span><div class="read-more"><a href="http://debugmode.net/2013/05/17/can-we-implement-inheritance-in-wcf-servicecontract-wcf-interview-series-2/">Read more &#8250;</a></div><!-- end of .read-more --><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=12783&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><b><span style="text-decoration:underline;">Can we implement Inheritance in WCF ServiceContract?</span></b></p>
<p>YES we can have Contract Inheritance in WCF. In other words in WCF one ServiceContract can inherit other ServiceContract.</p>
<p><a href="http://dhananjay25.files.wordpress.com/2013/05/image5.png"><img style="background-image:none;padding-top:0;padding-left:0;display:inline;padding-right:0;border:0;" title="image" alt="image" src="http://dhananjay25.files.wordpress.com/2013/05/image_thumb5.png?w=478&#038;h=135" width="478" height="135" border="0" /></a></p>
<p>Let us take an example that you have a ServiceContract named <b>IParentService</b> as given below,</p>
<pre class="brush: csharp; title: ; notranslate">

[ServiceContract]
 public interface IParentService
 {
 [OperationContract]
 string ParentMessage(string message);

}

</pre>
<p>Another <b>ServiceContract</b> named <b>IChildService</b> can inherit <b>IParentService</b> as following,</p>
<pre class="brush: csharp; title: ; notranslate">

[ServiceContract]
 public interface IChildService : IParentService
 {
 [OperationContract]
 string ChildMessage(string message);
 }
</pre>
<p>Next you need to decide on implantation of Service. Single Service class can implement both contract by implementing bottom most ServiceContract in hierarchy. In this case bottom most ServiceContract is <b>IChildService</b></p>
<p><a href="http://dhananjay25.files.wordpress.com/2013/05/image6.png"><img style="background-image:none;padding-top:0;padding-left:0;display:inline;padding-right:0;border:0;" title="image" alt="image" src="http://dhananjay25.files.wordpress.com/2013/05/image_thumb6.png?w=568&#038;h=118" width="568" height="118" border="0" /></a></p>
<p>Service can be implemented as following in a single service class.</p>
<pre class="brush: csharp; title: ; notranslate">

public class Service1 : IChildService
 {
 public string ChildMessage(string message)
 {
 return &quot;Hello &quot; + message + &quot;from Child Service&quot;;
 }

public string ParentMessage(string message)
 {
 return &quot;Hello &quot; + message + &quot;from Parent Service&quot;;
 }
 }
</pre>
<p>Now you have choice that either you can expose whole hierarchy as single EndPoint or different EndPoints for different Service Contract. To expose contract hierarchy create EndPoint with bottom most ServiceContract. In this case we are creating EndPoint with Service Contract IChildService . At the client side operations from whole hierarchy could be invoked.</p>
<p><a href="http://dhananjay25.files.wordpress.com/2013/05/image7.png"><img style="background-image:none;padding-top:0;padding-left:0;display:inline;padding-right:0;border:0;" title="image" alt="image" src="http://dhananjay25.files.wordpress.com/2013/05/image_thumb7.png?w=602&#038;h=115" width="602" height="115" border="0" /></a></p>
<p>So at client side Service will be exposed as single class as given below,</p>
<p><a href="http://dhananjay25.files.wordpress.com/2013/05/image8.png"><img style="background-image:none;padding-top:0;padding-left:0;display:inline;padding-right:0;border:0;" title="image" alt="image" src="http://dhananjay25.files.wordpress.com/2013/05/image_thumb8.png?w=602&#038;h=395" width="602" height="395" border="0" /></a></p>
<p>In this way you can work with Inheritance in Service Contract. I hope you find this post useful. Thanks for reading.</p>
<br />Filed under: <a href='http://debugmode.net/category/interview-questions/'>Interview Questions</a>, <a href='http://debugmode.net/category/wcf/'>WCF</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dhananjay25.wordpress.com/12783/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dhananjay25.wordpress.com/12783/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dhananjay25.wordpress.com/12783/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dhananjay25.wordpress.com/12783/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dhananjay25.wordpress.com/12783/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dhananjay25.wordpress.com/12783/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dhananjay25.wordpress.com/12783/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dhananjay25.wordpress.com/12783/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dhananjay25.wordpress.com/12783/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dhananjay25.wordpress.com/12783/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dhananjay25.wordpress.com/12783/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dhananjay25.wordpress.com/12783/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=12783&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://debugmode.net/2013/05/17/can-we-implement-inheritance-in-wcf-servicecontract-wcf-interview-series-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c90eb841e3efad072a72427a27409cd1?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">dhananjay25</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2013/05/image_thumb5.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2013/05/image_thumb6.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2013/05/image_thumb7.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2013/05/image_thumb8.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Method Overloading in WCF: WCF Interview Series #1</title>
		<link>http://debugmode.net/2013/05/13/method-overloading-in-wcf-wcf-interview-series-1/</link>
		<comments>http://debugmode.net/2013/05/13/method-overloading-in-wcf-wcf-interview-series-1/#comments</comments>
		<pubDate>Mon, 13 May 2013 12:41:42 +0000</pubDate>
		<dc:creator>Dhananjay Kumar</dc:creator>
				<category><![CDATA[Interview Questions]]></category>
		<category><![CDATA[WCF]]></category>
		<category><![CDATA[Method Overloading]]></category>
		<category><![CDATA[Operation Overloading]]></category>

		<guid isPermaLink="false">https://dhananjay25.wordpress.com/?p=12771</guid>
		<description><![CDATA[How to do Method Overloading in WCF? Method or Operation overloading is one of the most important feature of OOPS. In programming languages like C, C++ and C#, this feature is heavily used by developers. While writing Service definition you<span class="ellipsis">&#8230;</span><div class="read-more"><a href="http://debugmode.net/2013/05/13/method-overloading-in-wcf-wcf-interview-series-1/">Read more &#8250;</a></div><!-- end of .read-more --><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=12771&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><b><span style="text-decoration:underline;">How to do Method Overloading in WCF? </span></b></p>
<p>Method or Operation overloading is one of the most important feature of OOPS. In programming languages like C, C++ and C#, this feature is heavily used by developers. While writing Service definition you may come across when you need to overload operations.</p>
<p>Let us go ahead and write Service with overloaded function as following. In below ServiceContract I am creating two methods and overloading them with different parameters.</p>
<pre class="brush: csharp; title: ; notranslate">

[ServiceContract]
 public interface IService1
 {

[OperationContract]
 int Add(int number1, int number2);
 [OperationContract]
 string Add(string text1, string text2);
 }
</pre>
<p>I implemented service as below,</p>
<pre class="brush: csharp; title: ; notranslate">

public class Service1 : IService1
 {

public int Add(int number1, int number2)
 {
 return number1 + number2;
 }

public string Add(string text1, string text2)
 {
 return text1 + text2;
 }
 }
</pre>
<p>I left default EndPoint configuration and hosting. When I ran service I encountered following exception,</p>
<p><a href="http://dhananjay25.files.wordpress.com/2013/05/image2.png"><img style="background-image:none;padding-top:0;padding-left:0;display:inline;padding-right:0;border:0;" title="image" alt="image" src="http://dhananjay25.files.wordpress.com/2013/05/image_thumb2.png?w=602&#038;h=301" width="602" height="301" border="0" /></a></p>
<p>So clearly by default WCF does not allow you to overload methods in service. However there is one attribute in OperationContract which can allow you to overload method at service end. You need to set Name parameter of OperationContract to manually enable overloading at service side.</p>
<p><a href="http://dhananjay25.files.wordpress.com/2013/05/image3.png"><img style="background-image:none;padding-top:0;padding-left:0;display:inline;padding-right:0;border:0;" title="image" alt="image" src="http://dhananjay25.files.wordpress.com/2013/05/image_thumb3.png?w=602&#038;h=158" width="602" height="158" border="0" /></a></p>
<p>To achieve overloading at Service side I set Name parameter of both function as follows,</p>
<pre class="brush: csharp; title: ; notranslate">

[ServiceContract]
 public interface IService1
 {

[OperationContract(Name=&quot;AddNumber&quot;)]
 int Add(int number1, int number2);
 [OperationContract(Name=&quot;AddString&quot;)]
 string Add(string text1, string text2);
 }
</pre>
<p>Even though we have achieved overloading at Service side at client side method exposed with different name as set in Name parameter. At client side you will get method exposed as following,</p>
<p><a href="http://dhananjay25.files.wordpress.com/2013/05/image4.png"><img style="background-image:none;padding-top:0;padding-left:0;display:inline;padding-right:0;border:0;" title="image" alt="image" src="http://dhananjay25.files.wordpress.com/2013/05/image_thumb4.png?w=602&#038;h=312" width="602" height="312" border="0" /></a></p>
<p>So on asking you can say that by setting Name parameter value of OperationContract we can achieve Operation or Method overloading in WCF. I hope you find this post useful. Thanks for reading.</p>
<br />Filed under: <a href='http://debugmode.net/category/interview-questions/'>Interview Questions</a>, <a href='http://debugmode.net/category/wcf/'>WCF</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dhananjay25.wordpress.com/12771/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dhananjay25.wordpress.com/12771/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dhananjay25.wordpress.com/12771/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dhananjay25.wordpress.com/12771/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dhananjay25.wordpress.com/12771/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dhananjay25.wordpress.com/12771/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dhananjay25.wordpress.com/12771/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dhananjay25.wordpress.com/12771/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dhananjay25.wordpress.com/12771/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dhananjay25.wordpress.com/12771/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dhananjay25.wordpress.com/12771/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dhananjay25.wordpress.com/12771/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=12771&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://debugmode.net/2013/05/13/method-overloading-in-wcf-wcf-interview-series-1/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c90eb841e3efad072a72427a27409cd1?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">dhananjay25</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2013/05/image_thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2013/05/image_thumb3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2013/05/image_thumb4.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Recognized as C-SharpCorner Member of the Month</title>
		<link>http://debugmode.net/2013/05/02/recognized-as-c-sharpcorner-member-of-the-month/</link>
		<comments>http://debugmode.net/2013/05/02/recognized-as-c-sharpcorner-member-of-the-month/#comments</comments>
		<pubDate>Thu, 02 May 2013 15:56:16 +0000</pubDate>
		<dc:creator>Dhananjay Kumar</dc:creator>
				<category><![CDATA[Community]]></category>
		<category><![CDATA[Award]]></category>

		<guid isPermaLink="false">https://dhananjay25.wordpress.com/?p=12761</guid>
		<description><![CDATA[I am excited to share that I have been recognized as Member of the Month for April 2013 on one of largest community site http://www.c-sharpcorner.com/ Now let me explain you that what and how I contribute to http://www.c-sharpcorner.com/ community, I<span class="ellipsis">&#8230;</span><div class="read-more"><a href="http://debugmode.net/2013/05/02/recognized-as-c-sharpcorner-member-of-the-month/">Read more &#8250;</a></div><!-- end of .read-more --><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=12761&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I am excited to share that I have been recognized as Member of the Month for April 2013 on one of largest community site <a href="http://www.c-sharpcorner.com/">http://www.c-sharpcorner.com/</a></p>
<p><a href="http://dhananjay25.files.wordpress.com/2013/05/image1.png"><img style="background-image:none;padding-top:0;padding-left:0;display:inline;padding-right:0;border:0;" title="image" alt="image" src="http://dhananjay25.files.wordpress.com/2013/05/image_thumb1.png?w=602&#038;h=396" width="602" height="396" border="0" /></a></p>
<p>Now let me explain you that what and how I contribute to <a href="http://www.c-sharpcorner.com/">http://www.c-sharpcorner.com/</a> community,</p>
<ul>
<li>I author articles for this site. You can read all my articles <a href="http://www.c-sharpcorner.com/Authors/dhananjaycoder/">here</a></li>
<li>I am Delhi chapter lead of <a href="http://www.c-sharpcorner.com/Chapters/1/delhi-chapter.aspx">C-SharpCorner Delhi Chapter. You can join this chapter here</a>. We conduct one offline session each month in Delhi/NCR.</li>
</ul>
<p>I am very happy and excited to get recognized as Member of the Month among millions users. Looking forward to contribute and help you.</p>
<br />Filed under: <a href='http://debugmode.net/category/community/'>Community</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dhananjay25.wordpress.com/12761/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dhananjay25.wordpress.com/12761/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dhananjay25.wordpress.com/12761/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dhananjay25.wordpress.com/12761/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dhananjay25.wordpress.com/12761/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dhananjay25.wordpress.com/12761/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dhananjay25.wordpress.com/12761/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dhananjay25.wordpress.com/12761/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dhananjay25.wordpress.com/12761/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dhananjay25.wordpress.com/12761/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dhananjay25.wordpress.com/12761/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dhananjay25.wordpress.com/12761/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=12761&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://debugmode.net/2013/05/02/recognized-as-c-sharpcorner-member-of-the-month/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c90eb841e3efad072a72427a27409cd1?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">dhananjay25</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2013/05/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Presented in Barcamp9 and Global Windows Azure Boot camp</title>
		<link>http://debugmode.net/2013/05/01/presented-in-barcamp9-and-global-windows-azure-boot-camp/</link>
		<comments>http://debugmode.net/2013/05/01/presented-in-barcamp9-and-global-windows-azure-boot-camp/#comments</comments>
		<pubDate>Wed, 01 May 2013 03:45:32 +0000</pubDate>
		<dc:creator>Dhananjay Kumar</dc:creator>
				<category><![CDATA[Community]]></category>
		<category><![CDATA[Cross Platform Mobile App]]></category>
		<category><![CDATA[Speaking]]></category>
		<category><![CDATA[Windows Azure Mobile Services]]></category>

		<guid isPermaLink="false">https://dhananjay25.wordpress.com/?p=12752</guid>
		<description><![CDATA[On Saturday 27th April 2013 I presented in two different events in Gurgaon India. Cross Platform Mobile App Development This was my first session of day. It was in SAP lab Gurgaon. To be honest this event surprised me lot.<span class="ellipsis">&#8230;</span><div class="read-more"><a href="http://debugmode.net/2013/05/01/presented-in-barcamp9-and-global-windows-azure-boot-camp/">Read more &#8250;</a></div><!-- end of .read-more --><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=12752&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>On Saturday 27<sup>th</sup> April 2013 I presented in two different events in Gurgaon India.</p>
<p><a href="http://dhananjay25.files.wordpress.com/2013/05/image.png"><img style="background-image:none;padding-top:0;padding-left:0;display:inline;padding-right:0;border:0;" title="image" alt="image" src="http://dhananjay25.files.wordpress.com/2013/05/image_thumb.png?w=602&#038;h=228" width="602" height="228" border="0" /></a></p>
<h2>Cross Platform Mobile App Development</h2>
<p>This was my first session of day. It was in SAP lab Gurgaon. To be honest this event surprised me lot. There was around 200+ audience. My session was in Track 2. I had around 100+ audience in my session. Audience were very active and their participation was overwhelming. I started my presentation in my usual way from story and then concluded with demo. In session I covered following topics,</p>
<ul>
<li>What is Cross Platform Mobile Application</li>
<li>How it is different than Native Apps</li>
<li>Introducing PhoneGap and Icenium</li>
<li>In demo creating Twitter Search Application</li>
</ul>
<h2>Windows Azure Mobile Service</h2>
<p>This was my second session of day. It was in Microsoft Gurgaon. This event was led by Windows Azure MVP Gaurav Mantri. He hosted whole day with great professionalism and effectiveness. In this global event I had an opportunity to present on Windows Azure Mobile Service. I focused on Data part of Windows Azure Mobile Service. In session I covered following topics</p>
<ul>
<li>Introduction to Windows Azure Mobile Services</li>
<li>Getting stated with Windows Azure Mobile Services Data</li>
<li>Data from Windows Azure Mobile Services in XAML based Windows Store App</li>
<li>Data from Windows Azure Mobile Services in JavaScript based Windows Store App</li>
</ul>
<p>Find below presentation from session,</p>
<iframe src='http://www.slideshare.net/slideshow/embed_code/20269601' width='605' height='496'></iframe>
<p>See you soon in next seminar.</p>
<br />Filed under: <a href='http://debugmode.net/category/community/'>Community</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dhananjay25.wordpress.com/12752/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dhananjay25.wordpress.com/12752/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dhananjay25.wordpress.com/12752/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dhananjay25.wordpress.com/12752/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dhananjay25.wordpress.com/12752/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dhananjay25.wordpress.com/12752/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dhananjay25.wordpress.com/12752/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dhananjay25.wordpress.com/12752/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dhananjay25.wordpress.com/12752/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dhananjay25.wordpress.com/12752/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dhananjay25.wordpress.com/12752/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dhananjay25.wordpress.com/12752/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=12752&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://debugmode.net/2013/05/01/presented-in-barcamp9-and-global-windows-azure-boot-camp/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c90eb841e3efad072a72427a27409cd1?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">dhananjay25</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2013/05/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Solved: WWAHost.exe remote endpoint was not reachable error in JavaScript Windows Store App</title>
		<link>http://debugmode.net/2013/04/25/solved-wwahost-exe-remote-endpoint-was-not-reachable-error-in-javascript-windows-store-app/</link>
		<comments>http://debugmode.net/2013/04/25/solved-wwahost-exe-remote-endpoint-was-not-reachable-error-in-javascript-windows-store-app/#comments</comments>
		<pubDate>Thu, 25 Apr 2013 07:58:45 +0000</pubDate>
		<dc:creator>Dhananjay Kumar</dc:creator>
				<category><![CDATA[Windows Store Apps]]></category>
		<category><![CDATA[Exception]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Windows Store App]]></category>

		<guid isPermaLink="false">https://dhananjay25.wordpress.com/?p=12746</guid>
		<description><![CDATA[I was working on my office machine. While working I opened a JavaScript based Windows Store Application. When I tried to run application I got following exception, I was baffled due to this exception. After sort of research I found<span class="ellipsis">&#8230;</span><div class="read-more"><a href="http://debugmode.net/2013/04/25/solved-wwahost-exe-remote-endpoint-was-not-reachable-error-in-javascript-windows-store-app/">Read more &#8250;</a></div><!-- end of .read-more --><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=12746&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I was working on my office machine. While working I opened a <b>JavaScript based Windows Store Application</b>. When I tried to run application I got following exception,</p>
<p><a href="http://dhananjay25.files.wordpress.com/2013/04/image63.png"><img style="display:inline;border:0;" title="image" alt="image" src="http://dhananjay25.files.wordpress.com/2013/04/image_thumb63.png?w=469&#038;h=185" width="469" height="185" border="0" /></a></p>
<p>I was baffled due to this exception. After sort of research I found that I was on VPN. I have no idea why on VPN this exception occurred. But to get rid of this exception you need to follow these two steps</p>
<ol>
<li><b>Closed all connections to VPN </b></li>
<li><b>Restart machine </b></li>
</ol>
<p>After performing above two steps you should not get above exception. I hope this quick post is useful. Thanks for reading.</p>
<br />Filed under: <a href='http://debugmode.net/category/windows-store-apps/'>Windows Store Apps</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dhananjay25.wordpress.com/12746/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dhananjay25.wordpress.com/12746/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dhananjay25.wordpress.com/12746/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dhananjay25.wordpress.com/12746/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dhananjay25.wordpress.com/12746/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dhananjay25.wordpress.com/12746/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dhananjay25.wordpress.com/12746/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dhananjay25.wordpress.com/12746/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dhananjay25.wordpress.com/12746/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dhananjay25.wordpress.com/12746/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dhananjay25.wordpress.com/12746/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dhananjay25.wordpress.com/12746/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=12746&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://debugmode.net/2013/04/25/solved-wwahost-exe-remote-endpoint-was-not-reachable-error-in-javascript-windows-store-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c90eb841e3efad072a72427a27409cd1?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">dhananjay25</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2013/04/image_thumb63.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
	</channel>
</rss>
