Microsoft
Software
Hardware
Network
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.dotne
tspider.co
m/resource
s/20655-Ho
w-do-Metho
d-
overload
ing-WebMet
hods-using
-C.aspx
Aru
n
Random Solutions
DOS Bat File Copy a File with Date Timestamp
A servlet to handle and ajax get request?
windows xp 64 bit on APPLE IMAC 27 inch
Disabling software restriction policy
Having a webservice use a Session variable that is set in the project before the webservice is called.
How to make WPF button background color silver?
"File Helper" reporting - Your system may have upopenable files - Why?
SSH console: go to specified folder after login
OMA and OWA
How would I edit the code for additional levels from: How can I prep text files for import into Excel that are in subheading formats?