Is overloading possible in web services?

 Posted by Virendradugar on 9/10/2009 | Category: Web Services, Remoting Interview questions | Views: 8421

Yes, We can overload webmethods in a webservice.

There is the MessageName property of a WebMethod attribute! The MessageName property enables the XML Web Service to uniquely identify overloaded methods using an alias. The default value of this property is the method name, but you can change it to distinguish this overloaded method
implementation from others. When specifying the method name, the resulting SOAP messages will reflect this name instead of an actual method name.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response