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 tags do you need to add within the asp:datagrid tags to bind columns manually? How?

512


What are server objects?

517


What is the application pool?

547


Explain the advantages of passport authentication.

509


From which base class all web forms are inherited?

499






How to fetch a data from one table to another table in asp.net ?

581


What are the disadvantages of using session?

472


What is css and what is it used for?

554


Explain the working of passport authentication.

541


Can the validation occurs in server-side or client-side? If the validation occurs why should we do?

597


Which is better session or viewstate?

509


Explain authorization levels in .net ?

606


What is class and object in asp.net?

490


How many types of cookies are there in asp.net?

536


What is query string in asp.net?

562