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
Write a code for sending an email from asp.net application.
What is the concepts of globalization and localization in .net?
How can I open ashx file in mobile?
Tell me what is the request flow used for asp.net mvc framework? : asp.net mvc
What is view state and how it works in asp net?
Why is asp.net so popular?
Explain how cookies work. Give an example of cookie abuse.
What is the significance of ASP.NET routing?
What is the difference between login controls and forms authentication?
How do you use viewstate?
Explain client side state management system.
Demonstrate Render and PreRender?
Explain what the contents of cookie?
What is enableviewstate in asp net?
Why is the standalone environment only useful during the development process?