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/06/21 17:20:46 UTC
svn commit: r822649 - in /websites/production/camel/content:
book-component-appendix.html book-in-one-page.html cache/main.pageCache
spring-web-services.html
Author: buildbot
Date: Thu Jun 21 15:20:45 2012
New Revision: 822649
Log:
Production update by buildbot for camel
Modified:
websites/production/camel/content/book-component-appendix.html
websites/production/camel/content/book-in-one-page.html
websites/production/camel/content/cache/main.pageCache
websites/production/camel/content/spring-web-services.html
Modified: websites/production/camel/content/book-component-appendix.html
==============================================================================
--- websites/production/camel/content/book-component-appendix.html (original)
+++ websites/production/camel/content/book-component-appendix.html Thu Jun 21 15:20:45 2012
@@ -15427,8 +15427,7 @@ spring-integration:defaultChannelName[?o
<p>Maven users will need to add the following dependency to their <tt>pom.xml</tt> for this component:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag"><dependency></span>
+<pre class="code-xml"><span class="code-tag"><dependency></span>
<span class="code-tag"><groupId></span>org.apache.camel<span class="code-tag"></groupId></span>
<span class="code-tag"><artifactId></span>camel-spring-ws<span class="code-tag"></artifactId></span>
<span class="code-tag"><version></span>x.x.x<span class="code-tag"></version></span>
@@ -15446,8 +15445,7 @@ spring-integration:defaultChannelName[?o
<p>The URI scheme for this component is as follows</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-spring-ws:[mapping-type:]address[?options]
+<pre class="code-java">spring-ws:[mapping-type:]address[?options]
</pre>
</div></div>
@@ -15465,7 +15463,7 @@ spring-ws:[mapping-type:]address[?option
<h3><a shape="rect" name="BookComponentAppendix-Options"></a>Options</h3>
<div class="confluenceTableSmall"><div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"> Name </th><th colspan="1" rowspan="1" class="confluenceTh"> Required? </th><th colspan="1" rowspan="1" class="confluenceTh"> Description </th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>soapAction</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> No </td><td colspan="1" rowspan="1" class="confluenceTd"> SOAP action to include inside a SOAP request when accessing remote web services </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>wsAddressingAction</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> No </td><td colspan="1" rowspan="1" class="confluenceTd"> WS-Addressing 1.0 action header to include when accessing web services. The <tt>To</tt> header is set to the <em>address</em> of the web service as specified in the endpoint URI (default Spring-WS behavior). </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>ex
pression</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Only when <em>mapping-type</em> is <tt>xpathresult</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> XPath expression to use in the process of mapping web service requests, should match the result specified by <tt>xpathresult</tt> </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>timeout</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> No </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.10:</b> Sets the socket read timeout (in milliseconds) while invoking a webservice using the producer, see <a shape="rect" class="external-link" href="http://docs.oracle.com/javase/6/docs/api/java/net/URLConnection.html#setReadTimeout(int)" rel="nofollow">URLConnection.setReadTimeout()</a> and <a shape="rect" class="external-link" href="http://static.springsource.org/spring-ws/site/apidocs/org/springframework/ws/transport/http/CommonsHttpMessageSender.html#setReadTimeou
t(int)" rel="nofollow">CommonsHttpMessageSender.setReadTimeout()</a> </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>sslContextParameters</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> No </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.10:</b> Reference to an <tt>org.apache.camel.util.jsse.SSLContextParameters</tt> in the <a shape="rect" class="external-link" href="http://camel.apache.org/registry.html">Registry</a>.  See <a shape="rect" class="external-link" href="http://camel.apache.org/http4.html#HTTP4-UsingtheJSSEConfigurationUtility">Using the JSSE Configuration Utility</a>.  This option works when using the built-in message sender implementations: <em>CommonsHttpMessageSender</em> and <em>HttpUrlConnectionMessageSender</em>.  One of these implementations will be used by default for HTTP based services unless you customize the Spring WS configuration options supplie
d to the component.  If you are using a non-standard sender, it is assumed that you will handle your own TLS configuration. </td></tr></tbody></table>
+<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"> Name </th><th colspan="1" rowspan="1" class="confluenceTh"> Required? </th><th colspan="1" rowspan="1" class="confluenceTh"> Description </th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>soapAction</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> No </td><td colspan="1" rowspan="1" class="confluenceTd"> SOAP action to include inside a SOAP request when accessing remote web services </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>wsAddressingAction</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> No </td><td colspan="1" rowspan="1" class="confluenceTd"> WS-Addressing 1.0 action header to include when accessing web services. The <tt>To</tt> header is set to the <em>address</em> of the web service as specified in the endpoint URI (default Spring-WS behavior). </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>ex
pression</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Only when <em>mapping-type</em> is <tt>xpathresult</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> XPath expression to use in the process of mapping web service requests, should match the result specified by <tt>xpathresult</tt> </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>timeout</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> No </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.10:</b> Sets the socket read timeout (in milliseconds) while invoking a webservice using the producer, see <a shape="rect" class="external-link" href="http://docs.oracle.com/javase/6/docs/api/java/net/URLConnection.html#setReadTimeout(int)" rel="nofollow">URLConnection.setReadTimeout()</a> and <a shape="rect" class="external-link" href="http://static.springsource.org/spring-ws/site/apidocs/org/springframework/ws/transport/http/CommonsHttpMessageSender.html#setReadTimeou
t(int)" rel="nofollow">CommonsHttpMessageSender.setReadTimeout()</a>.  This option works when using the built-in message sender implementations: <em>CommonsHttpMessageSender</em> and <em>HttpUrlConnectionMessageSender</em>.  One of these implementations will be used by default for HTTP based services unless you customize the Spring WS configuration options supplied to the component.  If you are using a non-standard sender, it is assumed that you will handle your own timeout configuration. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>sslContextParameters</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> No </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.10:</b> Reference to an <tt>org.apache.camel.util.jsse.SSLContextParameters</tt> in the <a shape="rect" class="external-link" href="http://camel.apache.org/registry.html">Registry</a>.  See <a shape="rect" class="exte
rnal-link" href="http://camel.apache.org/http4.html#HTTP4-UsingtheJSSEConfigurationUtility">Using the JSSE Configuration Utility</a>.  This option works when using the built-in message sender implementations: <em>CommonsHttpMessageSender</em> and <em>HttpUrlConnectionMessageSender</em>.  One of these implementations will be used by default for HTTP based services unless you customize the Spring WS configuration options supplied to the component.  If you are using a non-standard sender, it is assumed that you will handle your own TLS configuration. </td></tr></tbody></table>
</div>
</div>
@@ -15489,15 +15487,13 @@ spring-ws:[mapping-type:]address[?option
<p>To call a web service at <tt><a shape="rect" class="external-link" href="http://foo.com/bar" rel="nofollow">http://foo.com/bar</a></tt> simply define a route:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-from(<span class="code-quote">"direct:example"</span>).to(<span class="code-quote">"spring-ws:http:<span class="code-comment">//foo.com/bar"</span>)</span>
+<pre class="code-java">from(<span class="code-quote">"direct:example"</span>).to(<span class="code-quote">"spring-ws:http:<span class="code-comment">//foo.com/bar"</span>)</span>
</pre>
</div></div>
<p>And sent a message:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-template.requestBody(<span class="code-quote">"direct:example"</span>, <span class="code-quote">"<foobar xmlns=\"</span>http:<span class="code-comment">//foo.com\<span class="code-quote">"><msg>test message</msg></foobar>"</span>);</span>
+<pre class="code-java">template.requestBody(<span class="code-quote">"direct:example"</span>, <span class="code-quote">"<foobar xmlns=\"</span>http:<span class="code-comment">//foo.com\<span class="code-quote">"><msg>test message</msg></foobar>"</span>);</span>
</pre>
</div></div>
<p>Remember if it's a SOAP service you're calling you don't have to include SOAP tags. Spring-WS will perform the XML-to-SOAP marshaling.</p>
@@ -15506,16 +15502,14 @@ template.requestBody(<span class="code-q
<p>When a remote web service requires a SOAP action or use of the WS-Addressing standard you define your route as:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-from(<span class="code-quote">"direct:example"</span>)
+<pre class="code-java">from(<span class="code-quote">"direct:example"</span>)
.to(<span class="code-quote">"spring-ws:http:<span class="code-comment">//foo.com/bar?soapAction=http://foo.com&wsAddressingAction=http://bar.com"</span>)</span>
</pre>
</div></div>
<p>Optionally you can override the endpoint options with header values:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-template.requestBodyAndHeader(<span class="code-quote">"direct:example"</span>,
+<pre class="code-java">template.requestBodyAndHeader(<span class="code-quote">"direct:example"</span>,
<span class="code-quote">"<foobar xmlns=\"</span>http:<span class="code-comment">//foo.com\<span class="code-quote">"><msg>test message</msg></foobar>"</span>,
</span>SpringWebserviceConstants.SPRING_WS_SOAP_ACTION, <span class="code-quote">"http:<span class="code-comment">//baz.com"</span>);</span>
</pre>
@@ -15525,8 +15519,7 @@ template.requestBodyAndHeader(<span clas
<p>A custom message sender or factory in the registry can be referenced like this:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-from(<span class="code-quote">"direct:example"</span>)
+<pre class="code-java">from(<span class="code-quote">"direct:example"</span>)
.to(<span class="code-quote">"spring-ws:http:<span class="code-comment">//foo.com/bar?messageFactory=#messageFactory&messageSender=#messageSender"</span>)</span>
</pre>
</div></div>
@@ -15599,32 +15592,28 @@ from(<span class="code-quote">"direct:ex
<p>The following route will receive all web service requests that have a root element named "GetFoo" within the <tt><a shape="rect" class="external-link" href="http://example.com/" rel="nofollow">http://example.com/</a></tt> namespace.</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-from(<span class="code-quote">"spring-ws:rootqname:{http:<span class="code-comment">//example.com/}GetFoo?endpointMapping=#endpointMapping"</span>)
+<pre class="code-java">from(<span class="code-quote">"spring-ws:rootqname:{http:<span class="code-comment">//example.com/}GetFoo?endpointMapping=#endpointMapping"</span>)
</span>.convertBodyTo(<span class="code-object">String</span>.class).to(mock:example)
</pre>
</div></div>
<p>The following route will receive web service requests containing the <tt><a shape="rect" class="external-link" href="http://example.com/GetFoo" rel="nofollow">http://example.com/GetFoo</a></tt> SOAP action.</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-from(<span class="code-quote">"spring-ws:soapaction:http:<span class="code-comment">//example.com/GetFoo?endpointMapping=#endpointMapping"</span>)
+<pre class="code-java">from(<span class="code-quote">"spring-ws:soapaction:http:<span class="code-comment">//example.com/GetFoo?endpointMapping=#endpointMapping"</span>)
</span>.convertBodyTo(<span class="code-object">String</span>.class).to(mock:example)
</pre>
</div></div>
<p>The following route will receive all requests sent to <tt><a shape="rect" class="external-link" href="http://example.com/foobar" rel="nofollow">http://example.com/foobar</a></tt>.</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-from(<span class="code-quote">"spring-ws:uri:http:<span class="code-comment">//example.com/foobar?endpointMapping=#endpointMapping"</span>)
+<pre class="code-java">from(<span class="code-quote">"spring-ws:uri:http:<span class="code-comment">//example.com/foobar?endpointMapping=#endpointMapping"</span>)
</span>.convertBodyTo(<span class="code-object">String</span>.class).to(mock:example)
</pre>
</div></div>
<p>The route below will receive requests that contain the element <tt><foobar>abc</foobar></tt> anywhere inside the message (and the default namespace).</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-from(<span class="code-quote">"spring-ws:xpathresult:abc?expression=<span class="code-comment">//foobar&endpointMapping=#endpointMapping"</span>)
+<pre class="code-java">from(<span class="code-quote">"spring-ws:xpathresult:abc?expression=<span class="code-comment">//foobar&endpointMapping=#endpointMapping"</span>)
</span>.convertBodyTo(<span class="code-object">String</span>.class).to(mock:example)
</pre>
</div></div>
@@ -15637,8 +15626,7 @@ from(<span class="code-quote">"spring-ws
<p>An example of a route using <tt>beanname</tt>:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-<camelContext xmlns=<span class="code-quote">"http:<span class="code-comment">//camel.apache.org/schema/spring"</span>>
+<pre class="code-java"><camelContext xmlns=<span class="code-quote">"http:<span class="code-comment">//camel.apache.org/schema/spring"</span>>
</span> <route>
<from uri=<span class="code-quote">"spring-ws:beanname:QuoteEndpointDispatcher"</span> />
<to uri=<span class="code-quote">"mock:example"</span> />
@@ -15665,8 +15653,7 @@ from(<span class="code-quote">"spring-ws
<p>When <em>accessing</em> web services you can marshal the request and unmarshal the response message:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-JaxbDataFormat jaxb = <span class="code-keyword">new</span> JaxbDataFormat(<span class="code-keyword">false</span>);
+<pre class="code-java">JaxbDataFormat jaxb = <span class="code-keyword">new</span> JaxbDataFormat(<span class="code-keyword">false</span>);
jaxb.setContextPath(<span class="code-quote">"com.example.model"</span>);
from(<span class="code-quote">"direct:example"</span>).marshal(jaxb).to(<span class="code-quote">"spring-ws:http:<span class="code-comment">//foo.com/bar"</span>).unmarshal(jaxb);</span>
@@ -15675,8 +15662,7 @@ from(<span class="code-quote">"direct:ex
<p>Similarly when <em>providing</em> web services, you can unmarshal XML requests to POJO's and marshal the response message back to XML:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-from(<span class="code-quote">"spring-ws:rootqname:{http:<span class="code-comment">//example.com/}GetFoo?endpointMapping=#endpointMapping"</span>).unmarshal(jaxb)
+<pre class="code-java">from(<span class="code-quote">"spring-ws:rootqname:{http:<span class="code-comment">//example.com/}GetFoo?endpointMapping=#endpointMapping"</span>).unmarshal(jaxb)
</span>.to(<span class="code-quote">"mock:example"</span>).marshal(jaxb);
</pre>
</div></div>
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 Thu Jun 21 15:20:45 2012
@@ -35875,8 +35875,7 @@ spring-integration:defaultChannelName[?o
<p>Maven users will need to add the following dependency to their <tt>pom.xml</tt> for this component:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag"><dependency></span>
+<pre class="code-xml"><span class="code-tag"><dependency></span>
<span class="code-tag"><groupId></span>org.apache.camel<span class="code-tag"></groupId></span>
<span class="code-tag"><artifactId></span>camel-spring-ws<span class="code-tag"></artifactId></span>
<span class="code-tag"><version></span>x.x.x<span class="code-tag"></version></span>
@@ -35894,8 +35893,7 @@ spring-integration:defaultChannelName[?o
<p>The URI scheme for this component is as follows</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-spring-ws:[mapping-type:]address[?options]
+<pre class="code-java">spring-ws:[mapping-type:]address[?options]
</pre>
</div></div>
@@ -35913,7 +35911,7 @@ spring-ws:[mapping-type:]address[?option
<h3><a shape="rect" name="BookInOnePage-Options"></a>Options</h3>
<div class="confluenceTableSmall"><div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"> Name </th><th colspan="1" rowspan="1" class="confluenceTh"> Required? </th><th colspan="1" rowspan="1" class="confluenceTh"> Description </th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>soapAction</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> No </td><td colspan="1" rowspan="1" class="confluenceTd"> SOAP action to include inside a SOAP request when accessing remote web services </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>wsAddressingAction</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> No </td><td colspan="1" rowspan="1" class="confluenceTd"> WS-Addressing 1.0 action header to include when accessing web services. The <tt>To</tt> header is set to the <em>address</em> of the web service as specified in the endpoint URI (default Spring-WS behavior). </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>ex
pression</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Only when <em>mapping-type</em> is <tt>xpathresult</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> XPath expression to use in the process of mapping web service requests, should match the result specified by <tt>xpathresult</tt> </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>timeout</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> No </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.10:</b> Sets the socket read timeout (in milliseconds) while invoking a webservice using the producer, see <a shape="rect" class="external-link" href="http://docs.oracle.com/javase/6/docs/api/java/net/URLConnection.html#setReadTimeout(int)" rel="nofollow">URLConnection.setReadTimeout()</a> and <a shape="rect" class="external-link" href="http://static.springsource.org/spring-ws/site/apidocs/org/springframework/ws/transport/http/CommonsHttpMessageSender.html#setReadTimeou
t(int)" rel="nofollow">CommonsHttpMessageSender.setReadTimeout()</a> </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>sslContextParameters</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> No </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.10:</b> Reference to an <tt>org.apache.camel.util.jsse.SSLContextParameters</tt> in the <a shape="rect" class="external-link" href="http://camel.apache.org/registry.html">Registry</a>.  See <a shape="rect" class="external-link" href="http://camel.apache.org/http4.html#HTTP4-UsingtheJSSEConfigurationUtility">Using the JSSE Configuration Utility</a>.  This option works when using the built-in message sender implementations: <em>CommonsHttpMessageSender</em> and <em>HttpUrlConnectionMessageSender</em>.  One of these implementations will be used by default for HTTP based services unless you customize the Spring WS configuration options supplie
d to the component.  If you are using a non-standard sender, it is assumed that you will handle your own TLS configuration. </td></tr></tbody></table>
+<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"> Name </th><th colspan="1" rowspan="1" class="confluenceTh"> Required? </th><th colspan="1" rowspan="1" class="confluenceTh"> Description </th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>soapAction</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> No </td><td colspan="1" rowspan="1" class="confluenceTd"> SOAP action to include inside a SOAP request when accessing remote web services </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>wsAddressingAction</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> No </td><td colspan="1" rowspan="1" class="confluenceTd"> WS-Addressing 1.0 action header to include when accessing web services. The <tt>To</tt> header is set to the <em>address</em> of the web service as specified in the endpoint URI (default Spring-WS behavior). </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>ex
pression</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Only when <em>mapping-type</em> is <tt>xpathresult</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> XPath expression to use in the process of mapping web service requests, should match the result specified by <tt>xpathresult</tt> </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>timeout</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> No </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.10:</b> Sets the socket read timeout (in milliseconds) while invoking a webservice using the producer, see <a shape="rect" class="external-link" href="http://docs.oracle.com/javase/6/docs/api/java/net/URLConnection.html#setReadTimeout(int)" rel="nofollow">URLConnection.setReadTimeout()</a> and <a shape="rect" class="external-link" href="http://static.springsource.org/spring-ws/site/apidocs/org/springframework/ws/transport/http/CommonsHttpMessageSender.html#setReadTimeou
t(int)" rel="nofollow">CommonsHttpMessageSender.setReadTimeout()</a>.  This option works when using the built-in message sender implementations: <em>CommonsHttpMessageSender</em> and <em>HttpUrlConnectionMessageSender</em>.  One of these implementations will be used by default for HTTP based services unless you customize the Spring WS configuration options supplied to the component.  If you are using a non-standard sender, it is assumed that you will handle your own timeout configuration. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>sslContextParameters</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> No </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.10:</b> Reference to an <tt>org.apache.camel.util.jsse.SSLContextParameters</tt> in the <a shape="rect" class="external-link" href="http://camel.apache.org/registry.html">Registry</a>.  See <a shape="rect" class="exte
rnal-link" href="http://camel.apache.org/http4.html#HTTP4-UsingtheJSSEConfigurationUtility">Using the JSSE Configuration Utility</a>.  This option works when using the built-in message sender implementations: <em>CommonsHttpMessageSender</em> and <em>HttpUrlConnectionMessageSender</em>.  One of these implementations will be used by default for HTTP based services unless you customize the Spring WS configuration options supplied to the component.  If you are using a non-standard sender, it is assumed that you will handle your own TLS configuration. </td></tr></tbody></table>
</div>
</div>
@@ -35937,15 +35935,13 @@ spring-ws:[mapping-type:]address[?option
<p>To call a web service at <tt><a shape="rect" class="external-link" href="http://foo.com/bar" rel="nofollow">http://foo.com/bar</a></tt> simply define a route:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-from(<span class="code-quote">"direct:example"</span>).to(<span class="code-quote">"spring-ws:http:<span class="code-comment">//foo.com/bar"</span>)</span>
+<pre class="code-java">from(<span class="code-quote">"direct:example"</span>).to(<span class="code-quote">"spring-ws:http:<span class="code-comment">//foo.com/bar"</span>)</span>
</pre>
</div></div>
<p>And sent a message:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-template.requestBody(<span class="code-quote">"direct:example"</span>, <span class="code-quote">"<foobar xmlns=\"</span>http:<span class="code-comment">//foo.com\<span class="code-quote">"><msg>test message</msg></foobar>"</span>);</span>
+<pre class="code-java">template.requestBody(<span class="code-quote">"direct:example"</span>, <span class="code-quote">"<foobar xmlns=\"</span>http:<span class="code-comment">//foo.com\<span class="code-quote">"><msg>test message</msg></foobar>"</span>);</span>
</pre>
</div></div>
<p>Remember if it's a SOAP service you're calling you don't have to include SOAP tags. Spring-WS will perform the XML-to-SOAP marshaling.</p>
@@ -35954,16 +35950,14 @@ template.requestBody(<span class="code-q
<p>When a remote web service requires a SOAP action or use of the WS-Addressing standard you define your route as:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-from(<span class="code-quote">"direct:example"</span>)
+<pre class="code-java">from(<span class="code-quote">"direct:example"</span>)
.to(<span class="code-quote">"spring-ws:http:<span class="code-comment">//foo.com/bar?soapAction=http://foo.com&wsAddressingAction=http://bar.com"</span>)</span>
</pre>
</div></div>
<p>Optionally you can override the endpoint options with header values:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-template.requestBodyAndHeader(<span class="code-quote">"direct:example"</span>,
+<pre class="code-java">template.requestBodyAndHeader(<span class="code-quote">"direct:example"</span>,
<span class="code-quote">"<foobar xmlns=\"</span>http:<span class="code-comment">//foo.com\<span class="code-quote">"><msg>test message</msg></foobar>"</span>,
</span>SpringWebserviceConstants.SPRING_WS_SOAP_ACTION, <span class="code-quote">"http:<span class="code-comment">//baz.com"</span>);</span>
</pre>
@@ -35973,8 +35967,7 @@ template.requestBodyAndHeader(<span clas
<p>A custom message sender or factory in the registry can be referenced like this:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-from(<span class="code-quote">"direct:example"</span>)
+<pre class="code-java">from(<span class="code-quote">"direct:example"</span>)
.to(<span class="code-quote">"spring-ws:http:<span class="code-comment">//foo.com/bar?messageFactory=#messageFactory&messageSender=#messageSender"</span>)</span>
</pre>
</div></div>
@@ -36047,32 +36040,28 @@ from(<span class="code-quote">"direct:ex
<p>The following route will receive all web service requests that have a root element named "GetFoo" within the <tt><a shape="rect" class="external-link" href="http://example.com/" rel="nofollow">http://example.com/</a></tt> namespace.</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-from(<span class="code-quote">"spring-ws:rootqname:{http:<span class="code-comment">//example.com/}GetFoo?endpointMapping=#endpointMapping"</span>)
+<pre class="code-java">from(<span class="code-quote">"spring-ws:rootqname:{http:<span class="code-comment">//example.com/}GetFoo?endpointMapping=#endpointMapping"</span>)
</span>.convertBodyTo(<span class="code-object">String</span>.class).to(mock:example)
</pre>
</div></div>
<p>The following route will receive web service requests containing the <tt><a shape="rect" class="external-link" href="http://example.com/GetFoo" rel="nofollow">http://example.com/GetFoo</a></tt> SOAP action.</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-from(<span class="code-quote">"spring-ws:soapaction:http:<span class="code-comment">//example.com/GetFoo?endpointMapping=#endpointMapping"</span>)
+<pre class="code-java">from(<span class="code-quote">"spring-ws:soapaction:http:<span class="code-comment">//example.com/GetFoo?endpointMapping=#endpointMapping"</span>)
</span>.convertBodyTo(<span class="code-object">String</span>.class).to(mock:example)
</pre>
</div></div>
<p>The following route will receive all requests sent to <tt><a shape="rect" class="external-link" href="http://example.com/foobar" rel="nofollow">http://example.com/foobar</a></tt>.</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-from(<span class="code-quote">"spring-ws:uri:http:<span class="code-comment">//example.com/foobar?endpointMapping=#endpointMapping"</span>)
+<pre class="code-java">from(<span class="code-quote">"spring-ws:uri:http:<span class="code-comment">//example.com/foobar?endpointMapping=#endpointMapping"</span>)
</span>.convertBodyTo(<span class="code-object">String</span>.class).to(mock:example)
</pre>
</div></div>
<p>The route below will receive requests that contain the element <tt><foobar>abc</foobar></tt> anywhere inside the message (and the default namespace).</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-from(<span class="code-quote">"spring-ws:xpathresult:abc?expression=<span class="code-comment">//foobar&endpointMapping=#endpointMapping"</span>)
+<pre class="code-java">from(<span class="code-quote">"spring-ws:xpathresult:abc?expression=<span class="code-comment">//foobar&endpointMapping=#endpointMapping"</span>)
</span>.convertBodyTo(<span class="code-object">String</span>.class).to(mock:example)
</pre>
</div></div>
@@ -36085,8 +36074,7 @@ from(<span class="code-quote">"spring-ws
<p>An example of a route using <tt>beanname</tt>:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-<camelContext xmlns=<span class="code-quote">"http:<span class="code-comment">//camel.apache.org/schema/spring"</span>>
+<pre class="code-java"><camelContext xmlns=<span class="code-quote">"http:<span class="code-comment">//camel.apache.org/schema/spring"</span>>
</span> <route>
<from uri=<span class="code-quote">"spring-ws:beanname:QuoteEndpointDispatcher"</span> />
<to uri=<span class="code-quote">"mock:example"</span> />
@@ -36113,8 +36101,7 @@ from(<span class="code-quote">"spring-ws
<p>When <em>accessing</em> web services you can marshal the request and unmarshal the response message:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-JaxbDataFormat jaxb = <span class="code-keyword">new</span> JaxbDataFormat(<span class="code-keyword">false</span>);
+<pre class="code-java">JaxbDataFormat jaxb = <span class="code-keyword">new</span> JaxbDataFormat(<span class="code-keyword">false</span>);
jaxb.setContextPath(<span class="code-quote">"com.example.model"</span>);
from(<span class="code-quote">"direct:example"</span>).marshal(jaxb).to(<span class="code-quote">"spring-ws:http:<span class="code-comment">//foo.com/bar"</span>).unmarshal(jaxb);</span>
@@ -36123,8 +36110,7 @@ from(<span class="code-quote">"direct:ex
<p>Similarly when <em>providing</em> web services, you can unmarshal XML requests to POJO's and marshal the response message back to XML:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-from(<span class="code-quote">"spring-ws:rootqname:{http:<span class="code-comment">//example.com/}GetFoo?endpointMapping=#endpointMapping"</span>).unmarshal(jaxb)
+<pre class="code-java">from(<span class="code-quote">"spring-ws:rootqname:{http:<span class="code-comment">//example.com/}GetFoo?endpointMapping=#endpointMapping"</span>).unmarshal(jaxb)
</span>.to(<span class="code-quote">"mock:example"</span>).marshal(jaxb);
</pre>
</div></div>
Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.
Modified: websites/production/camel/content/spring-web-services.html
==============================================================================
--- websites/production/camel/content/spring-web-services.html (original)
+++ websites/production/camel/content/spring-web-services.html Thu Jun 21 15:20:45 2012
@@ -84,8 +84,7 @@
<p>Maven users will need to add the following dependency to their <tt>pom.xml</tt> for this component:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml">
-<span class="code-tag"><dependency></span>
+<pre class="code-xml"><span class="code-tag"><dependency></span>
<span class="code-tag"><groupId></span>org.apache.camel<span class="code-tag"></groupId></span>
<span class="code-tag"><artifactId></span>camel-spring-ws<span class="code-tag"></artifactId></span>
<span class="code-tag"><version></span>x.x.x<span class="code-tag"></version></span>
@@ -103,8 +102,7 @@
<p>The URI scheme for this component is as follows</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-spring-ws:[mapping-type:]address[?options]
+<pre class="code-java">spring-ws:[mapping-type:]address[?options]
</pre>
</div></div>
@@ -122,7 +120,7 @@ spring-ws:[mapping-type:]address[?option
<h3><a shape="rect" name="SpringWebServices-Options"></a>Options</h3>
<div class="confluenceTableSmall"><div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"> Name </th><th colspan="1" rowspan="1" class="confluenceTh"> Required? </th><th colspan="1" rowspan="1" class="confluenceTh"> Description </th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>soapAction</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> No </td><td colspan="1" rowspan="1" class="confluenceTd"> SOAP action to include inside a SOAP request when accessing remote web services </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>wsAddressingAction</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> No </td><td colspan="1" rowspan="1" class="confluenceTd"> WS-Addressing 1.0 action header to include when accessing web services. The <tt>To</tt> header is set to the <em>address</em> of the web service as specified in the endpoint URI (default Spring-WS behavior). </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>ex
pression</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Only when <em>mapping-type</em> is <tt>xpathresult</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> XPath expression to use in the process of mapping web service requests, should match the result specified by <tt>xpathresult</tt> </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>timeout</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> No </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.10:</b> Sets the socket read timeout (in milliseconds) while invoking a webservice using the producer, see <a shape="rect" class="external-link" href="http://docs.oracle.com/javase/6/docs/api/java/net/URLConnection.html#setReadTimeout(int)" rel="nofollow">URLConnection.setReadTimeout()</a> and <a shape="rect" class="external-link" href="http://static.springsource.org/spring-ws/site/apidocs/org/springframework/ws/transport/http/CommonsHttpMessageSender.html#setReadTimeou
t(int)" rel="nofollow">CommonsHttpMessageSender.setReadTimeout()</a> </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>sslContextParameters</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> No </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.10:</b> Reference to an <tt>org.apache.camel.util.jsse.SSLContextParameters</tt> in the <a shape="rect" class="external-link" href="http://camel.apache.org/registry.html">Registry</a>.  See <a shape="rect" class="external-link" href="http://camel.apache.org/http4.html#HTTP4-UsingtheJSSEConfigurationUtility">Using the JSSE Configuration Utility</a>.  This option works when using the built-in message sender implementations: <em>CommonsHttpMessageSender</em> and <em>HttpUrlConnectionMessageSender</em>.  One of these implementations will be used by default for HTTP based services unless you customize the Spring WS configuration options supplie
d to the component.  If you are using a non-standard sender, it is assumed that you will handle your own TLS configuration. </td></tr></tbody></table>
+<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"> Name </th><th colspan="1" rowspan="1" class="confluenceTh"> Required? </th><th colspan="1" rowspan="1" class="confluenceTh"> Description </th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>soapAction</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> No </td><td colspan="1" rowspan="1" class="confluenceTd"> SOAP action to include inside a SOAP request when accessing remote web services </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>wsAddressingAction</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> No </td><td colspan="1" rowspan="1" class="confluenceTd"> WS-Addressing 1.0 action header to include when accessing web services. The <tt>To</tt> header is set to the <em>address</em> of the web service as specified in the endpoint URI (default Spring-WS behavior). </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>ex
pression</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Only when <em>mapping-type</em> is <tt>xpathresult</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> XPath expression to use in the process of mapping web service requests, should match the result specified by <tt>xpathresult</tt> </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>timeout</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> No </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.10:</b> Sets the socket read timeout (in milliseconds) while invoking a webservice using the producer, see <a shape="rect" class="external-link" href="http://docs.oracle.com/javase/6/docs/api/java/net/URLConnection.html#setReadTimeout(int)" rel="nofollow">URLConnection.setReadTimeout()</a> and <a shape="rect" class="external-link" href="http://static.springsource.org/spring-ws/site/apidocs/org/springframework/ws/transport/http/CommonsHttpMessageSender.html#setReadTimeou
t(int)" rel="nofollow">CommonsHttpMessageSender.setReadTimeout()</a>.  This option works when using the built-in message sender implementations: <em>CommonsHttpMessageSender</em> and <em>HttpUrlConnectionMessageSender</em>.  One of these implementations will be used by default for HTTP based services unless you customize the Spring WS configuration options supplied to the component.  If you are using a non-standard sender, it is assumed that you will handle your own timeout configuration. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>sslContextParameters</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> No </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.10:</b> Reference to an <tt>org.apache.camel.util.jsse.SSLContextParameters</tt> in the <a shape="rect" class="external-link" href="http://camel.apache.org/registry.html">Registry</a>.  See <a shape="rect" class="exte
rnal-link" href="http://camel.apache.org/http4.html#HTTP4-UsingtheJSSEConfigurationUtility">Using the JSSE Configuration Utility</a>.  This option works when using the built-in message sender implementations: <em>CommonsHttpMessageSender</em> and <em>HttpUrlConnectionMessageSender</em>.  One of these implementations will be used by default for HTTP based services unless you customize the Spring WS configuration options supplied to the component.  If you are using a non-standard sender, it is assumed that you will handle your own TLS configuration. </td></tr></tbody></table>
</div>
</div>
@@ -146,15 +144,13 @@ spring-ws:[mapping-type:]address[?option
<p>To call a web service at <tt><a shape="rect" class="external-link" href="http://foo.com/bar" rel="nofollow">http://foo.com/bar</a></tt> simply define a route:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-from(<span class="code-quote">"direct:example"</span>).to(<span class="code-quote">"spring-ws:http:<span class="code-comment">//foo.com/bar"</span>)</span>
+<pre class="code-java">from(<span class="code-quote">"direct:example"</span>).to(<span class="code-quote">"spring-ws:http:<span class="code-comment">//foo.com/bar"</span>)</span>
</pre>
</div></div>
<p>And sent a message:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-template.requestBody(<span class="code-quote">"direct:example"</span>, <span class="code-quote">"<foobar xmlns=\"</span>http:<span class="code-comment">//foo.com\<span class="code-quote">"><msg>test message</msg></foobar>"</span>);</span>
+<pre class="code-java">template.requestBody(<span class="code-quote">"direct:example"</span>, <span class="code-quote">"<foobar xmlns=\"</span>http:<span class="code-comment">//foo.com\<span class="code-quote">"><msg>test message</msg></foobar>"</span>);</span>
</pre>
</div></div>
<p>Remember if it's a SOAP service you're calling you don't have to include SOAP tags. Spring-WS will perform the XML-to-SOAP marshaling.</p>
@@ -163,16 +159,14 @@ template.requestBody(<span class="code-q
<p>When a remote web service requires a SOAP action or use of the WS-Addressing standard you define your route as:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-from(<span class="code-quote">"direct:example"</span>)
+<pre class="code-java">from(<span class="code-quote">"direct:example"</span>)
.to(<span class="code-quote">"spring-ws:http:<span class="code-comment">//foo.com/bar?soapAction=http://foo.com&wsAddressingAction=http://bar.com"</span>)</span>
</pre>
</div></div>
<p>Optionally you can override the endpoint options with header values:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-template.requestBodyAndHeader(<span class="code-quote">"direct:example"</span>,
+<pre class="code-java">template.requestBodyAndHeader(<span class="code-quote">"direct:example"</span>,
<span class="code-quote">"<foobar xmlns=\"</span>http:<span class="code-comment">//foo.com\<span class="code-quote">"><msg>test message</msg></foobar>"</span>,
</span>SpringWebserviceConstants.SPRING_WS_SOAP_ACTION, <span class="code-quote">"http:<span class="code-comment">//baz.com"</span>);</span>
</pre>
@@ -182,8 +176,7 @@ template.requestBodyAndHeader(<span clas
<p>A custom message sender or factory in the registry can be referenced like this:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-from(<span class="code-quote">"direct:example"</span>)
+<pre class="code-java">from(<span class="code-quote">"direct:example"</span>)
.to(<span class="code-quote">"spring-ws:http:<span class="code-comment">//foo.com/bar?messageFactory=#messageFactory&messageSender=#messageSender"</span>)</span>
</pre>
</div></div>
@@ -256,32 +249,28 @@ from(<span class="code-quote">"direct:ex
<p>The following route will receive all web service requests that have a root element named "GetFoo" within the <tt><a shape="rect" class="external-link" href="http://example.com/" rel="nofollow">http://example.com/</a></tt> namespace.</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-from(<span class="code-quote">"spring-ws:rootqname:{http:<span class="code-comment">//example.com/}GetFoo?endpointMapping=#endpointMapping"</span>)
+<pre class="code-java">from(<span class="code-quote">"spring-ws:rootqname:{http:<span class="code-comment">//example.com/}GetFoo?endpointMapping=#endpointMapping"</span>)
</span>.convertBodyTo(<span class="code-object">String</span>.class).to(mock:example)
</pre>
</div></div>
<p>The following route will receive web service requests containing the <tt><a shape="rect" class="external-link" href="http://example.com/GetFoo" rel="nofollow">http://example.com/GetFoo</a></tt> SOAP action.</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-from(<span class="code-quote">"spring-ws:soapaction:http:<span class="code-comment">//example.com/GetFoo?endpointMapping=#endpointMapping"</span>)
+<pre class="code-java">from(<span class="code-quote">"spring-ws:soapaction:http:<span class="code-comment">//example.com/GetFoo?endpointMapping=#endpointMapping"</span>)
</span>.convertBodyTo(<span class="code-object">String</span>.class).to(mock:example)
</pre>
</div></div>
<p>The following route will receive all requests sent to <tt><a shape="rect" class="external-link" href="http://example.com/foobar" rel="nofollow">http://example.com/foobar</a></tt>.</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-from(<span class="code-quote">"spring-ws:uri:http:<span class="code-comment">//example.com/foobar?endpointMapping=#endpointMapping"</span>)
+<pre class="code-java">from(<span class="code-quote">"spring-ws:uri:http:<span class="code-comment">//example.com/foobar?endpointMapping=#endpointMapping"</span>)
</span>.convertBodyTo(<span class="code-object">String</span>.class).to(mock:example)
</pre>
</div></div>
<p>The route below will receive requests that contain the element <tt><foobar>abc</foobar></tt> anywhere inside the message (and the default namespace).</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-from(<span class="code-quote">"spring-ws:xpathresult:abc?expression=<span class="code-comment">//foobar&endpointMapping=#endpointMapping"</span>)
+<pre class="code-java">from(<span class="code-quote">"spring-ws:xpathresult:abc?expression=<span class="code-comment">//foobar&endpointMapping=#endpointMapping"</span>)
</span>.convertBodyTo(<span class="code-object">String</span>.class).to(mock:example)
</pre>
</div></div>
@@ -294,8 +283,7 @@ from(<span class="code-quote">"spring-ws
<p>An example of a route using <tt>beanname</tt>:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-<camelContext xmlns=<span class="code-quote">"http:<span class="code-comment">//camel.apache.org/schema/spring"</span>>
+<pre class="code-java"><camelContext xmlns=<span class="code-quote">"http:<span class="code-comment">//camel.apache.org/schema/spring"</span>>
</span> <route>
<from uri=<span class="code-quote">"spring-ws:beanname:QuoteEndpointDispatcher"</span> />
<to uri=<span class="code-quote">"mock:example"</span> />
@@ -322,8 +310,7 @@ from(<span class="code-quote">"spring-ws
<p>When <em>accessing</em> web services you can marshal the request and unmarshal the response message:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-JaxbDataFormat jaxb = <span class="code-keyword">new</span> JaxbDataFormat(<span class="code-keyword">false</span>);
+<pre class="code-java">JaxbDataFormat jaxb = <span class="code-keyword">new</span> JaxbDataFormat(<span class="code-keyword">false</span>);
jaxb.setContextPath(<span class="code-quote">"com.example.model"</span>);
from(<span class="code-quote">"direct:example"</span>).marshal(jaxb).to(<span class="code-quote">"spring-ws:http:<span class="code-comment">//foo.com/bar"</span>).unmarshal(jaxb);</span>
@@ -332,8 +319,7 @@ from(<span class="code-quote">"direct:ex
<p>Similarly when <em>providing</em> web services, you can unmarshal XML requests to POJO's and marshal the response message back to XML:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">
-from(<span class="code-quote">"spring-ws:rootqname:{http:<span class="code-comment">//example.com/}GetFoo?endpointMapping=#endpointMapping"</span>).unmarshal(jaxb)
+<pre class="code-java">from(<span class="code-quote">"spring-ws:rootqname:{http:<span class="code-comment">//example.com/}GetFoo?endpointMapping=#endpointMapping"</span>).unmarshal(jaxb)
</span>.to(<span class="code-quote">"mock:example"</span>).marshal(jaxb);
</pre>
</div></div>