Is overloading possible in web services?

Answers were Sorted based on User's Feedback



Is overloading possible in web services?..

Answer / kinge

yes its possible

Is This Answer Correct ?    5 Yes 0 No

Is overloading possible in web services?..

Answer / 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

More ASP.NET Interview Questions

we can able to display a MessageBox in asp .net without using any script langages?

8 Answers   ABC,


Where can I get the details on migration of existing projects using various technologies to asp.net?

0 Answers  


How asp.net mvc differs from asp.net web forms? : asp.net mvc

0 Answers  


If Asp Dot Application is stateless what happened? during designing

3 Answers   TCS,


What is custom attribute?

0 Answers  


Can you explain one critical mapping? Performance issue which one is better?

0 Answers  


What is the difference between Postback and Ispostback Property?

7 Answers   Atrocity Apps Technologies, DC Infotech, HCL, Maples, Visual Soft,


Using code explain Configuration Management

0 Answers  


what is webservices ? and what is web server ?

1 Answers   Wipro,


how to use web services with code?(with example code)

1 Answers   Accenture,


Can asp.net work on an nt server?

0 Answers  


What is the name of the process the browser uses to find the address of a web server? a) DMZ b) DNS c) Active Directory d) Database lookup

1 Answers   Syntax Softtech,


Categories