Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: fix names of modules.

CXF uses XML schemas extensively in the runtime: Its core includes the JAXB mappings of standard schemas such as http://schemas.xmlsoap.org/wsdl/ and http://www.w3.org/2006/03/addressing/ws-addr.xsd. CXF also defines its own schemas for WSDL extensions such as the jms-address element in namespace http://cxf.apache.org/transports/jmsImage Removed, and schemas for Spring configuration, for example the http://cxf.apache.org/jaxwsImage Removed namespace.

To avoid accessing resources over the network during a build, CXF maintains local copies of these schemas. Logically however, third party as well as CXF schemas, are as well as the CXF schemas, are referred to by their public URIs in schemaLocation attributes and similar places. The CXF code generators use catalog files to map them to their actual location in the trunk, see the pom.xml file in the api module for an example.

...

URI

Target Namespace

Classpath Resource

Module

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

Image Removed

http://cxf.apache.org/core

Image Removed

/schemas/core.xsd

cxf-rt-core

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

Image Removed

http://cxf.apache.org/transports/http/configuration

Image Removed

/schemas/configuration/http-conf.xsd

cxf-rt-transports-http

http://cxf.apache.org/schemas/configuration/http-listener.xsd

Image Removed

http://cxf.apache.org/transport/http/listener

Image Removed

/schemas/configuration/http-listener.xsd

cxf-rt-transports-http

http://cxf.apache.org/schemas/configuration/jms.xsd

Image Removed

http://cxf.apache.org/transports/jms

Image Removed

/schemas/configuration/jms.xsd

cxf-rt-transports-jms

http://cxf.apache.org/schemas/configuration/security.xsd

Image Removed

http://cxf.apache.org/configuration/security

Image Removed

/schemas/configuration/security.xsd

cxf-common-schemas

http://cxf.apache.org/schemas/configuration/soap.xsd

Image Removed

http://cxf.apache.org/bindings/soap

Image Removed

/schemas/configuration/soap.xsd

cxf-rt-bindings-soap

http://cxf.apache.org/schemas/configuration/wsrm-manager-types.xsd

Image Removed

http://cxf.apache.org/ws/rm/manager

Image Removed

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

cxf-rt-ws-rm

http://cxf.apache.org/schemas/configuration/wsrm-manager.xsd

Image Removed

http://cxf.apache.org/ws/rm/manager

Image Removed

/schemas/configuration/wsrm-manager.xsd

cxf-rt-ws-rm

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

Image Removed

http://cxf.apache.org/jaxws

Image Removed

/schemas/jaxws.xsd

cxf-rt-frontendsfrontend-jaxws

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

Image Removed

http://cxf.apache.org/simple

Image Removed

/schemas/simple.xsd

cxf-rt-frontendsfrontend-simple

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

Image Removed

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

Image Removed

/schemas/ws-addr-conf.xsd

cxf-rt-ws-addr

...

Code Block
xml
xml
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:http-conf="http://cxf.apache.org/transports/http/configuration"
    xmlns:jaxws="http://cxf.apache.org/jaxws"
    xsi:schemaLocation="
http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
  
    <http-conf:conduit name="{http://cxf.apache.org/hello_world_soap_http}SoapPort.http-conduit">
        <http-conf:client DecoupledEndpoint="http://localhost:9999/decoupled_endpoint"/>
    </http-conf:conduit>

    <jaxws:client name="{http://cxf.apache.org/hello_world_soap_http}SoapPort" createdFromAPI="true">
        <jaxws:conduitSelector>
            <bean class="org.apache.cxf.endpoint.DeferredConduitSelector"/>
        </jaxws:conduitSelector>
    </jaxws:client>

   

Other Schemas

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.xsd

Image Removed

http://cxf.apache.org/configuration/beans

Image Removed

/schemas/configuration/cxf-beans.xsd

cxf-common-utilities

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

Image Removed

http://cxf.apache.org/transports/http/configuration

Image Removed

/schemas/wsdl/http-conf.xsd

cxf-rt-transports-http

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

Image Removed

http://cxf.apache.org/transports/jms

Image Removed

/schemas/wsdl/jms.xsd

cxf-rt-transports-jms

http://activemq.org/config/1.0

Image Removed

http://activemq.org/config/1.0

Image Removed

/activemq.xsd

cxf-xxx-yyy

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

Image Removed

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

Image Removed

/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.xsd

Image Removed

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

Image Removed

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

cxf-rt-ws-policy

http://schemas.xmlsoap.org/ws/2004/08/addressing

Image Removed

http://schemas.xmlsoap.org/ws/2004/08/addressing

Image Removed

/schemas/wsdl/addressing.xsd

cxf-common-schemas

http://schemas.xmlsoap.org/ws/2004/09/policy/ws-policy.xsd

Image Removed

http://schemas.xmlsoap.org/ws/2004/09/policy

Image Removed

/schemas/ws-policy-200409.xsd

cxf-rt-ws-rm

http://schemas.xmlsoap.org/ws/2005/02/rm/wsrm-policy.xsd

Image Removed

http://schemas.xmlsoap.org/ws/2005/02/rm/policy

Image Removed

/schemas/configuration/wsrm-policy.xsd

cxf-rt-ws-rm

http://schemas.xmlsoap.org/wsdl/

Image Removed

http://schemas.xmlsoap.org/wsdl/

Image Removed

/schemas/wsdl/wsdl.xsd

cxf-common-schemas

http://schemas.xmlsoap.org/wsdl/http/

Image Removed

http://schemas.xmlsoap.org/wsdl/http/

Image Removed

/schemas/wsdl/http.xsd

cxf-common-schemas

http://www.w3.org/2001/xml.xsd

Image Removed

http://www.w3.org/XML/1998/namespace

Image Removed

/schemas/xml.xsd

cxf-rt-ws-policy

http://www.w3.org/2006/07/ws-policy.xsd

Image Removed

http://www.w3.org/2006/07/ws-policy

Image Removed

/schemas/ws-policy-200607.xsd

cxf-rt-ws-policy

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/Image Removed 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):

...