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 -