Using WSDL.exe with local WSDL file that has external .xsd files

Omar Kooheji picture Omar Kooheji · Apr 24, 2012 · Viewed 7.9k times · Source

I'm trying to generate a Web Service stub from some wsdl/xsd files that a customer has sent us. I've done this with no problems using wsdl.exe before while everything was in the wsdl file, but when I run the file on the wsdl file I get an error message stating that is can't import one of the operations because one of the elements that is in an external xsd is missing.

I've tried putting a schemeLocation parameter in the element and it's still not working. Is there a way to state what the xsds are when calling wsdl.exe?

I can't post the wsdl files because they covered by an NDA.

Answer

Omar Kooheji picture Omar Kooheji · Apr 24, 2012

It turns out you can have multiple file names as the parameters to WSDL.exe if you include the xsd files after the wsdl file it works fine...