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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment