[ServiceContract]
interface ICalculator
{
[OperationContract(Name = "AddInt")]
int Add(int arg1,int arg2);
[OperationContract(Name = "AddDouble")]
double Add(double arg1,double arg2);
}
Notice that both method name in the above interface is same (Add), however the Name property of the OperationContract is different. In this case client proxy will have two methods with different name AddInt and AddDouble.

Biswa Pujarini MohapatraPosted Jan 21, 2014, 12:31 PM
using WCFConsoleClentApp.MyTest;
namespace WCFConsoleClentApp
{
class Program
{
static void Main(string[] args)
{
TestClient client = new TestClient();
int intretun = client.addint(1, 1);
double doublereturn = client.adddouble(12.2, 10.1);
}
}
}
Biswa Pujarini MohapatraPosted Jan 21, 2014, 12:31 PM
using WCFConsoleClentApp.MyTest;
namespace WCFConsoleClentApp
{
class Program
{
static void Main(string[] args)
{
TestClient client = new TestClient();
int intretun = client.addint(1, 1);
double doublereturn = client.adddouble(12.2, 10.1);
}
}
}
Jignesh TrivediPosted Jan 21, 2014, 8:50 AM
I think WSDL is not a object oriented language and does not support these features of OOP.