You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bu...@apache.org on 2012/09/21 17:20:05 UTC

svn commit: r832696 - in /websites/production/camel/content: book-dataformat-appendix.html book-in-one-page.html cache/main.pageCache camel-2110-release.html jaxb.html soap.html

Author: buildbot
Date: Fri Sep 21 15:20:04 2012
New Revision: 832696

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/book-dataformat-appendix.html
    websites/production/camel/content/book-in-one-page.html
    websites/production/camel/content/cache/main.pageCache
    websites/production/camel/content/camel-2110-release.html
    websites/production/camel/content/jaxb.html
    websites/production/camel/content/soap.html

Modified: websites/production/camel/content/book-dataformat-appendix.html
==============================================================================
--- websites/production/camel/content/book-dataformat-appendix.html (original)
+++ websites/production/camel/content/book-dataformat-appendix.html Fri Sep 21 15:20:04 2012
@@ -378,6 +378,34 @@ You can setup which encoding to use when
 </div></div>
 
 
+<h3><a shape="rect" name="BookDataFormatAppendix-Controllingnamespaceprefixmapping"></a>Controlling namespace prefix mapping</h3>
+<p><b>Available as of Camel 2.11</b></p>
+
+<p>When marshalling using <a shape="rect" href="jaxb.html" title="JAXB">JAXB</a> or <a shape="rect" href="soap.html" title="SOAP">SOAP</a> then the JAXB implementation will automatic assign namespace prefixes, such as ns2, ns3, ns4 etc. To control this mapping, Camel allows you to refer to a map which contains the desired mapping. </p>
+
+<p>Notice this requires having JAXB-RI 2.1 or better (from SUN) on the classpath, as the mapping functionality is dependent on the implementation of JAXB, whether its supported.</p>
+
+<p>For example in Spring XML we can define a Map with the mapping. In the mapping file below, we map SOAP to use soap as prefix. While our custom namespace "http://www.mycompany.com/foo/2" is not using any prefix.</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+  <span class="code-tag">&lt;util:map id=<span class="code-quote">"myMap"</span>&gt;</span>
+    <span class="code-tag">&lt;entry key=<span class="code-quote">"http://www.w3.org/2003/05/soap-envelope"</span> value=<span class="code-quote">"soap"</span>/&gt;</span>
+    <span class="code-tag"><span class="code-comment">&lt;!-- we dont want any prefix for our namespace --&gt;</span></span>
+    <span class="code-tag">&lt;entry key=<span class="code-quote">"http://www.mycompany.com/foo/2"</span> value=""/&gt;</span>
+  <span class="code-tag">&lt;/util:map&gt;</span>
+</pre>
+</div></div>
+
+<p>To use this in <a shape="rect" href="jaxb.html" title="JAXB">JAXB</a> or <a shape="rect" href="soap.html" title="SOAP">SOAP</a> you refer to this map, using the <tt>namespacePrefixRef</tt> attribute as shown below. Then Camel will lookup in the <a shape="rect" href="registry.html" title="Registry">Registry</a> a <tt>java.util.Map</tt> with the id "myMap", which was what we defined above.</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+  <span class="code-tag">&lt;marshal&gt;</span>
+    <span class="code-tag">&lt;soapjaxb version=<span class="code-quote">"1.2"</span> contextPath=<span class="code-quote">"com.mycompany.foo"</span> namespacePrefixRef=<span class="code-quote">"myMap"</span>/&gt;</span>
+  <span class="code-tag">&lt;/marshal&gt;</span>
+</pre>
+</div></div>
+
+
 <h3><a shape="rect" name="BookDataFormatAppendix-Dependencies"></a>Dependencies</h3>
 
 <p>To use JAXB in your camel routes you need to add the a dependency on <b>camel-jaxb</b> which implements this data format. </p>
@@ -393,7 +421,6 @@ You can setup which encoding to use when
 &lt;/dependency&gt;
 </pre>
 </div></div>
-
 <h2><a shape="rect" name="BookDataFormatAppendix-XmlBeans"></a>XmlBeans</h2>
 
 <p>XmlBeans is a <a shape="rect" href="data-format.html" title="Data Format">Data Format</a> which uses the <a shape="rect" class="external-link" href="http://xmlbeans.apache.org/">XmlBeans library</a> to unmarshal an XML payload into Java objects or to marshal Java objects into an XML payload.</p>
@@ -2898,6 +2925,8 @@ message AddressBook {
 
 <div class="panelMacro"><table class="infoMacro"><colgroup span="1"><col span="1" width="24"><col span="1"></colgroup><tr><td colspan="1" rowspan="1" valign="top"><img align="middle" src="https://cwiki.apache.org/confluence/images/icons/emoticons/information.gif" width="16" height="16" alt="" border="0"></td><td colspan="1" rowspan="1"><b>Supported SOAP versions</b><br clear="none">SOAP 1.1 is supported by default. SOAP 1.2 is supported from Camel 2.11 onwards.</td></tr></table></div>
 
+<div class="panelMacro"><table class="tipMacro"><colgroup span="1"><col span="1" width="24"><col span="1"></colgroup><tr><td colspan="1" rowspan="1" valign="top"><img align="middle" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" width="16" height="16" alt="" border="0"></td><td colspan="1" rowspan="1"><b>Namespace prefix mapping</b><br clear="none">See <a shape="rect" href="jaxb.html" title="JAXB">JAXB</a> for details how you can control namespace prefix mappings when marshalling using <a shape="rect" href="soap.html" title="SOAP">SOAP</a> data format.</td></tr></table></div>
+
 <h3><a shape="rect" name="BookDataFormatAppendix-ElementNameStrategy"></a>ElementNameStrategy</h3>
 
 <p>An element name strategy is used for two purposes. The first is to find a xml element name for a given object and soap action when marshaling the object into a SOAP message. The second is to find an Exception class for a given soap fault name.</p>

Modified: websites/production/camel/content/book-in-one-page.html
==============================================================================
--- websites/production/camel/content/book-in-one-page.html (original)
+++ websites/production/camel/content/book-in-one-page.html Fri Sep 21 15:20:04 2012
@@ -11194,6 +11194,34 @@ You can setup which encoding to use when
 </div></div>
 
 
+<h3><a shape="rect" name="BookInOnePage-Controllingnamespaceprefixmapping"></a>Controlling namespace prefix mapping</h3>
+<p><b>Available as of Camel 2.11</b></p>
+
+<p>When marshalling using <a shape="rect" href="jaxb.html" title="JAXB">JAXB</a> or <a shape="rect" href="soap.html" title="SOAP">SOAP</a> then the JAXB implementation will automatic assign namespace prefixes, such as ns2, ns3, ns4 etc. To control this mapping, Camel allows you to refer to a map which contains the desired mapping. </p>
+
+<p>Notice this requires having JAXB-RI 2.1 or better (from SUN) on the classpath, as the mapping functionality is dependent on the implementation of JAXB, whether its supported.</p>
+
+<p>For example in Spring XML we can define a Map with the mapping. In the mapping file below, we map SOAP to use soap as prefix. While our custom namespace "http://www.mycompany.com/foo/2" is not using any prefix.</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+  <span class="code-tag">&lt;util:map id=<span class="code-quote">"myMap"</span>&gt;</span>
+    <span class="code-tag">&lt;entry key=<span class="code-quote">"http://www.w3.org/2003/05/soap-envelope"</span> value=<span class="code-quote">"soap"</span>/&gt;</span>
+    <span class="code-tag"><span class="code-comment">&lt;!-- we dont want any prefix for our namespace --&gt;</span></span>
+    <span class="code-tag">&lt;entry key=<span class="code-quote">"http://www.mycompany.com/foo/2"</span> value=""/&gt;</span>
+  <span class="code-tag">&lt;/util:map&gt;</span>
+</pre>
+</div></div>
+
+<p>To use this in <a shape="rect" href="jaxb.html" title="JAXB">JAXB</a> or <a shape="rect" href="soap.html" title="SOAP">SOAP</a> you refer to this map, using the <tt>namespacePrefixRef</tt> attribute as shown below. Then Camel will lookup in the <a shape="rect" href="registry.html" title="Registry">Registry</a> a <tt>java.util.Map</tt> with the id "myMap", which was what we defined above.</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+  <span class="code-tag">&lt;marshal&gt;</span>
+    <span class="code-tag">&lt;soapjaxb version=<span class="code-quote">"1.2"</span> contextPath=<span class="code-quote">"com.mycompany.foo"</span> namespacePrefixRef=<span class="code-quote">"myMap"</span>/&gt;</span>
+  <span class="code-tag">&lt;/marshal&gt;</span>
+</pre>
+</div></div>
+
+
 <h3><a shape="rect" name="BookInOnePage-Dependencies"></a>Dependencies</h3>
 
 <p>To use JAXB in your camel routes you need to add the a dependency on <b>camel-jaxb</b> which implements this data format. </p>
@@ -11209,7 +11237,6 @@ You can setup which encoding to use when
 &lt;/dependency&gt;
 </pre>
 </div></div>
-
 <h2><a shape="rect" name="BookInOnePage-XmlBeans"></a>XmlBeans</h2>
 
 <p>XmlBeans is a <a shape="rect" href="data-format.html" title="Data Format">Data Format</a> which uses the <a shape="rect" class="external-link" href="http://xmlbeans.apache.org/">XmlBeans library</a> to unmarshal an XML payload into Java objects or to marshal Java objects into an XML payload.</p>
@@ -13714,6 +13741,8 @@ message AddressBook {
 
 <div class="panelMacro"><table class="infoMacro"><colgroup span="1"><col span="1" width="24"><col span="1"></colgroup><tr><td colspan="1" rowspan="1" valign="top"><img align="middle" src="https://cwiki.apache.org/confluence/images/icons/emoticons/information.gif" width="16" height="16" alt="" border="0"></td><td colspan="1" rowspan="1"><b>Supported SOAP versions</b><br clear="none">SOAP 1.1 is supported by default. SOAP 1.2 is supported from Camel 2.11 onwards.</td></tr></table></div>
 
+<div class="panelMacro"><table class="tipMacro"><colgroup span="1"><col span="1" width="24"><col span="1"></colgroup><tr><td colspan="1" rowspan="1" valign="top"><img align="middle" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" width="16" height="16" alt="" border="0"></td><td colspan="1" rowspan="1"><b>Namespace prefix mapping</b><br clear="none">See <a shape="rect" href="jaxb.html" title="JAXB">JAXB</a> for details how you can control namespace prefix mappings when marshalling using <a shape="rect" href="soap.html" title="SOAP">SOAP</a> data format.</td></tr></table></div>
+
 <h3><a shape="rect" name="BookInOnePage-ElementNameStrategy"></a>ElementNameStrategy</h3>
 
 <p>An element name strategy is used for two purposes. The first is to find a xml element name for a given object and soap action when marshaling the object into a SOAP message. The second is to find an Exception class for a given soap fault name.</p>

Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/camel/content/camel-2110-release.html
==============================================================================
--- websites/production/camel/content/camel-2110-release.html (original)
+++ websites/production/camel/content/camel-2110-release.html Fri Sep 21 15:20:04 2012
@@ -84,7 +84,7 @@
 
 <p>Welcome to the 2.11.0 release with approximately XXX issues resolved - including new features, improvements, and bug fixes, such as: </p>
 
-<ul><li>Added support for SOAP 1.2 in <a shape="rect" href="soap.html" title="SOAP">SOAP</a> data format.</li><li><a shape="rect" href="cache.html" title="Cache">Cache</a> operation for add/update now supports expiry headers to control time to live/idle/eternal.</li><li>Added <tt>allowNullBody</tt> option to <a shape="rect" href="jms.html" title="JMS">JMS</a> to configure whether sending messages with no body is allowed.</li><li>Added <tt>connectOnStartup</tt> option to <a shape="rect" href="hdfs.html" title="HDFS">HDFS</a> to allow to connect on demand, to avoid having Hadoop block for long time connecting to the HDFS cluster, as it has a hardcoded 15 minute retry mechanism.</li><li>Added support for daily and weekly trends to <a shape="rect" href="twitter.html" title="Twitter">Twitter</a> component.</li><li>The <a shape="rect" href="camel-maven-archetypes.html" title="Camel Maven Archetypes">Camel Maven Archetypes</a> now generates projects without any license headers.</li
 ><li>Added 'rejectOld' option to the <a shape="rect" href="resequencer.html" title="Resequencer">Resequencer</a> to prevent out of order messages from being delivered after capacity/timeout events occur</li><li>Further optimized <a shape="rect" href="xpath.html" title="XPath">XPath</a> under concurrent load, and as well ensured resources are cleaned up eagerly</li><li>Added options <tt>allowNullBody</tt> and <tt>readLockMinLength</tt> to the <a shape="rect" href="file2.html" title="File2">File</a> and <a shape="rect" href="ftp2.html" title="FTP2">FTP</a> components.</li><li>Made <tt>changed</tt> read lock strategy on <a shape="rect" href="ftp2.html" title="FTP2">FTP</a> go faster (eg when the FTP server has a lot of files in the directory) if you enable the <tt>fastExistsCheck=true</tt> option as well. Notice that some FTP server may not support this.</li><li><a shape="rect" href="hl7.html" title="HL7">HL7</a> moves to HAPI 2.0 and supports using a dedicated Parser instance 
 in the <a shape="rect" href="hl7.html" title="HL7">HL7</a> MLLP codec and DataFormat. Added "Terser" language and expression to be able to extract fields from a parsed message. <a shape="rect" href="hl7.html" title="HL7">HL7</a> now uses Apache Mina 2.x.</li><li>Add an option <tt>HttpMethodRestrict</tt> to restrict HTTP method in <a shape="rect" href="jetty.html" title="Jetty">Jetty</a> and <a shape="rect" href="servlet.html" title="SERVLET">SERVLET</a></li><li>Add support for selection of <a shape="rect" href="direct-vm.html" title="Direct-VM">Direct-VM</a> consumers by using ant-like path expression.</li><li>The <a shape="rect" href="pojo-producing.html" title="POJO Producing">POJO Producing</a>, and <a shape="rect" href="pojo-consuming.html" title="POJO Consuming">POJO Consuming</a> with @Consume, @Produce, @EndpointInject now supports a new {{property} attribute to get the endpoint configuration from a bean property (eg using a getter method); this allows you to configur
 e this on the bean using conventional bean configuration.</li><li>Testing with <tt>camel-test-blueprint</tt> on Windows no longer tries to cleanup after testing taking up 5 seconds and logging WARNs.</li><li>The <a shape="rect" href="file2.html" title="File2">File</a>, and <a shape="rect" href="ftp2.html" title="FTP2">FTP</a> components now support <tt>fileExist=Move</tt> option to move any existing files before writing a file.</li><li>Added option <tt>loadStatisticsEnabled</tt> on <a shape="rect" href="camel-jmx.html" title="Camel JMX">Camel JMX</a> to allow to disable load statistics if not needed (avoids a background thread being in use, to calculate the load stats).</li><li>Enabled "lazy connections" for <a shape="rect" href="xmpp.html" title="XMPP">XMPP</a> providers via the <tt>testConnectionOnStartup</tt> option</li><li>Added a connection monitor to detect and fix dropped <a shape="rect" href="xmpp.html" title="XMPP">XMPP</a> consumer connections at configurable <tt>c
 onnectionPollDelay</tt> intervals</li><li>Added an <tt>org.apache.camel.builder.ExchangeBuilder</tt> to build the <a shape="rect" href="exchange.html" title="Exchange">Exchange</a> using a builder pattern.</li><li>The <a shape="rect" href="camel-run-maven-goal.html" title="Camel Run Maven Goal">Camel Run Maven Goal</a> can now run <a shape="rect" href="cdi.html" title="CDI">CDI</a> applications.</li><li>The Camel <a shape="rect" href="cdi.html" title="CDI">CDI</a> component has improved a lot.</li><li>Added option <tt>allowRedeliveryWhileStopping</tt> to <a shape="rect" href="dead-letter-channel.html" title="Dead Letter Channel">error handlers</a> to control if redelivery is allowed during stopping/shutting down Camel or the route(s). Turning this option <tt>false</tt> allows to stop quicker by rejecting redelivery attempts.</li><li>Added support for specifying user info in Camel <a shape="rect" href="endpoint.html" title="Endpoint">Endpoint</a> urls, which contains the @ si
 gn; now the @ sign can be given as is; without being encoded to %40.</li><li>Added robust connection support for <a shape="rect" href="jmx.html" title="JMX">JMX</a>. Optional <tt>testConnectionOnStartup</tt> allows a JMX consumer to attach to a JMX server that becomes available <em>after</em> the JMX endpoint starts; <tt>reconnectOnConnectionFailure</tt> enables re-connection of failed JMX connections.</li></ul>
+<ul><li>Added support for SOAP 1.2 in <a shape="rect" href="soap.html" title="SOAP">SOAP</a> data format.</li><li><a shape="rect" href="cache.html" title="Cache">Cache</a> operation for add/update now supports expiry headers to control time to live/idle/eternal.</li><li>Added <tt>allowNullBody</tt> option to <a shape="rect" href="jms.html" title="JMS">JMS</a> to configure whether sending messages with no body is allowed.</li><li>Added <tt>connectOnStartup</tt> option to <a shape="rect" href="hdfs.html" title="HDFS">HDFS</a> to allow to connect on demand, to avoid having Hadoop block for long time connecting to the HDFS cluster, as it has a hardcoded 15 minute retry mechanism.</li><li>Added support for daily and weekly trends to <a shape="rect" href="twitter.html" title="Twitter">Twitter</a> component.</li><li>The <a shape="rect" href="camel-maven-archetypes.html" title="Camel Maven Archetypes">Camel Maven Archetypes</a> now generates projects without any license headers.</li
 ><li>Added 'rejectOld' option to the <a shape="rect" href="resequencer.html" title="Resequencer">Resequencer</a> to prevent out of order messages from being delivered after capacity/timeout events occur</li><li>Further optimized <a shape="rect" href="xpath.html" title="XPath">XPath</a> under concurrent load, and as well ensured resources are cleaned up eagerly</li><li>Added options <tt>allowNullBody</tt> and <tt>readLockMinLength</tt> to the <a shape="rect" href="file2.html" title="File2">File</a> and <a shape="rect" href="ftp2.html" title="FTP2">FTP</a> components.</li><li>Made <tt>changed</tt> read lock strategy on <a shape="rect" href="ftp2.html" title="FTP2">FTP</a> go faster (eg when the FTP server has a lot of files in the directory) if you enable the <tt>fastExistsCheck=true</tt> option as well. Notice that some FTP server may not support this.</li><li><a shape="rect" href="hl7.html" title="HL7">HL7</a> moves to HAPI 2.0 and supports using a dedicated Parser instance 
 in the <a shape="rect" href="hl7.html" title="HL7">HL7</a> MLLP codec and DataFormat. Added "Terser" language and expression to be able to extract fields from a parsed message. <a shape="rect" href="hl7.html" title="HL7">HL7</a> now uses Apache Mina 2.x.</li><li>Add an option <tt>HttpMethodRestrict</tt> to restrict HTTP method in <a shape="rect" href="jetty.html" title="Jetty">Jetty</a> and <a shape="rect" href="servlet.html" title="SERVLET">SERVLET</a></li><li>Add support for selection of <a shape="rect" href="direct-vm.html" title="Direct-VM">Direct-VM</a> consumers by using ant-like path expression.</li><li>The <a shape="rect" href="pojo-producing.html" title="POJO Producing">POJO Producing</a>, and <a shape="rect" href="pojo-consuming.html" title="POJO Consuming">POJO Consuming</a> with @Consume, @Produce, @EndpointInject now supports a new {{property} attribute to get the endpoint configuration from a bean property (eg using a getter method); this allows you to configur
 e this on the bean using conventional bean configuration.</li><li>Testing with <tt>camel-test-blueprint</tt> on Windows no longer tries to cleanup after testing taking up 5 seconds and logging WARNs.</li><li>The <a shape="rect" href="file2.html" title="File2">File</a>, and <a shape="rect" href="ftp2.html" title="FTP2">FTP</a> components now support <tt>fileExist=Move</tt> option to move any existing files before writing a file.</li><li>Added option <tt>loadStatisticsEnabled</tt> on <a shape="rect" href="camel-jmx.html" title="Camel JMX">Camel JMX</a> to allow to disable load statistics if not needed (avoids a background thread being in use, to calculate the load stats).</li><li>Enabled "lazy connections" for <a shape="rect" href="xmpp.html" title="XMPP">XMPP</a> providers via the <tt>testConnectionOnStartup</tt> option</li><li>Added a connection monitor to detect and fix dropped <a shape="rect" href="xmpp.html" title="XMPP">XMPP</a> consumer connections at configurable <tt>c
 onnectionPollDelay</tt> intervals</li><li>Added an <tt>org.apache.camel.builder.ExchangeBuilder</tt> to build the <a shape="rect" href="exchange.html" title="Exchange">Exchange</a> using a builder pattern.</li><li>The <a shape="rect" href="camel-run-maven-goal.html" title="Camel Run Maven Goal">Camel Run Maven Goal</a> can now run <a shape="rect" href="cdi.html" title="CDI">CDI</a> applications.</li><li>The Camel <a shape="rect" href="cdi.html" title="CDI">CDI</a> component has improved a lot.</li><li>Added option <tt>allowRedeliveryWhileStopping</tt> to <a shape="rect" href="dead-letter-channel.html" title="Dead Letter Channel">error handlers</a> to control if redelivery is allowed during stopping/shutting down Camel or the route(s). Turning this option <tt>false</tt> allows to stop quicker by rejecting redelivery attempts.</li><li>Added support for specifying user info in Camel <a shape="rect" href="endpoint.html" title="Endpoint">Endpoint</a> urls, which contains the @ si
 gn; now the @ sign can be given as is; without being encoded to %40.</li><li>Added robust connection support for <a shape="rect" href="jmx.html" title="JMX">JMX</a>. Optional <tt>testConnectionOnStartup</tt> allows a JMX consumer to attach to a JMX server that becomes available <em>after</em> the JMX endpoint starts; <tt>reconnectOnConnectionFailure</tt> enables re-connection of failed JMX connections.</li><li><a shape="rect" href="jaxb.html" title="JAXB">JAXB</a> and <a shape="rect" href="soap.html" title="SOAP">SOAP</a> data format now supports controlling namespace prefix mappings when marshalling (eg to avoid prefixes such as ns2, ns3, ns4 etc.)</li></ul>
 
 
 <h3><a shape="rect" name="Camel2.11.0Release-Fixedissues"></a>Fixed issues</h3>

Modified: websites/production/camel/content/jaxb.html
==============================================================================
--- websites/production/camel/content/jaxb.html (original)
+++ websites/production/camel/content/jaxb.html Fri Sep 21 15:20:04 2012
@@ -217,6 +217,34 @@ You can setup which encoding to use when
 </div></div>
 
 
+<h3><a shape="rect" name="JAXB-Controllingnamespaceprefixmapping"></a>Controlling namespace prefix mapping</h3>
+<p><b>Available as of Camel 2.11</b></p>
+
+<p>When marshalling using <a shape="rect" href="jaxb.html" title="JAXB">JAXB</a> or <a shape="rect" href="soap.html" title="SOAP">SOAP</a> then the JAXB implementation will automatic assign namespace prefixes, such as ns2, ns3, ns4 etc. To control this mapping, Camel allows you to refer to a map which contains the desired mapping. </p>
+
+<p>Notice this requires having JAXB-RI 2.1 or better (from SUN) on the classpath, as the mapping functionality is dependent on the implementation of JAXB, whether its supported.</p>
+
+<p>For example in Spring XML we can define a Map with the mapping. In the mapping file below, we map SOAP to use soap as prefix. While our custom namespace "http://www.mycompany.com/foo/2" is not using any prefix.</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+  <span class="code-tag">&lt;util:map id=<span class="code-quote">"myMap"</span>&gt;</span>
+    <span class="code-tag">&lt;entry key=<span class="code-quote">"http://www.w3.org/2003/05/soap-envelope"</span> value=<span class="code-quote">"soap"</span>/&gt;</span>
+    <span class="code-tag"><span class="code-comment">&lt;!-- we dont want any prefix for our namespace --&gt;</span></span>
+    <span class="code-tag">&lt;entry key=<span class="code-quote">"http://www.mycompany.com/foo/2"</span> value=""/&gt;</span>
+  <span class="code-tag">&lt;/util:map&gt;</span>
+</pre>
+</div></div>
+
+<p>To use this in <a shape="rect" href="jaxb.html" title="JAXB">JAXB</a> or <a shape="rect" href="soap.html" title="SOAP">SOAP</a> you refer to this map, using the <tt>namespacePrefixRef</tt> attribute as shown below. Then Camel will lookup in the <a shape="rect" href="registry.html" title="Registry">Registry</a> a <tt>java.util.Map</tt> with the id "myMap", which was what we defined above.</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+  <span class="code-tag">&lt;marshal&gt;</span>
+    <span class="code-tag">&lt;soapjaxb version=<span class="code-quote">"1.2"</span> contextPath=<span class="code-quote">"com.mycompany.foo"</span> namespacePrefixRef=<span class="code-quote">"myMap"</span>/&gt;</span>
+  <span class="code-tag">&lt;/marshal&gt;</span>
+</pre>
+</div></div>
+
+
 <h3><a shape="rect" name="JAXB-Dependencies"></a>Dependencies</h3>
 
 <p>To use JAXB in your camel routes you need to add the a dependency on <b>camel-jaxb</b> which implements this data format. </p>
@@ -231,8 +259,7 @@ You can setup which encoding to use when
   &lt;version&gt;x.x.x&lt;/version&gt;
 &lt;/dependency&gt;
 </pre>
-</div></div>
-</div>
+</div></div></div>
         </td>
         <td valign="top">
           <div class="navigation">

Modified: websites/production/camel/content/soap.html
==============================================================================
--- websites/production/camel/content/soap.html (original)
+++ websites/production/camel/content/soap.html Fri Sep 21 15:20:04 2012
@@ -82,6 +82,8 @@
 
 <div class="panelMacro"><table class="infoMacro"><colgroup span="1"><col span="1" width="24"><col span="1"></colgroup><tr><td colspan="1" rowspan="1" valign="top"><img align="middle" src="https://cwiki.apache.org/confluence/images/icons/emoticons/information.gif" width="16" height="16" alt="" border="0"></td><td colspan="1" rowspan="1"><b>Supported SOAP versions</b><br clear="none">SOAP 1.1 is supported by default. SOAP 1.2 is supported from Camel 2.11 onwards.</td></tr></table></div>
 
+<div class="panelMacro"><table class="tipMacro"><colgroup span="1"><col span="1" width="24"><col span="1"></colgroup><tr><td colspan="1" rowspan="1" valign="top"><img align="middle" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" width="16" height="16" alt="" border="0"></td><td colspan="1" rowspan="1"><b>Namespace prefix mapping</b><br clear="none">See <a shape="rect" href="jaxb.html" title="JAXB">JAXB</a> for details how you can control namespace prefix mappings when marshalling using <a shape="rect" href="soap.html" title="SOAP">SOAP</a> data format.</td></tr></table></div>
+
 <h3><a shape="rect" name="SOAP-ElementNameStrategy"></a>ElementNameStrategy</h3>
 
 <p>An element name strategy is used for two purposes. The first is to find a xml element name for a given object and soap action when marshaling the object into a SOAP message. The second is to find an Exception class for a given soap fault name.</p>