You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@synapse.apache.org by ra...@apache.org on 2017/01/04 10:30:07 UTC
svn commit: r1777276 [4/12] - in /synapse/site: css/ fonts/ images/
images/profiles/ img/ js/ userguide/ userguide/samples/ userguide/transports/
Added: synapse/site/userguide/samples/sample431.html
URL: http://svn.apache.org/viewvc/synapse/site/userguide/samples/sample431.html?rev=1777276&view=auto
==============================================================================
--- synapse/site/userguide/samples/sample431.html (added)
+++ synapse/site/userguide/samples/sample431.html Wed Jan 4 10:30:06 2017
@@ -0,0 +1,423 @@
+<!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 431</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 431: Callout Mediator with WS-Security for Outgoing Messages<a name="Sample_431:_Callout_Mediator_with_WS-Security_for_Outgoing_Messages"></a></h2>
+
+<div class="xmlConf"><definitions xmlns="http://ws.apache.org/ns/synapse">
+
+ <localEntry key="sec_policy" src="file:repository/conf/sample/resources/policy/policy_3.xml"/>
+
+ <sequence name="main">
+ <callout serviceURL="http://localhost:9000/services/SecureStockQuoteService"
+ action="urn:getQuote">
+ <source xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/"
+ xmlns:s12="http://www.w3.org/2003/05/soap-envelope"
+ xpath="s11:Body/child::*[fn:position()=1] | s12:Body/child::*[fn:position()=1]"/>
+ <target xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/"
+ xmlns:s12="http://www.w3.org/2003/05/soap-envelope"
+ xpath="s11:Body/child::*[fn:position()=1] | s12:Body/child::*[fn:position()=1]"/>
+ <enableSec policy="sec_policy"/>
+ </callout>
+ <respond/>
+ </sequence>
+
+</definitions></div>
+
+<div class="section">
+<h3>Objective<a name="Objective"></a></h3>
+
+<p>
+ Demonstrate the usage of the Callout mediator for making synchronous (blocking)
+ Web service calls to invoke secured services during mediation.
+ </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>
+ Deploy the SecureStockQuoteService in the sample Axis2 server and start Axis2
+ </li>
+
+<li>
+ Start Synapse using the configuration numbered 431 (repository/conf/sample/synapse_sample_431.xml)
+
+<div class="command">
+ Unix/Linux: sh synapse.sh -sample 431<br />
+ Windows: synapse.bat -sample 431
+ </div>
+ </li>
+ </ul>
+
+ </div>
+
+<div class="section">
+<h3>Executing the Client<a name="Executing_the_Client"></a></h3>
+
+<p>
+ In this sample, the Callout mediator does the service invocation to the Secured service
+ SecureStockQuoteService by encrypting the client request according to the defined policy.
+ And then received encrypted message is decrypted and after removing the wsse:Security header,
+ the message is sent back to the client using the send mediator.
+
+ Callout Mediator is configured to enable WS-Security as per the policy specified by 'policy_3.xml'.
+ </p>
+
+<p>
+ Invoke the 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 © 2005–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/sample432.html
URL: http://svn.apache.org/viewvc/synapse/site/userguide/samples/sample432.html?rev=1777276&view=auto
==============================================================================
--- synapse/site/userguide/samples/sample432.html (added)
+++ synapse/site/userguide/samples/sample432.html Wed Jan 4 10:30:06 2017
@@ -0,0 +1,424 @@
+<!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 432</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 432: Callout Mediator - Invoke a secured service which has different policies for inbound and outbound flows<a name="Sample_432:_Callout_Mediator_-_Invoke_a_secured_service_which_has_different_policies_for_inbound_and_outbound_flows"></a></h2>
+
+<div class="xmlConf"><definitions xmlns="http://ws.apache.org/ns/synapse">
+
+ <localEntry key="sec_policy_inbound" src="file:repository/conf/sample/resources/policy/policy_3.xml"/>
+ <localEntry key="sec_policy_outbound" src="file:repository/conf/sample/resources/policy/policy_3.xml"/>
+
+ <sequence name="main">
+ <callout serviceURL="http://localhost:9000/services/SecureStockQuoteService"
+ action="urn:getQuote">
+ <source xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/"
+ xmlns:s12="http://www.w3.org/2003/05/soap-envelope"
+ xpath="s11:Body/child::*[fn:position()=1] | s12:Body/child::*[fn:position()=1]"/>
+ <target xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/"
+ xmlns:s12="http://www.w3.org/2003/05/soap-envelope"
+ xpath="s11:Body/child::*[fn:position()=1] | s12:Body/child::*[fn:position()=1]"/>
+ <enableSec outboundPolicy="sec_policy_outbound" inboundPolicy="sec_policy_inbound"/>
+ </callout>
+ <respond/>
+ </sequence>
+
+</definitions></div>
+
+<div class="section">
+<h3>Objective<a name="Objective"></a></h3>
+
+<p>
+ Demonstrate the usage of the Callout mediator for making synchronous (blocking)
+ Web service calls to invoke secured services, which has different security policies
+ for inbound and outbound flows.
+
+ </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>
+ Deploy the SecureStockQuoteService in the sample Axis2 server and start Axis2
+ </li>
+
+<li>
+ Start Synapse using the configuration numbered 432 (repository/conf/sample/synapse_sample_432.xml)
+
+<div class="command">
+ Unix/Linux: sh synapse.sh -sample 432<br />
+ Windows: synapse.bat -sample 432
+ </div>
+ </li>
+ </ul>
+
+ </div>
+
+<div class="section">
+<h3>Executing the Client<a name="Executing_the_Client"></a></h3>
+
+<p>
+ In this sample, the Callout mediator is configured with different security policies
+ for inbound and outbound message flows. Messages sent out from synapse is encrypted
+ using the outboundPolicy and response received from the secured service is decrypted
+ using the inboundPolicy.
+ </p>
+
+<p>
+ Invoke the 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 © 2005–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/sample433.html
URL: http://svn.apache.org/viewvc/synapse/site/userguide/samples/sample433.html?rev=1777276&view=auto
==============================================================================
--- synapse/site/userguide/samples/sample433.html (added)
+++ synapse/site/userguide/samples/sample433.html Wed Jan 4 10:30:06 2017
@@ -0,0 +1,416 @@
+<!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 433</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 433: Callout Mediator - Invoke a service using a defined Endpoint<a name="Sample_433:_Callout_Mediator_-_Invoke_a_service_using_a_defined_Endpoint"></a></h2>
+
+<div class="xmlConf"><definitions xmlns="http://ws.apache.org/ns/synapse">
+
+ <sequence name="main">
+ <callout>
+ <endpoint key="StockQuoteServiceEndpoint"/>
+ <source xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/"
+ xmlns:s12="http://www.w3.org/2003/05/soap-envelope"
+ xpath="s11:Body/child::*[fn:position()=1] | s12:Body/child::*[fn:position()=1]"/>
+ <target xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/"
+ xmlns:s12="http://www.w3.org/2003/05/soap-envelope"
+ xpath="s11:Body/child::*[fn:position()=1] | s12:Body/child::*[fn:position()=1]"/>
+ </callout>
+ <respond/>
+ </sequence>
+
+ <endpoint name="StockQuoteServiceEndpoint">
+ <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
+ </endpoint>
+
+</definitions></div>
+
+<div class="section">
+<h3>Objective<a name="Objective"></a></h3>
+
+<p>
+ Demonstrate how to invoke a service from Callout Mediator using a defined endpoint.
+ </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 433 (repository/conf/sample/synapse_sample_433.xml)
+
+<div class="command">
+ Unix/Linux: sh synapse.sh -sample 433<br />
+ Windows: synapse.bat -sample 433
+ </div>
+ </li>
+ </ul>
+
+ </div>
+
+<div class="section">
+<h3>Executing the Client<a name="Executing_the_Client"></a></h3>
+
+<p>
+ In this sample, the Callout mediator does the direct service invocation to the
+ StockQuoteService using the client request, gets the response and sets it as the
+ first child of the SOAP message body. Callout Mediator uses the defined endpoint
+ named 'StockQuoteServiceEndpoint' to send the message to the StockQuoteService.
+ </p>
+
+<p>
+ Invoke the client as follows.
+ </p>
+
+<div class="command">ant stockquote -Daddurl=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 © 2005–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/sample434.html
URL: http://svn.apache.org/viewvc/synapse/site/userguide/samples/sample434.html?rev=1777276&view=auto
==============================================================================
--- synapse/site/userguide/samples/sample434.html (added)
+++ synapse/site/userguide/samples/sample434.html Wed Jan 4 10:30:06 2017
@@ -0,0 +1,414 @@
+<!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 434</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 434: Callout Mediator - Invoke a service using an inline Endpoint<a name="Sample_434:_Callout_Mediator_-_Invoke_a_service_using_an_inline_Endpoint"></a></h2>
+
+<div class="xmlConf"><definitions xmlns="http://ws.apache.org/ns/synapse">
+
+ <sequence name="main">
+ <callout>
+ <endpoint>
+ <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
+ </endpoint>
+ <source xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/"
+ xmlns:s12="http://www.w3.org/2003/05/soap-envelope"
+ xpath="s11:Body/child::*[fn:position()=1] | s12:Body/child::*[fn:position()=1]"/>
+ <target xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/"
+ xmlns:s12="http://www.w3.org/2003/05/soap-envelope"
+ xpath="s11:Body/child::*[fn:position()=1] | s12:Body/child::*[fn:position()=1]"/>
+ </callout>
+ <respond/>
+ </sequence>
+
+</definitions></div>
+
+<div class="section">
+<h3>Objective<a name="Objective"></a></h3>
+
+<p>
+ Demonstrate how to invoke a service from Callout mediator using an inline endpoint.
+ </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 434 (repository/conf/sample/synapse_sample_434.xml)
+
+<div class="command">
+ Unix/Linux: sh synapse.sh -sample 434<br />
+ Windows: synapse.bat -sample 434
+ </div>
+ </li>
+ </ul>
+
+ </div>
+
+<div class="section">
+<h3>Executing the Client<a name="Executing_the_Client"></a></h3>
+
+<p>
+ In this sample, the Callout mediator does the direct service invocation to the
+ StockQuoteService using the client request, gets the response, and sets it as the
+ first child of the SOAP message body. Callout Mediator uses the inline endpoint
+ to send the message to the StockQuoteService.
+ </p>
+
+<p>
+ Invoke the client as follows.
+ </p>
+
+<div class="command">ant stockquote -Daddurl=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 © 2005–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/sample440.html
URL: http://svn.apache.org/viewvc/synapse/site/userguide/samples/sample440.html?rev=1777276&view=auto
==============================================================================
--- synapse/site/userguide/samples/sample440.html (added)
+++ synapse/site/userguide/samples/sample440.html Wed Jan 4 10:30:06 2017
@@ -0,0 +1,395 @@
+<!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 440</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 440: Respond Mediator - Echo Service with a Proxy Service<a name="Sample_440:_Respond_Mediator_-_Echo_Service_with_a_Proxy_Service"></a></h2>
+
+<div class="xmlConf"><definitions xmlns="http://ws.apache.org/ns/synapse">
+ <proxy name="EchoService">
+ <target>
+ <inSequence>
+ <respond/>
+ </inSequence>
+ </target>
+ </proxy>
+</definitions></div>
+
+<div class="section">
+<h3>Objective<a name="Objective"></a></h3>
+
+<p>
+ Demonstrate how to use respond mediator to create a simple echo service
+ </p>
+ </div>
+
+<div class="section">
+<h3>Pre-requisites<a name="Pre-requisites"></a></h3>
+
+<p>
+ </p>
+<ul>
+
+<li>
+ Start Synapse using the configuration numbered 440 (repository/conf/sample/synapse_sample_440.xml)
+
+<div class="command">
+ Unix/Linux: sh synapse.sh -sample 440<br />
+ Windows: synapse.bat -sample 440
+ </div>
+ </li>
+ </ul>
+
+ </div>
+
+<div class="section">
+<h3>Executing the Client<a name="Executing_the_Client"></a></h3>
+
+<p>
+ Invoke the EchoService proxy service with a payload.
+ Following is how we can use curl as the client.
+ </p>
+
+<div class="command">curl -v -X POST -H "Content-type: application/xml" -d '<test>foo</test>' 'http://localhost:8280/services/EchoService'</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 © 2005–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/sample441.html
URL: http://svn.apache.org/viewvc/synapse/site/userguide/samples/sample441.html?rev=1777276&view=auto
==============================================================================
--- synapse/site/userguide/samples/sample441.html (added)
+++ synapse/site/userguide/samples/sample441.html Wed Jan 4 10:30:06 2017
@@ -0,0 +1,412 @@
+<!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 441</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 441: Respond Mediator - Mock a service with a proxy service<a name="Sample_441:_Respond_Mediator_-_Mock_a_service_with_a_proxy_service"></a></h2>
+
+<div class="xmlConf"><definitions xmlns="http://ws.apache.org/ns/synapse">
+ <proxy name="MockService">
+ <target>
+ <inSequence>
+ <log level="full"/>
+ <payloadFactory>
+ <format>
+ <m:Sample xmlns:m="http://services.samples">
+ <m:Response>
+ <m:value>foo</m:value>
+ </m:Response>
+ </m:Sample>
+ </format>
+ <args/>
+ </payloadFactory>
+ <respond/>
+ </inSequence>
+ </target>
+ </proxy>
+</definitions></div>
+
+<div class="section">
+<h3>Objective<a name="Objective"></a></h3>
+
+<p>
+ Demonstrate how to create a simple mock service with a proxy service using the respond mediator.
+ </p>
+ </div>
+
+<div class="section">
+<h3>Pre-requisites<a name="Pre-requisites"></a></h3>
+
+<p>
+ </p>
+<ul>
+
+<li>
+ Start Synapse using the configuration number 441
+ (repository/conf/sample/synapse_sample_441.ml)
+
+<div class="command">
+ Unix/Linux: sh synapse.sh -sample 441
+ <br />
+ Windows: synapse.bat -sample 441
+ </div>
+ </li>
+ </ul>
+
+ </div>
+
+<div class="section">
+<h3>Executing the Client<a name="Executing_the_Client"></a></h3>
+
+<p>
+ Invoke the MockService proxy service with a payload.
+ Following is how we can use curl as the client
+ </p>
+
+<div class="command">curl -v -X POST -H "Content-type: application/xml" -d '<request>foo</request>'
+ 'http://localhost:8280/services/MockService'
+ </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 © 2005–2017
+ <a href="http://www.apache.org/">Apache Software Foundation</a>.
+ All rights reserved.
+
+ </p>
+ </div>
+
+
+ </div>
+ </footer>
+ </body>
+</html>