9

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.

Omar Kooheji
  • 54,530
  • 68
  • 182
  • 238
  • Are there missing elements in the external xsd? Re-check namespaces is my first thought as that usually can be a problem. – Jontatas Apr 24 '12 at 11:37
  • the namespace is the same as the one in the file, I just think it's not loading the xsd with the definition. – Omar Kooheji Apr 24 '12 at 12:04

1 Answers1

13

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

Omar Kooheji
  • 54,530
  • 68
  • 182
  • 238