hooklift / gowsdl

WSDL2Go code generation as well as its SOAP proxy
Mozilla Public License 2.0
1.15k stars 390 forks source link

External Schemas Not Supported #53

Open elkvis opened 8 years ago

elkvis commented 8 years ago

If a wsdl file references a schema at a separate URL, which contains types, gowsdl will not read that schema file, and as a result, those types will not be generated, and errors will be generated during the build process.

My workaround has been to copy the contents of the external schema into the wsdl file, which then allows gowsdl to generate all of the client info for the web service.

sosedoff commented 8 years ago

@elkvis did you manually do that or do you have some sort of script that replaces the contents? i hit the same problem and currently trying to get wsdl imports feature working.

elkvis commented 8 years ago

I did it manually, but I'm sure a tool could be created to do it. It's not something someone is likely to need to do often enough to require a tool, since it's just a simple copy/paste operation. On the other hand, a properly designed tool would give a greater guarantee that it's done without errors.