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
How you will improve web application performance?
What is the asp.net control toolkit?
What is the flow of processing of the request? : asp.net mvc
How Session use Cookies in State Management?
How is application management and maintenance improved in asp.net 2.0?
What is bound controls
Can you use c# without .net?
What are the various types of validation controls provided by asp.net?
Is razor a programming language?
Why cyclomatic complexity is important?
Which type of state management is provided by Query String in ASP.NET?
How would you implement inheritance using c#?
Explain program to call the js function when the change is being made in the dropdown list made in asp.net mvc? : asp.net mvc
What is the meaning of TestApi?
Hi All, Im an MCA holder with 3+ years of experience in asp.net. Now i want to move to some good government job. I have no idea about different categories of exams held & which one can be applicable for my education background. I have done B.A with MCA. Please help me out with your valuable suggestions. I would be very grateful. Thanks Anuj