Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-2959

XMLBeans - XmlBeansSchemaInitializer can't support http schema location

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.6
    • 2.3, 2.2.11
    • OtherDatabindings
    • None

    Description

      Currently CXF doesn't seem to support schema localized on the web. For instance if a schema have imports like these:

      <xsd:import namespace="http://www.myCompany.com/sf/scheduler/core"
      schemaLocation="http://www.myCompany.com/schemas/sf/scheduler/core/scheduler-core.xsd"/>
      <xsd:import namespace="http://www.myCompany.com/sf/execution/core"
      schemaLocation="http://www.myCompany.com/schemas/sf/execution/core-interface/execution-core.xsd"/>

      CXF tries to load the local file:

      schemaorg_apache_xmlbeans/src/http://www.myCompany.com/schemas/sf/scheduler/core/scheduler-core.xsd

      Moreover, it could be interesting to support an XML schema catalog avoiding to load the schema from the net. In that way the upper URL could be mapped to the following local file: schemaorg_apache_xmlbeans\src\com\myCompany\sf\scheduler\core\scheduler-core.xsd

      Attachments

        1. BsbXmlBeansDataBinding.java
          2 kB
          Sébastien
        2. BsbXmlBeansSchemaInitializer.java
          3 kB
          Sébastien

        Issue Links

          Activity

            People

              dkulp Daniel Kulp
              sebge2 Sébastien
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: