membrane / soa-model

Toolkit and Java API for WSDL, WADL and XML Schema.
http://www.membrane-soa.org/soa-model/
Apache License 2.0
94 stars 73 forks source link

Bug in Definitions getSchema() and getElement() #187

Closed keshavarzi closed 10 years ago

keshavarzi commented 10 years ago

Definitions should return the schema with the desired namespace, which should contains the desired element. This would fail if there were more schemas with the desired namespace and the element is not in the first schema.

Example:

...
<types>
  <xsd:schema>
    <xsd:include schemaLocation="schema1.xsd"/>     
  </xsd:schema>
  <xsd:schema>
    <xsd:include schemaLocation="schema2.xsd"/>
  </xsd:schema>
</types>
...

And the element is defined is schema2.xsd