Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error when sending to a webservice
Message
From
16/03/2005 11:27:18
 
General information
Forum:
Visual FoxPro
Category:
Web Services
Miscellaneous
Thread ID:
00996134
Message ID:
00996374
Views:
67
Wayne,

It's been 3 years since I've done anything with calling Web Services from VFP, but I'm guessing your problem might be related to your XML string. How did you get the string? Did you use the CursorAdapter? I think it's the CursorAdapter that produces correct XML. The older CursorToXML has some idiosyncracies IIRC, that were not always compatible with how .NET expected the XML string to be formatted.

~~Bonnie



>>Hi,
>>>>
>>I am getting an error when I try to send data to a webservice...
>>
>>Error: 1429 - OLE IDispatch exception code 0 from Client: Client:Incorrect number of parameters supplied for SOAP request HRESULT=0x80070057: The parameter is incorrect.
>>- Client:Unspecified client error. HRESULT=0x80070057: The parameter is incorrect.
>>..
>>
>>The webservice accepts (user,pw,xmldata). The guy that wrote it has no problems getting it to work in c#, but I can't get past this error in vfp9. Any ideas what could be causing this?
>>>>
>>
>>What's the code for the call. Even if the parameters you send to the web service are correct you can get this error if you omit to acept the returned value.
>>
>>Regards,
>>Viv
>
>After everything is registered, I am doing nothing more than;
>
>loPatientDataIFPort.OP_ReceiveLifetracData('gd','gd',lcPatientXml)
>
>
>I also changed it to do this;
>
>clientCall =loPatientDataIFPort.OP_ReceiveLifetracData
>clientCall.username = "gd"
>clientCall.password = "gd"
>clientCall.lifetracXMLString = lcPatientXml
>MessageBox.Show(ws.OP_ReceiveLifetracData(clientCall).result)
>
>
>And received the following error.
>
>Error: 1429 - OLE IDispatch exception code 0 from Connector: Connector:Host not found. HRESULT=0x800A1521 - Client:An unanticipated error occurred during the processing of this request. HRESULT=0x800A1521 - Client:Sending the Soap message failed or no recognizable response was received HRESULT=0x800A1521 - Client:Unspecified client error. HRESULT=0x800A1521..
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform