Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / March 2007

Tip: Looking for answers? Try searching our database.

Help with error: "No overload for method 'x' takes 'y' arguments" using web service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JamesG - 26 Mar 2007 22:21 GMT
Hi,

I'm new to C-Sharp (as of today) and i'm struggling to implement a
SOAP client to a PHP5 web service. I have added the Web Reference (do
I also need to use wsdl.exe and compile the .dll, and reference that
as well?) to the wsdl document.

Behind my form, I have the following (snippeted) code:

/* our service reference */
private localhost.ConsignmentService setWayp;

int waypID = setWayp.setWaypointByID(this.tbCID.Text,
wLon[this.cbWarehouse.SelectedIndex],
   wLat[this.cbWarehouse.SelectedIndex],
   System.DateTime.Now.ToShortDateString,
   System.DateTime.Now.ToShortTimeString, selStatus);

The relevant web reference proxy code is:
public partial class setWaypointByIDRequest {
       private string idField;
       private decimal longitudeField;
       private decimal latitudeField;
       private System.DateTime dateField;
       private System.DateTime timeField;
       private statusType statusField;
       private bool statusFieldSpecified;
...
}

The precise error is: No overload for method 'setWaypointByID' takes
'6' arguments
I've been searching for hours and am stumped!

Any help appreciated
Egghead - 26 Mar 2007 22:33 GMT
hmm,

You only have a web method with seven args., but you pass with six args

cheers,
RL
> Hi,
>
[quoted text clipped - 31 lines]
>
> Any help appreciated
JamesG - 26 Mar 2007 22:47 GMT
Hi,

The last argument is generated by the proxy, because the statusType is
optional. I have tried giving it a 7th and get the same error.

Thanks

> hmm,
>
[quoted text clipped - 39 lines]
>
> - Show quoted text -

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.