cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache CXF Documentation > Schemas and Namespaces
Date Tue, 20 Nov 2012 17:33:00 GMT
<html>
<head>
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/2042/9/1/_/styles/combined.css?spaceKey=CXF20DOC&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://cwiki.apache.org/confluence/display/CXF20DOC/Schemas+and+Namespaces">Schemas
and Namespaces</a></h2>
    <h4>Page <b>edited</b> by             <a href="https://cwiki.apache.org/confluence/display/~mazzag">Glen
Mazza</a>
    </h4>
        <div id="versionComment">
        <b>Comment:</b>
        Updated Blueprint schema info.<br />
    </div>
        <br/>
                         <h4>Changes (13)</h4>
                                 
    
<div id="page-diffs">
                    <table class="diff" cellpadding="0" cellspacing="0">
    
            <tr><td class="diff-unchanged" >h1. Use of Schemas and Namespaces
<br> <br></td></tr>
            <tr><td class="diff-changed-lines" >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/jms],
and schemas for <span class="diff-added-words"style="background-color: #dfd;">both</span>
Spring <span class="diff-added-words"style="background-color: #dfd;">and Blueprint (OSGi)</span>
configuration, for example the [http://cxf.apache.org/jaxws] <span class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">namespace.</span>
<span class="diff-added-words"style="background-color: #dfd;">and [http://cxf.apache.org/blueprint/jaxws]
namespaces.</span> <br></td></tr>
            <tr><td class="diff-unchanged" > <br></td></tr>
            <tr><td class="diff-changed-lines" >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 <span class="diff-changed-words">schemas<span class="diff-deleted-chars"style="color:#999;background-color:#fdd;text-decoration:line-through;">,</span></span>
are <span class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">as
well as the CXF schemas, are</span> 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. <br></td></tr>
            <tr><td class="diff-unchanged" > <br></td></tr>
            <tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">Spring
uses a similar way to map URIs to locations on the classpath (spring.schemas files), and that
way validates your Spring configuration files. Validation is extremely helpful in diagnosing
errors in CXF configurations, but it is also very expensive at runtime. Once you have got
your application working, you can disable validation by setting a system property: {{org.apache.cxf.spring.validation.mode}}
(in 2.1) or {{spring.validation.mode}} (in 2.0.x). Set it as follows to disable validation:
<br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">Note
if you&#39;re using Spring it will validate your Spring configuration files, using information
in each JAR&#39;s META-INF/spring.schemas file (an example [here|http://svn.apache.org/viewvc/cxf/trunk/rt/ws/policy/src/main/resources/META-INF/spring.schemas?view=markup]).
Validation is extremely helpful in diagnosing errors in CXF configurations, but it is also
expensive at runtime. Once you have got your application working, you can disable validation
by setting a system property: {{\-Dorg.apache.spring.validation.mode=VALIDATION_NONE}} <br></td></tr>
            <tr><td class="diff-unchanged" > <br></td></tr>
            <tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">{{\-Dorg.apache.spring.validation.mode=VALIDATION_NONE}}
<br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">The
table below includes the URIs for the CXF configuration schemas that you need to specify in
your Spring configuration file&#39;s schemaLocation attribute so that Spring&#39;s
validating parser can validate the file.  In theory you need not be concerned with the actual
location of the files: Spring can normally detect their location from 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. You can also use the classpath location in the table below to find
the original version of the schema in the trunk. <br></td></tr>
            <tr><td class="diff-unchanged" > <br></td></tr>
            <tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">The
table below lists the URIs for the CXF configuration schemas that you need to specify in your
Spring configuration file&#39;s schemaLocation attribute so that Spring&#39;s validating
parse can validate the file. <br>In theory you need not be concerned with the actual
location of 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, you can use the classpath location in the table below to find
the original version of the schema in the trunk. <br> <br>*Configuration Schemas*
<br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">*Configuration
Schemas common to both Spring and Blueprint* <br></td></tr>
            <tr><td class="diff-unchanged" >|| URI || Target Namespace || Classpath
Resource || Module || <br></td></tr>
            <tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">|
[http://cxf.apache.org/schemas/core.xsd] | [http://cxf.apache.org/core] | /schemas/core.xsd
| cxf-rt-core | <br></td></tr>
            <tr><td class="diff-unchanged" >| [http://cxf.apache.org/schemas/configuration/http-conf.xsd]
| [http://cxf.apache.org/transports/http/configuration] | /schemas/configuration/http-conf.xsd
| cxf-rt-transports-http | <br>| [http://cxf.apache.org/schemas/configuration/http-jetty.xsd]
| [http://cxf.apache.org/transports/http-jetty/configuration] | /schemas/configuration/http-jetty.xsd
| cxf-rt-transports-http-jetty | <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >| [http://cxf.apache.org/schemas/configuration/security.xsd]
| [http://cxf.apache.org/configuration/security] | /schemas/configuration/security.xsd | cxf-common-schemas
| <br>| [http://cxf.apache.org/schemas/configuration/soap.xsd] | [http://cxf.apache.org/bindings/soap]
| /schemas/configuration/soap.xsd | cxf-rt-bindings-soap | <br></td></tr>
            <tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">|
[http://cxf.apache.org/schemas/jaxws.xsd] | [http://cxf.apache.org/jaxws] | /schemas/jaxws.xsd
| cxf-rt-frontend-jaxws | <br>| [http://cxf.apache.org/schemas/simple.xsd] | [http://cxf.apache.org/simple]
| /schemas/simple.xsd | cxf-rt-frontend-simple | <br></td></tr>
            <tr><td class="diff-unchanged" >| [http://cxf.apache.org/schemas/ws-addr-conf.xsd]
| [http://cxf.apache.org/ws/addressing] | /schemas/ws-addr-conf.xsd | cxf-rt-ws-addr | <br>|
[http://cxf.apache.org/schemas/configuration/wsrm-manager-types.xsd] | [http://cxf.apache.org/ws/rm/manager]
| /schemas/configuration/wsrm-manager-types.xsd | cxf-rt-ws-rm | <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >\* wsrm-manager.xsd does an  &quot;xsd:include&quot;
on wsrm-manager-types.xsd as they are in the same namespace. As such, the user just needs
to reference wsrm-manager.xsd to use both. <br> <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">*Spring-only
Schemas* <br>|| URI || Target Namespace || Classpath Resource || Module || <br>|
[http://cxf.apache.org/schemas/core.xsd] | [http://cxf.apache.org/core] | /schemas/core.xsd
| cxf-rt-core | <br>| [http://cxf.apache.org/schemas/jaxrs.xsd] | [http://cxf.apache.org/jaxrs]
| /schemas/jaxrs.xsd | cxf-rt-frontend-jaxrs | <br>| [http://cxf.apache.org/schemas/jaxws.xsd]
| [http://cxf.apache.org/jaxws] | /schemas/jaxws.xsd | cxf-rt-frontend-jaxws | <br>|
[http://cxf.apache.org/schemas/policy.xsd] | [http://cxf.apache.org/policy] | /schemas/policy.xsd
| cxf-rt-ws-policy | <br>| [http://cxf.apache.org/schemas/simple.xsd] | [http://cxf.apache.org/simple]
| /schemas/simple.xsd | cxf-rt-frontend-simple | <br> <br>*Blueprint-only Schemas*
<br>|| URI || Target Namespace || Classpath Resource || Module || <br>| [http://cxf.apache.org/schemas/blueprint/core.xsd]
| [http://cxf.apache.org/core] | /schemas/blueprint/core.xsd | cxf-rt-core | <br>| [http://cxf.apache.org/schemas/blueprint/jaxrs.xsd]
| [http://cxf.apache.org/jaxrs] | /schemas/blueprint/jaxrs.xsd | cxf-rt-frontend-jaxrs | <br>|
[http://cxf.apache.org/schemas/blueprint/jaxws.xsd] | [http://cxf.apache.org/jaxws] | /schemas/blueprint/jaxws.xsd
| cxf-rt-frontend-jaxws | <br>| [http://cxf.apache.org/schemas/blueprint/policy.xsd]
| [http://cxf.apache.org/policy] | /schemas/blueprint/policy.xsd | cxf-rt-ws-policy | <br>|
[http://cxf.apache.org/schemas/blueprint/simple.xsd] | [http://cxf.apache.org/simple] | /schemas/blueprint/simple.xsd
| cxf-rt-frontend-simple | <br> <br> <br></td></tr>
            <tr><td class="diff-unchanged" >*Example* <br> <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >*Other Schemas* <br> <br></td></tr>
            <tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">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&#39;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). <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">The
following schemas are imported by one or more of 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. <br> <br></td></tr>
            <tr><td class="diff-unchanged" >|| URI || Target Namespace || Classpath
Resource || Module || <br>| [http://cxf.apache.org/schemas/configuration/cxf-beans.xsd]
| [http://cxf.apache.org/configuration/beans] | /schemas/configuration/cxf-beans.xsd | cxf-common-utilities
| <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
    
            </table>
    </div>                            <h4>Full Content</h4>
                    <div class="notificationGreySide">
        <h1><a name="SchemasandNamespaces-UseofSchemasandNamespaces"></a>Use
of Schemas and Namespaces</h1>

<p>CXF uses XML schemas extensively in the runtime: Its core includes the JAXB mappings
of standard schemas such as <a href="http://schemas.xmlsoap.org/wsdl/" class="external-link"
rel="nofollow">http://schemas.xmlsoap.org/wsdl/</a> and <a href="http://www.w3.org/2006/03/addressing/ws-addr.xsd"
class="external-link" rel="nofollow">http://www.w3.org/2006/03/addressing/ws-addr.xsd</a>.
CXF also defines its own schemas for WSDL extensions such as the jms-address element in namespace
<a href="http://cxf.apache.org/transports/jms" class="external-link" rel="nofollow">http://cxf.apache.org/transports/jms</a>,
and schemas for both Spring and Blueprint (OSGi) configuration, for example the <a href="http://cxf.apache.org/jaxws"
class="external-link" rel="nofollow">http://cxf.apache.org/jaxws</a> and <a href="http://cxf.apache.org/blueprint/jaxws"
class="external-link" rel="nofollow">http://cxf.apache.org/blueprint/jaxws</a> namespaces.</p>

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

<p>Note if you're using Spring it will validate your Spring configuration files, using
information in each JAR's META-INF/spring.schemas file (an example <a href="http://svn.apache.org/viewvc/cxf/trunk/rt/ws/policy/src/main/resources/META-INF/spring.schemas?view=markup"
class="external-link" rel="nofollow">here</a>). Validation is extremely helpful in
diagnosing errors in CXF configurations, but it is also expensive at runtime. Once you have
got your application working, you can disable validation by setting a system property: <tt>&#45;Dorg.apache.spring.validation.mode=VALIDATION_NONE</tt></p>

<p>The table below includes the URIs for the CXF configuration schemas that you need
to specify in your Spring configuration file's schemaLocation attribute so that Spring's validating
parser can validate the file.  In theory you need not be concerned with the actual location
of the files: Spring can normally detect their location from 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. You can also use the classpath location in the table below to find the original
version of the schema in the trunk.</p>

<p><b>Configuration Schemas common to both Spring and Blueprint</b></p>
<div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<th class='confluenceTh'> URI </th>
<th class='confluenceTh'> Target Namespace </th>
<th class='confluenceTh'> Classpath Resource </th>
<th class='confluenceTh'> Module </th>
</tr>
<tr>
<td class='confluenceTd'> <a href="http://cxf.apache.org/schemas/configuration/http-conf.xsd"
class="external-link" rel="nofollow">http://cxf.apache.org/schemas/configuration/http-conf.xsd</a>
</td>
<td class='confluenceTd'> <a href="http://cxf.apache.org/transports/http/configuration"
class="external-link" rel="nofollow">http://cxf.apache.org/transports/http/configuration</a>
</td>
<td class='confluenceTd'> /schemas/configuration/http-conf.xsd </td>
<td class='confluenceTd'> cxf-rt-transports-http </td>
</tr>
<tr>
<td class='confluenceTd'> <a href="http://cxf.apache.org/schemas/configuration/http-jetty.xsd"
class="external-link" rel="nofollow">http://cxf.apache.org/schemas/configuration/http-jetty.xsd</a>
</td>
<td class='confluenceTd'> <a href="http://cxf.apache.org/transports/http-jetty/configuration"
class="external-link" rel="nofollow">http://cxf.apache.org/transports/http-jetty/configuration</a>
</td>
<td class='confluenceTd'> /schemas/configuration/http-jetty.xsd </td>
<td class='confluenceTd'> cxf-rt-transports-http-jetty </td>
</tr>
<tr>
<td class='confluenceTd'> <a href="http://cxf.apache.org/schemas/configuration/jms.xsd"
class="external-link" rel="nofollow">http://cxf.apache.org/schemas/configuration/jms.xsd</a>
</td>
<td class='confluenceTd'> <a href="http://cxf.apache.org/transports/jms" class="external-link"
rel="nofollow">http://cxf.apache.org/transports/jms</a> </td>
<td class='confluenceTd'> /schemas/configuration/jms.xsd </td>
<td class='confluenceTd'> cxf-rt-transports-jms </td>
</tr>
<tr>
<td class='confluenceTd'> <a href="http://cxf.apache.org/schemas/configuration/security.xsd"
class="external-link" rel="nofollow">http://cxf.apache.org/schemas/configuration/security.xsd</a>
</td>
<td class='confluenceTd'> <a href="http://cxf.apache.org/configuration/security"
class="external-link" rel="nofollow">http://cxf.apache.org/configuration/security</a>
</td>
<td class='confluenceTd'> /schemas/configuration/security.xsd </td>
<td class='confluenceTd'> cxf-common-schemas </td>
</tr>
<tr>
<td class='confluenceTd'> <a href="http://cxf.apache.org/schemas/configuration/soap.xsd"
class="external-link" rel="nofollow">http://cxf.apache.org/schemas/configuration/soap.xsd</a>
</td>
<td class='confluenceTd'> <a href="http://cxf.apache.org/bindings/soap" class="external-link"
rel="nofollow">http://cxf.apache.org/bindings/soap</a> </td>
<td class='confluenceTd'> /schemas/configuration/soap.xsd </td>
<td class='confluenceTd'> cxf-rt-bindings-soap </td>
</tr>
<tr>
<td class='confluenceTd'> <a href="http://cxf.apache.org/schemas/ws-addr-conf.xsd"
class="external-link" rel="nofollow">http://cxf.apache.org/schemas/ws-addr-conf.xsd</a>
</td>
<td class='confluenceTd'> <a href="http://cxf.apache.org/ws/addressing" class="external-link"
rel="nofollow">http://cxf.apache.org/ws/addressing</a> </td>
<td class='confluenceTd'> /schemas/ws-addr-conf.xsd </td>
<td class='confluenceTd'> cxf-rt-ws-addr </td>
</tr>
<tr>
<td class='confluenceTd'> <a href="http://cxf.apache.org/schemas/configuration/wsrm-manager-types.xsd"
class="external-link" rel="nofollow">http://cxf.apache.org/schemas/configuration/wsrm-manager-types.xsd</a>
</td>
<td class='confluenceTd'> <a href="http://cxf.apache.org/ws/rm/manager" class="external-link"
rel="nofollow">http://cxf.apache.org/ws/rm/manager</a> </td>
<td class='confluenceTd'> /schemas/configuration/wsrm-manager-types.xsd </td>
<td class='confluenceTd'> cxf-rt-ws-rm </td>
</tr>
<tr>
<td class='confluenceTd'> <a href="http://cxf.apache.org/schemas/configuration/wsrm-manager.xsd"
class="external-link" rel="nofollow">http://cxf.apache.org/schemas/configuration/wsrm-manager.xsd</a>
</td>
<td class='confluenceTd'> <a href="http://cxf.apache.org/ws/rm/manager" class="external-link"
rel="nofollow">http://cxf.apache.org/ws/rm/manager</a> </td>
<td class='confluenceTd'> /schemas/configuration/wsrm-manager.xsd &#42; </td>
<td class='confluenceTd'> cxf-rt-ws-rm </td>
</tr>
</tbody></table>
</div>


<p>&#42; wsrm-manager.xsd does an  "xsd:include" on wsrm-manager-types.xsd as they
are in the same namespace. As such, the user just needs to reference wsrm-manager.xsd to use
both.</p>

<p><b>Spring-only Schemas</b></p>
<div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<th class='confluenceTh'> URI </th>
<th class='confluenceTh'> Target Namespace </th>
<th class='confluenceTh'> Classpath Resource </th>
<th class='confluenceTh'> Module </th>
</tr>
<tr>
<td class='confluenceTd'> <a href="http://cxf.apache.org/schemas/core.xsd" class="external-link"
rel="nofollow">http://cxf.apache.org/schemas/core.xsd</a> </td>
<td class='confluenceTd'> <a href="http://cxf.apache.org/core" class="external-link"
rel="nofollow">http://cxf.apache.org/core</a> </td>
<td class='confluenceTd'> /schemas/core.xsd </td>
<td class='confluenceTd'> cxf-rt-core </td>
</tr>
<tr>
<td class='confluenceTd'> <a href="http://cxf.apache.org/schemas/jaxrs.xsd" class="external-link"
rel="nofollow">http://cxf.apache.org/schemas/jaxrs.xsd</a> </td>
<td class='confluenceTd'> <a href="http://cxf.apache.org/jaxrs" class="external-link"
rel="nofollow">http://cxf.apache.org/jaxrs</a> </td>
<td class='confluenceTd'> /schemas/jaxrs.xsd </td>
<td class='confluenceTd'> cxf-rt-frontend-jaxrs </td>
</tr>
<tr>
<td class='confluenceTd'> <a href="http://cxf.apache.org/schemas/jaxws.xsd" class="external-link"
rel="nofollow">http://cxf.apache.org/schemas/jaxws.xsd</a> </td>
<td class='confluenceTd'> <a href="http://cxf.apache.org/jaxws" class="external-link"
rel="nofollow">http://cxf.apache.org/jaxws</a> </td>
<td class='confluenceTd'> /schemas/jaxws.xsd </td>
<td class='confluenceTd'> cxf-rt-frontend-jaxws </td>
</tr>
<tr>
<td class='confluenceTd'> <a href="http://cxf.apache.org/schemas/policy.xsd" class="external-link"
rel="nofollow">http://cxf.apache.org/schemas/policy.xsd</a> </td>
<td class='confluenceTd'> <a href="http://cxf.apache.org/policy" class="external-link"
rel="nofollow">http://cxf.apache.org/policy</a> </td>
<td class='confluenceTd'> /schemas/policy.xsd </td>
<td class='confluenceTd'> cxf-rt-ws-policy </td>
</tr>
<tr>
<td class='confluenceTd'> <a href="http://cxf.apache.org/schemas/simple.xsd" class="external-link"
rel="nofollow">http://cxf.apache.org/schemas/simple.xsd</a> </td>
<td class='confluenceTd'> <a href="http://cxf.apache.org/simple" class="external-link"
rel="nofollow">http://cxf.apache.org/simple</a> </td>
<td class='confluenceTd'> /schemas/simple.xsd </td>
<td class='confluenceTd'> cxf-rt-frontend-simple </td>
</tr>
</tbody></table>
</div>


<p><b>Blueprint-only Schemas</b></p>
<div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<th class='confluenceTh'> URI </th>
<th class='confluenceTh'> Target Namespace </th>
<th class='confluenceTh'> Classpath Resource </th>
<th class='confluenceTh'> Module </th>
</tr>
<tr>
<td class='confluenceTd'> <a href="http://cxf.apache.org/schemas/blueprint/core.xsd"
class="external-link" rel="nofollow">http://cxf.apache.org/schemas/blueprint/core.xsd</a>
</td>
<td class='confluenceTd'> <a href="http://cxf.apache.org/core" class="external-link"
rel="nofollow">http://cxf.apache.org/core</a> </td>
<td class='confluenceTd'> /schemas/blueprint/core.xsd </td>
<td class='confluenceTd'> cxf-rt-core </td>
</tr>
<tr>
<td class='confluenceTd'> <a href="http://cxf.apache.org/schemas/blueprint/jaxrs.xsd"
class="external-link" rel="nofollow">http://cxf.apache.org/schemas/blueprint/jaxrs.xsd</a>
</td>
<td class='confluenceTd'> <a href="http://cxf.apache.org/jaxrs" class="external-link"
rel="nofollow">http://cxf.apache.org/jaxrs</a> </td>
<td class='confluenceTd'> /schemas/blueprint/jaxrs.xsd </td>
<td class='confluenceTd'> cxf-rt-frontend-jaxrs </td>
</tr>
<tr>
<td class='confluenceTd'> <a href="http://cxf.apache.org/schemas/blueprint/jaxws.xsd"
class="external-link" rel="nofollow">http://cxf.apache.org/schemas/blueprint/jaxws.xsd</a>
</td>
<td class='confluenceTd'> <a href="http://cxf.apache.org/jaxws" class="external-link"
rel="nofollow">http://cxf.apache.org/jaxws</a> </td>
<td class='confluenceTd'> /schemas/blueprint/jaxws.xsd </td>
<td class='confluenceTd'> cxf-rt-frontend-jaxws </td>
</tr>
<tr>
<td class='confluenceTd'> <a href="http://cxf.apache.org/schemas/blueprint/policy.xsd"
class="external-link" rel="nofollow">http://cxf.apache.org/schemas/blueprint/policy.xsd</a>
</td>
<td class='confluenceTd'> <a href="http://cxf.apache.org/policy" class="external-link"
rel="nofollow">http://cxf.apache.org/policy</a> </td>
<td class='confluenceTd'> /schemas/blueprint/policy.xsd </td>
<td class='confluenceTd'> cxf-rt-ws-policy </td>
</tr>
<tr>
<td class='confluenceTd'> <a href="http://cxf.apache.org/schemas/blueprint/simple.xsd"
class="external-link" rel="nofollow">http://cxf.apache.org/schemas/blueprint/simple.xsd</a>
</td>
<td class='confluenceTd'> <a href="http://cxf.apache.org/simple" class="external-link"
rel="nofollow">http://cxf.apache.org/simple</a> </td>
<td class='confluenceTd'> /schemas/blueprint/simple.xsd </td>
<td class='confluenceTd'> cxf-rt-frontend-simple </td>
</tr>
</tbody></table>
</div>



<p><b>Example</b></p>

<p>The following is an example of a valid Spring configuration file. Using the table
above, there is no magic involved in setting the correct value for the schemaLocation attribute&#33;</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-xml">
&lt;beans xmlns=<span class="code-quote">"http://www.springframework.org/schema/beans"</span>
    <span class="code-keyword">xmlns:xsi</span>=<span class="code-quote">"http://www.w3.org/2001/XMLSchema-instance"</span>
    <span class="code-keyword">xmlns:http-conf</span>=<span class="code-quote">"http://cxf.apache.org/transports/http/configuration"</span>
    <span class="code-keyword">xmlns:jaxws</span>=<span class="code-quote">"http://cxf.apache.org/jaxws"</span>
    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"&gt;

    <span class="code-tag">&lt;http-conf:conduit name=<span class="code-quote">"{http://cxf.apache.org/hello_world_soap_http}SoapPort.http-conduit"</span>&gt;</span>
        <span class="code-tag">&lt;http-conf:client DecoupledEndpoint=<span class="code-quote">"http://localhost:9999/decoupled_endpoint"</span>/&gt;</span>
    <span class="code-tag">&lt;/http-conf:conduit&gt;</span>

    <span class="code-tag">&lt;jaxws:client name=<span class="code-quote">"{http://cxf.apache.org/hello_world_soap_http}SoapPort"</span>
createdFromAPI=<span class="code-quote">"true"</span>&gt;</span>
        <span class="code-tag">&lt;jaxws:conduitSelector&gt;</span>
            <span class="code-tag">&lt;bean class=<span class="code-quote">"org.apache.cxf.endpoint.DeferredConduitSelector"</span>/&gt;</span>
        <span class="code-tag">&lt;/jaxws:conduitSelector&gt;</span>
    <span class="code-tag">&lt;/jaxws:client&gt;</span>
</pre>
</div></div>
<p><b>Other Schemas</b></p>

<p>The following schemas are imported by one or more of 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.</p>

<div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<th class='confluenceTh'> URI </th>
<th class='confluenceTh'> Target Namespace </th>
<th class='confluenceTh'> Classpath Resource </th>
<th class='confluenceTh'> Module </th>
</tr>
<tr>
<td class='confluenceTd'> <a href="http://cxf.apache.org/schemas/configuration/cxf-beans.xsd"
class="external-link" rel="nofollow">http://cxf.apache.org/schemas/configuration/cxf-beans.xsd</a>
</td>
<td class='confluenceTd'> <a href="http://cxf.apache.org/configuration/beans" class="external-link"
rel="nofollow">http://cxf.apache.org/configuration/beans</a> </td>
<td class='confluenceTd'> /schemas/configuration/cxf-beans.xsd </td>
<td class='confluenceTd'> cxf-common-utilities </td>
</tr>
<tr>
<td class='confluenceTd'> <a href="http://cxf.apache.org/schemas/wsdl/http-conf.xsd"
class="external-link" rel="nofollow">http://cxf.apache.org/schemas/wsdl/http-conf.xsd</a>
</td>
<td class='confluenceTd'> <a href="http://cxf.apache.org/transports/http/configuration"
class="external-link" rel="nofollow">http://cxf.apache.org/transports/http/configuration</a>
</td>
<td class='confluenceTd'> /schemas/wsdl/http-conf.xsd </td>
<td class='confluenceTd'> cxf-rt-transports-http </td>
</tr>
<tr>
<td class='confluenceTd'> <a href="http://cxf.apache.org/schemas/wsdl/jms.xsd" class="external-link"
rel="nofollow">http://cxf.apache.org/schemas/wsdl/jms.xsd</a> </td>
<td class='confluenceTd'> <a href="http://cxf.apache.org/transports/jms" class="external-link"
rel="nofollow">http://cxf.apache.org/transports/jms</a> </td>
<td class='confluenceTd'> /schemas/wsdl/jms.xsd </td>
<td class='confluenceTd'> cxf-rt-transports-jms </td>
</tr>
<tr>
<td class='confluenceTd'> <a href="http://www.w3.org/2010/soapjms" class="external-link"
rel="nofollow">http://www.w3.org/2010/soapjms</a> </td>
<td class='confluenceTd'><a href="http://www.w3.org/2010/soapjms" class="external-link"
rel="nofollow">http://www.w3.org/2010/soapjms</a></td>
<td class='confluenceTd'> /schemas/wsdl/spec/jms-spec-wsdl.xsd </td>
<td class='confluenceTd'> cxf-rt-transports-jms </td>
</tr>
<tr>
<td class='confluenceTd'> <a href="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
class="external-link" rel="nofollow">http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd</a>
</td>
<td class='confluenceTd'> <a href="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
class="external-link" rel="nofollow">http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd</a>
</td>
<td class='confluenceTd'> /schemas/oasis-200401-wss-wssecurity-secext-1.0.xsd </td>
<td class='confluenceTd'> cxf-rt-ws-policy </td>
</tr>
<tr>
<td class='confluenceTd'> <a href="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
class="external-link" rel="nofollow">http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd</a>
</td>
<td class='confluenceTd'> <a href="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
class="external-link" rel="nofollow">http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd</a>
</td>
<td class='confluenceTd'> /schemas/oasis-200401-wss-wssecurity-utility-1.0.xsd </td>
<td class='confluenceTd'> cxf-rt-ws-policy </td>
</tr>
<tr>
<td class='confluenceTd'> <a href="http://schemas.xmlsoap.org/ws/2004/08/addressing"
class="external-link" rel="nofollow">http://schemas.xmlsoap.org/ws/2004/08/addressing</a>
</td>
<td class='confluenceTd'> <a href="http://schemas.xmlsoap.org/ws/2004/08/addressing"
class="external-link" rel="nofollow">http://schemas.xmlsoap.org/ws/2004/08/addressing</a>
</td>
<td class='confluenceTd'> /schemas/wsdl/addressing.xsd </td>
<td class='confluenceTd'> cxf-common-schemas </td>
</tr>
<tr>
<td class='confluenceTd'> <a href="http://schemas.xmlsoap.org/ws/2004/09/policy/ws-policy.xsd"
class="external-link" rel="nofollow">http://schemas.xmlsoap.org/ws/2004/09/policy/ws-policy.xsd</a>
</td>
<td class='confluenceTd'> <a href="http://schemas.xmlsoap.org/ws/2004/09/policy"
class="external-link" rel="nofollow">http://schemas.xmlsoap.org/ws/2004/09/policy</a>
</td>
<td class='confluenceTd'> /schemas/ws-policy-200409.xsd </td>
<td class='confluenceTd'> cxf-rt-ws-rm </td>
</tr>
<tr>
<td class='confluenceTd'> <a href="http://schemas.xmlsoap.org/ws/2005/02/rm/wsrm-policy.xsd"
class="external-link" rel="nofollow">http://schemas.xmlsoap.org/ws/2005/02/rm/wsrm-policy.xsd</a>
</td>
<td class='confluenceTd'> <a href="http://schemas.xmlsoap.org/ws/2005/02/rm/policy"
class="external-link" rel="nofollow">http://schemas.xmlsoap.org/ws/2005/02/rm/policy</a>
</td>
<td class='confluenceTd'> /schemas/configuration/wsrm-policy.xsd </td>
<td class='confluenceTd'> cxf-rt-ws-rm </td>
</tr>
<tr>
<td class='confluenceTd'> <a href="http://schemas.xmlsoap.org/wsdl/" class="external-link"
rel="nofollow">http://schemas.xmlsoap.org/wsdl/</a> </td>
<td class='confluenceTd'> <a href="http://schemas.xmlsoap.org/wsdl/" class="external-link"
rel="nofollow">http://schemas.xmlsoap.org/wsdl/</a> </td>
<td class='confluenceTd'> /schemas/wsdl/wsdl.xsd </td>
<td class='confluenceTd'> cxf-common-schemas </td>
</tr>
<tr>
<td class='confluenceTd'> <a href="http://schemas.xmlsoap.org/wsdl/http/" class="external-link"
rel="nofollow">http://schemas.xmlsoap.org/wsdl/http/</a> </td>
<td class='confluenceTd'> <a href="http://schemas.xmlsoap.org/wsdl/http/" class="external-link"
rel="nofollow">http://schemas.xmlsoap.org/wsdl/http/</a> </td>
<td class='confluenceTd'> /schemas/wsdl/http.xsd </td>
<td class='confluenceTd'> cxf-common-schemas </td>
</tr>
<tr>
<td class='confluenceTd'> <a href="http://www.w3.org/2001/xml.xsd" class="external-link"
rel="nofollow">http://www.w3.org/2001/xml.xsd</a> </td>
<td class='confluenceTd'> <a href="http://www.w3.org/XML/1998/namespace" class="external-link"
rel="nofollow">http://www.w3.org/XML/1998/namespace</a> </td>
<td class='confluenceTd'> /schemas/xml.xsd </td>
<td class='confluenceTd'> cxf-rt-ws-policy </td>
</tr>
<tr>
<td class='confluenceTd'> <a href="http://www.w3.org/2006/07/ws-policy.xsd" class="external-link"
rel="nofollow">http://www.w3.org/2006/07/ws-policy.xsd</a> </td>
<td class='confluenceTd'> <a href="http://www.w3.org/2006/07/ws-policy" class="external-link"
rel="nofollow">http://www.w3.org/2006/07/ws-policy</a> </td>
<td class='confluenceTd'> /schemas/ws-policy-200607.xsd </td>
<td class='confluenceTd'> cxf-rt-ws-policy </td>
</tr>
</tbody></table>
</div>

<p>Note for Developers: If you define your own configuration schema, place it in the
schemas subdirectory of the resources directory, then combine <a href="http://cxf.apache.org/"
class="external-link" rel="nofollow">http://cxf.apache.org/</a> 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 <b>spring.schemas</b>
file in your module's META-INF directory (note the escaped : character):</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-xml">
http\://cxf.apache.org/schemas/wsdl/http-conf.xsd=schemas/wsdl/http-conf.xsd
</pre>
</div></div>
    </div>
        <div id="commentsSection" class="wiki-content pageSection">
        <div style="float: right;">
            <a href="https://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
        </div>
        <a href="https://cwiki.apache.org/confluence/display/CXF20DOC/Schemas+and+Namespaces">View
Online</a>
        |
        <a href="https://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=56013&revisedVersion=27&originalVersion=26">View
Changes</a>
                |
        <a href="https://cwiki.apache.org/confluence/display/CXF20DOC/Schemas+and+Namespaces?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message