You can check the following code. For more I have provided the link for reference.
[ServiceContract] publicinterface ITest { [OperationContract(Name="Method1")] string TestMethod(int para1,int para2); //Initail method [OperationContract(Name = "Method2")] string TestMethod(string para1, string para2); //Overloading on the basis of type of parameters. [OperationContract(Name = "Method3")] string TestMethod(int para1, string para2); //Overloading on the basis of an order of parameters. [OperationContract(Name = "Method4")] string TestMethod(int para1, string para2,double para3); //Overloading on the basis of the numbers of parameters} }
Sushil GuptaPosted Dec 15, 2014, 1:33 PM
[ServiceContract]
public interface ITest
{
[OperationContract(Name="Method1")]
string TestMethod(int para1,int para2);
//Initail method
[OperationContract(Name = "Method2")]
string TestMethod(string para1, string para2);
//Overloading on the basis of type of parameters.
[OperationContract(Name = "Method3")]
string TestMethod(int para1, string para2);
//Overloading on the basis of an order of parameters.
[OperationContract(Name = "Method4")]
string TestMethod(int para1, string para2,double para3);
//Overloading on the basis of the numbers of parameters}
}
http://www.codeproject.com/Tips/656042/Method-Overloading-in-WCF