Getting this error "Type not loaded. Please load call LoadAssembly first." when trying to create obj. Here is the code:
DO ECGridOS_x0020_API_x0020_v3Proxy
LOCAL loService as ECGridOS_x0020_API_x0020_v3Proxy
loService = CREATEOBJECT("ECGridOS_x0020_API_x0020_v3Proxy","V4")
Is this web service one of those incompatible?
Or am I missing something?
Doug
Sounds to me you're missing the actual assembly (dll) that was generated. Make sure you copy all the files the proxy generator has generated and place those in the path of your application.
Compatibility issues will look very different... this is a load time error (ie. a system issue).
+++ Rick ---
When I run it using your wsdl ( https://store.west-wind.com/service/webstoreconsumerservice.asmx?wsdl), I'm able to create the the object.
But not when I run it against this: https://ecgridos.net/v3.2/prod/ECGridOS.asmx?WSDL
Bombs on: loService = CREATEOBJECT("ECGridOS_x0020_API_x0020_v3Proxy","V4")
Ok I can duplicate that error...
The reason for it is that the service and the endpoint class name is using a non-default service name and the defaults don't work for that - the classnames have to be explicitly specified. Bad form on the service's part, but easily fixed (although totally non-obvious):
Change:
cComClass = "ECGridOS_x0020_API_x0020_v3.ECGridOSAPIv3"
in the generated FoxPro Proxy.
Once you change the definition you should be able to instantiate the proxy.
This service is SOAP 1.1 service so it should work with the proxy generator.
+++ Rick ---