West Wind Web Tools for .NET
Re: West Wind Web Service Proxy Generator Error
02/08/2010
08:38:56 AM
2V10IJFQM Show this entire thread in new window
From:
Mike Sue-Ping
To:
Rick Strahl
Attachments:
None
Hi Rick,

I'm not sure if you saw my reply to your answer. My question now is, what am I supposed to "load up" for loInstance? Remember, this error is happening on the CREATEOBJECT() line which is only the second line of code.

Thanks,
Mike


Typically that's in invalid property name. Make sure the object you're setting the value on actually is an instance (ie. not null)... IOW, loInstance in your example has to be loaded up first before you can start setting properties on the object.


+++ Rick ---

I apologize if this isn't the correct Forum to post this question, but, the drop down list does not have an entry for "West Wind Web Service Proxy Generator".

After generating the classes via the wizard, I'm trying to use the code from VFP9.0 as follows:

DO surecloseservicesproxy LOCAL loService as SureCloseServiceProxy loService = CREATEOBJECT("SureCloseServicesProxy")

I receive the following Program Error from the Function SetProperty(loInstance, lcProperty, lvValue) in the wwdotnetbridge.prg:

"OLE IDispatch exception code 0 from wwDotNetBridge: Index was outside the bounds of the array..."

From the VFP debugger I can see the following values:

loInstance = .NULL.
lcProperty = "Url"
lvValue = "https://tm.sclintegrations.com/WebServices.svc"

Does anyone have any idea what is causing this error?

TIA