You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by ru...@apache.org on 2007/11/13 12:58:43 UTC

svn commit: r594498 [4/5] - in /webservices/synapse/trunk/java: ./ modules/core/ modules/core/src/main/resources/ modules/core/src/main/resources/META-INF/ modules/core/src/test/resources/ modules/extensions/ modules/extensions/src/main/resources/META-...

Modified: webservices/synapse/trunk/java/src/site/resources/Synapse_Samples.html
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/src/site/resources/Synapse_Samples.html?rev=594498&r1=594497&r2=594498&view=diff
==============================================================================
--- webservices/synapse/trunk/java/src/site/resources/Synapse_Samples.html (original)
+++ webservices/synapse/trunk/java/src/site/resources/Synapse_Samples.html Tue Nov 13 03:58:38 2007
@@ -128,7 +128,8 @@
   <li><a href="#MediationSamples">Message mediation samples</a> 
     <ul>
       <li><a href="#Sample0">Sample 0: Introduction to Synapse</a></li>
-      <li><a href="#Sample1">Sample 1: Simple content based routing (CBR) of messages</a></li>
+      <li><a href="#Sample1">Sample 1: Simple content based routing (CBR) of
+        messages</a></li>
       <li><a href="#Sample2">Sample 2: CBR with the Switch-case mediator,
         using message properties</a></li>
       <li><a href="#Sample3">Sample 3: Local Registry entry definitions,
@@ -148,117 +149,148 @@
         with the Registry</a></li>
       <li><a href="#Sample11">Sample 11: A full registry based configuration,
         and sharing a configuration between multiple instances</a></li>
+      <li><a href="#Sample12">Sample 12: One way messaging / fireAndForget
+        through synapse</a></li>
     </ul>
   </li>
   <li><a href="#Endpoints">Advanced mediations with endpoints</a> 
     <ul>
-        <li><a href="#Sample50">Sample 50: POX to SOAP conversion</a></li>
-        <li><a href="#Sample51">Sample 51: MTOM and SwA optimizations and
-            request/response correlation</a></li>
-        <li><a href="#Sample52">Sample 52: Session less load balancing between 3 endpoints</a></li>
-        <li><a href="#Sample53">Sample 53: Failover sending among 3 endpoints</a></li>
-        <li><a href="#Sample54">Sample 54: Session affinity load balancing
-            between 3 endpoints</a></li>
-        <li><a href="#Sample55">Sample 55: Session affinity load balancing
-            between fail over endpoints</a></li>
-        <li><a href="#Sample56">Sample 56: WSDL endpoint</a></li>
+      <li><a href="#Sample50">Sample 50: POX to SOAP conversion</a></li>
+      <li><a href="#Sample51">Sample 51: MTOM and SwA optimizations and
+        request/response correlation</a></li>
+      <li><a href="#Sample52">Sample 52: Session less load balancing between
+        3 endpoints</a></li>
+      <li><a href="#Sample53">Sample 53: Failover sending among 3
+        endpoints</a></li>
+      <li><a href="#Sample54">Sample 54: Session affinity load balancing
+        between 3 endpoints</a></li>
+      <li><a href="#Sample55">Sample 55: Session affinity load balancing
+        between fail over endpoints</a></li>
+      <li><a href="#Sample56">Sample 56: WSDL endpoint</a></li>
     </ul>
   </li>
-  <li><a href="#MessageMediationQoS">Quality of Service addition or
-      deduction samples in message mediation</a>
+  <li><a href="#MessageMediationQoS">Quality of Service addition or deduction
+    samples in message mediation</a> 
     <ul>
-        <li><a href="#Sample100">Sample 100: Using WS-Security for outgoing messages</a></li>
-        <li><a href="#Sample101">Sample 101: Reliable message exchange between
-            Synapse and the back-end server using WS-ReliableMessaging</a></li>
+      <li><a href="#Sample100">Sample 100: Using WS-Security for outgoing
+        messages</a></li>
+      <li><a href="#Sample101">Sample 101: Reliable message exchange between
+        Synapse and the back-end server using WS-ReliableMessaging</a></li>
     </ul>
   </li>
   <li><a href="#ProxyServices">Synapse Proxy service samples</a> 
     <ul>
-      <li><a href="#Sample150">Sample 150: Introduction to proxy services</a></li>
+      <li><a href="#Sample150">Sample 150: Introduction to proxy
+      services</a></li>
       <li><a href="#Sample151">Sample 151: Custom sequences and endpoints
-          with proxy services</a></li>
+        with proxy services</a></li>
       <li><a href="#Sample152">Sample 152: Switching transports and message
         format from SOAP to REST/POX</a></li>
-        <li><a href="#Sample153">Sample 153: Routing the messages arrived to a
-            proxy service without processing the security headers</a></li>
+      <li><a href="#Sample153">Sample 153: Routing the messages arrived to a
+        proxy service without processing the security headers</a></li>
     </ul>
   </li>
-  <li><a href="ProxyServiceQoS">QoS addition and deduction for service mediation (proxy) samples</a>
+  <li><a href="#ProxyServiceQoS">QoS addition and deduction for service
+    mediation (proxy) samples</a> 
     <ul>
-        <li><a href="#Sample200">Sample 200: Using WS-Security with policy
-            attachments for proxy services</a></li>
-        <li><a href="#Sample201">Sample 201: Reliable message exchange between
-            the client and proxy services using WS-ReliableMessaging</a></li>
+      <li><a href="#Sample200">Sample 200: Using WS-Security with policy
+        attachments for proxy services</a></li>
+      <li><a href="#Sample201">Sample 201: Reliable message exchange between
+        the client and proxy services using WS-ReliableMessaging</a></li>
     </ul>
   </li>
-  <li><a href="#Transport">Transport samples and switching transports</a>
+  <li><a href="#Transport">Transport samples and switching transports</a> 
     <ul>
       <li><a href="#Sample250">Sample 250: Introduction to switching
         transports - JMS to http/s</a></li>
-      <li><a href="#Sample251">Sample 251: Switching from http/s to JMS</a></li>
-      <li><a href="#Sample112">Sample 112: One way messaging / fireAndForget()</a></li>
+      <li><a href="#Sample251">Sample 251: Switching from http/s to
+      JMS</a></li>
       <li><a href="#Sample252">Sample 252: Pure text/binary and POX message
         support with JMS</a></li>
       <li><a href="#Sample253">Sample 253: One way bridging from JMS to http
         and replying with a 202 Accepted response</a></li>
-      <li><a href="#Sample254">Sample 254: Using the  file system as transport 
+      <li><a href="#Sample254">Sample 254: Using the file system as transport
         medium using VFS transport listener and sender</a></li>
-      <li><a href="#Sample255">Sample 255: Switching from ftp transport listener
-        to mail transport sender</a></li>
+      <li><a href="#Sample255">Sample 255: Switching from ftp transport
+        listener to mail transport sender</a></li>
     </ul>
   </li>
-  <li><a href="#Task">Introduction to synapse tasks</a>
+  <li><a href="#Task">Introduction to synapse tasks</a> 
     <ul>
-      <li><a href="#Sample300">Introduction to tasks with simple trigger</a></li>
+      <li><a href="#Sample300">Sample 300: Introduction to tasks with simple
+        trigger</a></li>
     </ul>
   </li>
-  <li><a href="#AdvancedMediation">Advanced mediations with advanced mediators</a>
+  <li><a href="#AdvancedMediation">Advanced mediations with advanced
+    mediators</a> 
     <ul>
-      <li><a href="#ScriptMediator">Using scripts in mediation (Script Mediator)</a>
+      <li><a href="#ScriptMediator">Using scripts in mediation (Script
+        Mediator)</a> 
         <ul>
-          <li><a href="#Sample350">Sample 350: Introduction to the script mediator
-              using js scripts</a></li>
-          <li><a href="#Sample351">Sample 351: In-line script mediation with JavaScript</a></li>
-          <li><a href="#Sample352">Sample 352: Accessing Synapse message context API
-              methods using scripting language</a></li>
-          <li><a href="#Sample353">Sample 353: Using Ruby scripts for mediation</a></li>
+          <li><a href="#Sample350">Sample 350: Introduction to the script
+            mediator using js scripts</a></li>
+          <li><a href="#Sample351">Sample 351: In-line script mediation with
+            JavaScript</a></li>
+          <li><a href="#Sample352">Sample 352: Accessing Synapse message
+            context API methods using scripting language</a></li>
+          <li><a href="#Sample353">Sample 353: Using Ruby scripts for
+            mediation</a></li>
         </ul>
       </li>
-      <li><a href="#DBMediators">Database interactions in mediation (DBLookup / DBReport)</a>
+      <li><a href="#DBMediators">Database interactions in mediation (DBLookup
+        / DBReport)</a> 
         <ul>
-          <li><a href="#Sample360">Sample 360: Introduction to dblookp mediator</a></li>
-          <li><a href="#Sample361">Sample 361: Introduction to dbreport mediator</a></li>
+          <li><a href="#Sample360">Sample 360: Introduction to dblookp
+            mediator</a></li>
+          <li><a href="#Sample361">Sample 361: Introduction to dbreport
+            mediator</a></li>
           <li><a href="#Sample362">Sample 362: Action of dbreport and
-              dblookup mediators together</a></li>
+            dblookup mediators together</a></li>
         </ul>
       </li>
-      <li><a href="#Throttle">Throtteling messages (Throttle Mediator)</a>
+      <li><a href="#Throttle">Throtteling messages (Throttle Mediator)</a> 
         <ul>
-          <li><a href="#Sample370">Sample 370: Introduction to throttle mediator
-              and concurrency throttling</a></li>
-          <li><a href="#Sample371">Sample 371: Restricting requests based on policies </a></li>
-          <li><a href="#Sample372">Sample 372: TODO: Find the topic</a></li>
+          <li><a href="#Sample370">Sample 370: Introduction to throttle
+            mediator and concurrency throttling</a></li>
+          <li><a href="#Sample371">Sample 371: Restricting requests based on
+            policies</a></li>
+          <li><a href="#Sample372">Sample 372: Use of both concurrency
+            throttling and request rate based throttling </a></li>
         </ul>
       </li>
-      <li><a href="#Class">Extending the mediation in java (Class Mediator)</a>
+      <li><a href="#Class">Extending the mediation in java (Class
+        Mediator)</a> 
         <ul>
-          <li><a href="#Sample380">Sample 380: Writting your own custom mediation in Java</a></li>
+          <li><a href="#Sample380">Sample 380: Writing your own custom
+            mediation in Java</a></li>
         </ul>
       </li>
-      <li><a href="#XQuery">Evaluating XQuery for mediation (XQuery Mediator)</a>
+      <li><a href="#XQuery">Evaluating XQuery for mediation (XQuery
+        Mediator)</a> 
         <ul>
-          <li><a href="#Sample390">Sample 390: Introduction to the XQuery mediator</a></li>
-          <li><a href="#Sample391">Sample 391: TODO: Find the topic</a></li>
+          <li><a href="#Sample390">Sample 390: Introduction to the XQuery
+            mediator</a></li>
+          <li><a href="#Sample391">Sample 391: How to use the data from an
+            external XML document with in XQuery </a></li>
         </ul>
       </li>
-      <li><a href="#Splitter">Splitting messages in to parts and process in parallel</a>
+      <li><a href="#Splitter">Splitting messages in to parts and process in
+        parallel (Iterate / Clone)</a> 
         <ul>
-          <li><a href="#Sample400">Sample 400: Message splitting and aggregating the responses</a></li>
+          <li><a href="#Sample400">Sample 400: Message splitting and
+            aggregating the responses</a></li>
         </ul>
       </li>
-      <li><a href="#Aggregator">Aggregating messages and process in batch</a>
+      <!--<li><a href="#Aggregator">Aggregating messages and process in batch</a> -->
+        <!--<ul>-->
+          <!--<li><a href="#Sample410">Sample 410: Message splitting and-->
+            <!--aggregating the responses</a></li>-->
+        <!--</ul>-->
+      <!--</li>-->
+      <li><a href="#Cache">Caching the responses over the requests</a> 
         <ul>
-          <li><a href="#Sample410">Sample 410: Message splitting and aggregating the responses</a></li>
+          <li><a href="#Sample420">Sample 420: Simple cache implemented on
+            synapse for the actual service</a></li>
         </ul>
       </li>
     </ul>
@@ -268,7 +300,7 @@
 
 <h1><a name="MediationSamples">Message Mediation Samples</a></h1>
 
-<h2><a name="Sample0">Sample 0:</a></h2>
+<h2><a name="Sample0">Sample 0: Introduction to Synapse</a></h2>
 <pre>&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
     &lt;!-- log all attributes of messages passing through --&gt;
     &lt;log level="full"/&gt;
@@ -288,12 +320,12 @@
   <pre>ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8080/ </pre>
   <li>Using Synapse as a HTTP Proxy</li>
   <pre>ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dprxurl=http://localhost:8080/</pre>
-  <li>Gateway mode / Dumb Client</li>
+  <li>Gateway Mode / Dumb Client</li>
 
   <p>See sample # 1</p>
 </ol>
 
-<p><strong>Pre-Requisites:<br>
+<p><strong>Prerequisites:<br>
 </strong>Start the Synapse configuration numbered 0: e.g. synapse -sample
 0<br>
 Start the Axis2 server and deploy the SimpleStockQuoteService if not already
@@ -301,26 +333,26 @@
 
 <p><strong>Execute the Smart Client </strong></p>
 
-<p>By following through the execution of Synapse through the DEBUG level log
-output to the system output stream (i.e. console), you will notice that the
-client request arrived at Synapse with a WS-Addressing 'To' EPR of
-http://localhost:9000/soap/SimpleStockQuoteService. The Synapse engine now
-logs the message at the "full" log level (i.e. all message headers and the
-body) and sends the message to its implicit 'To' address - which is
-http://localhost:9000/soap/SimpleStockQuoteService. Then you will see on the
-Axis2 server console, a message confirming that the message got routed to the
-sample server and the sample service that was invoked generated a stock quote
-for the requested symbol.</p>
+<p>By tracing the execution of Synapse with the log output level set to
+DEBUG, you will see the client request arriving at Synapse with a
+WS-Addressing 'To' set to EPR
+http://localhost:9000/soap/SimpleStockQuoteService. The Synapse engine logs
+the message at the "full" log level (i.e. all the message headers and the
+body) then sends the message to its implicit 'To' address which is
+http://localhost:9000/soap/SimpleStockQuoteService. You will see a message in
+the Axis2 server console confirming that the message got routed to the sample
+server and the sample service hosted at the sample server generating a stock
+quote for the requested symbol.</p>
 <pre>Sat Nov 18 21:01:23 IST 2006 SimpleStockQuoteService :: Generating quote for : IBM</pre>
 
 <p>The response message generated by the service is again received by
 Synapse, and flows through the same mediation rules, which logs the response
-message and then sends it back - this time to the client. On the client
+message and then sends it back. This time to the client. On the client
 console you should see an output similar to the following based on the
 message received by the client.</p>
 <pre>Standard :: Stock price = $95.26454380258552</pre>
 
-<p><strong>Execute the Proxy client </strong></p>
+<p><strong>Execute the Proxy Client </strong></p>
 
 <p>You will see the exact same behaviour as per the previous example when you
 run this scenario. However this time the difference is at the client, as it
@@ -328,9 +360,9 @@
 http://localhost:9000/soap/SimpleStockQuoteService, but the transport
 specifies Synapse as the http proxy. </p>
 
-<h2><a name="Sample1" id="Sample1">Sample 1:</a></h2>
-<pre>&lt;!-- simple content based routing of messages --&gt;
-&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
+<h2><a name="Sample1">Sample 1: Simple content based routing (CBR) of
+messages</a></h2>
+<pre>&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
     &lt;!-- filtering of messages with XPath and regex matches --&gt;
     &lt;filter source="get-property('To')" regex=".*/StockQuote.*"&gt;
         &lt;send&gt;
@@ -348,7 +380,7 @@
 where Synapse acts as a gateway to accept all messages and then perform
 mediation and routing based on message properties or content.</strong></p>
 
-<p><strong>Pre-Requisites:</strong><br>
+<p><strong>Prerequisites:</strong><br>
 Start the Synapse configuration numbered 1: i.e. synapse -sample 1<br>
 Start the Axis2 server and deploy the SimpleStockQuoteService if not already
 deployed<br>
@@ -357,20 +389,20 @@
 <p>Execute the Dumb Client as: </p>
 <pre>ant stockquote -Dtrpurl=http://localhost:8080/soap/StockQuote<br></pre>
 
-<p>This time you will notice that Synapse received a message for which
-Synapse was set as the ultimate receiver of the message. Based on the 'To'
-EPR of http://localhost:8080/soap/StockQuote, Synapse performes a match to
-the path '/StockQuote' and as the request matched the XPath expression of the
-filter mediator, the filter mediators' child mediators executes, and thereby
-sending the message to a different endpoint as specified by the endpoint
-definition. The 'drop' mediator terminates further processing of the current
-message in a configuration. During response processing, the filter condition
-fails, and thus the implicit 'send' mediator forwards the reply back to the
+<p>This time you will see Synapse receiving a message for which Synapse was
+set as the ultimate receiver of the message. Based on the 'To' EPR of
+http://localhost:8080/soap/StockQuote, Synapse performs a match to the path
+'/StockQuote' and as the request matches the XPath expression of the filter
+mediator, the filter mediator's child mediators execute. This sends the
+message to a different endpoint as specified by the endpoint definition. The
+'drop' mediator terminates further processing of the current message in a
+configuration. During response processing, the filter condition fails, and
+thus the implicit 'send' mediator forwards the response back to the
 client.</p>
 
-<h2><a name="Sample2">Sample 2:</a></h2>
-<pre>&lt;!-- switch-case mediator and setting and reading of local properties on a message --&gt;
-&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
+<h2><a name="Sample2">Sample 2: CBR with the Switch-case mediator, using
+message properties</a></h2>
+<pre>&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
     &lt;switch source="//m0:getQuote/m0:request/m0:symbol" xmlns:m0="http://services.samples/xsd"&gt;
         &lt;case regex="IBM"&gt;
             &lt;!-- the property mediator sets a local property on the *current* message --&gt;
@@ -402,18 +434,18 @@
 <p><strong>Objective: Introduce switch-case mediator and writing and reading
 of local properties set on a message instance</strong></p>
 
-<p><strong>Pre-Requisites:</strong><br>
+<p><strong>Prerequisites:</strong><br>
 Start the Synapse configuration numbered 2: i.e. synapse -sample 2<br>
 Start the Axis2 server and deploy the SimpleStockQuoteService if not already
 done.</p>
 
 <p>Execute the 'ant stockquote ..' request again in the smart client mode,
 specifying 'IBM', 'MSFT' and 'SUN' as the stock symbols. When the symbol IBM
-is request, following through the mediation logs you will see that the case
-statements' first case for 'IBM' executed and a local property named 'symbol'
-was set to 'Great stock - IBM'. Subsequently this local property value is
-looked up by the log mediator and logged using the 'get-property()' XPath
-extension function.</p>
+is requested, viewing the mediation logs you will see that the case
+statements' first case for 'IBM' is executed and a local property named
+'symbol' was set to 'Great stock - IBM'. Subsequently this local property
+value is looked up by the log mediator and logged using the 'get-property()'
+XPath extension function.</p>
 
 <p>ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
 -Dtrpurl=http://localhost:8080/ -Dsymbol=IBM</p>
@@ -423,9 +455,9 @@
 -Dtrpurl=http://localhost:8080/ -Dsymbol=MSFT</p>
 <pre>INFO LogMediator - symbol = Are you sure? - MSFT, epr = http://localhost:9000/axis2/services/SimpleStockQuoteService</pre>
 
-<h2><a name="Sample3" id="Sample3">Sample 3:</a></h2>
-<pre>&lt;!-- illustration of local registry entry definitions, and reusable endpoints and sequences --&gt;
-&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
+<h2><a name="Sample3">Sample 3: Local Registry entry definitions, reusable
+endpoints and sequences</a></h2>
+<pre>&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
     &lt;!-- define a string resource entry to the local registry --&gt;
     &lt;localEntry key="version"&gt;0.1&lt;/localEntry&gt;
     &lt;!-- define a reuseable endpoint definition --&gt;
@@ -461,7 +493,7 @@
 <p><strong>Objective: Illustrates local registry entry definitions, reusable
 endpoints and sequences</strong></p>
 
-<p><strong>Pre-Requisites:</strong><br>
+<p><strong>Prerequisites:</strong><br>
 Start the Synapse configuration numbered 3: i.e. synapse -sample 3<br>
 Start the Axis2 server and deploy the SimpleStockQuoteService if not already
 done</p>
@@ -469,30 +501,29 @@
 <p>This example uses a sequence named as "main" that specifies the main
 mediation rules to be executed. This is equivalent to directly specifying the
 mediators of the main sequence within the &lt;definitions&gt; tags. This is
-the recommended and also a neater approach for non trivial configurations.
+the recommended and also a better approach for non-trivial configurations.
 Execute the 'ant stockquote ..' request again, and following through the
-mediation logs you will now notice that the sequence named "main" executed.
-Then for the incoming message flow the &lt;in&gt; mediator executes, and it
-calls into the sequence named "stockquote"</p>
+mediation logs you will now notice that the sequence named "main" is
+executed. Then for the incoming message flow the &lt;in&gt; mediator
+executes, and it calls into the sequence named "stockquote".</p>
 <pre>ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8080/</pre>
 <pre>DEBUG SequenceMediator - Sequence mediator &lt;main&gt; :: mediate()<br>DEBUG InMediator - In mediator mediate()<br>DEBUG SequenceMediator - Sequence mediator &lt;stockquote&gt; :: mediate()</pre>
 
 <p>As the "stockquote" sequence executes, the log mediator dumps a simple
-text/string property, an XPath evaluation result - that picks up the key
-named "version", and a second XPath evaluation result that picks up a local
-message property set previously by the &lt;property&gt; mediator. The
+text/string property, result of an XPath evaluation, that picks up the key
+named "version", and a second result of an XPath evaluation that picks up a
+local message property set previously by the &lt;property&gt; mediator. The
 get-property() XPath extension function is able to read message properties
 local to the current message, local or remote registry entries, Axis2 message
 context properties as well as transport headers. The local entry definition
-for "version" defines a simple text/string registry entry for that is visible
-to all messages that passes through Synapse.</p>
+for "version" defines a simple text/string registry entry for that which is
+visible to all messages that pass through Synapse.</p>
 <pre>[HttpServerWorker-1] INFO  LogMediator - Text = Sending quote request, version = 0.1, direction = incoming
 [HttpServerWorker-1] DEBUG SendMediator - Send mediator :: mediate()
 [HttpServerWorker-1] DEBUG AddressEndpoint - Sending To: http://localhost:9000/soap/SimpleStockQuoteService </pre>
 
-<h2><a name="Sample4">Sample 4:</a></h2>
-<pre>&lt;!-- introduction to error handling --&gt;
-&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
+<h2><a name="Sample4">Sample 4: Introduction to error handling</a></h2>
+<pre>&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
 
     &lt;!-- the default fault handling sequence used by Synapse - named 'fault' --&gt;
     &lt;sequence name="fault"&gt;
@@ -548,13 +579,13 @@
 <p><strong>Objective: Introduction to error handling with the 'fault'
 sequence</strong></p>
 
-<p><strong>Pre-Requisites:</strong><br>
+<p><strong>Prerequisites:</strong><br>
 Start the Synapse configuration numbered 4: i.e. synapse -sample 4<br>
 Start the Axis2 server and deploy the SimpleStockQuoteService if not already
 done</p>
 
 <p>When the IBM stock quote is requested, the configuration routes it to the
-endpoint defined as the 'simple' endpoint, which routes the message to the
+defined inline endpoint, which routes the message to the
 SimpleStockQuoteService on the local Axis2 instance. Hence a valid response
 message is shown at the client.</p>
 
@@ -563,9 +594,9 @@
 exist. Synapse executes the specified error handler sequence closest to the
 point where the error was encountered. In this case, the currently executing
 sequence is 'main' and it does not specify an 'onError' attribute. Whenever
-Synapse cannot find an error handler, it looks up for a sequence named
-'fault'. Thus the 'fault' sequence can be seen executing, and writing the
-generic error message into the logs. </p>
+Synapse cannot find an error handler, it looks for a sequence named 'fault'.
+Thus the 'fault' sequence can be seen executing, and writing the generic
+error message to the logs. </p>
 <pre>ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8080/ -Dsymbol=MSFT</pre>
 <pre>[HttpServerWorker-1] DEBUG SendMediator - Send mediator :: mediate()
 [HttpServerWorker-1] ERROR IndirectEndpoint - Reference to non-existent endpoint for key : bogus
@@ -576,8 +607,8 @@
 
 <p>When the 'SUN' quote is requested, a custom sequence 'sunSequence' is
 invoked, and it specifies 'sunErrorHandler' as its error handler. Hence when
-the send fails, now you could see the proper error handler invocation and the
-custom error message as follows:</p>
+the send fails, you could see the proper error handler invocation and the
+custom error message printed as follows.</p>
 <pre>ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8080/ -Dsymbol=SUN</pre>
 <pre>[HttpServerWorker-1] DEBUG SequenceMediator - Sequence mediator &lt;sunSequence&gt; :: mediate()
 [HttpServerWorker-1] DEBUG SequenceMediator - Setting the onError handler for the sequence
@@ -590,7 +621,8 @@
 [HttpServerWorker-1] DEBUG LogMediator - Log mediator :: mediate()
 [HttpServerWorker-1] INFO  LogMediator - text = An unexpected error occured for stock SUN, message = Reference to non-existent endpoint for key : sunPort</pre>
 
-<h2><a name="Sample5">Sample 5:</a></h2>
+<h2><a name="Sample5">Sample 5: Creating SOAP fault messages and changing the
+direction of a message</a></h2>
 <pre>&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
 
     &lt;sequence name="myFaultHandler"&gt;
@@ -632,29 +664,30 @@
 <p><strong>Objective: Makefault mediator and sending back error responses
 </strong></p>
 
-<p><strong>Pre-Requisites:</strong><br>
+<p><strong>Prerequisites:</strong><br>
 Start the Synapse configuration numbered 5: i.e. synapse -sample 5<br>
 Start the Axis2 server and deploy the SimpleStockQuoteService if not already
 done</p>
 
 <p>When the MSFT stock quote is requested, an unknown host exception would be
-caused, and a connection refused exception would be caused for the SUN stock.
-This information is captured and returned back to the original client as a
-SOAP fault in this example.</p>
+generated. A connection refused exception would be generated for the SUN
+stock request. This error message is captured and returned to the original
+client as a SOAP fault in this example.</p>
 <pre>ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8080/ -Dsymbol=MSFT</pre>
 
-<p>Returns:</p>
+<p>returns,</p>
 <pre>&lt;soapenv:Fault xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&gt;&lt;faultcode&gt;soapenv:Client&lt;/faultcode&gt;
     &lt;faultstring&gt;java.net.UnknownHostException: bogus&lt;/faultstring&gt;&lt;detail /&gt;&lt;/soapenv:Fault&gt;</pre>
 
 <p>And</p>
 <pre>ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8080/ -Dsymbol=SUN</pre>
 
-<p>Returns:</p>
+<p>returns,</p>
 <pre>&lt;soapenv:Fault xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&gt;&lt;faultcode&gt;soapenv:Client&lt;/faultcode&gt;
     &lt;faultstring&gt;java.net.ConnectException: Connection refused&lt;/faultstring&gt;&lt;detail /&gt;&lt;/soapenv:Fault&gt;</pre>
 
-<h2><a name="Sample6">Sample 6:</a></h2>
+<h2><a name="Sample6">Sample 6: Manipulating SOAP headers, and filtering
+incoming and outgoing messages</a></h2>
 <pre>&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
     &lt;in&gt;
         &lt;header name="To" value="http://localhost:9000/soap/SimpleStockQuoteService"/&gt;
@@ -664,7 +697,7 @@
 
 <p><strong>Objective: Introduction to header, in (out) mediators</strong></p>
 
-<p><strong>Pre-Requisites:</strong><br>
+<p><strong>Prerequisites:</strong><br>
 Start the Synapse configuration numbered 6: i.e. synapse -sample 6<br>
 Start the Axis2 server and deploy the SimpleStockQuoteService if not already
 done</p>
@@ -673,12 +706,12 @@
 setting the 'To' EPR of the message to Synapse. Then the 'in' mediator
 processes the incoming messages, and manipulates the 'To' header to refer to
 the stock quote service on the sample Axis2 server. Thus it is now possible
-to request for a stock quote as follows:</p>
-<pre>ant stockquote -Dtrpurl=http://localhost:8080/soap/SimpleStockQuoteService</pre>
+to request for a stock quote as follows.</p>
+<pre>ant stockquote -Dtrpurl=http://localhost:8080/</pre>
 
-<h2><a name="Sample7">Sample 7:</a></h2>
-<pre>&lt;!-- introduction of static inline XML properties and the validation mediator --&gt;
-&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
+<h2><a name="Sample7">Sample 7: Introduction to local Registry entries and
+using Schema validation</a></h2>
+<pre>&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
 
     &lt;localEntry key="validate_schema"&gt;
         &lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
@@ -722,34 +755,34 @@
 <p><strong>Objective: Introduction to local (static) registry entries and the
 validate mediator</strong></p>
 
-<p><strong>Pre-Requisites:</strong><br>
+<p><strong>Prerequisites:</strong><br>
 Start the Synapse configuration numbered 7: i.e. synapse -sample 7<br>
 Start the Axis2 server and deploy the SimpleStockQuoteService if not already
 done</p>
 
 <p>This example shows how a static XML fragment could be made available to
-the Synapse local registry. Resources defined to the local registry are
+the Synapse local registry. Resources defined in the local registry are
 static (i.e. never changes over the lifetime of the configuration) and may be
-specified as a source URL, inline-text or inline-xml. In this example the
+specified as a source URL, inline text or inline xml. In this example the
 schema is made available under the key 'validate_schema'.</p>
 
 <p>The validate mediator by default operates on the first child element of
 the SOAP body. You may specify an XPath expression using the 'source'
 attribute to override this behaviour. The validate mediator now uses the
 'validate_schema' resource to validate the incoming message, and if the
-message is in error invokes on the 'on-fail' sequence of mediators.</p>
+message validatation fails it invokes the 'on-fail' sequence of mediators.</p>
 
-<p>If you send a stockquote request using 'ant stockquote ..' you will now
-get a fault back with a message 'Invalid custom quote request' as the schema
+<p>If you send a stockquote request using 'ant stockquote ...' you will get a
+fault back with the message 'Invalid custom quote request' as the schema
 validation failed. This is because the schema used in the example expects a
 slightly different message than what is created by the stock quote client.
 (i.e. expects a 'stocksymbol' element instead of 'symbol' to specify thestock
 symbol)</p>
 <pre>ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8080/</pre>
 
-<h2><a name="Sample8">Sample 8:</a></h2>
-<pre>&lt;!-- introduction to static and dynamic registry resources and the XSLT mediator --&gt;
-&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
+<h2><a name="Sample8">Sample 8: Introduction to static and dynamic registry
+resources, and using XSLT transformations</a></h2>
+<pre>&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
 
     &lt;!-- the SimpleURLRegistry allows access to a URL based registry (e.g. file:/// or http://) --&gt;
     &lt;registry provider="org.apache.synapse.registry.url.SimpleURLRegistry"&gt;
@@ -777,7 +810,7 @@
 <p><strong>Objective: Introduction to static and dynamic registry resources
 and the XSLT mediator</strong></p>
 
-<p><strong>Pre-Requisites:</strong><br>
+<p><strong>Prerequisites:</strong><br>
 Start the Synapse configuration numbered 8: i.e. synapse -sample 8<br>
 Start the Axis2 server and deploy the SimpleStockQuoteService if not already
 done</p>
@@ -785,10 +818,10 @@
 <p>This example uses the XSLT mediator to perform transformations, and the
 xslt tranformations are specified as registry resources. The first resource
 'xslt-key-req' is specified as a 'local' registry entry. Local entries do not
-place the resource on the registry, but simply makes it available to the
-local configuration. If a local entry is defined with a key that already
-exists in the remote registry, the local entry will have preference and hide
-the existence of the remote resource.</p>
+place the resource on the registry, but simply make it available to the local
+configuration. If a local entry is defined with a key that already exists in
+the remote registry, the local entry will have higher preference and override
+the remote resource.</p>
 
 <p>In this example you will notice the new 'registry' definition. Synapse
 comes with a simple URL based registry implementation SimpleURLRegistry.
@@ -808,13 +841,9 @@
 'file:repository/conf/sample/resources/transform/transform_back.xslt' and
 caches its value for a period of 15000 ms.</p>
 
-<p>Execute the custom quote client as 'ant stockquote -Dmode=customquote ..'
-and analyze the the Synapse debug log output as shown below</p>
+<p>Execute the custom quote client as 'ant stockquote -Dmode=customquote ...'
+and analyze the the Synapse debug log output</p>
 <pre>ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8080/ -Dmode=customquote</pre>
-<pre>[HttpServerWorker-1] DEBUG XSLTMediator - Performing XSLT transformation against property with key : xslt-key-req
-[HttpServerWorker-1] DEBUG XSLTMediator - Transformation source :
-    &lt;m0:CheckPriceRequest xmlns:m0="http://www.apache-synapse.org/test"&gt;&lt;m0:Code&gt;IBM&lt;/m0:Code&gt;&lt;/m0:CheckPriceRequest&gt;
-[HttpServerWorker-1] DEBUG XSLTMediator - Transformation result : &lt;m:getQuote xmlns:m="http://services.samples/xsd"&gt;</pre>
 
 <p>The incoming message is now transformed into a standard stock quote
 request as expected by the SimpleStockQuoteService deployed on the local
@@ -824,22 +853,22 @@
 SimpleStockQuoteService is converted back into the custom format as expected
 by the client during the out message processing.</p>
 
-<p>During the response processing you could notice the SimpleURLRegistry
+<p>During the response processing you could see the SimpleURLRegistry
 fetching the resource as shown by the log message below</p>
 <pre>[HttpClientWorker-1] INFO  SimpleURLRegistry - ==&gt; Repository fetch of resource with key : transform/transform_back.xslt</pre>
 
-<p>If you re-run the client again immidiately (i.e within 15 seconds of the
-first request) you will not see the resource being re-loaded by the registry
+<p>If you run the client again immediately (i.e within 15 seconds of the
+first request) you will not see the resource being reloaded by the registry
 as the cached value would be still valid.</p>
 
 <p>However if you leave the system idle for 15 seconds or more and then retry
-the same request, you will now notice that the registry noticed the cache
-expiry and checked the meta information about the resource to check if the
-resource itself has changes and requires a fresh fetch from the source URL.
-If the meta data / version number indicates that a reload of the cached
-resource is not necessary (i.e. unless the resource itself actually changed)
-the updated meta information is used and the cache lease extended as
-appropriate.</p>
+the same request, you will now notice that the registry noticed the cached
+resource has expired and will check the meta information about the resource
+to check if the resource itself has changed and will require a fresh fetch
+from the source URL. If the meta data / version number indicates that a
+reload of the cached resource is not necessary (i.e. unless the resource
+itself actually changed) the updated meta information is used and the cache
+lease extended as appropriate.</p>
 <pre>[HttpClientWorker-1] DEBUG AbstractRegistry - Cached object has expired for key : transform/transform_back.xslt
 [HttpClientWorker-1] DEBUG SimpleURLRegistry - Perform RegistryEntry lookup for key : transform/transform_back.xslt
 [HttpClientWorker-1] DEBUG AbstractRegistry - Expired version number is same as current version in registry
@@ -855,12 +884,12 @@
 [HttpClientWorker-1] INFO  SimpleURLRegistry - ==&gt; Repository fetch of resource with key : transform/transform_back.xslt </pre>
 
 <p>Thus the SimpleURLRegistry allows resource to be cached, and updates
-detected so that changes could be reloaded without restarting the Synapse
+detected so that the changes could be reloaded without restarting the Synapse
 instance.</p>
 
-<h2><a name="Sample9">Sample 9:</a></h2>
-<pre>&lt;!-- introduction dynamic sequences --&gt;
-&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
+<h2><a name="Sample9">Sample 9: Introduction to dynamic sequences with the
+Registry</a></h2>
+<pre>&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
     &lt;registry provider="org.apache.synapse.registry.url.SimpleURLRegistry"&gt;
         &lt;parameter name="root"&gt;file:./repository/conf/sample/resources/&lt;/parameter&gt;
         &lt;parameter name="cachableDuration"&gt;15000&lt;/parameter&gt;
@@ -872,13 +901,13 @@
 <p><strong>Objective: Introduction to dynamic sequences with a
 Registry</strong></p>
 
-<p><strong>Pre-Requisites:</strong><br>
+<p><strong>Prerequisites:</strong><br>
 Start the Synapse configuration numbered 9: i.e. synapse -sample 9<br>
 Start the Axis2 server and deploy the SimpleStockQuoteService if not already
 done</p>
 
 <p>This example introduces the dynamic behaviour of Synapse through the use
-of a Registry. Synapse supports dynamic definitions for sequences &amp;
+of a Registry. Synapse supports dynamic definitions for sequences and
 endpoints, and as seen before, for resources. In this example we define a
 Synapse configuration which references a sequence definition specified as a
 registry key. The registry key resolves to the actual content of the sequence
@@ -897,16 +926,16 @@
 ...
 [HttpServerWorker-1] INFO  LogMediator - message = *** Test Message 1 ***</pre>
 
-<p>Now if you execute the client immidiately (i.e. within 15 seconds of the
+<p>Now if you execute the client immediately (i.e. within 15 seconds of the
 last execution) you will notice that the sequence was not reloaded. If you
 edit the sequence definition in
-repository/conf/sample/resources/sequence/dynamic_seq_1.xml and edit the log
-message to read as "*** Test Message 2 ***" and execute the client again, you
-will notice that the new message is not yet visible (i.e. if you execute this
-within 15 seconds of loading the resource for the first time) However, after
-15 seconds have elapsed since the original caching of the sequence, you will
-notice that the new sequence is loaded and executed by Synapse from the
-following log messages:</p>
+repository/conf/sample/resources/sequence/dynamic_seq_1.xml (i.e. edit the
+log message to read as "*** Test Message 2 ***") and execute the client
+again, you will notice that the new message is not yet visible (i.e. if you
+execute this within 15 seconds of loading the resource for the first time)
+However, after 15 seconds elapsed since the original caching of the sequence,
+you will notice that the new sequence is loaded and executed by Synapse from
+the following log messages.</p>
 <pre>[HttpServerWorker-1] INFO  SimpleURLRegistry - ==&gt; Repository fetch of resource with key : sequence/dynamic_seq_1.xml
 ...
 [HttpServerWorker-1] DEBUG SequenceMediator - Sequence mediator &lt;dynamic_sequence&gt; :: mediate()
@@ -916,9 +945,9 @@
 <p>The cache timeout could be tuned appropriately by configuring the URL
 registry to suite the environment and the needs.</p>
 
-<h2><a name="Sample10">Sample 10:</a></h2>
-<pre>&lt;!-- introduction dynamic endpoints --&gt;
-&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
+<h2><a name="Sample10">Sample 10: Introduction to dynamic endpoints with the
+Registry</a></h2>
+<pre>&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
 
     &lt;registry provider="org.apache.synapse.registry.url.SimpleURLRegistry"&gt;
         &lt;parameter name="root"&gt;file:repository/conf/sample/resources/&lt;/parameter&gt;
@@ -938,7 +967,7 @@
 <p><strong>Objective: Introduction to dynamic endpoints with the
 Registry</strong></p>
 
-<p><strong>Pre-Requisites:</strong><br>
+<p><strong>Prerequisites:</strong><br>
 Start the Synapse configuration numbered 10: i.e. synapse -sample 10<br>
 Start the Axis2 server and deploy the SimpleStockQuoteService if not already
 done<br>
@@ -950,7 +979,7 @@
 endpoint is stored in the Registry. To follow this example execute the stock
 quote client as 'ant stockquote..' and see that the message is routed to the
 SimpleStockQuoteService on the default Axis2 instance on http port 9000.
-Repeat the above example immidiately again, and notice that the endpoint is
+Repeat the above example immediately again, and notice that the endpoint is
 cached and reused by Synapse - similarly to example # 8.</p>
 <pre>ant stockquote -Dtrpurl=http://localhost:8080/</pre>
 
@@ -961,9 +990,9 @@
 messages can be seen being routed to the second sample Axis2 server on http
 port 9001.</p>
 
-<h2><a name="Sample11">Sample 11:</a></h2>
-<pre>&lt;!-- a full registry based configuration --&gt;
-&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
+<h2><a name="Sample11">Sample 11: A full registry based configuration, and
+sharing a configuration between multiple instances</a></h2>
+<pre>&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
     &lt;registry provider="org.apache.synapse.registry.url.SimpleURLRegistry"&gt;
         &lt;parameter name="root"&gt;file:./repository/conf/sample/resources/&lt;/parameter&gt;
         &lt;parameter name="cachableDuration"&gt;15000&lt;/parameter&gt;
@@ -972,17 +1001,19 @@
 
 <p><strong>Objective: A full registry based configuration</strong></p>
 
-<p><strong>Pre-Requisites:</strong><br>
+<p><strong>Prerequisites:</strong><br>
 Start the Synapse configuration numbered 11: i.e. synapse -sample 11<br>
 Start the Axis2 server and deploy the SimpleStockQuoteService if not already
 done</p>
 
 <p>This example shows a full registry based Synapse configuration. Thus it is
 possible to start a remote configuration from multiple instances of Synapse
-in a clustered environment easily, and allow the configuration to be reloaded
-as well. The Synapse configuration held on a node hosting Synapse simply
-points to the registry and looks up the actual configuration by requesting
-the key ''synapse.xml'. </p>
+in a clustered environment easily. The Synapse configuration held on a node
+hosting Synapse simply points to the registry and looks up the actual
+configuration by requesting the key 'synapse.xml'. </p>
+
+<p>(Note: Full registry based configuration is not dynamic atleast for the
+moment. i.e. it is not reloading itself) </p>
 <pre>ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8080/</pre>
 <pre>[HttpServerWorker-1] INFO LogMediator - message = This is a dynamic Synapse configuration</pre>
 
@@ -995,108 +1026,77 @@
     &lt;send/&gt;
 &lt;/definitions&gt;</pre>
 
-<p></p>
+<h2><a name="Sample12">Sample 12: One way messaging / fireAndForget through
+synapse</a></h2>
 
-<h1><a name="Endpoints">Endpoints</a></h1>
+<p><strong>Objective: Demonstrate one way messaging / fireAndForget through
+synapse</strong></p>
 
-<h2><a name="Sample50">Sample 50:</a></h2>
-<pre>&lt;!-- Connecting to endpoints with WS-Security for outgoing messages --&gt;
-&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
-    &lt;localEntry key="sec_policy" src="file:repository/conf/sample/resources/policy/policy_3.xml"/&gt;
+<p><strong>Prerequisites:</strong><br>
+Start the Axis2 server and deploy the SimpleStockQuoteService (Refer steps
+above)<br>
+Start the Synapse configuration numbered 1: i.e. synapse -sample 1</p>
 
-    &lt;in&gt;
+<p>This example invokes the one-way 'placeOrder' operation on the
+SimpleStockQuoteService using the custom client which uses the Axis2
+ServiceClient.fireAndForget() API. To test this, use 'ant
+-Dmode=placeorder...' and you will notice the one way message flowing through
+Synapse into the sample Axis2 server instance, which reports the acceptance
+of the order as follows:</p>
+<pre>ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8080/ -Dmode=placeorder</pre>
+<pre>SimpleStockQuoteService :: Accepted order for : 7482 stocks of IBM at $ 169.27205579038733</pre>
+
+<p>If you send your client request through TCPmon, you will notice that the
+SimpleStockQuoteService replies to Synapse with a HTTP 202 reply, and that
+Synapse in-turn replies to the client with a HTTP 202 acknowledgement</p>
+
+<h1><a name="Endpoints">Advanced mediations with endpoints</a></h1>
+
+<h2><a name="Sample50">Sample 50: POX to SOAP conversion</a></h2>
+<pre>&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
+    &lt;!-- filtering of messages with XPath and regex matches --&gt;
+    &lt;filter source="get-property('To')" regex=".*/StockQuote.*"&gt;
         &lt;send&gt;
-            &lt;endpoint name="secure"&gt;
-                &lt;address uri="http://localhost:9000/soap/SecureStockQuoteService"&gt;
-                    &lt;enableSec policy="sec_policy"/&gt;
-                    &lt;enableAddressing/&gt;
-                &lt;/address&gt;
+            &lt;endpoint&gt;
+                &lt;address uri="http://localhost:9000/soap/SimpleStockQuoteService" format="soap11"/&gt;
             &lt;/endpoint&gt;
         &lt;/send&gt;
-    &lt;/in&gt;
-    &lt;out&gt;
-        &lt;header name="wsse:Security" action="remove"
-                xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"/&gt;
-        &lt;send/&gt;
-    &lt;/out&gt;
-&lt;/definitions&gt;</pre>
-
-<p><strong>Objective: Connecting to endpoints with WS-Security for outgoing
-messages</strong></p>
-
-<p><strong>Pre-Requisites:</strong><br>
-</p>
+        &lt;drop/&gt;
+    &lt;/filter&gt;
+    &lt;send/&gt;
+&lt;/definitions&gt; </pre>
 
-<p>You may also need to download and install the unlimited strength policy
-files for your JDK before using Apache Rampart (e.g. see
-http://java.sun.com/javase/downloads/index_jdk5.jsp)</p>
+<p><strong>Objective: POX to SOAP conversion</strong></p>
 
-<p>Start the Synapse configuration numbered 50: i.e. synapse -sample 50<br>
-Start the Axis2 server and deploy the SecureStockQuoteService if not already
-done</p>
+<p><strong>Prerequisites:</strong><br>
+Start the Synapse configuration numbered 50: i.e. synapse -sample 50</p>
 
-<p></p>
+<p>Start the Axis2 server and deploy the SimpleStockQuoteService if not
+already done</p>
 
-<p>Use the stock quote client to send a request without WS-Security. Synapse
-is configured to enable WS-Security as per the policy specified by
-'policy_3.xml' for the outgoing messages to the SecureStockQuoteService
-endpoint hosted on the Axis2 instance. The debug log messages on Synapse
-shows the encrypted message flowing to the service and the encrypted response
-being received by Synapse. The wsse:Security header is then removed from the
-decrypted message and the response is delivered back to the client, as
-expected. You may execute the client as follows:</p>
-<pre>ant stockquote -Dtrpurl=http://localhost:8080/</pre>
+<p>Execute the 'ant stockquote' specifying that the request should be a REST
+request as follows:</p>
+<pre>ant stockquote -Dtrpurl=http://localhost:8080/soap/StockQuote -Drest=true</pre>
 
-<p>The message sent by Synapse to the secure service can be seen as follows,
-when TCPMon is used.</p>
-<pre>POST http://localhost:9001/soap/SecureStockQuoteService HTTP/1.1
-Host: 127.0.0.1
+<p>This example shows a http REST request (as shown below) being transformed
+into a SOAP request and forwarded to the stock quote service. </p>
+<pre>POST /soap/StockQuote HTTP/1.1
+Content-Type: application/xml; charset=UTF-8;action="urn:getQuote";
 SOAPAction: urn:getQuote
-Content-Type: text/xml; charset=UTF-8
+User-Agent: Axis2
+Host: 127.0.0.1
 Transfer-Encoding: chunked
-Connection: Keep-Alive
-User-Agent: Synapse-HttpComponents-NIO
 
-800
-&lt;?xml version='1.0' encoding='UTF-8'?&gt;
-   &lt;soapenv:Envelope xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsa="http://www.w3.org/2005/08/addressing" ..&gt;
-      &lt;soapenv:Header&gt;
-         &lt;wsse:Security ..&gt;
-            &lt;wsu:Timestamp ..&gt;
-               ...
-            &lt;/wsu:Timestamp&gt;
-            &lt;xenc:EncryptedKey..&gt;
-               ...
-            &lt;/xenc:EncryptedKey&gt;
-            &lt;wsse:BinarySecurityToken ...&gt;
-               &lt;ds:SignedInfo&gt;
-               ...
-               &lt;/ds:SignedInfo&gt;
-               &lt;ds:SignatureValue&gt;
-               ...
-               &lt;/ds:SignatureValue&gt;
-               &lt;ds:KeyInfo Id="KeyId-29551621"&gt;
-                  ...
-               &lt;/ds:KeyInfo&gt;
-            &lt;/ds:Signature&gt;
-         &lt;/wsse:Security&gt;
-         &lt;wsa:To&gt;http://localhost:9001/soap/SecureStockQuoteService&lt;/wsa:To&gt;
-         &lt;wsa:MessageID&gt;urn:uuid:1C4CE88B8A1A9C09D91177500753443&lt;/wsa:MessageID&gt;
-         &lt;wsa:Action&gt;urn:getQuote&lt;/wsa:Action&gt;
-      &lt;/soapenv:Header&gt;
-      &lt;soapenv:Body xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Id-3789605"&gt;
-         &lt;xenc:EncryptedData Id="EncDataId-3789605" Type="http://www.w3.org/2001/04/xmlenc#Content"&gt;
-            &lt;xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-cbc" /&gt;
-            &lt;xenc:CipherData&gt;
-                &lt;xenc:CipherValue&gt;Layg0xQcnH....6UKm5nKU6Qqr&lt;/xenc:CipherValue&gt;
-            &lt;/xenc:CipherData&gt;
-         &lt;/xenc:EncryptedData&gt;
-      &lt;/soapenv:Body&gt;
-   &lt;/soapenv:Envelope&gt;0</pre>
+75
+&lt;m0:getQuote xmlns:m0="http://services.samples/xsd"&gt;
+   &lt;m0:request&gt;
+      &lt;m0:symbol&gt;IBM&lt;/m0:symbol&gt;
+   &lt;/m0:request&gt;
+&lt;/m0:getQuote&gt;0</pre>
 
-<h2><a name="Sample51">Sample 51:</a></h2>
-<pre>&lt;!-- MTOM and SwA and message properties to correlate requests and responses --&gt;
-&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
+<h2><a name="Sample51">Sample 51: MTOM and SwA optimizations and
+request/response correlation</a></h2>
+<pre>&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
     &lt;in&gt;
         &lt;filter source="get-property('Action')" regex="urn:uploadFileUsingMTOM"&gt;
             &lt;property name="example" value="mtom"/&gt;
@@ -1129,7 +1129,7 @@
 <p><strong>Objective: MTOM and SwA optimizations and request/response
 correlation</strong></p>
 
-<p><strong>Pre-Requisites:</strong><br>
+<p><strong>Prerequisites:</strong><br>
 Start the Synapse configuration numbered 51: i.e. synapse -sample 51<br>
 Start the Axis2 server and deploy the MTOMSwASampleService if not already
 done</p>
@@ -1140,7 +1140,7 @@
 
 <p>The configuration now sets a local message context property, and forwards
 the message to 'http://localhost:9000/soap/MTOMSwASampleService' optimizing
-bindary content as MTOM. By sending this message through TCPMon you would be
+binary content as MTOM. By sending this message through TCPMon you would be
 able to see the actual message sent over the http transport if required. Thus
 during response processing, by checking the local message property Synapse
 could identify the past information about the current message context, and
@@ -1222,303 +1222,76 @@
 Content-ID:
          &lt;urn:uuid:15FD2DA2584A32BF7C1177414169826&gt;22800GIF89a... &lt;&lt; binary content &gt;&gt;</pre>
 
-<h2><a name="Sample52">Sample 52:</a></h2>
-<pre>&lt;!-- POX to SOAP conversion --&gt;
-&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
-    &lt;!-- filtering of messages with XPath and regex matches --&gt;
-    &lt;filter source="get-property('To')" regex=".*/StockQuote.*"&gt;
-        &lt;send&gt;
-            &lt;endpoint&gt;
-                &lt;address uri="http://localhost:9000/soap/SimpleStockQuoteService" format="soap11"/&gt;
-            &lt;/endpoint&gt;
-        &lt;/send&gt;
-        &lt;drop/&gt;
-    &lt;/filter&gt;
-    &lt;send/&gt;
-&lt;/definitions&gt; </pre>
-
-<p><strong>Objective: POX to SOAP conversion</strong></p>
-
-<p><strong>Pre-Requisites:</strong><br>
-Start the Synapse configuration numbered 52: i.e. synapse -sample 52\</p>
+<h2><a name="Sample52">Sample 52: Session less load balancing between 3
+endpoints</a></h2>
+<pre>&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
 
-<p>Start the Axis2 server and deploy the SimpleStockQuoteService if not
-already done</p>
+    &lt;sequence name="main" onError="errorHandler"&gt;
+        &lt;in&gt;
+            &lt;send&gt;
+                &lt;endpoint&gt;
+                    &lt;loadbalance&gt;
+                        &lt;endpoint&gt;
+                            &lt;address uri="http://localhost:9001/soap/LBService1"&gt;
+                                &lt;enableAddressing/&gt;
+                                &lt;suspendDurationOnFailure&gt;60&lt;/suspendDurationOnFailure&gt;
+                            &lt;/address&gt;
+                        &lt;/endpoint&gt;
+                        &lt;endpoint&gt;
+                            &lt;address uri="http://localhost:9002/soap/LBService1"&gt;
+                                &lt;enableAddressing/&gt;
+                                &lt;suspendDurationOnFailure&gt;60&lt;/suspendDurationOnFailure&gt;
+                            &lt;/address&gt;
+                        &lt;/endpoint&gt;
+                        &lt;endpoint&gt;
+                            &lt;address uri="http://localhost:9003/soap/LBService1"&gt;
+                                &lt;enableAddressing/&gt;
+                                &lt;suspendDurationOnFailure&gt;60&lt;/suspendDurationOnFailure&gt;
+                            &lt;/address&gt;
+                        &lt;/endpoint&gt;
+                    &lt;/loadbalance&gt;
+                &lt;/endpoint&gt;
+            &lt;/send&gt;
+        &lt;/in&gt;
 
-<p>Execute the 'ant stockquote' specifying that the request should be a REST
-request as follows:</p>
-<pre>ant stockquote -Dtrpurl=http://localhost:8081/soap/StockQuote -Drest=true</pre>
+        &lt;out&gt;
+            &lt;!-- Send the messages where they have been sent (i.e. implicit To EPR) --&gt;
+            &lt;send/&gt;
+        &lt;/out&gt;
+    &lt;/sequence&gt;
 
-<p>This example shows a http REST request (as shown below) being transformed
-into a SOAP request and forwarded to the stock quote service. </p>
-<pre>POST /soap/StockQuote HTTP/1.1
-Content-Type: application/xml; charset=UTF-8;action="urn:getQuote";
-SOAPAction: urn:getQuote
-User-Agent: Axis2
-Host: 127.0.0.1
-Transfer-Encoding: chunked
+    &lt;sequence name="errorHandler"&gt;
 
-75
-&lt;m0:getQuote xmlns:m0="http://services.samples/xsd"&gt;
-   &lt;m0:request&gt;
-      &lt;m0:symbol&gt;IBM&lt;/m0:symbol&gt;
-   &lt;/m0:request&gt;
-&lt;/m0:getQuote&gt;0</pre>
+        &lt;makefault&gt;
+            &lt;code value="tns:Receiver" xmlns:tns="http://www.w3.org/2003/05/soap-envelope"/&gt;
+            &lt;reason value="COULDN'T SEND THE MESSAGE TO THE SERVER."/&gt;
+        &lt;/makefault&gt;
 
-<h2><a name="Sample53">Sample 53:</a></h2>
-<pre>&lt;!-- RMSequence example --&gt;
-&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
+        &lt;header name="To" action="remove"/&gt;
+        &lt;property name="RESPONSE" value="true"/&gt;
 
-    &lt;in&gt;
-        &lt;RMSequence single="true" version="1.0"/&gt;
-        &lt;send&gt;
-           &lt;endpoint name="reliable"&gt;
-              &lt;address uri="http://localhost:9000/soap/ReliableStockQuoteService"&gt;
-                 &lt;enableRM/&gt;
-                 &lt;enableAddressing/&gt;
-              &lt;/address&gt;
-           &lt;/endpoint&gt;
-        &lt;/send&gt;
-    &lt;/in&gt;
-    &lt;out&gt;
-        &lt;header name="wsrm:SequenceAcknowledgement" action="remove"
-                xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"/&gt;
-        &lt;header name="wsrm:Sequence" action="remove"
-                xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"/&gt;
         &lt;send/&gt;
-    &lt;/out&gt;
+    &lt;/sequence&gt;
 
 &lt;/definitions&gt;</pre>
-<strong>Objective: Demonstrate the message exchange between Synapse and the
-server using WS-ReliableMessaging (WS-RM)</strong> 
 
-<p><strong>Pre-Requisites:</strong></p>
+<p><strong>Objective: Demonstrate the simple load balancing among set of
+endpoints</strong></p>
 
-<p>Deploy the ReliableStockQuoteService in the sample Axis2 server by
-switching to the samples/axis2Server/src/ReliableStockQuoteService directory
-and running ant.</p>
+<p><strong>Prerequisites:</strong></p>
 
-<p>Start the sample Axis2 server on port 9000.</p>
+<p>Start Synapse with sample configuration 52. (i.e. synapse -sample 52)</p>
 
-<p>Start Synapse with the sample configuration 53 (i.e. synapse -sample
-53).</p>
+<p>Deploy the LoadbalanceFailoverService by switching to &lt;synapse
+installation directory&gt;/samples/axis2Server/src/LoadbalanceFailoverService
+directory and running ant.</p>
 
-<p></p>
+<p>Start three instances of sample Axis2 server on HTTP ports 9001, 9002 and
+9003 and give some unique names to each server.</p>
 
-<p>In the above configuration, WS-RM is engaged to the endpoint using the
-&lt;enableRM/&gt; tag. It is possible to engage WS-RM to both Address and
-WSDL endpoints using this tag. In addition to the RM enabled endpoint,
-RMSequence mediator is specified before the send mediator. This mediator is
-used to specify the set of messages to be sent using a single RM sequence. In
-this sample it is specified as single message per sequence. It also specifies
-the version of the WS-RM to be used. Refer to the Synapse configuration
-language documentation for more information about the RMSequence mediator. RM
-related SOAP headers are removed form the message in the out mediator as
-WS-RM message exchange happens only between the Synapse and the server. Now
-run the sample client using the following command.</p>
-<pre>ant stockquote -Dsymbol=IBM -Dmode=quote -Daddurl=http://localhost:8080</pre>
-
-<p>You can observer the client output displaying the quote price for IBM as
-follows:</p>
-<pre>[java] Standard :: Stock price = $189.2521262517493</pre>
-
-<p>There is no difference to be observed between the normal message exchange
-and WS-RM enabled message exchange as far as client and server outputs are
-considered. But if you look at the wire level messages, you would observe
-additional WS-RM messages and WS-RM elements. Synapse, the initiator of the
-RM sequence, first try to create a sequence by sending a message with
-CreateSequence element.</p>
-<pre>...
-&lt;soapenv:Body&gt;
-   &lt;wsrm:CreateSequence xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"&gt;
-      &lt;wsrm:AcksTo&gt;
-         &lt;wsa:Address&gt;http://www.w3.org/2005/08/addressing/anonymous&lt;/wsa:Address&gt;
-      &lt;/wsrm:AcksTo&gt;
-      &lt;wsrm:Offer&gt;
-         &lt;wsrm:Identifier&gt;urn:uuid:546F6F33FB7D8BBE351179807372769&lt;/wsrm:Identifier&gt;
-      &lt;/wsrm:Offer&gt;
-   &lt;/wsrm:CreateSequence&gt;
-&lt;/soapenv:Body&gt;
-...</pre>
-
-<p>Sample Axis2 server responds to CreateSequence request with the following
-message:</p>
-<pre>...
-&lt;soapenv:Body&gt;
-   &lt;wsrm:CreateSequenceResponse xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"&gt;
-      &lt;wsrm:Identifier&gt;urn:uuid:879853A6871A66641C1179807373270&lt;/wsrm:Identifier&gt;
-      &lt;wsrm:Accept&gt;
-         &lt;wsrm:AcksTo&gt;
-            &lt;wsa:Address&gt;http://localhost:9000/soap/ReliableStockQuoteService&lt;/wsa:Address&gt;
-         &lt;/wsrm:AcksTo&gt;
-      &lt;/wsrm:Accept&gt;
-   &lt;/wsrm:CreateSequenceResponse&gt;
-&lt;/soapenv:Body&gt;
-...</pre>
-
-<p>Once the sequence is established, Synapse sends the request to the server
-with the pre-negotiated sequence ID.</p>
-<pre>&lt;soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing"
-                  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&gt;
-    &lt;soapenv:Header&gt;
-        &lt;wsa:To&gt;http://localhost:9000/soap/ReliableStockQuoteService&lt;/wsa:To&gt;
-        &lt;wsa:MessageID&gt;urn:uuid:DB9A5257B637DDA38B1179807372560712002-1515891720&lt;/wsa:MessageID&gt;
-        &lt;wsa:Action&gt;urn:getQuote&lt;/wsa:Action&gt;
-        &lt;wsrm:Sequence xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"
-                       soapenv:mustUnderstand="1"&gt;
-            &lt;wsrm:Identifier&gt;urn:uuid:879853A6871A66641C1179807373270&lt;/wsrm:Identifier&gt;
-            &lt;wsrm:MessageNumber&gt;1&lt;/wsrm:MessageNumber&gt;
-            &lt;wsrm:LastMessage/&gt;
-        &lt;/wsrm:Sequence&gt;
-    &lt;/soapenv:Header&gt;
-    &lt;soapenv:Body&gt;
-        &lt;m0:getQuote xmlns:m0="http://services.samples/xsd"&gt;
-            &lt;m0:request&gt;
-                &lt;m0:symbol&gt;IBM&lt;/m0:symbol&gt;
-            &lt;/m0:request&gt;
-        &lt;/m0:getQuote&gt;
-    &lt;/soapenv:Body&gt;
-&lt;/soapenv:Envelope&gt;</pre>
-
-<p>Synapse keeps on sending above message till the server responds with a
-valid response message with 200 OK HTTP header. If the server is not ready
-with a response, it will respond with 202 Accepted HTTP header for all
-requests. Once the server is ready with a response it will send the response
-message with sequence ID as follows.</p>
-<pre>&lt;soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing"
-                  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&gt;
-    &lt;soapenv:Header&gt;
-        &lt;wsa:MessageID&gt;urn:uuid:879853A6871A66641C1179807373804&lt;/wsa:MessageID&gt;
-        &lt;wsa:Action&gt;http://services.samples/ReliableStockQuoteServicePortType/getQuoteResponse
-        &lt;/wsa:Action&gt;
-        &lt;wsa:RelatesTo&gt;urn:uuid:DB9A5257B637DDA38B1179807372560712002-1515891720&lt;/wsa:RelatesTo&gt;
-        &lt;wsrm:Sequence xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"
-                       soapenv:mustUnderstand="1"&gt;
-            &lt;wsrm:Identifier&gt;urn:uuid:546F6F33FB7D8BBE351179807372769&lt;/wsrm:Identifier&gt;
-            &lt;wsrm:MessageNumber&gt;1&lt;/wsrm:MessageNumber&gt;
-            &lt;wsrm:LastMessage/&gt;
-        &lt;/wsrm:Sequence&gt;
-        &lt;wsrm:SequenceAcknowledgement xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"
-                                      soapenv:mustUnderstand="1"&gt;
-            &lt;wsrm:Identifier&gt;urn:uuid:879853A6871A66641C1179807373270&lt;/wsrm:Identifier&gt;
-            &lt;wsrm:AcknowledgementRange Lower="1" Upper="1"/&gt;
-        &lt;/wsrm:SequenceAcknowledgement&gt;
-    &lt;/soapenv:Header&gt;
-    &lt;soapenv:Body&gt;
-        &lt;ns:getQuoteResponse xmlns:ns="http://services.samples/xsd"&gt;
-...</pre>
-
-<p>Now both Synapse and the server are done with the actual message exchange.
-Then Synapse sends a request to terminate the sequence as follows:</p>
-<pre>&lt;soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing"
-                  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&gt;
-    &lt;soapenv:Header&gt;
-        &lt;wsa:To&gt;http://localhost:9000/soap/ReliableStockQuoteService&lt;/wsa:To&gt;
-        &lt;wsa:MessageID&gt;urn:uuid:546F6F33FB7D8BBE351179807379591&lt;/wsa:MessageID&gt;
-        &lt;wsa:Action&gt;http://schemas.xmlsoap.org/ws/2005/02/rm/TerminateSequence&lt;/wsa:Action&gt;
-        &lt;wsrm:SequenceAcknowledgement xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"
-                                      soapenv:mustUnderstand="1"&gt;
-            &lt;wsrm:Identifier&gt;urn:uuid:546F6F33FB7D8BBE351179807372769&lt;/wsrm:Identifier&gt;
-            &lt;wsrm:AcknowledgementRange Lower="1" Upper="1"/&gt;
-        &lt;/wsrm:SequenceAcknowledgement&gt;
-    &lt;/soapenv:Header&gt;
-    &lt;soapenv:Body&gt;
-        &lt;wsrm:TerminateSequence xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"&gt;
-            &lt;wsrm:Identifier&gt;urn:uuid:879853A6871A66641C1179807373270&lt;/wsrm:Identifier&gt;
-        &lt;/wsrm:TerminateSequence&gt;
-    &lt;/soapenv:Body&gt;
-&lt;/soapenv:Envelope&gt;</pre>
-
-<p>Server responds to the sequence termination message, accepting to
-terminate the sequence as follows.</p>
-<pre>&lt;soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing"
-                  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&gt;
-    &lt;soapenv:Header&gt;
-        &lt;wsa:ReplyTo&gt;
-            &lt;wsa:Address&gt;http://localhost:9000/soap/ReliableStockQuoteService&lt;/wsa:Address&gt;
-        &lt;/wsa:ReplyTo&gt;
-        &lt;wsa:MessageID&gt;urn:uuid:879853A6871A66641C1179807380190&lt;/wsa:MessageID&gt;
-        &lt;wsa:Action&gt;http://schemas.xmlsoap.org/ws/2005/02/rm/TerminateSequence&lt;/wsa:Action&gt;
-    &lt;/soapenv:Header&gt;
-    &lt;soapenv:Body&gt;
-        &lt;wsrm:TerminateSequence xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"&gt;
-            &lt;wsrm:Identifier&gt;urn:uuid:546F6F33FB7D8BBE351179807372769&lt;/wsrm:Identifier&gt;
-        &lt;/wsrm:TerminateSequence&gt;
-    &lt;/soapenv:Body&gt;
-&lt;/soapenv:Envelope&gt;</pre>
-
-<p>Note that although each of above messages are separate SOAP messages, in
-most cases they will be exchanged in a single socket connection as HTTP
-Keep-Alive header is used.</p>
-
-<h2><a name="Sample54">Sample 54:</a></h2>
-<pre>&lt;!-- demonstrates simple session less load balancing between 3 endpoints --&gt;
-&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
-
-    &lt;sequence name="main" onError="errorHandler"&gt;
-        &lt;in&gt;
-            &lt;send&gt;
-                &lt;endpoint&gt;
-                    &lt;loadbalance&gt;
-                        &lt;endpoint&gt;
-                            &lt;address uri="http://localhost:9001/soap/LBService1"&gt;
-                                &lt;enableAddressing/&gt;
-                                &lt;suspendDurationOnFailure&gt;60&lt;/suspendDurationOnFailure&gt;
-                            &lt;/address&gt;
-                        &lt;/endpoint&gt;
-                        &lt;endpoint&gt;
-                            &lt;address uri="http://localhost:9002/soap/LBService1"&gt;
-                                &lt;enableAddressing/&gt;
-                                &lt;suspendDurationOnFailure&gt;60&lt;/suspendDurationOnFailure&gt;
-                            &lt;/address&gt;
-                        &lt;/endpoint&gt;
-                        &lt;endpoint&gt;
-                            &lt;address uri="http://localhost:9003/soap/LBService1"&gt;
-                                &lt;enableAddressing/&gt;
-                                &lt;suspendDurationOnFailure&gt;60&lt;/suspendDurationOnFailure&gt;
-                            &lt;/address&gt;
-                        &lt;/endpoint&gt;
-                    &lt;/loadbalance&gt;
-                &lt;/endpoint&gt;
-            &lt;/send&gt;
-        &lt;/in&gt;
-
-        &lt;out&gt;
-            &lt;!-- Send the messages where they have been sent (i.e. implicit To EPR) --&gt;
-            &lt;send/&gt;
-        &lt;/out&gt;
-    &lt;/sequence&gt;
-
-    &lt;sequence name="errorHandler"&gt;
-
-        &lt;makefault&gt;
-            &lt;code value="tns:Receiver" xmlns:tns="http://www.w3.org/2003/05/soap-envelope"/&gt;
-            &lt;reason value="COULDN'T SEND THE MESSAGE TO THE SERVER."/&gt;
-        &lt;/makefault&gt;
-
-        &lt;header name="To" action="remove"/&gt;
-        &lt;property name="RESPONSE" value="true"/&gt;
-
-        &lt;send/&gt;
-    &lt;/sequence&gt;
-
-&lt;/definitions&gt;</pre>
-
-<p><strong>Objective: Demonstrate the simple load balancing among set of
-endpoints</strong></p>
-
-<p><strong>Pre-Requisites:</strong></p>
-
-<p>Start Synapse with sample configuration 54. (i.e. synapse -sample 54)</p>
-
-<p>Deploy the LoadbalanceFailoverService by switching to &lt;synapse
-installation directory&gt;/samples/axis2Server/src/LoadbalanceFailoverService
-directory and running ant.</p>
-
-<p>Start three instances of sample Axis2 server on HTTP ports 9001, 9002 and
-9003 and give some unique names to each server.</p>
-
-<p>Example commands to run sample Axis2 servers from the &lt;synapse installation directory&gt;/samples/axis2Server directory in Linux are listed below:</p>
+<p>Example commands to run sample Axis2 servers from the &lt;synapse
+installation directory&gt;/samples/axis2Server directory in Linux are listed
+below:</p>
 <pre>./axis2server.sh -http 9001 -https 9005 -name MyServer1
 ./axis2server.sh -http 9002 -https 9006 -name MyServer2
 ./axis2server.sh -http 9003 -https 9007 -name MyServer3</pre>
@@ -1529,7 +1302,7 @@
 
 <p>This client sends 100 requests to the LoadbalanceFailoverService through
 Synapse. Synapse will distribute the load among the three endpoints mentioned
-in the configuration in round robin manner. LoadbalanceFailoverService
+in the configuration in round-robin manner. LoadbalanceFailoverService
 appends the name of the server to the response, so that client can determine
 which server has processed the message. If you examine the console output of
 the client, you can see that requests are processed by three servers as
@@ -1564,9 +1337,8 @@
 Therefore, load balance endpoint will suspend any failed child endpoint only
 for 60 seconds after detecting the failure. </p>
 
-<h2><a name="Sample55">Sample 55:</a></h2>
-<pre>&lt;!-- Demontrates failover sending among 3 endpoints. --&gt;
-&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
+<h2><a name="Sample53">Sample 53: Failover sending among 3 endpoints</a></h2>
+<pre>&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
 
     &lt;sequence name="main" onError="errorHandler"&gt;
         &lt;in&gt;
@@ -1619,12 +1391,12 @@
 
 <p><strong>Objective: Demonstrate the failover sending</strong></p>
 
-<p><strong>Pre-Requisites:</strong></p>
+<p><strong>Prerequisites:</strong></p>
 
-<p>Start Synapse with sample configuration 55 (i.e. synapse -sample 55)</p>
+<p>Start Synapse with sample configuration 53 (i.e. synapse -sample 53)</p>
 
 <p>Deploy the LoadbalanceFailoverService and start three instances of sample
-Axis2 server as mentioned in sample 54.</p>
+Axis2 server as mentioned in sample 52.</p>
 
 <p></p>
 
@@ -1655,19 +1427,18 @@
 <p>You can keep on shutting down servers like this. Client will get a
 response till you shutdown all listed servers. Once all servers are shutdown,
 the error sequence is activated and a fault message is sent to the client as
-follows:</p>
+follows.</p>
 <pre>[java] COULDN'T SEND THE MESSAGE TO THE SERVER.</pre>
 
 <p>Once a server is detected as failed, it will be added to the active
 servers list again after 60 seconds (specified in
 &lt;suspendDurationOnFailure&gt; in the configuration). Therefore, if you
-have restarted any of the stopped servers and shutdown all other servers,
-messages will be directed to the newly started server.</p>
+have restarted any of the stopped servers and have shutdown all other
+servers, messages will be directed to the newly started server.</p>
 
-<h2><a name="Sample56">Sample 56:</a></h2>
-<pre>&lt;!-- Demontrates session affinity load balancing between 3 endpoints. We are using client
- initiated session for this sample. --&gt;
-&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
+<h2><a name="Sample54">Sample 54: Session affinity load balancing between 3
+endpoints</a></h2>
+<pre>&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
 
     &lt;sequence name="main" onError="errorHandler"&gt;
         &lt;in&gt;
@@ -1722,17 +1493,17 @@
 <p><strong>Objective: Demonstrate the load balancing with session affinity
 using client initiated sessions</strong></p>
 
-<p><strong>Pre-Requisites:</strong></p>
+<p><strong>Prerequisites:</strong></p>
 
-<p>Start Synapse with sample configuration 56 (i.e. synapse -sample 56).</p>
+<p>Start Synapse with sample configuration 54 (i.e. synapse -sample 54).</p>
 
 <p>Deploy the LoadbalanceFailoverService and start three instances of the
-sample Axis2 server as in sample 54. </p>
+sample Axis2 server as in sample 52. </p>
 
 <p></p>
 
 <p>Above configuration is same as the load balancing configuration in sample
-54, except that the session type is specified as "simpleClientSession". This
+52, except that the session type is specified as "simpleClientSession". This
 is a client initiated session, which means that the client generates the
 session identifier and send it to with each request. In this sample session
 type, client adds a SOAP header named ClientID containing the identifier of
@@ -1759,13 +1530,12 @@
 ... </pre>
 
 <p>You can see that session number 0 is always directed to the server named
-MyServer1. That means session number 1 is bound to MyServer3. Similarly
+MyServer1. That means session number 0 is bound to MyServer1. Similarly
 session 1 and 2 are bound to MyServer3 and MyServer2 respectively. </p>
 
-<h2><a name="Sample57">Sample 57:</a></h2>
-<pre>&lt;!-- Demontrates the session affinity load balancing between fail over endpoints. If endpoint servers
-maintain session specific data, such data have to replicated among the failover endpoints. --&gt;
-&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
+<h2><a name="Sample55">Sample 55: Session affinity load balancing between
+fail over endpoints</a></h2>
+<pre>&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
 
     &lt;sequence name="main" onError="errorHandler"&gt;
         &lt;in&gt;
@@ -1833,9 +1603,9 @@
 <p><strong>Objective: Demonstrate the session affinity based load balancing
 with failover capability</strong></p>
 
-<p><strong>Pre-Requisites:</strong></p>
+<p><strong>Prerequisites:</strong></p>
 
-<p>Start Synapse with sample configuration 57 (i.e. synapse -sample 57).</p>
+<p>Start Synapse with sample configuration 55 (i.e. synapse -sample 55).</p>
 
 <p>Deploy the LoadbalanceFailoverService and start four sample Axis2 servers
 on http ports 9001, 9002, 9003 and 9004 respectively (make sure to specify
@@ -1888,9 +1658,8 @@
 [java] Request: 539 Session number: 0 Response from server: MyServer2
 ...</pre>
 
-<h2><a name="Sample60">Sample 60:</a></h2>
-<pre>&lt;!-- demonstrates wsdl endpoint --&gt;
-&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
+<h2><a name="Sample56">Sample 56: WSDL endpoint</a></h2>
+<pre>&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
 
     &lt;sequence name="main"&gt;
         &lt;in&gt;
@@ -1911,9 +1680,9 @@
 
 <p><strong>Objective: Demonstrate the use of WSDL endpoints</strong></p>
 
-<p><strong>Pre-Requisites:</strong></p>
+<p><strong>Prerequisites:</strong></p>
 
-<p>Start the Synapse configuration numbered 60 (i.e. synapse -sample 60).</p>
+<p>Start the Synapse configuration numbered 56 (i.e. synapse -sample 56).</p>
 
 <p>Deploy the SimpleStockQuoteService and start the sample Axis2 server.</p>
 
@@ -1937,45 +1706,328 @@
 
 <p>Specified service and port refers to the endpoint address
 "http://localhost:9000/soap/SimpleStockQuoteService" according to the above
-WSDL. Now run the client using the below command.</p>
+WSDL. Now run the client using the following command.</p>
 <pre>ant stockquote -Dsymbol=IBM -Dmode=quote -Daddurl=http://localhost:8080</pre>
 
 <p>Client will print the quote price for IBM received from the server running
 on port 9000. Observe the Axis2 console and the Synapse console to verify
-this behavoir.</p>
+this behavior.</p>
 
-<h1><a name="ProxyServices" id="ProxyServices">Proxy services</a></h1>
+<h1><a name="MessageMediationQoS">Quality of Service addition or deduction
+samples in message mediation</a></h1>
 
-<h2><a name="Sample100">Sample 100:</a></h2>
-<pre>&lt;!-- introduction to Synapse proxy services --&gt;
-&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
-    &lt;proxy name="StockQuoteProxy"&gt;
-        &lt;target&gt;
-            &lt;endpoint&gt;
-                &lt;address uri="http://localhost:9000/soap/SimpleStockQuoteService"/&gt;
+<h2><a name="Sample100">Sample 100: Using WS-Security for outgoing
+messages</a></h2>
+<pre>&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
+    &lt;localEntry key="sec_policy" src="file:repository/conf/sample/resources/policy/policy_3.xml"/&gt;
+
+    &lt;in&gt;
+        &lt;send&gt;
+            &lt;endpoint name="secure"&gt;
+                &lt;address uri="http://localhost:9000/soap/SecureStockQuoteService"&gt;
+                    &lt;enableSec policy="sec_policy"/&gt;
+                    &lt;enableAddressing/&gt;
+                &lt;/address&gt;
             &lt;/endpoint&gt;
-            &lt;outSequence&gt;
-                &lt;send/&gt;
-            &lt;/outSequence&gt;
-        &lt;/target&gt;
-        &lt;publishWSDL uri="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl"/&gt;
-    &lt;/proxy&gt;
+        &lt;/send&gt;
+    &lt;/in&gt;
+    &lt;out&gt;
+        &lt;header name="wsse:Security" action="remove"
+                xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"/&gt;
+        &lt;send/&gt;
+    &lt;/out&gt;
 &lt;/definitions&gt;</pre>
 
-<p><strong>Objective: Introduction to Synapse proxy services</strong></p>
+<p><strong>Objective: Connecting to endpoints with WS-Security for outgoing
+messages</strong></p>
 
-<p><strong>Pre-Requisites:</strong><br>
-Start the Synapse configuration numbered 100: i.e. synapse -sample 100<br>
-Start the Axis2 server and deploy the SimpleStockQuoteService if not already
+<p><strong>Prerequisites:</strong><br>
+</p>
+
+<p>You may also need to download and install the unlimited strength policy
+files for your JDK before using Apache Rampart (e.g. see
+http://java.sun.com/javase/downloads/index_jdk5.jsp)</p>
+
+<p>Start the Synapse configuration numbered 100: i.e. synapse -sample 100<br>
+Start the Axis2 server and deploy the SecureStockQuoteService if not already
 done</p>
 
 <p></p>
 
-<p>Once Synapse starts, you could go to
-http://localhost:8080/soap/StockQuoteProxy?wsdl and view the WSDL generated
-for the proxy service defined in the configuration. This WSDL is based on the
-source WSDL supplied in the proxy service definition, and is updated to
-reflect the proxy service EPR.</p>
+<p>Use the stock quote client to send a request without WS-Security. Synapse
+is configured to enable WS-Security as per the policy specified by
+'policy_3.xml' for the outgoing messages to the SecureStockQuoteService
+endpoint hosted on the Axis2 instance. The debug log messages on Synapse
+shows the encrypted message flowing to the service and the encrypted response
+being received by Synapse. The wsse:Security header is then removed from the
+decrypted message and the response is delivered back to the client, as
+expected. You may execute the client as follows:</p>
+<pre>ant stockquote -Dtrpurl=http://localhost:8080/</pre>
+
+<p>The message sent by Synapse to the secure service can be seen as follows,
+when TCPMon is used.</p>
+<pre>POST http://localhost:9001/soap/SecureStockQuoteService HTTP/1.1
+Host: 127.0.0.1
+SOAPAction: urn:getQuote
+Content-Type: text/xml; charset=UTF-8
+Transfer-Encoding: chunked
+Connection: Keep-Alive
+User-Agent: Synapse-HttpComponents-NIO
+
+800
+&lt;?xml version='1.0' encoding='UTF-8'?&gt;
+   &lt;soapenv:Envelope xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsa="http://www.w3.org/2005/08/addressing" ..&gt;
+      &lt;soapenv:Header&gt;
+         &lt;wsse:Security ..&gt;
+            &lt;wsu:Timestamp ..&gt;
+               ...
+            &lt;/wsu:Timestamp&gt;
+            &lt;xenc:EncryptedKey..&gt;
+               ...
+            &lt;/xenc:EncryptedKey&gt;
+            &lt;wsse:BinarySecurityToken ...&gt;
+               &lt;ds:SignedInfo&gt;
+               ...
+               &lt;/ds:SignedInfo&gt;
+               &lt;ds:SignatureValue&gt;
+               ...
+               &lt;/ds:SignatureValue&gt;
+               &lt;ds:KeyInfo Id="KeyId-29551621"&gt;
+                  ...
+               &lt;/ds:KeyInfo&gt;
+            &lt;/ds:Signature&gt;
+         &lt;/wsse:Security&gt;
+         &lt;wsa:To&gt;http://localhost:9001/soap/SecureStockQuoteService&lt;/wsa:To&gt;
+         &lt;wsa:MessageID&gt;urn:uuid:1C4CE88B8A1A9C09D91177500753443&lt;/wsa:MessageID&gt;
+         &lt;wsa:Action&gt;urn:getQuote&lt;/wsa:Action&gt;
+      &lt;/soapenv:Header&gt;
+      &lt;soapenv:Body xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Id-3789605"&gt;
+         &lt;xenc:EncryptedData Id="EncDataId-3789605" Type="http://www.w3.org/2001/04/xmlenc#Content"&gt;
+            &lt;xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-cbc" /&gt;
+            &lt;xenc:CipherData&gt;
+                &lt;xenc:CipherValue&gt;Layg0xQcnH....6UKm5nKU6Qqr&lt;/xenc:CipherValue&gt;
+            &lt;/xenc:CipherData&gt;
+         &lt;/xenc:EncryptedData&gt;
+      &lt;/soapenv:Body&gt;
+   &lt;/soapenv:Envelope&gt;0</pre>
+
+<h2><a name="Sample101">Sample 101: Reliable message exchange between Synapse
+and the back-end server using WS-ReliableMessaging</a></h2>
+<pre>&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
+
+    &lt;in&gt;
+        &lt;RMSequence single="true" version="1.0"/&gt;
+        &lt;send&gt;
+           &lt;endpoint name="reliable"&gt;
+              &lt;address uri="http://localhost:9000/soap/ReliableStockQuoteService"&gt;
+                 &lt;enableRM/&gt;
+                 &lt;enableAddressing/&gt;
+              &lt;/address&gt;
+           &lt;/endpoint&gt;
+        &lt;/send&gt;
+    &lt;/in&gt;
+    &lt;out&gt;
+        &lt;header name="wsrm:SequenceAcknowledgement" action="remove"
+                xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"/&gt;
+        &lt;header name="wsrm:Sequence" action="remove"
+                xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"/&gt;
+        &lt;send/&gt;
+    &lt;/out&gt;
+
+&lt;/definitions&gt;</pre>
+<strong>Objective: Demonstrate the message exchange between Synapse and the
+server using WS-ReliableMessaging (WS-RM)</strong> 
+
+<p><strong>Prerequisites:</strong></p>
+
+<p>Deploy the ReliableStockQuoteService in the sample Axis2 server by
+switching to the samples/axis2Server/src/ReliableStockQuoteService directory
+and running ant.</p>
+
+<p>Start the sample Axis2 server on port 9000.</p>
+
+<p>Start Synapse with the sample configuration 101 (i.e. synapse -sample
+101).</p>
+
+<p></p>
+
+<p>In the above configuration, WS-RM is engaged to the endpoint using the
+&lt;enableRM/&gt; tag. It is possible to engage WS-RM to both Address and
+WSDL endpoints using this tag. In addition to the RM enabled endpoint,
+RMSequence mediator is specified before the send mediator. This mediator is
+used to specify the set of messages to be sent using a single RM sequence. In
+this sample it is specified as single message per sequence. It also specifies
+the version of the WS-RM to be used. Refer to the Synapse configuration
+language documentation for more information about the RMSequence mediator. RM
+related SOAP headers are removed form the message in the out mediator as
+WS-RM message exchange happens only between the Synapse and the server. Now
+run the sample client using the following command.</p>
+<pre>ant stockquote -Dsymbol=IBM -Dmode=quote -Daddurl=http://localhost:8080</pre>
+
+<p>You can observer the client output displaying the quote price for IBM as
+follows:</p>
+<pre>[java] Standard :: Stock price = $189.2521262517493</pre>
+
+<p>There is no difference to be observed between the normal message exchange
+and WS-RM enabled message exchange as far as client and server outputs are
+considered. But if you look at the wire level messages, you would observe
+additional WS-RM messages and WS-RM elements. Synapse, the initiator of the
+RM sequence, first try to create a sequence by sending a message with
+CreateSequence element.</p>
+<pre>...
+&lt;soapenv:Body&gt;
+   &lt;wsrm:CreateSequence xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"&gt;
+      &lt;wsrm:AcksTo&gt;
+         &lt;wsa:Address&gt;http://www.w3.org/2005/08/addressing/anonymous&lt;/wsa:Address&gt;
+      &lt;/wsrm:AcksTo&gt;
+      &lt;wsrm:Offer&gt;
+         &lt;wsrm:Identifier&gt;urn:uuid:546F6F33FB7D8BBE351179807372769&lt;/wsrm:Identifier&gt;
+      &lt;/wsrm:Offer&gt;
+   &lt;/wsrm:CreateSequence&gt;
+&lt;/soapenv:Body&gt;
+...</pre>
+
+<p>Sample Axis2 server responds to CreateSequence request with the following
+message:</p>
+<pre>...
+&lt;soapenv:Body&gt;
+   &lt;wsrm:CreateSequenceResponse xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"&gt;
+      &lt;wsrm:Identifier&gt;urn:uuid:879853A6871A66641C1179807373270&lt;/wsrm:Identifier&gt;
+      &lt;wsrm:Accept&gt;
+         &lt;wsrm:AcksTo&gt;
+            &lt;wsa:Address&gt;http://localhost:9000/soap/ReliableStockQuoteService&lt;/wsa:Address&gt;
+         &lt;/wsrm:AcksTo&gt;
+      &lt;/wsrm:Accept&gt;
+   &lt;/wsrm:CreateSequenceResponse&gt;
+&lt;/soapenv:Body&gt;
+...</pre>
+
+<p>Once the sequence is established, Synapse sends the request to the server
+with the pre-negotiated sequence ID.</p>
+<pre>&lt;soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing"
+                  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&gt;
+    &lt;soapenv:Header&gt;
+        &lt;wsa:To&gt;http://localhost:9000/soap/ReliableStockQuoteService&lt;/wsa:To&gt;
+        &lt;wsa:MessageID&gt;urn:uuid:DB9A5257B637DDA38B1179807372560712002-1515891720&lt;/wsa:MessageID&gt;
+        &lt;wsa:Action&gt;urn:getQuote&lt;/wsa:Action&gt;
+        &lt;wsrm:Sequence xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"
+                       soapenv:mustUnderstand="1"&gt;
+            &lt;wsrm:Identifier&gt;urn:uuid:879853A6871A66641C1179807373270&lt;/wsrm:Identifier&gt;
+            &lt;wsrm:MessageNumber&gt;1&lt;/wsrm:MessageNumber&gt;
+            &lt;wsrm:LastMessage/&gt;
+        &lt;/wsrm:Sequence&gt;
+    &lt;/soapenv:Header&gt;
+    &lt;soapenv:Body&gt;
+        &lt;m0:getQuote xmlns:m0="http://services.samples/xsd"&gt;
+            &lt;m0:request&gt;
+                &lt;m0:symbol&gt;IBM&lt;/m0:symbol&gt;
+            &lt;/m0:request&gt;
+        &lt;/m0:getQuote&gt;
+    &lt;/soapenv:Body&gt;
+&lt;/soapenv:Envelope&gt;</pre>
+
+<p>Synapse keeps on sending above message till the server responds with a
+valid response message with 200 OK HTTP header. If the server is not ready
+with a response, it will respond with 202 Accepted HTTP header for all
+requests. Once the server is ready with a response it will send the response
+message with sequence ID as follows.</p>
+<pre>&lt;soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing"
+                  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&gt;
+    &lt;soapenv:Header&gt;
+        &lt;wsa:MessageID&gt;urn:uuid:879853A6871A66641C1179807373804&lt;/wsa:MessageID&gt;
+        &lt;wsa:Action&gt;http://services.samples/ReliableStockQuoteServicePortType/getQuoteResponse
+        &lt;/wsa:Action&gt;
+        &lt;wsa:RelatesTo&gt;urn:uuid:DB9A5257B637DDA38B1179807372560712002-1515891720&lt;/wsa:RelatesTo&gt;
+        &lt;wsrm:Sequence xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"
+                       soapenv:mustUnderstand="1"&gt;
+            &lt;wsrm:Identifier&gt;urn:uuid:546F6F33FB7D8BBE351179807372769&lt;/wsrm:Identifier&gt;
+            &lt;wsrm:MessageNumber&gt;1&lt;/wsrm:MessageNumber&gt;
+            &lt;wsrm:LastMessage/&gt;
+        &lt;/wsrm:Sequence&gt;
+        &lt;wsrm:SequenceAcknowledgement xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"
+                                      soapenv:mustUnderstand="1"&gt;
+            &lt;wsrm:Identifier&gt;urn:uuid:879853A6871A66641C1179807373270&lt;/wsrm:Identifier&gt;
+            &lt;wsrm:AcknowledgementRange Lower="1" Upper="1"/&gt;
+        &lt;/wsrm:SequenceAcknowledgement&gt;
+    &lt;/soapenv:Header&gt;
+    &lt;soapenv:Body&gt;

[... 2347 lines stripped ...]


---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org