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


Please Help Members By Posting Answers For Below Questions

What is the difference between response.redirect and server.transfer?

530


What are the file extensions for razor views?

675


What is the typical session identifier?

572


What tags do you need to add within the asp:datagrid tags to bind columns manually? How?

510


14. What are your Future Plans for Swatz Oils GROUP U.K?

1721






Explain a program using razor view engine to create a simple application? : asp.net mvc

493


What is the full form of asp.net?

529


What is GAC in ASP.NET 2.0

585


What is the Difference between MVC And MVP design pattrens

2201


What are the ways of preserving data on a Web Form in ASP.NET?

616


What are cookies in your browser?

533


Explain the use of resource manager class in .net.

503


How ViewstateMac works?

2361


Explain login control and form authentication.

557


IN an ASP.NET Web application if there is any error, how can you debug?

579