Uploaded image for project: '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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Cannot Reproduce
    • Version 2.5
    • None
    • Compiler
    • None
    • 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

      Attachments

        1. IncludeBug.zip
          2.49 MB
          Michal Láska

        Activity

          People

            Unassigned Unassigned
            lafi86 Michal Láska
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: