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
What is event in asp.net?
What does session_start () do?
is gateway for sms continue connected for sending sms.how?
What is a postback url?
How can we register exception filter from the action?
Difference between overriding and overloading?
When should I use server transfer and response redirect?
What is css in asp.net?
How would you create a permanent cookie?
How is it possible for .NET to support many languages?
Explain the function of new view engine in asp.net? : asp.net mvc
How can you handle errors in Web API?
How does exception management works in ASP.NET?
What is asp.net web application?
What are the benefits of view state?