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 |
What is wcf used for?
What is wcf ipc binding type?
What is the request-reply mode in wcf?
Where we can host wcf services?
What is the address format in wcf?
Can you define more than one endpoints in a service model?
What are the possible ways of hosting a wcf service? Explain.
Differentiate between datacontractserializr and xmlserializer?
What is the messaging pattern? Which messaging pattern wcf supports?
Which are the 3 types of transactions manager wcf supports?
How to host WCF Self-Hosting?
What is abc of wcf?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)