Author: Andrew Coates
Posted: 2003-03-07 at 02:46:00
Nope,
I tried the following code (generated by the XML Web Services task pane)
**-- Begin Runnable Code
LOCAL loException, lcErrorMsg, loWSHandler
TRY
loWSHandler =3D
NEWOBJECT("WSHandler",IIF(VERSION(2)=3D0,"",HOME()+"FFC\")+"_ws3client.vc=
x
")
loProFoxWS =3D =
loWSHandler.SetupClient("http://leafe.com/ProFoxWS.wsdl",
"ProFoxWS", "ProFoxWSSoapPort")
* Call your XML Web service here. ex: leResult =3D
loProFoxWS.SomeMethod()
** Next Call Fails with "Incorrect Parameter" + "Loading Request Into
Soap Header Failed"
lcResult =3D loProFoxWS.SearchAuthorLinks('coates',GOMONTH(DATETIME(),
-24), DATETIME(),.f.)
=20
? lcResult
=20
CATCH TO loException
lcErrorMsg=3D"Error: "+TRANSFORM(loException.Errorno)+" -
"+loException.Message
DO CASE
CASE VARTYPE(loProFoxWS)#"O"
* Handle SOAP error connecting to web service
CASE !EMPTY(loProFoxWS.FaultCode)
* Handle SOAP error calling method
lcErrorMsg=3DlcErrorMsg+CHR(13)+loProFoxWS.Detail
OTHERWISE
* Handle other error
ENDCASE
* Use for debugging purposes
MESSAGEBOX(lcErrorMsg)
FINALLY
ENDTRY
**-- End runnable code
Andrew Coates
Civil Solutions
Tel +61 2 9344 4993 (GMT+11) Fax + 61 2 9345 0893
www.civilsolutions.com.au=20
----
OzFox 2003 - Australian VFP Conference - www.ozfox.com.au
The Fox Community Portal - www.foxcentral.net
Great VFP Books - www.civilsolutions.com.au/hwbooks/
> -----Original Message-----
> From: Ed Leafe [mailto:ed@leafe.com]=20
> Sent: Fri, 07 Mar 2003 13:46
> To: profox@leafe.com
> Subject: Re: ProFox Task Pane available
>=20
>=20
> On Thursday, March 6, 2003, at 09:33 PM, Andrew Coates wrote:
>=20
> > I installed the new pane, but calling the service now results in
> >
> > "Client:Incorrect number of parameters supplied for SOAP request
> > HRESULT=3D0x80070057: The parameter is incorrect.=01
> >
> > All the parameters seem to be correct in the debug window.
> >
> > Any hints?
>=20
> Hmmm... no, none that I can think of. Are you able to=20
> run the web=20
> service from a basic PRG?
>=20
> ___/
> /
> __/
> /
> ____/
> Ed Leafe
>=20
>=20
[excessive quoting removed by server]