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
Why select Web API?
What do you understand by aggregate dependency?
Describe a bubbled event and how it is used ?
Can we have multiple web config files for an asp.net application?
What are Session states available and its Uses?
What is mvc in asp.net tutorial? : Asp.Net MVC
What is asp.net file?
What is owin authentication?
What is Web Server Control Templates.?
What is AutoEventWireup attribute for ?
How you will manage the state of ASP.NET controls?
What is the difference between exe and dll?
What tags do you need to add within the asp:datagrid tags to bind columns manually? How?
How can we update records in gridview?Is there any appropriate code for it?
Why do you use the app_code folder in asp.net?