1
Reply

How can we achieve operation overloading in WCF service?

Deepak Jain

Deepak Jain

12y
913
0
Reply

    By adding unique operationcontract behavior, we can achieve the method overloading in WCF. OperationContract has the Name property that exposes the WCF methods to WSDL Schemas.
    [OperationContract(Name="Method1")] string TestMethod(int para1,int para2); //Initail method [OperationContract(Name = "Method2")] string TestMethod(string para1, string para2);