.NET Web Service Method Overloading

Some time developers required web service method to Overloading using WebMethodAttribute.MessageName Property and WebServiceBinding.

[WebService(Namespace = “http://tempuri.org/”)]
[WebServiceBinding(ConformsTo = WsiProfiles.None,EmitConformanceClaims=true)]

public class Service : System.Web.Services.WebService
public Service ()
//Uncomment the following line if using designed components
//InitializeComponent(); Description=”Hello work for world”,

[WebMethod(Description=”Hello work for world.”,MessageName=”Pavan”)]
public string HelloWorld()
return “Hello World”;

[WebMethod(Description=”Hello work for world.”,MessageName=”Pavan Pareta”)]
public string HelloWorld(string name)
return “Hello India ” + name;


About Pavan Pareta

My name is Pavan Pareta, I enjoy computers and general technology. I am more interested in the areas of Computer Security, Programming and developing innovative s/w for Windows Mobile and Windows Phone 7. I like MS Technology and support open-source software, because I believe it plays a major role in knowledge sharing and exchange of ideas, which effectively leads to better software. Additionally, I am a follower of the KISS (Keep It Simple Stupid) philosophy. I Love C#.NET and recently I am fall in love with Silverlight :) Introduce to my machine My main workstation is a Intel Pentium Core Duo and my primary operating system is Windows 7.
This entry was posted in Windows Mobile. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s