Question : Are there any issues to be aware of with method overloading when using Web Services?

I have an existing web service written in .NET with the following method signature

object MyMethod(string param1, string param2, IList param3);
 
I'd like to be able to also offer an overloaded method of
 
object MyMethod(string param1, object param2);

Are there any issues in doing this? Could I mark the first as deprecated ?

Answer : Are there any issues to be aware of with method overloading when using Web Services?

WebMethods should be distinct. However, if you want them have the same name, you can use the MessageName attribute:

http://www.dotnetspider.com/resources/20655-How-do-Method-overloading-WebMethods-using-C.aspx

Arun
Random Solutions  
 
programming4us programming4us