too many arguments in public function?

D

DC Gringo

I have a simple function within a web method. It works fine with one
parameter, but gives me a compile error when I try to add a second:

"Too many arguments to 'Public Function FewsArticles(OrgID As String) As
String'."


Here's the client calling code:

Dim sFeed As String = oWs.FewsArticles(OrgID, FeedType)



Here's the web service code:

<WebMethod()> _
Public Function FewsArticles(ByVal OrgID As String, ByVal FeedType As
String) As String

_____
DC G
 
L

Lucas Tam

I have a simple function within a web method. It works fine with one
parameter, but gives me a compile error when I try to add a second:

"Too many arguments to 'Public Function FewsArticles(OrgID As String) As
String'."


Here's the client calling code:

Dim sFeed As String = oWs.FewsArticles(OrgID, FeedType)

You might have to refresh your web service definition.

Right click on your Web Reference and choose the refresh option.
 
D

DC Gringo

Lucas,

Yes I tried that and to no avail.

More suggestions? Anyone?

Thanks!
_____
DC G
 
B

Bruce Barker

web methods do not support overloading parameters. if you need two method
names. if you look in the proxy code, you will see the name assigned to the
overloaded method

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top