How can we achieve overloading concept in WCF?

 Posted by Kmandapalli on 2/25/2014 | Category: WCF Interview questions | Views: 1067 | Points: 40
Answer:

Yes, by using [OperationContract(Name="OverloadedName")] But, still outer world will get them with unique and different name. Overloading is a technique to write manageable/maintainable code. But in case of WCF service, uniqueness is required for generating WSDL, and that can be done either by using unique method name or unique OperationContract's name attribute value. Interfaces plays an important role and provides much flexibility for this. We can write many implementations of an interface, and it gives more flexibility plus concise. So why to think on overloading for WCF service methods?


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response