How we can achieve operation overloading while exposing wcf services?



How we can achieve operation overloading while exposing wcf services?..

Answer / 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

More WCF Interview Questions

What is wcf used for?

1 Answers  


What is wcf ipc binding type?

1 Answers  


What is the request-reply mode in wcf?

1 Answers  


Where we can host wcf services?

1 Answers  


What is the address format in wcf?

1 Answers  


Can you define more than one endpoints in a service model?

1 Answers  


What are the possible ways of hosting a wcf service? Explain.

1 Answers  


Differentiate between datacontractserializr and xmlserializer?

1 Answers  


What is the messaging pattern? Which messaging pattern wcf supports?

1 Answers  


Which are the 3 types of transactions manager wcf supports?

1 Answers  


How to host WCF Self-Hosting?

1 Answers   QuestPond,


What is abc of wcf?

1 Answers  


Categories