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

web farm .. how does session shuld be stored... if inproc used? does the session persists from one server to other.

2 Answers   TCS,


Differentiate between Server Transfer and Response Redirect?

2 Answers   DELL, Siebel, TCS,


Rate yourself in .net and sql database?

1 Answers   BrickRed, Infosys, Satyam, SP Software,


What is asp net objects?

0 Answers  


in database table is thier . in that table fields are photoid , photoname,photo... i want display image in the gridview

5 Answers   TCS,






What is difference cookie and session?

0 Answers  


What is boxing and unboxing ?

7 Answers   Accenture, Infosys, MedTek,


I am trying to redirect another site on button click.

8 Answers  


Explain Factory pattern?

2 Answers   Microsoft,


What is the use of asp.net web api?

0 Answers  


What is difference between URL and URI?

0 Answers   MCN Solutions,


can we place the same DLL in debug folder two times? (without using strong name )

9 Answers   TCS,


Categories