Web Service Proxy Generator
Web Service Proxy Gen : Type not loaded
Gravatar is a globally recognized avatar based on your email address. Web Service Proxy Gen : Type not loaded
  Doug
  All
  Nov 13, 2018 @ 01:40pm

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")

This is the WSDL:

Is this web service one of those incompatible?

Or am I missing something?

Doug

Gravatar is a globally recognized avatar based on your email address. re: Web Service Proxy Gen : Type not loaded
  Rick Strahl
  Doug
  Nov 13, 2018 @ 04:36pm

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 ---

Gravatar is a globally recognized avatar based on your email address. re: Web Service Proxy Gen : Type not loaded
  Doug
  Rick Strahl
  Nov 13, 2018 @ 05:52pm

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")

Gravatar is a globally recognized avatar based on your email address. re: Web Service Proxy Gen : Type not loaded
  Rick Strahl
  Doug
  Nov 13, 2018 @ 06:06pm

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 ---

Gravatar is a globally recognized avatar based on your email address. re: Web Service Proxy Gen : Type not loaded
  Doug
  Doug
  Nov 13, 2018 @ 06:32pm

Bingo! You da' man.

Greatly appreciated.

© 1996-2024