Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Spring uses a similar way to map systemIds UIRs to locations on the classpath (spring.schemas files), and that way validates your Spring configuration files. Validation can be disabled (by setting system property spring.validation.mode to VALIDATION_NONE), but the default is to have validation it enabled. This is very useful when you are configuring CXF and not very familiar with CXF's configuration schemas or with Spring itself.What you need to know when writing a valid Spring configuration file is the system IDs for the schema file(s) defining the types that are using in the configuration file.

The table below contains lists the system IDs UIRs for the CXF schema files configuration schemas that you may need to specify in your configuration file, along with their target namespaceSpring configuration file's schemaLocation attribute so that Spring's validating parse can validate the file.
In theory you need not be concerned with the actual location of these files, as they should be available at their URI. In practice however, only the standard schemas are actually available that way, but the files: Spring knows about their location on the classpath. And if you want to check the content of a schema file (in a binary distribution), you should be able to do so using its URI. At the moment this is not possible, however CXF aims at publishing its schemas in the future. In the meantime, to check the content of a schema file, you can use the classpath location in the table below to find the schemas.original version of the schema in the trunk.

Configuration Schemas

URI System ID

Target Namespace

Classpath Resource

Module

http://cxf.apache.org/schemaschemas/bindingsconfiguration/soaphttp-conf.xsdImage Modified http://cxf.apache.org/transports/bindingshttp/soapconfigurationImage Modified

/orgschemas/apache/cxf/binding/soap/spring/soapconfiguration/http-conf.xsd

cxf-rt-bindingstransports-soap http

http://cxf.apache.org/schemas/configuration/cxfhttp-beanslistener.xsdImage Modified ht tphttp://cxf.apache.org/transport/configurationhttp/beans listenerImage Added

/schemas/configuration/cxfhttp-beanslistener.xsd

cxf-rt-commontransports-utilities http

http://cxf.apache.org/schemas/configuration/http-confjms.xsdImage Modified http://cxf.apache.org/transports/http/configurationjmsImage Modified

/schemas/configuration/http-confjms.xsd

cxf-rt-transports-jms

http://cxf.apache.org/schemas/configuration/security.xsdImage Added http://cxf.apache.org/configuration/securityImage Added

/schemas/configuration/security.xsd

cxf-common-schemas

http://cxf.apache.org/schemas/configuration/soaphttp-listener.xsdImage Modified http://cxf.apache.org/transportbindings/http/listenersoapImage Modified

/schemas/configuration/http-listenersoap.xsd

cxf-rt-transportsbindings-http soap

http://cxf.apache.org/schemas/configuration/jmswsrm-manager-types.xsdImage Modified http://cxf.apache.org/ws/transportsrm/jmsmanagerImage Modified

/schemas/configuration/jmswsrm-manager-types.xsd

cxf-rt-transportsws-jms rm

http://cxf.apache.org/schemas/configuration/securitywsrm-manager.xsdImage Modified http://cxf.apache.org/ws/configurationrm/securitymanagerImage Modified

/schemas/configuration/securitywsrm-manager.xsd

cxf-rt-commonws-schemas rm

http://cxf.apache.org/schemas/jaxws.xsd http://cxf.apache.org/jaxws

/schemas/jaxws.xsd

cxf-rt-frontends-jaxws

http://cxf.apache.org/schemas/simple.xsdImage Added http://cxf.apache.org/simpleImage Added

/schemas/simple.xsd

cxf-rt-frontends-simple

http://cxf.apache.org/schemas/ws/addressing.xsd http://cxf.apache.org/ws/addressing

/schemas/ws-addr-conf.xsd

cxf-rt-ws-addr

The following schemas are imported by the schemas above, directly or indirectly. You may also find their classpath locations useful when you import or include any of the schemas below in your own schema, and want to know hpw you can access them locally (actually, it'd be cool if someone wrote a CatalogResolver based on the URI - classpath location mappings that already exist and get the CXF tools and/or xjc to use it).

URI

Target Namespace

Classpath Resource

Module

http://cxf.apache.org/schemas/configuration/cxf-beans.xsdImage Added http://cxf.apache.org/configuration/beansImage Added

/schemas/configuration/cxf-beans.xsd

cxf-common-utilities

http://cxf.apache.org/schemas/wsdl/http-conf.xsd http://cxf.apache.org/transports/http/configuration

/schemas/wsdl/http-conf.xsd

cxf-rt-transports-http

http://cxf.apache.org/schemas/wsdl/jms.xsd http://cxf.apache.org/transports/jms

/schemas/wsdl/jms.xsd

cxf-rt-transports-jms

http://activemq.org/config/1.0Image Added http://activemq.org/config/1.0Image Added

/activemq.xsd

cxf

.apache.org/ws/rm/manager-types.xsdImage Removed

-xxx-yyy

http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsdImage Added http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsdImage Added

/schemas/oasis-200401-wss-wssecurity-secext-1.0.xsd

cxf-rt-ws-policy

http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsdImage Added http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsdImage Added

/schemas/oasis-200401-wss-wssecurity-utility-1.0.xsd

cxf-rt-ws-policy

http://schemas.xmlsoap.org/ws/2004/08/addressingImage Added http://schemas.xmlsoap.org/ws/2004/08/addressingImage Added

/schemas/wsdl/addressing.xsd

cxf-common-schemas

http://schemas.xmlsoap.org/ws/2004/09/policy/ws-policy.xsdImage Added http://schemas.xmlsoap.org/ws/2004/09/policyImage Added

/schemas/ws-policy-200409

http://cxf.apache.org/ws/rm/managerImage Removed

/schemas/configuration/manager-types.xsd

cxf-rt-ws-rm

http://cxfschemas.apachexmlsoap.org/ws/2005/02/rm/managerwsrm-policy.xsdImage Modified http://cxfschemas.apachexmlsoap.org/ws/2005/02/rm/managerpolicyImage Modified

/schemas/configuration/managerwsrm-policy.xsd

cxf-rt-ws-rm

...

Note for Developers: If you define your own configuration schema, place it in the schemas subdirectory of the resources directory, then combine http://cxf.apache.org/ and the path of the schema relative to the resources directory to form the system ID, and make the latter known to Spring by adding a line similar to the following to the spring.schemas file in your module's META-INF directory (note the escaped : character):

...