1
Reply

How can we achieve operation overloading in WCF service?

Deepak Jain

Deepak Jain

Sep 05, 2012
907
0

    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);

    padhamuthu
    February 10, 2014
    0