Search:
Namespaces
Discussions
.NET v1.1
Feedback
Web Service: Web Method Overload
Messages
Related Types
This message was discovered on
ASPFriends.com 'aspngwebservices' list
.
KHALLERAN@hklaw.com
-- Moved from [aspngfreeforall] to [aspngwebservices] by Marcie Jones <
Click here to reveal e-mail address
> --
Does anybody know of a reason overloading a web method should fail?
Kevin
Reply to this message...
Rob Caron
Could you please post your method signatures?
How are you trying to overload the methods?
Are you using the MessageName property of the=20
WebMethod attribute to give each method a unique SOAP message name?
See:
http://msdn.microsoft.com/library/en-us/vbcon/html/vbtskUsingWebMethodAt
tribute.asp
hth,
Rob Caron
robcaron @ microsoft.com
Visual Studio .NET Team
This posting is provided "AS IS" with no warranties, and confers no
rights.
-----Original Message-----
From:
Click here to reveal e-mail address
[mailto:
Click here to reveal e-mail address
]=20
Sent: Tuesday, June 18, 2002 10:41 AM
To: aspngwebservices
Subject: [aspngwebservices] Web Service: Web Method Overload
-- Moved from [aspngfreeforall] to [aspngwebservices] by Marcie Jones
<
Click here to reveal e-mail address
> --
Does anybody know of a reason overloading a web method should fail?
Kevin
| [aspngwebservices] member
Click here to reveal e-mail address
=3D YOUR ID=20
|
http://www.asplists.com/asplists/aspngwebservices.asp
=3D JOIN/QUIT=20
|
http://www.asplists.com/search
=3D SEARCH Archives
Reply to this message...
KHALLERAN@hklaw.com
public class foo : System.Web.Services.
WebService
{
[WebMethod]
public string bar(int MyBar)
{
returns "a";
}
[WebMethod]
public string bar(string MyBar)
{
returns "a";
}
}
Am I missing something.
Thank you for the reference but the link is broken.
kevin
-----Original Message-----
From: Rob Caron [mailto:
Click here to reveal e-mail address
]
Sent: Tuesday, June 18, 2002 4:06 PM
To: aspngwebservices
Subject: [aspngwebservices] RE: Web Service: Web Method Overload
Could you please post your method signatures?
How are you trying to overload the methods?
Are you using the MessageName property of the
WebMethod attribute to give each method a unique SOAP message name?
See:
http://msdn.microsoft.com/library/en-us/vbcon/html/vbtskUsingWebMethodAt
tribute.asp
hth,
Rob Caron
robcaron @ microsoft.com
Visual Studio .NET Team
This posting is provided "AS IS" with no warranties, and confers no
rights.
-----Original Message-----
From:
Click here to reveal e-mail address
[mailto:
Click here to reveal e-mail address
]
Sent: Tuesday, June 18, 2002 10:41 AM
To: aspngwebservices
Subject: [aspngwebservices] Web Service: Web Method Overload
-- Moved from [aspngfreeforall] to [aspngwebservices] by Marcie Jones
<
Click here to reveal e-mail address
> --
Does anybody know of a reason overloading a web method should fail?
Kevin
| [aspngwebservices] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.asplists.com/asplists/aspngwebservices.asp
= JOIN/QUIT
|
http://www.asplists.com/search
= SEARCH Archives
| [aspngwebservices] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.asplists.com/asplists/aspngwebservices.asp
= JOIN/QUIT
|
http://www.asplists.com/search
= SEARCH Archives
Reply to this message...
Rob Caron
Yes, you are missing something.
It looks like the link has a line break in it.
Remove that, and you'll be set.
You need to add a MessageName property to the
WebMethod attribute so that you can distinguish=20
one from the other.=20
hth,
Rob Caron
robcaron @ microsoft.com
Visual Studio .NET Team
This posting is provided "AS IS" with no warranties, and confers no
rights.
-----Original Message-----
From:
Click here to reveal e-mail address
[mailto:
Click here to reveal e-mail address
]=20
Sent: Tuesday, June 18, 2002 1:58 PM
To: aspngwebservices
Subject: [aspngwebservices] RE: Web Service: Web Method Overload
public class foo : System.Web.Services.
WebService
{
[WebMethod]
public string bar(int MyBar)
{
returns "a";
}
=09
[WebMethod]
public string bar(string MyBar)
{
returns "a";
}
}
Am I missing something.
Thank you for the reference but the link is broken.
kevin
-----Original Message-----
From: Rob Caron [mailto:
Click here to reveal e-mail address
]=20
Sent: Tuesday, June 18, 2002 4:06 PM
To: aspngwebservices
Subject: [aspngwebservices] RE: Web Service: Web Method Overload
Could you please post your method signatures?
How are you trying to overload the methods?
Are you using the MessageName property of the=20
WebMethod attribute to give each method a unique SOAP message name?
See:
http://msdn.microsoft.com/library/en-us/vbcon/html/vbtskUsingWebMethodAt
tribute.asp
hth,
Rob Caron
robcaron @ microsoft.com
Visual Studio .NET Team
This posting is provided "AS IS" with no warranties, and confers no
rights.
-----Original Message-----
From:
Click here to reveal e-mail address
[mailto:
Click here to reveal e-mail address
]=20
Sent: Tuesday, June 18, 2002 10:41 AM
To: aspngwebservices
Subject: [aspngwebservices] Web Service: Web Method Overload
-- Moved from [aspngfreeforall] to [aspngwebservices] by Marcie Jones
<
Click here to reveal e-mail address
> --
Does anybody know of a reason overloading a web method should fail?
Kevin
| [aspngwebservices] member
Click here to reveal e-mail address
=3D YOUR ID
|
http://www.asplists.com/asplists/aspngwebservices.asp
=3D JOIN/QUIT=20
|
http://www.asplists.com/search
=3D SEARCH Archives
| [aspngwebservices] member
Click here to reveal e-mail address
=3D YOUR ID
|
http://www.asplists.com/asplists/aspngwebservices.asp
=3D JOIN/QUIT
|
http://www.asplists.com/search
=3D SEARCH Archives
| [aspngwebservices] member
Click here to reveal e-mail address
=3D YOUR ID
|
http://www.asplists.com/asplists/aspngwebservices.asp
=3D JOIN/QUIT
|
http://www.asplists.com/search
=3D SEARCH Archives
Reply to this message...
KHALLERAN@hklaw.com
Thanks that was it.
Kevin
-----Original Message-----
From: Rob Caron [mailto:
Click here to reveal e-mail address
]
Sent: Tuesday, June 18, 2002 5:54 PM
To: aspngwebservices
Subject: [aspngwebservices] RE: Web Service: Web Method Overload
Yes, you are missing something.
It looks like the link has a line break in it.
Remove that, and you'll be set.
You need to add a MessageName property to the
WebMethod attribute so that you can distinguish
one from the other.
hth,
Rob Caron
robcaron @ microsoft.com
Visual Studio .NET Team
This posting is provided "AS IS" with no warranties, and confers no
rights.
-----Original Message-----
From:
Click here to reveal e-mail address
[mailto:
Click here to reveal e-mail address
]
Sent: Tuesday, June 18, 2002 1:58 PM
To: aspngwebservices
Subject: [aspngwebservices] RE: Web Service: Web Method Overload
public class foo : System.Web.Services.
WebService
{
[WebMethod]
public string bar(int MyBar)
{
returns "a";
}
[WebMethod]
public string bar(string MyBar)
{
returns "a";
}
}
Am I missing something.
Thank you for the reference but the link is broken.
kevin
-----Original Message-----
From: Rob Caron [mailto:
Click here to reveal e-mail address
]
Sent: Tuesday, June 18, 2002 4:06 PM
To: aspngwebservices
Subject: [aspngwebservices] RE: Web Service: Web Method Overload
Could you please post your method signatures?
How are you trying to overload the methods?
Are you using the MessageName property of the
WebMethod attribute to give each method a unique SOAP message name?
See:
http://msdn.microsoft.com/library/en-us/vbcon/html/vbtskUsingWebMethodAt
tribute.asp
hth,
Rob Caron
robcaron @ microsoft.com
Visual Studio .NET Team
This posting is provided "AS IS" with no warranties, and confers no
rights.
-----Original Message-----
From:
Click here to reveal e-mail address
[mailto:
Click here to reveal e-mail address
]
Sent: Tuesday, June 18, 2002 10:41 AM
To: aspngwebservices
Subject: [aspngwebservices] Web Service: Web Method Overload
-- Moved from [aspngfreeforall] to [aspngwebservices] by Marcie Jones
<
Click here to reveal e-mail address
> --
Does anybody know of a reason overloading a web method should fail?
Kevin
| [aspngwebservices] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.asplists.com/asplists/aspngwebservices.asp
= JOIN/QUIT
|
http://www.asplists.com/search
= SEARCH Archives
| [aspngwebservices] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.asplists.com/asplists/aspngwebservices.asp
= JOIN/QUIT
|
http://www.asplists.com/search
= SEARCH Archives
| [aspngwebservices] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.asplists.com/asplists/aspngwebservices.asp
= JOIN/QUIT
|
http://www.asplists.com/search
= SEARCH Archives
| [aspngwebservices] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.asplists.com/asplists/aspngwebservices.asp
= JOIN/QUIT
|
http://www.asplists.com/search
= SEARCH Archives
Reply to this message...
System.Web.Services.WebService
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com