You must Sign In to post a response.
  • Category: ASP.NET

    (Asp.net WCF) Windows communication foundation

    How we can achieve Operation Overloading while exposing WCF Services?
    http://www.vayamtech.com/
  • #768353
    Overload Operation not support in WSDL based operation. We can use Name property in OperationContract attributes.


    [ServiceContract]
    interface Maths
    {
    [OperationContract Name="MathsInt"]
    int Add(int argu1,int argu2)

    [OperationContract Name="MathsChar"]
    Var Add(Var argu1,Var argu2)


    [OperationContract Name="MathsDouble"]
    double Add(double argu1,double argu2)


    }

    Thanks,
    Mani


Sign In to post your comments