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 the difference between response.redirect and server.transfer?
What are the file extensions for razor views?
What is the typical session identifier?
What tags do you need to add within the asp:datagrid tags to bind columns manually? How?
14. What are your Future Plans for Swatz Oils GROUP U.K?
Explain a program using razor view engine to create a simple application? : asp.net mvc
What is the full form of asp.net?
What is GAC in ASP.NET 2.0
What is the Difference between MVC And MVP design pattrens
What are the ways of preserving data on a Web Form in ASP.NET?
What are cookies in your browser?
Explain the use of resource manager class in .net.
How ViewstateMac works?
Explain login control and form authentication.
IN an ASP.NET Web application if there is any error, how can you debug?