Is overloading possible in web services?
Answer Posted / neha
Yes it is possible but you have to give different alias name to the web method so that ambiguity can be avoided
---method will be call from application by the name AddInt
[WebMethod Name ="AddInt"]
public void Add(){}//implement code for adding 2 int variable
---------In this step even if you dont give name attribute it will work and method will be called by name Add.
[WebMethod Name ="AddFloat"]
public void Add(){}//implement code for adding 2 float variable
else it will give error
Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
Explain parts of assembly?
What is a reflection?
How can we inherit a static member?
What do you understand from custom control?
What does aspcompat="true" mean?
What is difference between singleton and single call?
Do gac'ed assemblies have fulltrust?
Is post back property in asp net?
Where is cookie used in asp.net?
How does windows service lifecycle differ from a .standard. Exe?
Will the asp.net validators run in server side or client side?
What are asp.net web forms?
What are cao and sao.
Differentiate between globalization and localization.
What is event in asp.net?