Reputation: 53
I'm trying to import schema files in the WSO2 Governance Registry (4.6.0) which include an import to other xsd's. The import happens using the include element. Eg:
<xs:include schemaLocation="OtherSchemaToImport.xsd"/>
When uploading the XSD I receive following error:
Unable to upload file File upload failed. Failed to add resource
/_system/governance/myXsd.xsd.
Could not read the XML Schema Definition file. this.schema.needs
When removing the include, and specifying all elements in one XSD, the problem disappears, this is however not an acceptable solution. Could you please give me some advice, things to try or a solution.
Upvotes: 0
Views: 306
Reputation: 9692
You can overcome this when you upload all resources as *.gar file. Where, you have to edit import definition with the location where you keep the imported resources and make a archive file and upload.
Upvotes: 1