XMLBeans
  1. XMLBeans
  2. XMLBEANS-479

XmlException occurs when call XmlBeans.compileXsd method on List of XmlObject of WSDL file where some XmlObject contains XS:INCLUDE

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: Version 2.5
    • Fix Version/s: None
    • Component/s: Compiler
    • Labels:
      None
    • Environment:
      Windows 7, Java 7

      Description

      I have WSDL file which imports XSD files and these XSD files import or include another XSD files etc.
      I call XmlBeans.compileXsd method on List of XmlObject of this WSDL file.
      If some XmlObject contains XS:INCLUDE then XmlException occurs.

      I think that in StscImporter.DownloadTable.resolveImportsAndIncludes(boolean) method should be
      Schema included = downloadSchema(includes[i], sourceNamespace, includes[i].getSchemaLocation());
      instead of
      Schema included = downloadSchema(includes[i], null, includes[i].getSchemaLocation());
      because if I make this change then it works ok.

      See attached IncludeBug.zip file - it's an Eclipse Java Project

      1. IncludeBug.zip
        2.49 MB
        Michal Láska

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Michal Láska
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development