Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 890
Omar Kooheji Avatar asked Apr 24 '12 11:04

Omar Kooheji


People also ask

How do I get xsd files from WSDL?

xsd using following steps : Create library (optional) > Right Click , New Message Model File > Select SOAP XML > Choose Option 'I already have WSDL for my data' > 'Select file outside workspace' > 'Select the WSDL bindings to Import' (if there are multiple) > Finish. This will give you the . xsd and .

Does WSDL contain xsd?

WSDL Document ElementsWSDL supports the XML Schemas specification (XSD) as its type system. Contains the definition of one or more services. JDeveloper generates the following attribute declarations for this section: name is optional.


1 Answers

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

like image 107
Omar Kooheji Avatar answered Nov 15 '22 14:11

Omar Kooheji