cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "metatech (JIRA)" <>
Subject [jira] [Created] (CXF-3756) wadl2java ignores multiple inline XML schemas
Date Tue, 23 Aug 2011 13:09:29 GMT
wadl2java ignores multiple inline XML schemas

                 Key: CXF-3756
             Project: CXF
          Issue Type: Bug
          Components: JAX-RS
    Affects Versions: 2.4.2
            Reporter: metatech

When generating classes from a WADL, if multiple inline XML schemas are present in the file,
they are ignored, only the last one is taken into account.
This seems to happen because multiple schemas have the same SystemID, which are later parsed
by the systemId, Element element)
method, which documents that the SystemID should be made unique.
I followed this advice and added the targetNamespace to the SystemID, and now classes for
all schemas are generated.
In method SourceGenerator.getSchemaElements(...)
for (Element schemaEl : schemasEls) {
    String targetNS = schemaEl.getAttribute("targetNamespace");
    schemas.add(createSchemaInfo(schemaEl, app.getWadlPath() + "#" + targetNS));
Could you please apply this contribution if you think it makes sense.

This message is automatically generated by JIRA.
For more information on JIRA, see:


View raw message