too many arguments in public function?

  • Thread starter Thread starter DC Gringo
  • Start date Start date
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
 
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.
 
Lucas,

Yes I tried that and to no avail.

More suggestions? Anyone?

Thanks!
_____
DC G
 
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

Back
Top