adspace
How we can achieve operation overloading while exposing wcf services?
Answer Posted / Vipul Kumar Singh
In WCF, you cannot achieve operation overloading directly. Each service operation must have a unique name. However, you can use data contracts and custom behaviors to implement similar functionalities. One approach is to create different methods with the same name but different parameter sets, each using DataContract and OperationContract attributes with unique names for the operations. Another approach is to use custom behaviors to define an extension that supports method overloading.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers