Added: synapse/site/userguide/samples/sample62.html
URL: 
http://svn.apache.org/viewvc/synapse/site/userguide/samples/sample62.html?rev=1777276&view=auto
==============================================================================
--- synapse/site/userguide/samples/sample62.html (added)
+++ synapse/site/userguide/samples/sample62.html Wed Jan  4 10:30:06 2017
@@ -0,0 +1,425 @@
+<!DOCTYPE html>
+<!--
+ | Generated by Apache Maven Doxia at 2017-01-04 
+ | Rendered using Apache Maven Fluido Skin 1.4
+-->
+<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
+  <head>
+    <meta charset="UTF-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="Date-Revision-yyyymmdd" content="20170104" />
+    <meta http-equiv="Content-Language" content="en" />
+    <title>Apache Synapse - 
+        Apache Synapse - Sample 62</title>
+    <link rel="stylesheet" href="../../css/apache-maven-fluido-1.4.min.css" />
+    <link rel="stylesheet" href="../../css/site.css" />
+    <link rel="stylesheet" href="../../css/print.css" media="print" />
+
+      
+    <script type="text/javascript" 
src="../../js/apache-maven-fluido-1.4.min.js"></script>
+
+    
+                  </head>
+        <body class="topBarDisabled">
+          
+        
+    
+        <div class="container-fluid">
+          <div id="banner">
+        <div class="pull-left">
+                                <div id="bannerLeft">
+                <h2>Apache Synapse</h2>
+                </div>
+                      </div>
+        <div class="pull-right">  </div>
+        <div class="clear"><hr/></div>
+      </div>
+
+      <div id="breadcrumbs">
+        <ul class="breadcrumb">
+                
+                    
+                  <li id="publishDate">Last Published: 2017-01-04
+                      <span class="divider">|</span>
+                   </li>
+                  <li id="projectVersion">Version: 3.0.0
+                      </li>
+                      
+                
+                    
+      
+                            </ul>
+      </div>
+
+            
+      <div class="row-fluid">
+        <div id="leftColumn" class="span2">
+          <div class="well sidebar-nav">
+                
+                    
+                <ul class="nav nav-list">
+                    <li class="nav-header">Main Menu</li>
+                              
+      <li>
+  
+                          <a href="../../index.html" title="Home">
+          <span class="none"></span>
+        Home</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../download.html" title="Download">
+          <span class="none"></span>
+        Download</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../history.html" title="History">
+          <span class="none"></span>
+        History</a>
+            </li>
+                
+      <li>
+  
+                          <a href="http://www.apache.org/licenses/LICENSE-2.0"; 
class="externalLink" title="License">
+          <span class="none"></span>
+        License</a>
+            </li>
+                
+      <li>
+  
+                          <a 
href="http://www.apache.org/foundation/thanks.html"; class="externalLink" 
title="Thanks">
+          <span class="none"></span>
+        Thanks</a>
+            </li>
+                
+      <li>
+  
+                          <a 
href="http://www.apache.org/foundation/sponsorship.html"; class="externalLink" 
title="Sponsorship">
+          <span class="none"></span>
+        Sponsorship</a>
+            </li>
+                
+      <li>
+  
+                          <a href="http://www.apache.org/security/"; 
class="externalLink" title="Security">
+          <span class="none"></span>
+        Security</a>
+            </li>
+                              <li class="nav-header">Documentation</li>
+                              
+      <li>
+  
+                          <a href="../../userguide/installation.html" 
title="Installation Guide">
+          <span class="none"></span>
+        Installation Guide</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/quick_start.html" 
title="Quick Start Guide">
+          <span class="none"></span>
+        Quick Start Guide</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/samples/setup/index.html" 
title="Samples Setup Guide">
+          <span class="none"></span>
+        Samples Setup Guide</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/samples.html" 
title="Samples Catalog">
+          <span class="none"></span>
+        Samples Catalog</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/config.html" 
title="Configuration Language">
+          <span class="none"></span>
+        Configuration Language</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/mediators.html" 
title="Mediators Catalog">
+          <span class="none"></span>
+        Mediators Catalog</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/transports.html" 
title="Transports Catalog">
+          <span class="none"></span>
+        Transports Catalog</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/properties.html" 
title="Properties Catalog">
+          <span class="none"></span>
+        Properties Catalog</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/xpath.html" title="XPath 
functions and Variables">
+          <span class="none"></span>
+        XPath functions and Variables</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/extending.html" 
title="Extending Synapse">
+          <span class="none"></span>
+        Extending Synapse</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/template_library.html" 
title="Synapse Template Libraries">
+          <span class="none"></span>
+        Synapse Template Libraries</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/upgrading.html" 
title="Upgrading">
+          <span class="none"></span>
+        Upgrading</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/deployment.html" 
title="Deployment">
+          <span class="none"></span>
+        Deployment</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../apidocs/" title="Javadocs">
+          <span class="none"></span>
+        Javadocs</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/faq.html" title="FAQ">
+          <span class="none"></span>
+        FAQ</a>
+            </li>
+                              <li class="nav-header">Developer Resources</li>
+                              
+      <li>
+  
+                          <a href="../../dev/developer-guide.html" 
title="Developer Guide">
+          <span class="none"></span>
+        Developer Guide</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../dev/best-practices.html" 
title="Development Best Practices">
+          <span class="none"></span>
+        Development Best Practices</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../dev/release-process.html" 
title="Release Process">
+          <span class="none"></span>
+        Release Process</a>
+            </li>
+                              <li class="nav-header">Project Details</li>
+                              
+      <li>
+  
+                          <a href="../../project-info.html" title="Overview">
+          <span class="none"></span>
+        Overview</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../mail-lists.html" title="Mailing 
Lists">
+          <span class="none"></span>
+        Mailing Lists</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../source-repository.html" title="Source 
Repository">
+          <span class="none"></span>
+        Source Repository</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../issue-tracking.html" title="Issue 
Tracking">
+          <span class="none"></span>
+        Issue Tracking</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../dependency-management.html" 
title="Dependencies">
+          <span class="none"></span>
+        Dependencies</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../team-list.html" title="Project Team">
+          <span class="none"></span>
+        Project Team</a>
+            </li>
+            </ul>
+                
+                    
+                
+          <hr />
+
+           <div id="poweredBy">
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                             <a href="http://maven.apache.org/"; title="Built 
by Maven" class="poweredBy">
+        <img class="builtBy" alt="Built by Maven" 
src="../../images/logos/maven-feather.png" />
+      </a>
+                  </div>
+          </div>
+        </div>
+        
+                
+        <div id="bodyColumn"  class="span10" >
+                                  
+            <!-- ~  Licensed to the Apache Software Foundation (ASF) under one
+  ~  or more contributor license agreements.  See the NOTICE file
+  ~  distributed with this work for additional information
+  ~  regarding copyright ownership.  The ASF licenses this file
+  ~  to you under the Apache License, Version 2.0 (the
+  ~  "License"); you may not use this file except in compliance
+  ~  with the License.  You may obtain a copy of the License at
+  ~
+  ~   http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~  Unless required by applicable law or agreed to in writing,
+  ~  software distributed under the License is distributed on an
+  ~   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~  KIND, either express or implied.  See the License for the
+  ~  specific language governing permissions and limitations
+  ~  under the License. -->
+    
+        <div class="section">
+<h2>Sample 62: Routing message to dynamic recipients<a 
name="Sample_62:_Routing_message_to_dynamic_recipients"></a></h2>
+            
+<div class="xmlConf">&lt;definitions 
xmlns=&quot;http://ws.apache.org/ns/synapse&quot;&gt;
+   &lt;sequence name=&quot;errorHandler&quot;&gt;
+      &lt;makefault response=&quot;true&quot;&gt;
+         &lt;code 
xmlns:tns=&quot;http://www.w3.org/2003/05/soap-envelope&quot; 
value=&quot;tns:Receiver&quot; /&gt;
+         &lt;reason value=&quot;COULDN'T SEND THE MESSAGE TO THE SERVER.&quot; 
/&gt;
+      &lt;/makefault&gt;
+      &lt;send /&gt;
+   &lt;/sequence&gt;
+   &lt;sequence name=&quot;fault&quot;&gt;
+      &lt;log level=&quot;full&quot;&gt;
+         &lt;property name=&quot;MESSAGE&quot; value=&quot;Executing default 
&amp;quot;fault&amp;quot; sequence&quot; /&gt;
+         &lt;property name=&quot;ERROR_CODE&quot; 
expression=&quot;get-property('ERROR_CODE')&quot; /&gt;
+         &lt;property name=&quot;ERROR_MESSAGE&quot; 
expression=&quot;get-property('ERROR_MESSAGE')&quot; /&gt;
+      &lt;/log&gt;
+      &lt;drop /&gt;
+   &lt;/sequence&gt;
+   &lt;sequence name=&quot;main&quot; onError=&quot;errorHandler&quot;&gt;
+      &lt;in&gt;
+         &lt;property name=&quot;EP_LIST&quot; 
value=&quot;http://localhost:9001/services/SimpleStockQuoteService,http://localhost:9002/services/SimpleStockQuoteService,http://localhost:9003/services/SimpleStockQuoteService&quot;/&gt;
     
+         &lt;send&gt;
+            &lt;endpoint&gt;
+               &lt;recipientlist&gt;
+                  &lt;endpoints value=&quot;{get-property('EP_LIST')}&quot; 
max-cache=&quot;20&quot; /&gt;
+               &lt;/recipientlist&gt;
+            &lt;/endpoint&gt;
+         &lt;/send&gt;
+         &lt;drop/&gt;
+      &lt;/in&gt;
+      &lt;out&gt;
+        &lt;!--Aggregate responses--&gt;
+        &lt;aggregate&gt;
+           &lt;onComplete xmlns:m0=&quot;http://services.samples&quot;
+                          expression=&quot;//m0:getQuoteResponse&quot;&gt;
+             &lt;log level=&quot;full&quot;/&gt;
+             &lt;send/&gt;
+           &lt;/onComplete&gt;
+        &lt;/aggregate&gt;
+      &lt;/out&gt;
+   &lt;/sequence&gt;
+&lt;/definitions&gt;</div>
+            
+<div class="section">
+<h3>Objective<a name="Objective"></a></h3>
+                
+<p>
+                    Objective: Routing message to dynamic recipients
+                </p>
+            </div>
+            
+<div class="section">
+<h3>Pre-requisites<a name="Pre-requisites"></a></h3>
+                
+<p>
+                    </p>
+<ul>
+                        
+<li>Start ESB with sample configuration 62. (i.e. wso2esb-samples -sn 62) </li>
+
+                        
+<li>Start three instances of the sample Axis2 server on HTTP ports 9001, 9002 
and 9003 and give unique names to each server. For instructions on starting the 
Axis2 server, see  Starting the Axis2 server </li>
+
+                    </ul>
+                
+            </div>
+            
+<div class="section">
+<h3>Executing the Client<a name="Executing_the_Client"></a></h3>
+                
+<p>
+                    Invoke the sample client as follows
+                </p>
+                
+<div class="command">ant stockquote -Dtrpurl=http://localhost:8280/</div>
+                
+            </div>
+        </div>
+        
+<p>
+            <a href="../samples.html">Back to Catalog</a>
+        </p>
+    
+
+                  </div>
+            </div>
+          </div>
+
+    <hr/>
+
+    <footer>
+            <div class="container-fluid">
+                      <div class="row-fluid">
+                                      <p >Copyright &copy;                    
2005&#x2013;2017
+                        <a href="http://www.apache.org/";>Apache Software 
Foundation</a>.
+            All rights reserved.      
+                    
+      </p>
+                </div>
+
+        
+                </div>
+    </footer>
+        </body>
+</html>

Added: synapse/site/userguide/samples/sample703.html
URL: 
http://svn.apache.org/viewvc/synapse/site/userguide/samples/sample703.html?rev=1777276&view=auto
==============================================================================
--- synapse/site/userguide/samples/sample703.html (added)
+++ synapse/site/userguide/samples/sample703.html Wed Jan  4 10:30:06 2017
@@ -0,0 +1,471 @@
+<!DOCTYPE html>
+<!--
+ | Generated by Apache Maven Doxia at 2017-01-04 
+ | Rendered using Apache Maven Fluido Skin 1.4
+-->
+<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
+  <head>
+    <meta charset="UTF-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="Date-Revision-yyyymmdd" content="20170104" />
+    <meta http-equiv="Content-Language" content="en" />
+    <title>Apache Synapse - 
+        Apache Synapse - Sample 703</title>
+    <link rel="stylesheet" href="../../css/apache-maven-fluido-1.4.min.css" />
+    <link rel="stylesheet" href="../../css/site.css" />
+    <link rel="stylesheet" href="../../css/print.css" media="print" />
+
+      
+    <script type="text/javascript" 
src="../../js/apache-maven-fluido-1.4.min.js"></script>
+
+    
+                  </head>
+        <body class="topBarDisabled">
+          
+        
+    
+        <div class="container-fluid">
+          <div id="banner">
+        <div class="pull-left">
+                                <div id="bannerLeft">
+                <h2>Apache Synapse</h2>
+                </div>
+                      </div>
+        <div class="pull-right">  </div>
+        <div class="clear"><hr/></div>
+      </div>
+
+      <div id="breadcrumbs">
+        <ul class="breadcrumb">
+                
+                    
+                  <li id="publishDate">Last Published: 2017-01-04
+                      <span class="divider">|</span>
+                   </li>
+                  <li id="projectVersion">Version: 3.0.0
+                      </li>
+                      
+                
+                    
+      
+                            </ul>
+      </div>
+
+            
+      <div class="row-fluid">
+        <div id="leftColumn" class="span2">
+          <div class="well sidebar-nav">
+                
+                    
+                <ul class="nav nav-list">
+                    <li class="nav-header">Main Menu</li>
+                              
+      <li>
+  
+                          <a href="../../index.html" title="Home">
+          <span class="none"></span>
+        Home</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../download.html" title="Download">
+          <span class="none"></span>
+        Download</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../history.html" title="History">
+          <span class="none"></span>
+        History</a>
+            </li>
+                
+      <li>
+  
+                          <a href="http://www.apache.org/licenses/LICENSE-2.0"; 
class="externalLink" title="License">
+          <span class="none"></span>
+        License</a>
+            </li>
+                
+      <li>
+  
+                          <a 
href="http://www.apache.org/foundation/thanks.html"; class="externalLink" 
title="Thanks">
+          <span class="none"></span>
+        Thanks</a>
+            </li>
+                
+      <li>
+  
+                          <a 
href="http://www.apache.org/foundation/sponsorship.html"; class="externalLink" 
title="Sponsorship">
+          <span class="none"></span>
+        Sponsorship</a>
+            </li>
+                
+      <li>
+  
+                          <a href="http://www.apache.org/security/"; 
class="externalLink" title="Security">
+          <span class="none"></span>
+        Security</a>
+            </li>
+                              <li class="nav-header">Documentation</li>
+                              
+      <li>
+  
+                          <a href="../../userguide/installation.html" 
title="Installation Guide">
+          <span class="none"></span>
+        Installation Guide</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/quick_start.html" 
title="Quick Start Guide">
+          <span class="none"></span>
+        Quick Start Guide</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/samples/setup/index.html" 
title="Samples Setup Guide">
+          <span class="none"></span>
+        Samples Setup Guide</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/samples.html" 
title="Samples Catalog">
+          <span class="none"></span>
+        Samples Catalog</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/config.html" 
title="Configuration Language">
+          <span class="none"></span>
+        Configuration Language</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/mediators.html" 
title="Mediators Catalog">
+          <span class="none"></span>
+        Mediators Catalog</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/transports.html" 
title="Transports Catalog">
+          <span class="none"></span>
+        Transports Catalog</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/properties.html" 
title="Properties Catalog">
+          <span class="none"></span>
+        Properties Catalog</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/xpath.html" title="XPath 
functions and Variables">
+          <span class="none"></span>
+        XPath functions and Variables</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/extending.html" 
title="Extending Synapse">
+          <span class="none"></span>
+        Extending Synapse</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/template_library.html" 
title="Synapse Template Libraries">
+          <span class="none"></span>
+        Synapse Template Libraries</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/upgrading.html" 
title="Upgrading">
+          <span class="none"></span>
+        Upgrading</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/deployment.html" 
title="Deployment">
+          <span class="none"></span>
+        Deployment</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../apidocs/" title="Javadocs">
+          <span class="none"></span>
+        Javadocs</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/faq.html" title="FAQ">
+          <span class="none"></span>
+        FAQ</a>
+            </li>
+                              <li class="nav-header">Developer Resources</li>
+                              
+      <li>
+  
+                          <a href="../../dev/developer-guide.html" 
title="Developer Guide">
+          <span class="none"></span>
+        Developer Guide</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../dev/best-practices.html" 
title="Development Best Practices">
+          <span class="none"></span>
+        Development Best Practices</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../dev/release-process.html" 
title="Release Process">
+          <span class="none"></span>
+        Release Process</a>
+            </li>
+                              <li class="nav-header">Project Details</li>
+                              
+      <li>
+  
+                          <a href="../../project-info.html" title="Overview">
+          <span class="none"></span>
+        Overview</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../mail-lists.html" title="Mailing 
Lists">
+          <span class="none"></span>
+        Mailing Lists</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../source-repository.html" title="Source 
Repository">
+          <span class="none"></span>
+        Source Repository</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../issue-tracking.html" title="Issue 
Tracking">
+          <span class="none"></span>
+        Issue Tracking</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../dependency-management.html" 
title="Dependencies">
+          <span class="none"></span>
+        Dependencies</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../team-list.html" title="Project Team">
+          <span class="none"></span>
+        Project Team</a>
+            </li>
+            </ul>
+                
+                    
+                
+          <hr />
+
+           <div id="poweredBy">
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                             <a href="http://maven.apache.org/"; title="Built 
by Maven" class="poweredBy">
+        <img class="builtBy" alt="Built by Maven" 
src="../../images/logos/maven-feather.png" />
+      </a>
+                  </div>
+          </div>
+        </div>
+        
+                
+        <div id="bodyColumn"  class="span10" >
+                                  
+            <!-- ~  Licensed to the Apache Software Foundation (ASF) under one
+  ~  or more contributor license agreements.  See the NOTICE file
+  ~  distributed with this work for additional information
+  ~  regarding copyright ownership.  The ASF licenses this file
+  ~  to you under the Apache License, Version 2.0 (the
+  ~  "License"); you may not use this file except in compliance
+  ~  with the License.  You may obtain a copy of the License at
+  ~
+  ~   http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~  Unless required by applicable law or agreed to in writing,
+  ~  software distributed under the License is distributed on an
+  ~   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~  KIND, either express or implied.  See the License for the
+  ~  specific language governing permissions and limitations
+  ~  under the License. -->
+    
+        <div class="section">
+<h2>Sample 703: Introduction to Message Resequencing Processor<a 
name="Sample_703:_Introduction_to_Message_Resequencing_Processor"></a></h2>
+            
+<div class="xmlConf">&lt;definitions 
xmlns=&quot;http://ws.apache.org/ns/synapse&quot;&gt;
+
+    &lt;sequence name=&quot;next_seq&quot;&gt;
+      &lt;send&gt;
+                 &lt;endpoint&gt;
+                         &lt;address 
uri=&quot;http://localhost:9000/services/SimpleStockQuoteService&quot;&gt;
+                                 &lt;suspendOnFailure&gt;
+                                         
&lt;errorCodes&gt;-1&lt;/errorCodes&gt;
+                                         
&lt;progressionFactor&gt;1.0&lt;/progressionFactor&gt;
+                                 &lt;/suspendOnFailure&gt;
+                         &lt;/address&gt;
+                 &lt;/endpoint&gt;
+      &lt;/send&gt;
+    &lt;/sequence&gt;
+
+       &lt;sequence name=&quot;main&quot;&gt;
+        &lt;in&gt;
+                       &lt;log level=&quot;full&quot;/&gt;
+                       &lt;property name=&quot;FORCE_SC_ACCEPTED&quot; 
value=&quot;true&quot; scope=&quot;axis2&quot;/&gt;
+                       &lt;property name=&quot;OUT_ONLY&quot; 
value=&quot;true&quot;/&gt;
+                       &lt;store messageStore=&quot;MyStore&quot;/&gt;
+        &lt;/in&gt;
+               &lt;out&gt;
+                   &lt;send /&gt;
+               &lt;/out&gt;
+        &lt;description&gt;The main sequence for the message 
mediation&lt;/description&gt;
+       &lt;/sequence&gt;
+
+    &lt;messageStore name=&quot;MyStore&quot;/&gt;
+
+       &lt;messageProcessor 
+            
class=&quot;org.apache.synapse.message.processors.resequence.ResequencingProcessor&quot;
 
+            name=&quot;ResequencingProcessor&quot; 
messageStore=&quot;MyStore&quot;&gt; 
+
+               &lt;parameter 
name=&quot;interval&quot;&gt;10000&lt;/parameter&gt;
+               &lt;parameter name=&quot;seqNumXpath&quot; 
xmlns:m0=&quot;http://services.samples&quot; 
expression=&quot;substring-after(//m0:placeOrder/m0:order/m0:symbol,'-')&quot;/&gt;
+               &lt;parameter 
name=&quot;nextEsbSequence&quot;&gt;next_seq&lt;/parameter&gt; 
+
+       &lt;/messageProcessor&gt;
+
+&lt;/definitions&gt;</div>
+            
+<div class="section">
+<h3>Objective<a name="Objective"></a></h3>
+                
+<p>
+                    Introduction to Message Resequencing Processor
+                </p>
+            </div>
+            
+<div class="section">
+<h3>Pre-requisites<a name="Pre-requisites"></a></h3>
+                
+<p>
+                    </p>
+<ul>
+                        
+<li>
+                            Deploy the SimpleStockQuoteService in the sample 
Axis2 server and start Axis2
+                        </li>
+                        
+<li>
+                            Start Synapse using the configuration numbered 703 
(repository/conf/sample/synapse_sample_703.xml)
+                            
+<div class="command">
+                                Unix/Linux: sh synapse.sh -sample 703<br />
+                                Windows: synapse.bat -sample 703
+                            </div>
+                        </li>
+                    </ul>
+                
+            </div>
+            
+<div class="section">
+<h3>Executing the Client<a name="Executing_the_Client"></a></h3>
+                
+<p>
+                    Execute the Client with commands :
+                </p>
+                
+<div class="command">ant stockquote -Dtrpurl=http://localhost:8280/ 
-Dmode=placeorder -Dsymbol=WSO2-2<br />
+                                                                       ant 
stockquote -Dtrpurl=http://localhost:8280/ -Dmode=placeorder -Dsymbol=WSO2-3<br 
/>
+                                                                       ant 
stockquote -Dtrpurl=http://localhost:8280/ -Dmode=placeorder -Dsymbol=WSO2-1
+                </div>
+                               
+<p>
+                    You have to use different sequence numbers for WSO2-#. 
According to configuration 
+                                       sequence number should be seperated 
with a hyphen mark.
+                </p>
+                
+<p>
+                    When you execute the client the message will be dispatched 
to the main sequence.
+                    In the Main sequence store mediator will store the 
placeOrder request message in
+                    the 'MyStore' message store.
+                </p>
+                
+<p>
+                    Message Processor will consume the messages and forward to 
the 'next_seq' sequence
+                    according to sequence number order.
+                </p>
+                               
+<p>
+                    You will see that the Axis2 server has recieved the 
messages in sequence number order
+                </p>
+                
+<p>
+                    Following logic is used to decide the initial sequence 
number.
+                                       </p>
+<ol style="list-style-type: decimal">
+                                               
+<li>When starting Synapse Resequencing Processor checks the attached message 
store for any messages. 
+                                               If any messages found, select 
the minimum sequence number as the initial sequence number. Else continue 
without selecting initial sequence number.</li>
+                                               
+<li>If initial sequence number is selected at the start up, continue sending 
messages to the given sequence. 
+                                               Otherwise waits for required 
number of messages to come with in a certain timeout.</li>
+                                               
+<li>If the required number of messages are received, select initial sequence 
number from those and do further resequencing. 
+                                               If required number of messages 
are not received with in timeout, select the initial sequence number from 
available messages in the store.</li>
+                                       </ol>
+                
+            </div>
+        </div>
+        
+<p>
+            <a href="../samples.html">Back to Catalog</a>
+        </p>
+    
+
+                  </div>
+            </div>
+          </div>
+
+    <hr/>
+
+    <footer>
+            <div class="container-fluid">
+                      <div class="row-fluid">
+                                      <p >Copyright &copy;                    
2005&#x2013;2017
+                        <a href="http://www.apache.org/";>Apache Software 
Foundation</a>.
+            All rights reserved.      
+                    
+      </p>
+                </div>
+
+        
+                </div>
+    </footer>
+        </body>
+</html>

Added: synapse/site/userguide/samples/sample704.html
URL: 
http://svn.apache.org/viewvc/synapse/site/userguide/samples/sample704.html?rev=1777276&view=auto
==============================================================================
--- synapse/site/userguide/samples/sample704.html (added)
+++ synapse/site/userguide/samples/sample704.html Wed Jan  4 10:30:06 2017
@@ -0,0 +1,450 @@
+<!DOCTYPE html>
+<!--
+ | Generated by Apache Maven Doxia at 2017-01-04 
+ | Rendered using Apache Maven Fluido Skin 1.4
+-->
+<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
+  <head>
+    <meta charset="UTF-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="Date-Revision-yyyymmdd" content="20170104" />
+    <meta http-equiv="Content-Language" content="en" />
+    <title>Apache Synapse - 
+        Apache Synapse - Sample 704</title>
+    <link rel="stylesheet" href="../../css/apache-maven-fluido-1.4.min.css" />
+    <link rel="stylesheet" href="../../css/site.css" />
+    <link rel="stylesheet" href="../../css/print.css" media="print" />
+
+      
+    <script type="text/javascript" 
src="../../js/apache-maven-fluido-1.4.min.js"></script>
+
+    
+                  </head>
+        <body class="topBarDisabled">
+          
+        
+    
+        <div class="container-fluid">
+          <div id="banner">
+        <div class="pull-left">
+                                <div id="bannerLeft">
+                <h2>Apache Synapse</h2>
+                </div>
+                      </div>
+        <div class="pull-right">  </div>
+        <div class="clear"><hr/></div>
+      </div>
+
+      <div id="breadcrumbs">
+        <ul class="breadcrumb">
+                
+                    
+                  <li id="publishDate">Last Published: 2017-01-04
+                      <span class="divider">|</span>
+                   </li>
+                  <li id="projectVersion">Version: 3.0.0
+                      </li>
+                      
+                
+                    
+      
+                            </ul>
+      </div>
+
+            
+      <div class="row-fluid">
+        <div id="leftColumn" class="span2">
+          <div class="well sidebar-nav">
+                
+                    
+                <ul class="nav nav-list">
+                    <li class="nav-header">Main Menu</li>
+                              
+      <li>
+  
+                          <a href="../../index.html" title="Home">
+          <span class="none"></span>
+        Home</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../download.html" title="Download">
+          <span class="none"></span>
+        Download</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../history.html" title="History">
+          <span class="none"></span>
+        History</a>
+            </li>
+                
+      <li>
+  
+                          <a href="http://www.apache.org/licenses/LICENSE-2.0"; 
class="externalLink" title="License">
+          <span class="none"></span>
+        License</a>
+            </li>
+                
+      <li>
+  
+                          <a 
href="http://www.apache.org/foundation/thanks.html"; class="externalLink" 
title="Thanks">
+          <span class="none"></span>
+        Thanks</a>
+            </li>
+                
+      <li>
+  
+                          <a 
href="http://www.apache.org/foundation/sponsorship.html"; class="externalLink" 
title="Sponsorship">
+          <span class="none"></span>
+        Sponsorship</a>
+            </li>
+                
+      <li>
+  
+                          <a href="http://www.apache.org/security/"; 
class="externalLink" title="Security">
+          <span class="none"></span>
+        Security</a>
+            </li>
+                              <li class="nav-header">Documentation</li>
+                              
+      <li>
+  
+                          <a href="../../userguide/installation.html" 
title="Installation Guide">
+          <span class="none"></span>
+        Installation Guide</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/quick_start.html" 
title="Quick Start Guide">
+          <span class="none"></span>
+        Quick Start Guide</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/samples/setup/index.html" 
title="Samples Setup Guide">
+          <span class="none"></span>
+        Samples Setup Guide</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/samples.html" 
title="Samples Catalog">
+          <span class="none"></span>
+        Samples Catalog</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/config.html" 
title="Configuration Language">
+          <span class="none"></span>
+        Configuration Language</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/mediators.html" 
title="Mediators Catalog">
+          <span class="none"></span>
+        Mediators Catalog</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/transports.html" 
title="Transports Catalog">
+          <span class="none"></span>
+        Transports Catalog</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/properties.html" 
title="Properties Catalog">
+          <span class="none"></span>
+        Properties Catalog</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/xpath.html" title="XPath 
functions and Variables">
+          <span class="none"></span>
+        XPath functions and Variables</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/extending.html" 
title="Extending Synapse">
+          <span class="none"></span>
+        Extending Synapse</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/template_library.html" 
title="Synapse Template Libraries">
+          <span class="none"></span>
+        Synapse Template Libraries</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/upgrading.html" 
title="Upgrading">
+          <span class="none"></span>
+        Upgrading</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/deployment.html" 
title="Deployment">
+          <span class="none"></span>
+        Deployment</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../apidocs/" title="Javadocs">
+          <span class="none"></span>
+        Javadocs</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/faq.html" title="FAQ">
+          <span class="none"></span>
+        FAQ</a>
+            </li>
+                              <li class="nav-header">Developer Resources</li>
+                              
+      <li>
+  
+                          <a href="../../dev/developer-guide.html" 
title="Developer Guide">
+          <span class="none"></span>
+        Developer Guide</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../dev/best-practices.html" 
title="Development Best Practices">
+          <span class="none"></span>
+        Development Best Practices</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../dev/release-process.html" 
title="Release Process">
+          <span class="none"></span>
+        Release Process</a>
+            </li>
+                              <li class="nav-header">Project Details</li>
+                              
+      <li>
+  
+                          <a href="../../project-info.html" title="Overview">
+          <span class="none"></span>
+        Overview</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../mail-lists.html" title="Mailing 
Lists">
+          <span class="none"></span>
+        Mailing Lists</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../source-repository.html" title="Source 
Repository">
+          <span class="none"></span>
+        Source Repository</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../issue-tracking.html" title="Issue 
Tracking">
+          <span class="none"></span>
+        Issue Tracking</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../dependency-management.html" 
title="Dependencies">
+          <span class="none"></span>
+        Dependencies</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../team-list.html" title="Project Team">
+          <span class="none"></span>
+        Project Team</a>
+            </li>
+            </ul>
+                
+                    
+                
+          <hr />
+
+           <div id="poweredBy">
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                             <a href="http://maven.apache.org/"; title="Built 
by Maven" class="poweredBy">
+        <img class="builtBy" alt="Built by Maven" 
src="../../images/logos/maven-feather.png" />
+      </a>
+                  </div>
+          </div>
+        </div>
+        
+                
+        <div id="bodyColumn"  class="span10" >
+                                  
+            <!-- ~  Licensed to the Apache Software Foundation (ASF) under one
+  ~  or more contributor license agreements.  See the NOTICE file
+  ~  distributed with this work for additional information
+  ~  regarding copyright ownership.  The ASF licenses this file
+  ~  to you under the Apache License, Version 2.0 (the
+  ~  "License"); you may not use this file except in compliance
+  ~  with the License.  You may obtain a copy of the License at
+  ~
+  ~   http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~  Unless required by applicable law or agreed to in writing,
+  ~  software distributed under the License is distributed on an
+  ~   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~  KIND, either express or implied.  See the License for the
+  ~  specific language governing permissions and limitations
+  ~  under the License. -->
+    
+        <div class="section">
+<h2>Sample 704: Invoke Secured Services with Scheduled Message Forwarding 
Processor<a 
name="Sample_704:_Invoke_Secured_Services_with_Scheduled_Message_Forwarding_Processor"></a></h2>
+            
+<div class="xmlConf">&lt;!-- Invoke Secured Services with Scheduled Message 
Forwarding Processor --&gt;
+                &lt;definitions 
xmlns=&quot;http://ws.apache.org/ns/synapse&quot;&gt;
+                    &lt;localEntry key=&quot;sec_policy&quot; 
src=&quot;file:repository/conf/sample/resources/policy/policy_3.xml&quot;/&gt;
+                    &lt;endpoint 
name=&quot;SecuredStockQuoteServiceEp&quot;&gt;
+                        &lt;address 
uri=&quot;http://localhost:9000/services/SecureStockQuoteService&quot;&gt;
+                            &lt;suspendOnFailure&gt;
+                                &lt;errorCodes&gt;-1&lt;/errorCodes&gt;
+                                
&lt;progressionFactor&gt;1.0&lt;/progressionFactor&gt;
+                            &lt;/suspendOnFailure&gt;
+                            &lt;enableSec policy=&quot;sec_policy&quot;/&gt;
+                        &lt;/address&gt;
+                    &lt;/endpoint&gt;
+                    &lt;sequence name=&quot;fault&quot;&gt;
+                        &lt;log level=&quot;full&quot;&gt;
+                            &lt;property name=&quot;MESSAGE&quot; 
value=&quot;Executing default 'fault' sequence&quot;/&gt;
+                            &lt;property name=&quot;ERROR_CODE&quot; 
expression=&quot;get-property('ERROR_CODE')&quot;/&gt;
+                            &lt;property name=&quot;ERROR_MESSAGE&quot; 
expression=&quot;get-property('ERROR_MESSAGE')&quot;/&gt;
+                        &lt;/log&gt;
+                        &lt;drop/&gt;
+                    &lt;/sequence&gt;
+                    &lt;sequence name=&quot;main&quot;&gt;
+                        &lt;in&gt;
+                            &lt;log level=&quot;full&quot;/&gt;
+                            &lt;property name=&quot;FORCE_SC_ACCEPTED&quot; 
value=&quot;true&quot; scope=&quot;axis2&quot;/&gt;
+                            &lt;property name=&quot;OUT_ONLY&quot; 
value=&quot;true&quot;/&gt;
+                            &lt;property name=&quot;target.endpoint&quot; 
value=&quot;SecuredStockQuoteServiceEp&quot;/&gt;
+                            &lt;store messageStore=&quot;MyStore&quot;/&gt;
+                        &lt;/in&gt;
+                        &lt;description&gt;The main sequence for the message 
mediation&lt;/description&gt;
+                    &lt;/sequence&gt;
+                    &lt;messageStore name=&quot;MyStore&quot;/&gt;
+                    &lt;messageProcessor 
class=&quot;org.apache.synapse.message.processors.forward.ScheduledMessageForwardingProcessor&quot;
 name=&quot;ScheduledProcessor&quot; messageStore=&quot;MyStore&quot;&gt;
+                        &lt;parameter 
name=&quot;interval&quot;&gt;10000&lt;/parameter&gt;
+                    &lt;/messageProcessor&gt;
+                &lt;/definitions&gt;
+            </div>
+            
+<div class="section">
+<h3>Objective<a name="Objective"></a></h3>
+                
+<p>
+                    Invoke Secured Services with Scheduled Message Forwarding 
Processor
+                </p>
+            </div>
+            
+<div class="section">
+<h3>Pre-requisites<a name="Pre-requisites"></a></h3>
+                
+<p>
+                    </p>
+<ul>
+                        
+<li>
+                            Download and install the Java Cryptography 
Extension (JCE) unlimited
+                            strength policy files for your JDK
+                        </li>
+                        
+<li>
+                            Start Synapse using the configuration numbered 704 
(repository/conf/sample/synapse_sample_704.xml)
+                            
+<div class="command">
+                                Unix/Linux: sh synapse.sh -sample 704<br />
+                                Windows: synapse.bat -sample 704
+                            </div>
+                        </li>
+                    </ul>
+                
+            </div>
+            
+<div class="section">
+<h3>Executing the Client<a name="Executing_the_Client"></a></h3>
+                
+<p>
+                    Execute the sample client a few times with the following 
command. Note that
+                    we still haven't started the sample Axis2 server.
+                </p>
+                
+<div class="command">
+                    ant stockquote -Daddurl=http://localhost:8280/ 
-Dmode=placeorder
+                </div>
+
+                
+<p>
+                    Deploy the SecureStockQuoteService in the sample Axis2 
server and start Axis2.
+                </p>
+                
+<p>
+                    When you start the service you will see messages getting 
delivered to the service,
+                    even though the service was actually down when we invoked 
the sample client.
+                </p>
+                
+<p>
+                    Here in the 'main' sequence, store mediator will store the 
placeOrder request
+                    message in the 'MyStore' message store.
+                    Message processor will send the message to the secured 
backend service using the defined endpoint.
+                    Endpoint is configured to use WS-Security.
+                    Message processor will remove the message from the store 
only if the message is delivered
+                    successfully.
+                </p>
+            </div>
+        </div>
+        
+<p>
+            <a href="../samples.html">Back to Catalog</a>
+        </p>
+    
+
+                  </div>
+            </div>
+          </div>
+
+    <hr/>
+
+    <footer>
+            <div class="container-fluid">
+                      <div class="row-fluid">
+                                      <p >Copyright &copy;                    
2005&#x2013;2017
+                        <a href="http://www.apache.org/";>Apache Software 
Foundation</a>.
+            All rights reserved.      
+                    
+      </p>
+                </div>
+
+        
+                </div>
+    </footer>
+        </body>
+</html>

Added: synapse/site/userguide/samples/sample850.html
URL: 
http://svn.apache.org/viewvc/synapse/site/userguide/samples/sample850.html?rev=1777276&view=auto
==============================================================================
--- synapse/site/userguide/samples/sample850.html (added)
+++ synapse/site/userguide/samples/sample850.html Wed Jan  4 10:30:06 2017
@@ -0,0 +1,408 @@
+<!DOCTYPE html>
+<!--
+ | Generated by Apache Maven Doxia at 2017-01-04 
+ | Rendered using Apache Maven Fluido Skin 1.4
+-->
+<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
+  <head>
+    <meta charset="UTF-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="Date-Revision-yyyymmdd" content="20170104" />
+    <meta http-equiv="Content-Language" content="en" />
+    <title>Apache Synapse - 
+        Apache Synapse - Sample 850</title>
+    <link rel="stylesheet" href="../../css/apache-maven-fluido-1.4.min.css" />
+    <link rel="stylesheet" href="../../css/site.css" />
+    <link rel="stylesheet" href="../../css/print.css" media="print" />
+
+      
+    <script type="text/javascript" 
src="../../js/apache-maven-fluido-1.4.min.js"></script>
+
+    
+                  </head>
+        <body class="topBarDisabled">
+          
+        
+    
+        <div class="container-fluid">
+          <div id="banner">
+        <div class="pull-left">
+                                <div id="bannerLeft">
+                <h2>Apache Synapse</h2>
+                </div>
+                      </div>
+        <div class="pull-right">  </div>
+        <div class="clear"><hr/></div>
+      </div>
+
+      <div id="breadcrumbs">
+        <ul class="breadcrumb">
+                
+                    
+                  <li id="publishDate">Last Published: 2017-01-04
+                      <span class="divider">|</span>
+                   </li>
+                  <li id="projectVersion">Version: 3.0.0
+                      </li>
+                      
+                
+                    
+      
+                            </ul>
+      </div>
+
+            
+      <div class="row-fluid">
+        <div id="leftColumn" class="span2">
+          <div class="well sidebar-nav">
+                
+                    
+                <ul class="nav nav-list">
+                    <li class="nav-header">Main Menu</li>
+                              
+      <li>
+  
+                          <a href="../../index.html" title="Home">
+          <span class="none"></span>
+        Home</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../download.html" title="Download">
+          <span class="none"></span>
+        Download</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../history.html" title="History">
+          <span class="none"></span>
+        History</a>
+            </li>
+                
+      <li>
+  
+                          <a href="http://www.apache.org/licenses/LICENSE-2.0"; 
class="externalLink" title="License">
+          <span class="none"></span>
+        License</a>
+            </li>
+                
+      <li>
+  
+                          <a 
href="http://www.apache.org/foundation/thanks.html"; class="externalLink" 
title="Thanks">
+          <span class="none"></span>
+        Thanks</a>
+            </li>
+                
+      <li>
+  
+                          <a 
href="http://www.apache.org/foundation/sponsorship.html"; class="externalLink" 
title="Sponsorship">
+          <span class="none"></span>
+        Sponsorship</a>
+            </li>
+                
+      <li>
+  
+                          <a href="http://www.apache.org/security/"; 
class="externalLink" title="Security">
+          <span class="none"></span>
+        Security</a>
+            </li>
+                              <li class="nav-header">Documentation</li>
+                              
+      <li>
+  
+                          <a href="../../userguide/installation.html" 
title="Installation Guide">
+          <span class="none"></span>
+        Installation Guide</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/quick_start.html" 
title="Quick Start Guide">
+          <span class="none"></span>
+        Quick Start Guide</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/samples/setup/index.html" 
title="Samples Setup Guide">
+          <span class="none"></span>
+        Samples Setup Guide</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/samples.html" 
title="Samples Catalog">
+          <span class="none"></span>
+        Samples Catalog</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/config.html" 
title="Configuration Language">
+          <span class="none"></span>
+        Configuration Language</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/mediators.html" 
title="Mediators Catalog">
+          <span class="none"></span>
+        Mediators Catalog</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/transports.html" 
title="Transports Catalog">
+          <span class="none"></span>
+        Transports Catalog</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/properties.html" 
title="Properties Catalog">
+          <span class="none"></span>
+        Properties Catalog</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/xpath.html" title="XPath 
functions and Variables">
+          <span class="none"></span>
+        XPath functions and Variables</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/extending.html" 
title="Extending Synapse">
+          <span class="none"></span>
+        Extending Synapse</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/template_library.html" 
title="Synapse Template Libraries">
+          <span class="none"></span>
+        Synapse Template Libraries</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/upgrading.html" 
title="Upgrading">
+          <span class="none"></span>
+        Upgrading</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/deployment.html" 
title="Deployment">
+          <span class="none"></span>
+        Deployment</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../apidocs/" title="Javadocs">
+          <span class="none"></span>
+        Javadocs</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/faq.html" title="FAQ">
+          <span class="none"></span>
+        FAQ</a>
+            </li>
+                              <li class="nav-header">Developer Resources</li>
+                              
+      <li>
+  
+                          <a href="../../dev/developer-guide.html" 
title="Developer Guide">
+          <span class="none"></span>
+        Developer Guide</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../dev/best-practices.html" 
title="Development Best Practices">
+          <span class="none"></span>
+        Development Best Practices</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../dev/release-process.html" 
title="Release Process">
+          <span class="none"></span>
+        Release Process</a>
+            </li>
+                              <li class="nav-header">Project Details</li>
+                              
+      <li>
+  
+                          <a href="../../project-info.html" title="Overview">
+          <span class="none"></span>
+        Overview</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../mail-lists.html" title="Mailing 
Lists">
+          <span class="none"></span>
+        Mailing Lists</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../source-repository.html" title="Source 
Repository">
+          <span class="none"></span>
+        Source Repository</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../issue-tracking.html" title="Issue 
Tracking">
+          <span class="none"></span>
+        Issue Tracking</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../dependency-management.html" 
title="Dependencies">
+          <span class="none"></span>
+        Dependencies</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../team-list.html" title="Project Team">
+          <span class="none"></span>
+        Project Team</a>
+            </li>
+            </ul>
+                
+                    
+                
+          <hr />
+
+           <div id="poweredBy">
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                             <a href="http://maven.apache.org/"; title="Built 
by Maven" class="poweredBy">
+        <img class="builtBy" alt="Built by Maven" 
src="../../images/logos/maven-feather.png" />
+      </a>
+                  </div>
+          </div>
+        </div>
+        
+                
+        <div id="bodyColumn"  class="span10" >
+                                  
+            <!-- ~  Licensed to the Apache Software Foundation (ASF) under one
+  ~  or more contributor license agreements.  See the NOTICE file
+  ~  distributed with this work for additional information
+  ~  regarding copyright ownership.  The ASF licenses this file
+  ~  to you under the Apache License, Version 2.0 (the
+  ~  "License"); you may not use this file except in compliance
+  ~  with the License.  You may obtain a copy of the License at
+  ~
+  ~   http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~  Unless required by applicable law or agreed to in writing,
+  ~  software distributed under the License is distributed on an
+  ~   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~  KIND, either express or implied.  See the License for the
+  ~  specific language governing permissions and limitations
+  ~  under the License. -->
+    
+        <div class="section">
+<h2>Sample 850: Introduction to Synapse Callout Block function template<a 
name="Sample_850:_Introduction_to_Synapse_Callout_Block_function_template"></a></h2>
+            
+<div class="xmlConf">&lt;!-- Introduction to Synapse Callout Block function 
template --&gt;
+&lt;definitions xmlns=&quot;http://ws.apache.org/ns/synapse&quot;&gt;
+&lt;import xmlns=&quot;http://ws.apache.org/ns/synapse&quot; 
name=&quot;EipLibrary&quot; package=&quot;synapse.lang.eip&quot; /&gt;
+   &lt;sequence name=&quot;main&quot;&gt;
+    &lt;call-template target=&quot;synapse.lang.eip.callout_block&quot;&gt;
+        &lt;with-param name=&quot;action&quot; 
value=&quot;urn:getQuote&quot;/&gt;
+        &lt;with-param name=&quot;service_URL&quot; 
value=&quot;http://localhost:9000/services/SimpleStockQuoteService&quot;/&gt;
+        &lt;with-param 
xmlns:s11=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; 
xmlns:s12=&quot;http://www.w3.org/2003/05/soap-envelope&quot; 
name=&quot;source_xpath&quot; value=&quot;{{s11:Body/child::*[fn:position()=1] 
| s12:Body/child::*[fn:position()=1]}}&quot;/&gt;
+        &lt;with-param 
xmlns:s11=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; 
xmlns:s12=&quot;http://www.w3.org/2003/05/soap-envelope&quot; 
name=&quot;target_xpath&quot; value=&quot;{{s11:Body/child::*[fn:position()=1] 
| s12:Body/child::*[fn:position()=1]}}&quot;/&gt;
+    &lt;/call-template&gt;
+     &lt;respond/&gt;
+&lt;/sequence&gt;
+&lt;/definitions&gt;</div>
+            
+<div class="section">
+<h3>Objective<a name="Objective"></a></h3>
+                
+<p>
+This pattern is pretty much identical to the Routing slip pattern and this 
blocks external service invocation during mediation. And useful in scenarios 
such as service chaining. As default values are assigned to source and target 
xpaths, one can simply utilize this pattern by just defining serviceURL. This 
sample is an introduction to Synapse Callout Block function template. 
+                </p>
+            </div>
+            
+<div class="section">
+<h3>Pre-requisites<a name="Pre-requisites"></a></h3>
+                
+<p>
+                    </p>
+<ul>
+                        
+<li>
+                            Deploy the SimpleStockQuoteService in the sample 
Axis2 server and start Axis2
+                        </li>
+                        
+<li>
+                            Start Synapse using the configuration numbered 850 
(repository/conf/sample/synapse_sample_850.xml)
+                            
+<div class="command">
+                                Unix/Linux: sh synapse.sh -sample 850<br />
+                                Windows: synapse.bat -sample 850
+                            </div>
+                        </li>
+                    </ul>
+                
+            </div>
+            
+<div class="section">
+<h3>Executing the Client<a name="Executing_the_Client"></a></h3>
+
+<p>
+                    In this sample, the callout block pattern does a 
synchronized service invocation to the
+                    StockQuoteService using the client request, gets the 
response and then using the send mediator, the message
+                    is sent back to the client.
+                </p>
+                
+<p>
+                    Invoke the client as follows.
+                </p>
+                
+<div class="command">ant stockquote 
-Daddurl=http://localhost:9000/services/SimpleStockQuoteService 
-Dtrpurl=http://localhost:8280/</div>
+            </div>
+        </div>
+        
+<p><a href="../samples.html">Back to Catalog</a></p>        
+    
+
+                  </div>
+            </div>
+          </div>
+
+    <hr/>
+
+    <footer>
+            <div class="container-fluid">
+                      <div class="row-fluid">
+                                      <p >Copyright &copy;                    
2005&#x2013;2017
+                        <a href="http://www.apache.org/";>Apache Software 
Foundation</a>.
+            All rights reserved.      
+                    
+      </p>
+                </div>
+
+        
+                </div>
+    </footer>
+        </body>
+</html>

Added: synapse/site/userguide/samples/sample851.html
URL: 
http://svn.apache.org/viewvc/synapse/site/userguide/samples/sample851.html?rev=1777276&view=auto
==============================================================================
--- synapse/site/userguide/samples/sample851.html (added)
+++ synapse/site/userguide/samples/sample851.html Wed Jan  4 10:30:06 2017
@@ -0,0 +1,434 @@
+<!DOCTYPE html>
+<!--
+ | Generated by Apache Maven Doxia at 2017-01-04 
+ | Rendered using Apache Maven Fluido Skin 1.4
+-->
+<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
+  <head>
+    <meta charset="UTF-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="Date-Revision-yyyymmdd" content="20170104" />
+    <meta http-equiv="Content-Language" content="en" />
+    <title>Apache Synapse - 
+        Apache Synapse - Sample 851</title>
+    <link rel="stylesheet" href="../../css/apache-maven-fluido-1.4.min.css" />
+    <link rel="stylesheet" href="../../css/site.css" />
+    <link rel="stylesheet" href="../../css/print.css" media="print" />
+
+      
+    <script type="text/javascript" 
src="../../js/apache-maven-fluido-1.4.min.js"></script>
+
+    
+                  </head>
+        <body class="topBarDisabled">
+          
+        
+    
+        <div class="container-fluid">
+          <div id="banner">
+        <div class="pull-left">
+                                <div id="bannerLeft">
+                <h2>Apache Synapse</h2>
+                </div>
+                      </div>
+        <div class="pull-right">  </div>
+        <div class="clear"><hr/></div>
+      </div>
+
+      <div id="breadcrumbs">
+        <ul class="breadcrumb">
+                
+                    
+                  <li id="publishDate">Last Published: 2017-01-04
+                      <span class="divider">|</span>
+                   </li>
+                  <li id="projectVersion">Version: 3.0.0
+                      </li>
+                      
+                
+                    
+      
+                            </ul>
+      </div>
+
+            
+      <div class="row-fluid">
+        <div id="leftColumn" class="span2">
+          <div class="well sidebar-nav">
+                
+                    
+                <ul class="nav nav-list">
+                    <li class="nav-header">Main Menu</li>
+                              
+      <li>
+  
+                          <a href="../../index.html" title="Home">
+          <span class="none"></span>
+        Home</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../download.html" title="Download">
+          <span class="none"></span>
+        Download</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../history.html" title="History">
+          <span class="none"></span>
+        History</a>
+            </li>
+                
+      <li>
+  
+                          <a href="http://www.apache.org/licenses/LICENSE-2.0"; 
class="externalLink" title="License">
+          <span class="none"></span>
+        License</a>
+            </li>
+                
+      <li>
+  
+                          <a 
href="http://www.apache.org/foundation/thanks.html"; class="externalLink" 
title="Thanks">
+          <span class="none"></span>
+        Thanks</a>
+            </li>
+                
+      <li>
+  
+                          <a 
href="http://www.apache.org/foundation/sponsorship.html"; class="externalLink" 
title="Sponsorship">
+          <span class="none"></span>
+        Sponsorship</a>
+            </li>
+                
+      <li>
+  
+                          <a href="http://www.apache.org/security/"; 
class="externalLink" title="Security">
+          <span class="none"></span>
+        Security</a>
+            </li>
+                              <li class="nav-header">Documentation</li>
+                              
+      <li>
+  
+                          <a href="../../userguide/installation.html" 
title="Installation Guide">
+          <span class="none"></span>
+        Installation Guide</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/quick_start.html" 
title="Quick Start Guide">
+          <span class="none"></span>
+        Quick Start Guide</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/samples/setup/index.html" 
title="Samples Setup Guide">
+          <span class="none"></span>
+        Samples Setup Guide</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/samples.html" 
title="Samples Catalog">
+          <span class="none"></span>
+        Samples Catalog</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/config.html" 
title="Configuration Language">
+          <span class="none"></span>
+        Configuration Language</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/mediators.html" 
title="Mediators Catalog">
+          <span class="none"></span>
+        Mediators Catalog</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/transports.html" 
title="Transports Catalog">
+          <span class="none"></span>
+        Transports Catalog</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/properties.html" 
title="Properties Catalog">
+          <span class="none"></span>
+        Properties Catalog</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/xpath.html" title="XPath 
functions and Variables">
+          <span class="none"></span>
+        XPath functions and Variables</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/extending.html" 
title="Extending Synapse">
+          <span class="none"></span>
+        Extending Synapse</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/template_library.html" 
title="Synapse Template Libraries">
+          <span class="none"></span>
+        Synapse Template Libraries</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/upgrading.html" 
title="Upgrading">
+          <span class="none"></span>
+        Upgrading</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/deployment.html" 
title="Deployment">
+          <span class="none"></span>
+        Deployment</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../apidocs/" title="Javadocs">
+          <span class="none"></span>
+        Javadocs</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../userguide/faq.html" title="FAQ">
+          <span class="none"></span>
+        FAQ</a>
+            </li>
+                              <li class="nav-header">Developer Resources</li>
+                              
+      <li>
+  
+                          <a href="../../dev/developer-guide.html" 
title="Developer Guide">
+          <span class="none"></span>
+        Developer Guide</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../dev/best-practices.html" 
title="Development Best Practices">
+          <span class="none"></span>
+        Development Best Practices</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../dev/release-process.html" 
title="Release Process">
+          <span class="none"></span>
+        Release Process</a>
+            </li>
+                              <li class="nav-header">Project Details</li>
+                              
+      <li>
+  
+                          <a href="../../project-info.html" title="Overview">
+          <span class="none"></span>
+        Overview</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../mail-lists.html" title="Mailing 
Lists">
+          <span class="none"></span>
+        Mailing Lists</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../source-repository.html" title="Source 
Repository">
+          <span class="none"></span>
+        Source Repository</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../issue-tracking.html" title="Issue 
Tracking">
+          <span class="none"></span>
+        Issue Tracking</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../dependency-management.html" 
title="Dependencies">
+          <span class="none"></span>
+        Dependencies</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../team-list.html" title="Project Team">
+          <span class="none"></span>
+        Project Team</a>
+            </li>
+            </ul>
+                
+                    
+                
+          <hr />
+
+           <div id="poweredBy">
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                             <a href="http://maven.apache.org/"; title="Built 
by Maven" class="poweredBy">
+        <img class="builtBy" alt="Built by Maven" 
src="../../images/logos/maven-feather.png" />
+      </a>
+                  </div>
+          </div>
+        </div>
+        
+                
+        <div id="bodyColumn"  class="span10" >
+                                  
+            <!-- ~  Licensed to the Apache Software Foundation (ASF) under one
+  ~  or more contributor license agreements.  See the NOTICE file
+  ~  distributed with this work for additional information
+  ~  regarding copyright ownership.  The ASF licenses this file
+  ~  to you under the Apache License, Version 2.0 (the
+  ~  "License"); you may not use this file except in compliance
+  ~  with the License.  You may obtain a copy of the License at
+  ~
+  ~   http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~  Unless required by applicable law or agreed to in writing,
+  ~  software distributed under the License is distributed on an
+  ~   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~  KIND, either express or implied.  See the License for the
+  ~  specific language governing permissions and limitations
+  ~  under the License. -->
+    
+        <div class="section">
+<h2>Sample 851: Introduction to Synapse Splitter and Aggregator eip function 
templates<a 
name="Sample_851:_Introduction_to_Synapse_Splitter_and_Aggregator_eip_function_templates"></a></h2>
+            
+<div class="xmlConf">&lt;definitions 
xmlns=&quot;http://ws.apache.org/ns/synapse&quot;&gt;
+&lt;import xmlns=&quot;http://ws.apache.org/ns/synapse&quot; 
name=&quot;EipLibrary&quot; package=&quot;synapse.lang.eip&quot; /&gt;
+ &lt;proxy name=&quot;StockQuoteProxy&quot; transports=&quot;https http&quot; 
startOnLoad=&quot;true&quot; trace=&quot;disable&quot;&gt;
+        &lt;target&gt;
+        &lt;inSequence&gt;
+            &lt;log level=&quot;custom&quot;&gt;
+                &lt;property name=&quot;text&quot; 
value=&quot;splitterAggrigator&quot;/&gt;
+            &lt;/log&gt;
+            &lt;call-template target=&quot;synapse.lang.eip.splitter&quot;&gt;
+                &lt;with-param xmlns:m0=&quot;http://services.samples&quot; 
name=&quot;iterate_exp&quot; value=&quot;{{//m0:getQuote/m0:request}}&quot;/&gt;
+                &lt;with-param xmlns:m0=&quot;http://services.samples&quot; 
name=&quot;attach_path&quot; value=&quot;{{//m0:getQuote}}&quot;/&gt;
+                &lt;with-param name=&quot;attach_path_enabled&quot; 
value=&quot;true&quot;/&gt;
+                &lt;with-param name=&quot;endpoint_uri&quot; 
value=&quot;http://localhost:9000/services/SimpleStockQuoteService&quot;/&gt;
+            &lt;/call-template&gt;
+        &lt;/inSequence&gt;
+        &lt;outSequence&gt;
+            &lt;call-template 
target=&quot;synapse.lang.eip.aggregator&quot;&gt;
+                &lt;with-param name=&quot;sequence_ref&quot; 
value=&quot;enr&quot;/&gt;
+                &lt;with-param xmlns:m0=&quot;http://services.samples&quot; 
name=&quot;aggregator_exp&quot; value=&quot;{{//m0:return}}&quot;/&gt;
+                &lt;with-param name=&quot;oncomplete_seq_enabled&quot; 
value=&quot;true&quot;/&gt;
+            &lt;/call-template&gt;
+        &lt;/outSequence&gt;
+    &lt;/target&gt;
+    &lt;/proxy&gt;
+&lt;sequence xmlns=&quot;http://ws.apache.org/ns/synapse&quot; 
name=&quot;enr&quot;&gt;
+    &lt;log level=&quot;custom&quot;&gt;
+        &lt;property name=&quot;text&quot; value=&quot;seqhit&quot;/&gt;
+    &lt;/log&gt;
+    &lt;enrich&gt;
+        &lt;source xmlns:m0=&quot;http://services.samples&quot; 
clone=&quot;true&quot;
+                
xpath=&quot;//m0:return[not(preceding-sibling::m0:return/m0:last &amp;lt;= 
m0:last) and not(following-sibling::m0:return/m0:last &amp;lt; 
m0:last)]&quot;/&gt;
+        &lt;target type=&quot;body&quot;/&gt;
+    &lt;/enrich&gt;
+    &lt;send/&gt;
+&lt;/sequence&gt;
+&lt;/definitions&gt;</div>
+            
+<div class="section">
+<h3>Objective<a name="Objective"></a></h3>
+                
+<p>
+This sample is an introduction to Synapse Splitter and Aggregator eip function 
templates. This showcase the combined functionality of Splitter and Aggregator 
patterns.
+                </p>
+            </div>
+            
+<div class="section">
+<h3>Pre-requisites<a name="Pre-requisites"></a></h3>
+                
+<p>
+                    </p>
+<ul>
+                        
+<li>
+                            Deploy the SimpleStockQuoteService in the sample 
Axis2 server and start Axis2
+                        </li>
+                        
+<li>
+                            Start Synapse using the configuration numbered 851 
(repository/conf/sample/synapse_sample_851.xml)
+                            
+<div class="command">
+                                Unix/Linux: sh synapse.sh -sample 851<br />
+                                Windows: synapse.bat -sample 851
+                            </div>
+                        </li>
+                    </ul>
+                
+            </div>
+            
+<div class="section">
+<h3>Executing the Client<a name="Executing_the_Client"></a></h3>
+
+<p>
+In this sample, the message sent to Synapse will be splitted according to the 
given Xpath expression and does a synchronized call for the given endpoint and 
aggregates replies. Then mediates to the defined target sequence which filter 
the response which contains the best quote and send back to the client. Here it 
uses Splitter and Aggregator function templates.
+</p> 
+
+<p>
+                    Invoke the client as follows.
+                </p>
+                
+<div class="command">ant stockquote 
-Dtrpurl=http://localhost:8280/services/StockQuoteProxy -Ditr=4</div>
+
+<p>
+The above command will send a request containing four fragments in it.
+</p>
+                
+            </div>
+        </div>
+        
+<p><a href="../samples.html">Back to Catalog</a></p>        
+    
+
+                  </div>
+            </div>
+          </div>
+
+    <hr/>
+
+    <footer>
+            <div class="container-fluid">
+                      <div class="row-fluid">
+                                      <p >Copyright &copy;                    
2005&#x2013;2017
+                        <a href="http://www.apache.org/";>Apache Software 
Foundation</a>.
+            All rights reserved.      
+                    
+      </p>
+                </div>
+
+        
+                </div>
+    </footer>
+        </body>
+</html>


Reply via email to