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

Explain MVC model binders?

0 Answers   B-Ways TecnoSoft,


How many types of validation controls are provided by ASP.NET?

8 Answers  


What is difference between view state and session state?

0 Answers  


Explain server-side scripting?

0 Answers  


Explain how cookies work. Give an example of cookie abuse.

0 Answers  


What is Master Page in Asp.net?

9 Answers  


What does asp.net stand for?

0 Answers  


1.what is the application pool. 2.what is the HttpModile and Http Handler. 3.C# 3.0 Features ? 4.Anonoymous Type,methopd and claas in 3.0? 5.difference between statsic and const ? 6.session vs application 7.state management clint side and server side ? 8.Genric list 9.c# 3.0 vs 3.5

0 Answers   TCS,


Explain the function of new view engine in asp.net? : asp.net mvc

0 Answers  


What is the difference between stored procedure vs function?

0 Answers  


Can you explain one critical mapping? Performance issue which one is better? Whether connected lookup tranformation or unconnected one?

0 Answers  


How many classes can a single .NET DLL contain?

6 Answers   SoftSol,


Categories