|
-
October 21st, 2002, 11:32 AM
#1
overloading webmethods
Hi all,
does anyone knows if I can overload webmethod in C#, I would like to do this:
[WebMethod]
public string GetParcelByAddress(string streetName, string streetNumber)
{
return;
}
[WebMethod]
public string GetParcelByAddress(string streetName)
{
return;
}
but, I am getting error messge:
Both System.String GetParcelByAddress(System.String) and System.String GetParcelByAddress(System.String, System.String) use the message name 'GetParcelByAddress'. Use the MessageName property of the WebMethod custom attribute to specify unique message names for the methods.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|