cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sébastien (JIRA) <j...@apache.org>
Subject [jira] Updated: (CXF-2959) XMLBeans - XmlBeansSchemaInitializer can't support http schema location
Date Fri, 27 Aug 2010 12:00:55 GMT

     [ https://issues.apache.org/jira/browse/CXF-2959?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sébastien updated CXF-2959:
---------------------------

    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

  was:
I'm trying to import schema thanks to full qualified names 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"/>

Unfortunately, it tries to load the local file:

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


Is there a way to configure an XmlSchemaCatalog avoiding to load the schema from the net ?
so the schema is in fact in: schemaorg_apache_xmlbeans\src\com\myCompany\sf\scheduler\core\scheduler-core.xsd

So I would like to create a mapping between the HTTP URL and the local XSD file


> XMLBeans - XmlBeansSchemaInitializer can't support http schema location
> -----------------------------------------------------------------------
>
>                 Key: CXF-2959
>                 URL: https://issues.apache.org/jira/browse/CXF-2959
>             Project: CXF
>          Issue Type: Improvement
>          Components: OtherDatabindings
>    Affects Versions: 2.2.6
>            Reporter: Sébastien
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message