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 swagger components.

0 Answers  


How many languages are supported by .NET at present time?

0 Answers  


Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe

1 Answers  


What is the Difference between user and server controls?

5 Answers  


In your web.config file which attribute of <Globalization> element identifies the default culture that will be used for web request?

1 Answers  






What r the asp.net list controls and diff. Between them?

0 Answers  


Explain what is viewstate?

0 Answers  


Differentiate strong typing and weak typing

0 Answers  


Why session is more secure than cookies?

0 Answers  


What is base class of button control in .net?

0 Answers  


How can you dynamically add user controls to a page?

0 Answers  


What is Http handler?

5 Answers   Accenture,


Categories