Author: heshan
Date: Tue Feb 22 09:05:05 2011
New Revision: 1073265
URL: http://svn.apache.org/viewvc?rev=1073265&view=rev
Log:
Fixing namespace in all the documentation.
Modified:
synapse/trunk/java/src/site/xdoc/Synapse_Configuration_Language.xml
synapse/trunk/java/src/site/xdoc/Synapse_QuickStart.xml
synapse/trunk/java/src/site/xdoc/Synapse_Samples.xml
Modified: synapse/trunk/java/src/site/xdoc/Synapse_Configuration_Language.xml
URL:
http://svn.apache.org/viewvc/synapse/trunk/java/src/site/xdoc/Synapse_Configuration_Language.xml?rev=1073265&r1=1073264&r2=1073265&view=diff
==============================================================================
--- synapse/trunk/java/src/site/xdoc/Synapse_Configuration_Language.xml
(original)
+++ synapse/trunk/java/src/site/xdoc/Synapse_Configuration_Language.xml Tue Feb
22 09:05:05 2011
@@ -456,7 +456,7 @@
<pre xml:space="preserve"><sequence key="sequence/dynamic_seq_1.xml"/>
where "sequence/dynamic_seq_1.xml" refers to the following sequence definition
from the registry:
-<sequence name="dynamic_sequence"
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<sequence name="dynamic_sequence"
xmlns="http://ws.apache.org/ns/synapse">
..
</sequence></pre>
<h2>
@@ -694,7 +694,7 @@ where "sequence/dynamic_seq_1.xml" refer
of sessions supported in SAL endpoints. Namely HTTP transport based
session
which identifies the sessions based on http cookies and the client
session which
identifies the session by looking at a SOAP header sent by the client
with the QName
- '{http://synapse.apache.org/ns/2010/04/configuraiton}ClientID'. The
'failover' attribute mentioned above
+ '{http://ws.apache.org/ns/synapse}ClientID'. The 'failover' attribute
mentioned above
is not applicable for session affinity based endpoints and it is always
considered as set to false. If it is required to have failover behavior
in session
affinity based load balance endpoints, list failover endpoints as the
target endpoints.
@@ -1506,7 +1506,7 @@ where "sequence/dynamic_seq_1.xml" refer
<p>
The 'feature' element defines any features which
should be explicitly set to the TransformerFactory. The feature
-
'http://synapse.apache.org/ns/2010/04/configuraiton/transform/feature/dom'
turns on DOM based
+ 'http://ws.apache.org/ns/synapse/transform/feature/dom' turns on DOM
based
transformations instead of serializing elements into Byte streams and/or
temporary files. Though this would be better in performance than using
byte streams, sometimes it may not work for all transformations.
@@ -2131,7 +2131,7 @@ where "sequence/dynamic_seq_1.xml" refer
<h4>
<a name="spring" id="spring">Spring mediator</a>
</h4>
-<pre xml:space="preserve"> <spring:spring bean="exampleBean1" key="string"
xmlns:spring="http://synapse.apache.org/ns/2010/04/configuraiton/spring"/></pre>
+<pre xml:space="preserve"> <spring:spring bean="exampleBean1" key="string"
xmlns:spring="http://ws.apache.org/ns/synapse/spring"/></pre>
<p>
The <spring> element creates an instance of a mediator, which is
managed by Spring. This Spring bean must implement the Mediator interface
Modified: synapse/trunk/java/src/site/xdoc/Synapse_QuickStart.xml
URL:
http://svn.apache.org/viewvc/synapse/trunk/java/src/site/xdoc/Synapse_QuickStart.xml?rev=1073265&r1=1073264&r2=1073265&view=diff
==============================================================================
--- synapse/trunk/java/src/site/xdoc/Synapse_QuickStart.xml (original)
+++ synapse/trunk/java/src/site/xdoc/Synapse_QuickStart.xml Tue Feb 22 09:05:05
2011
@@ -255,7 +255,7 @@ user@host:/opt/synapse-1.1.1/samples/axi
repository/conf/sample) and listed below. It is configured to log and
pass
through, all the messages.
</p>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton"><br/> <log
level="full"/> <br/> <send/>
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse"><br/> <log level="full"/>
<br/> <send/>
</definitions> </pre>
<p/>
<p>
@@ -469,7 +469,7 @@ SOAPAction: null
definition. In this case we are using the synapse_sample_150.xml, so that
you don't have to write the configuration your self.
</p>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<proxy name="StockQuoteProxy">
<target>
<endpoint>
Modified: synapse/trunk/java/src/site/xdoc/Synapse_Samples.xml
URL:
http://svn.apache.org/viewvc/synapse/trunk/java/src/site/xdoc/Synapse_Samples.xml?rev=1073265&r1=1073264&r2=1073265&view=diff
==============================================================================
--- synapse/trunk/java/src/site/xdoc/Synapse_Samples.xml (original)
+++ synapse/trunk/java/src/site/xdoc/Synapse_Samples.xml Tue Feb 22 09:05:05
2011
@@ -364,7 +364,7 @@
<a name="MediationSamples" id="MediationSamples">Message Mediation Samples</a>
</h1>
<h2>
<a name="Sample0" id="Sample0">Sample 0: Introduction to Synapse</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<!-- log all attributes of messages passing through -->
<log level="full"/>
@@ -397,7 +397,7 @@
<p>You will see the exact same behaviour as per the previous example when you
run this scenario. However this time the difference is at the client, as it
sends the message to the WS-Addressing 'To' address
http://localhost:9000/services/SimpleStockQuoteService, but the transport
specifies Synapse as the HTTP proxy. </p>
<h2>
<a name="Sample1" id="Sample1">Sample 1: Simple content based routing (CBR) of
messages</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<!-- filtering of messages with XPath and regex matches -->
<filter source="get-property('To')"
regex=".*/StockQuote.*">
<send>
@@ -428,7 +428,7 @@ mediator forwards the response back to t
<h2>
<a name="Sample2" id="Sample2">Sample 2: CBR with the Switch-case mediator,
using message properties</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<switch source="//m0:getQuote/m0:request/m0:symbol"
xmlns:m0="http://services.samples">
<case regex="IBM">
<!-- the property mediator sets a local property on the
*current* message -->
@@ -469,7 +469,7 @@ mediator forwards the response back to t
<pre xml:space="preserve"> INFO LogMediator - symbol = Are you sure? -
MSFT, epr = http://localhost:9000/axis2/services/SimpleStockQuoteService</pre>
<h2>
<a name="Sample3" id="Sample3">Sample 3: Local Registry entry definitions,
reusable endpoints and sequences</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<!-- define a string resource entry to the local registry -->
<localEntry key="version">0.1</localEntry>
<!-- define a reuseable endpoint definition -->
@@ -518,7 +518,7 @@ mediator forwards the response back to t
[HttpServerWorker-1] DEBUG AddressEndpoint - Sending To:
http://localhost:9000/services/SimpleStockQuoteService </pre>
<h2>
<a name="Sample4" id="Sample4">Sample 4: Introduction to error
handling</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<!-- the default fault handling sequence used by Synapse - named
'fault' -->
<sequence name="fault">
@@ -601,7 +601,7 @@ mediator forwards the response back to t
[HttpServerWorker-1] INFO LogMediator text = An unexpected error occured for
stock SUN, message = Couldn't find the endpoint with the key : sunPort</pre>
<h2>
<a name="Sample5" id="Sample5">Sample 5: Creating SOAP fault messages and
changing the direction of a message</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<sequence name="myFaultHandler">
<makefault response="true">
@@ -653,7 +653,7 @@ mediator forwards the response back to t
<faultstring>java.net.ConnectException: Connection
refused</faultstring><detail /></soapenv:Fault></pre>
<h2>
<a name="Sample6" id="Sample6">Sample 6: Manipulating SOAP headers, and
filtering incoming and outgoing messages</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<in>
<header name="To"
value="http://localhost:9000/services/SimpleStockQuoteService"/>
</in>
@@ -669,7 +669,7 @@ mediator forwards the response back to t
<pre xml:space="preserve">ant stockquote -Dtrpurl=http://localhost:8280/</pre>
<h2>
<a name="Sample7" id="Sample7">Sample 7: Introduction to local Registry
entries and using Schema validation</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<localEntry key="validate_schema">
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
@@ -719,7 +719,7 @@ mediator forwards the response back to t
<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/services/SimpleStockQuoteService
-Dtrpurl=http://localhost:8280/</pre>
<h2>
<a name="Sample8" id="Sample8">Sample 8: Introduction to static and dynamic
registry resources, and using XSLT transformations</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<!-- the SimpleURLRegistry allows access to a URL based registry (e.g.
file:/// or http://) -->
<registry
provider="org.apache.synapse.registry.url.SimpleURLRegistry">
@@ -770,7 +770,7 @@ mediator forwards the response back to t
<p>Thus the SimpleURLRegistry allows resource to be cached, and updates
detected so that the changes could be reloaded without restarting the Synapse
instance. </p>
<h2>
<a name="Sample9" id="Sample9">Sample 9: Introduction to dynamic sequences
with the Registry</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<registry
provider="org.apache.synapse.registry.url.SimpleURLRegistry">
<parameter
name="root">file:./repository/conf/sample/resources/</parameter>
<parameter
name="cachableDuration">15000</parameter>
@@ -803,7 +803,7 @@ mediator forwards the response back to t
<p>The cache timeout could be tuned appropriately by configuring the URL
registry to suit the environment and the needs. </p>
<h2>
<a name="Sample10" id="Sample10">Sample 10: Introduction to dynamic endpoints
with the Registry</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<registry
provider="org.apache.synapse.registry.url.SimpleURLRegistry">
<parameter
name="root">file:repository/conf/sample/resources/</parameter>
@@ -832,7 +832,7 @@ mediator forwards the response back to t
<p>Now edit the repository/conf/sample/resources/endpoint/dynamic_endpt_1.xml
definition and update the address to
"http://localhost:9001/services/SimpleStockQuoteService". After the
cached value expires, the Registry loads the new definition of the endpoint,
and then the messages can be seen being routed to the second sample Axis2
server on HTTP port 9001. </p>
<h2>
<a name="Sample11" id="Sample11">Sample 11: A full registry based
configuration, and sharing a configuration between multiple instances</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<registry
provider="org.apache.synapse.registry.url.SimpleURLRegistry">
<parameter
name="root">file:./repository/conf/sample/resources/</parameter>
<parameter
name="cachableDuration">15000</parameter>
@@ -850,7 +850,7 @@ mediator forwards the response back to t
<pre xml:space="preserve">[HttpServerWorker-1] INFO LogMediator - message =
This is a dynamic Synapse configuration</pre>
<p>The actual synapse.xml loaded is: </p>
<pre xml:space="preserve"><!-- a registry based Synapse configuration -->
-<definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<definitions xmlns="http://ws.apache.org/ns/synapse">
<log level="custom">
<property name="message" value="This is a dynamic
Synapse configuration $$$"/>
</log>
@@ -1000,7 +1000,7 @@ Standard dual channel :: Stock price = $
<a name="Endpoints" id="Endpoints">Advanced mediations with endpoints</a> </h1>
<h2>
<a name="Sample50" id="Sample50">Sample 50: POX to SOAP conversion</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<!-- filtering of messages with XPath and regex matches -->
<filter source="get-property('To')"
regex=".*/StockQuote.*">
<send>
@@ -1039,7 +1039,7 @@ Transfer-Encoding: chunked
<h2>
<a name="Sample51" id="Sample51">Sample 51: MTOM and SwA optimizations and
request/response correlation</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<in>
<filter source="get-property('Action')"
regex="urn:uploadFileUsingMTOM">
<property name="example" value="mtom"/>
@@ -1147,7 +1147,7 @@ Content-ID:
<urn:uuid:15FD2DA2584A32BF7C1177414169826>22800GIF89a...
<< binary content >></pre>
<h2>
<a name="Sample52" id="Sample52">Sample 52: Session less load balancing
between 3 endpoints</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<sequence name="main" onError="errorHandler">
<in>
@@ -1228,7 +1228,7 @@ Content-ID:
<p>Now restart MyServer1. You can observe that requests will be again sent to
all three servers roughly after 60 seconds. This is because we have specified
<suspendDurationOnFailure> as 60 seconds in the configuration. Therefore,
load balance endpoint will suspend any failed child endpoint only for 60
seconds after detecting the failure. </p>
<h2>
<a name="Sample53" id="Sample53">Sample 53: Failover sending among 3
endpoints</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<sequence name="main" onError="errorHandler">
<in>
@@ -1297,7 +1297,7 @@ Content-ID:
<p>Once a server is detected as failed, it will be added to the active servers
list again after 60 seconds (specified in <suspendDurationOnFailure> in
the configuration). Therefore, if you have restarted any of the stopped servers
and have shutdown all other servers, messages will be directed to the newly
started server. </p>
<h2>
<a name="Sample54" id="Sample54">Sample 54: Session affinity load balancing
between 3 endpoints</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<sequence name="main" onError="errorHandler">
<in>
@@ -1369,7 +1369,7 @@ Content-ID:
<p>You can see that session number 0 is always directed to the server named
MyServer1. That means session number 0 is bound to MyServer1. Similarly session
1 and 2 are bound to MyServer3 and MyServer2 respectively. </p>
<h2>
<a name="Sample55" id="Sample55">Sample 55: Session affinity load balancing
between fail over endpoints</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<sequence name="main" onError="errorHandler">
<in>
@@ -1467,7 +1467,7 @@ Content-ID:
...</pre>
<h2>
<a name="Sample56" id="Sample56">Sample 56: WSDL endpoint</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<sequence name="main">
<in>
@@ -1509,7 +1509,7 @@ Content-ID:
<h2>
<a name="Sample57" id="Sample57">Sample 57: Dynamic load balancing between 3
nodes</a></h2>
<pre xml:space="preserve">
-<definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<definitions xmlns="http://ws.apache.org/ns/synapse">
<sequence name="main" onError="errorHandler">
<in>
@@ -1579,7 +1579,7 @@ Content-ID:
<h2>
<a name="Sample58" id="Sample58">Sample 58: Static load balancing between 3
nodes</a></h2>
<pre xml:space="preserve">
-<definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<definitions xmlns="http://ws.apache.org/ns/synapse">
<sequence name="main" onError="errorHandler">
<in>
@@ -1647,7 +1647,7 @@ Content-ID:
<a name="MessageMediationQoS" id="MessageMediationQoS">Quality of Service
addition or deduction samples in message mediation</a> </h1>
<h2>
<a name="Sample100" id="Sample100">Sample 100: Using WS-Security for outgoing
messages</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<localEntry key="sec_policy"
src="file:repository/conf/sample/resources/policy/policy_3.xml"/>
<in>
@@ -1723,7 +1723,7 @@ User-Agent: Synapse-HttpComponents-NIO
<h2>
<a name="Sample101" id="Sample101">Sample 101: Reliable message exchange
between Synapse and the back-end server using WS-ReliableMessaging</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<in>
<RMSequence single="true" version="1.0"/>
@@ -1868,7 +1868,7 @@ User-Agent: Synapse-HttpComponents-NIO
<h2>
<a name="Sample150" id="Sample150">Sample 150: Introduction to proxy
services</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<proxy name="StockQuoteProxy">
<target>
<endpoint>
@@ -1893,7 +1893,7 @@ User-Agent: Synapse-HttpComponents-NIO
<p>An 'inSequence' or 'endpoint' or both of these would decide how the message
would be handled after the proxy service receives the message. In the above
example, the request received is forwarded to the sample service hosted on
Axis2. The 'outSequence' defines how the response is handled before it is sent
back to the client. By default, a proxy service is exposed over all transports
configured for Synapse, unless these are specifically mentioned through the
'transports' attribute. </p>
<h2>
<a name="Sample151" id="Sample151">Sample 151: Custom sequences and endpoints
with proxy services</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<sequence name="proxy_1">
<send>
@@ -1931,7 +1931,7 @@ User-Agent: Synapse-HttpComponents-NIO
<br/>ant stockquote
-Daddurl=http://localhost:8280/services/StockQuoteProxy2</pre>
<h2>
<a name="Sample152" id="Sample152">Sample 152: Switching transports and
message format from SOAP to REST/POX</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<proxy name="StockQuoteProxy" transports="https">
<target>
<endpoint>
@@ -1999,7 +1999,7 @@ Connection: Keep-Alive
<h2>
<a name="Sample153" id="Sample153">Sample 153: Routing the messages arrived to
a proxy service without processing the security headers</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<proxy name="StockQuoteProxy">
<target>
<inSequence>
@@ -2032,7 +2032,7 @@ Connection: Keep-Alive
<a name="Sample154" id="Sample154">Sample 154: Load Balancing with Proxy
Services </a></h2>
<div>
<pre xml:space="preserve"> <!-- A proxy service with a loadbalace
endpoint -->
-<definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<definitions xmlns="http://ws.apache.org/ns/synapse">
<proxy name="LBProxy" transports="https http"
startOnLoad="true">
<target faultSequence="errorHandler">
<inSequence>
@@ -2089,7 +2089,7 @@ Connection: Keep-Alive
<p>Functionality is similar to the sample #54. </p></div>
<h2>
<a name="Sample155" id="Sample155">Sample 155: Dual channel invocation on both
client side and serverside of Synapse with Proxy Services</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<proxy name="StockQuoteProxy">
<target>
<endpoint>
@@ -2120,7 +2120,7 @@ Connection: Keep-Alive
<a name="ProxyServiceQoS" id="ProxyServiceQoS">QoS addition and deduction for
service mediation (proxy) samples</a> </h1>
<h2>
<a name="Sample200" id="Sample200">Sample 200: Using WS-Security with policy
attachments for proxy services</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<localEntry key="sec_policy"
src="file:repository/conf/sample/resources/policy/policy_3.xml"/>
<proxy name="StockQuoteProxy">
<target>
@@ -2155,7 +2155,7 @@ Connection: Keep-Alive
<p>By following through the debug logs or TCPMon output, you could see that
the request received by the proxy service was signed and encrypted. Also,
looking up the WSDL of the proxy service by requesting the
URLhttp://localhost:8280/services/StockQuoteProxy?wsdl reveals the security
policy attachment to the supplied base WSDL. When sending the message to the
backend service, you could verify that the security headers were removed, and
that the response received does not use WS-Security, but that the response
being forwarded back to the client is signed and encrypted as expected by the
client. </p>
<h2>
<a name="Sample201" id="Sample201">Sample 201: Reliable message exchange
between the client and proxy services using WS-ReliableMessaging</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<proxy name="StockQuoteProxy">
<target>
<inSequence>
@@ -2191,7 +2191,7 @@ Connection: Keep-Alive
<a name="Transport" id="Transport">Transport samples and switching
transports</a> </h1>
<h2>
<a name="Sample250" id="Sample250">Sample 250: Introduction to switching
transports - JMS to http/s</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<proxy name="StockQuoteProxy" transports="jms">
<target>
@@ -2256,7 +2256,7 @@ it will first try to read the content ty
<pre xml:space="preserve"><parameter
name="transport.jms.Destination">dynamicTopics/something.TestTopic</parameter></pre>
<h2>
<a name="Sample251" id="Sample251">Sample 251: Switching from http/s to
JMS</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<proxy name="StockQuoteProxy" transports="http">
<target>
@@ -2296,7 +2296,7 @@ java.naming.provider.url=tcp://localhost
<pre xml:space="preserve">Accepted order for : 18406 stocks of MSFT at $
83.58806051152119</pre>
<h2>
<a name="Sample252" id="Sample252">Sample 252: Pure text/binary and POX
message support with JMS</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<sequence name="text_proxy">
<log level="full"/>
<header name="Action"
value="urn:placeOrder"/>
@@ -2429,7 +2429,7 @@ The sample Axis2 server displays a succe
<pre xml:space="preserve">samples.services.SimpleStockQuoteService :: Accepted
order for : 19211 stocks of MSFT at $ 172.39703010684752</pre>
<h2>
<a name="Sample253" id="Sample253">Sample 253: One way bridging from JMS to
http and replying with a 202 Accepted response</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<proxy name="JMStoHTTPStockQuoteProxy"
transports="jms">
<target>
@@ -2489,7 +2489,7 @@ Transfer-Encoding: chunked
0</pre>
<h2>
<a name="Sample254" id="Sample254">Sample 254: Using the file system as
transport medium using VFS transport listener and sender</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<proxy name="StockQuoteProxy" transports="vfs">
<parameter
name="transport.vfs.FileURI">file:///home/user/test/in</parameter>
<!--CHANGE-->
<parameter
name="transport.vfs.ContentType">text/xml</parameter>
@@ -2546,7 +2546,7 @@ Transfer-Encoding: chunked
<em>out</em> directory. </p>
<h2>
<a name="Sample255" id="Sample255">Sample 255: Switching from ftp transport
listener to mail transport sender</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<proxy name="StockQuoteProxy" transports="vfs">
<parameter
name="transport.vfs.FileURI">vfs:ftp://guest:guest@localhost/test?vfs.passive=true</parameter>
<!--CHANGE-->
<parameter
name="transport.vfs.ContentType">text/xml</parameter>
@@ -2586,7 +2586,7 @@ Transfer-Encoding: chunked
<p>VFS transport listener will pick the file from the directory in the FTP
server and send it to the Axis2 service. The file in the FTP directory will be
deleted. The response will be sent to the given email address. </p>
<h2>
<a name="Sample256" id="Sample256">Sample 256: Proxy services with the mail
transport </a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<proxy name="StockQuoteProxy"
transports="mailto">
<parameter
name="transport.mail.Address">[email protected]</parameter>
@@ -2652,7 +2652,7 @@ mail clients don't allow the user to exp
<h2>
<a name="Sample257" id="Sample257">Sample 257: Proxy services with the FIX
transport </a></h2>
<pre xml:space="preserve"><!-- Using the FIX transport -->
-<definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<definitions xmlns="http://ws.apache.org/ns/synapse">
<proxy name="FIXProxy" transports="fix">
<parameter
name="transport.fix.AcceptorConfigURL">file:/home/synapse_user/fix-config/fix-synapse.cfg</parameter>
@@ -2692,7 +2692,7 @@ mail clients don't allow the user to exp
<a href="Synapse_Samples_Setup.html#fixparameters">FIX Transport Parameters
</a>. </p>
<h2>
<a name="Sample258" id="Sample258">Sample 258: Switching from HTTP to FIX
</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<proxy name="FIXProxy" transport"http">
<parameter
name="transport.fix.InitiatorConfigURL">file:/home/synapse_user/fix-config/synapse-sender.cfg</parameter>
@@ -2733,7 +2733,7 @@ mail clients don't allow the user to exp
<p>Synapse will forward the order request to the session with the Executor.
The first response coming from the Executor will be sent back over HTTP.
Executor generally sends two responses for each incoming order request. But
since the response has to be forwarded over HTTP only one can be sent back to
the client. </p>
<h2>
<a name="Sample259" id="Sample259">Sample 259: Switch from FIX to HTTP
</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<localEntry key="xslt-key-req"
src="file:repository/conf/sample/resources/transform/transform_fix_to_http.xslt"
/>
<proxy name="FIXProxy" transports="fix">
<target>
@@ -2794,7 +2794,7 @@ mail clients don't allow the user to exp
<a href="Synapse_Samples_Setup.html#fixparameters">FIX Transport Parameters
</a>. </p>
<h2>
<a name="Sample260" id="Sample260">Sample 260: Switch from FIX to AMQP
</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<proxy name="FIXProxy" transports="fix">
<target>
<endpoint>
@@ -2840,7 +2840,7 @@ mail clients don't allow the user to exp
<a href="Synapse_Samples_Setup.html#fixparameters">FIX Transport Parameters
</a>. </p>
<h2>
<a name="Sample261" id="Sample261">Sample 261: Switch between FIX versions
</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<proxy name="OrderProcesserProxy41"
transports="fix">
<target>
<endpoint>
@@ -2879,7 +2879,7 @@ SocketAcceptPort=19877</pre>
<a href="Synapse_Samples_Setup.html#fixparameters">FIX Transport Parameters
</a>. </p>
<h2>
<a name="Sample262" id="Sample262">Sample 262: CBR of FIX messages</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<sequence name="CBR_SEQ">
<in>
<switch source="//message/body/field[@id='55']">
@@ -2950,7 +2950,7 @@ SocketAcceptPort=19877</pre>
<h2>
<a name="Sample263" id="Sample263">Sample 263: Transport switching - JMS to
http/s using JBoss Messaging(JBM) </a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<proxy name="StockQuoteProxy" transports="jms">
<target>
<inSequence>
@@ -3020,7 +3020,7 @@ it will first try to read the content ty
<h2>
<a name="Sample264" id="Sample264">Sample 264: Sending Two-Way Messages
Using JMS transport</a>
</h2>
- <pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+ <pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<proxy name="StockQuoteProxy" transports="http">
<target>
<endpoint>
@@ -3151,7 +3151,7 @@ it will first try to read the content ty
<a name="Task" id="Task">Introduction to Synapse Tasks</a> </h1>
<h2>
<a name="Sample300" id="Sample300">Sample 300: Introduction to Tasks with
simple trigger</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<task
class="org.apache.synapse.startup.tasks.MessageInjector"
name="CheckPrice">
<property name="to"
value="http://localhost:9000/services/SimpleStockQuoteService"/>
@@ -3203,7 +3203,7 @@ it will first try to read the content ty
<pre xml:space="preserve">
<!-- Introduction to the script mediator using js scripts -->
-<definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<definitions xmlns="http://ws.apache.org/ns/synapse">
<registry
provider="org.apache.synapse.registry.url.SimpleURLRegistry">
<!-- the root property of the simple URL registry helps resolve a
resource URL as root + key -->
@@ -3267,7 +3267,7 @@ it will first try to read the content ty
<p>Synapse uses the script mediator and the specified JavaScript function to
convert the custom request to a standard quote request. Subsequently the
response received is transformed and sent back to the client. </p>
<h2>
<a name="Sample351" id="Sample351">Sample 351: In-line script mediation with
JavaScript</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<in>
<!-- transform the custom quote request into a standard quote
requst expected by the service -->
<script language="js"><![CDATA[
@@ -3310,7 +3310,7 @@ it will first try to read the content ty
<h2>
<a name="Sample352" id="Sample352">Sample 352: Accessing Synapse message
context API methods using scripting language</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<in>
<!-- change the MessageContext into a response and set a response
payload -->
<script language="js"><![CDATA[
@@ -3339,7 +3339,7 @@ stockquote:
[java] Standard :: Stock price = $99.9</pre>
<h2>
<a name="Sample353" id="Sample353">Sample 353: Using Ruby scripts for
mediation</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<localEntry key="stockquoteScript"
src="file:repository/conf/sample/resources/script/stockquoteTransform.rb"/>
<in>
@@ -3392,7 +3392,7 @@ end
<a name="Sample354" id="Sample354">Sample 354: Using In-lined Ruby scripts for
mediation</a></h2>
<div>
<pre xml:space="preserve"> <!-- Using In-lined Ruby scripts for
mediation -->
-<definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<definitions xmlns="http://ws.apache.org/ns/synapse">
<in>
<script language="rb">
<![CDATA[
@@ -3442,7 +3442,7 @@ end
<h2>
<a name="Sample360" id="Sample360">Sample 360: Introduction to dblookup
mediator</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<sequence name="myFaultHandler">
<makefault response="true">
@@ -3459,7 +3459,7 @@ end
<property name="text"
value="** Looking up from the Database
**"/>
</log>
- <dblookup
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+ <dblookup xmlns="http://ws.apache.org/ns/synapse">
<connection>
<pool>
<driver>org.apache.derby.jdbc.ClientDriver</driver>
@@ -3568,7 +3568,7 @@ end
<p/>
<h2>
<a name="Sample361" id="Sample361">Sample 361: Introduction to dbreport
mediator</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<sequence name="main">
<in>
@@ -3584,7 +3584,7 @@ end
<property name="text"
value="** Reporting to the Database
**"/>
</log>
- <dbreport
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+ <dbreport xmlns="http://ws.apache.org/ns/synapse">
<connection>
<pool>
<driver>org.apache.derby.jdbc.ClientDriver</driver>
@@ -3711,7 +3711,7 @@ INFO LogMediator text = Stock price - 15
<div>
<p>Prior to run this sample please follow the 'Setting up Synapse DataSources'
section in the
<a href="Synapse_Samples_Setup.html">sample setup guide</a>.</p>
-<pre><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre><definitions xmlns="http://ws.apache.org/ns/synapse">
<sequence name="myFaultHandler">
<makefault response="true">
<code value="tns:Receiver"
xmlns:tns="http://www.w3.org/2003/05/soap-envelope"/>
@@ -3937,7 +3937,7 @@ INFO LogMediator text = Stock price - 18
<a name="Throttle" id="Throttle">Throttling messages (Throttle
Mediator)</a></h2>
<h2>
<a name="Sample370" id="Sample370">Sample 370: Introduction to throttle
mediator and concurrency throttling</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<sequence name="main">
<in>
<throttle id="A">
@@ -3992,7 +3992,7 @@ INFO LogMediator text = Stock price - 18
<p/>
<h2>
<a name="Sample371" id="Sample371">Sample 371: Restricting requests based on
policies </a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<sequence name="main">
<in>
<throttle id="A">
@@ -4100,7 +4100,7 @@ INFO LogMediator text = Stock price - 18
<h2>
<a name="Sample372" id="Sample372">Sample 372: Use of both concurrency
throttling and request rate based throttling </a></h2>
<pre xml:space="preserve"><!-- Use of both concurrency throttling and
request rate based throttling -->
-<definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<definitions xmlns="http://ws.apache.org/ns/synapse">
<registry
provider="org.apache.synapse.registry.url.SimpleURLRegistry">
<!-- the root property of the simple URL registry helps resolve a
resource URL as root + key -->
@@ -4162,7 +4162,7 @@ INFO LogMediator text = Stock price - 18
<p>Class mediator can be used to write your own custom mediation in Java and
you have access to the SynapseMessageContext and to the full Synapse API in
there. This is a useful extension mechanism within Synapse to extend its
functionality. This class can contain fields for which you can assign values at
runtime through the configuration. </p>
<h2>
<a name="Sample380" id="Sample380">Sample 380: Writing your own custom
mediation in Java</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<sequence name="fault">
<makefault>
@@ -4300,7 +4300,7 @@ Discounted price: 138.77458254967408</pr
<p/>
<h2>
<a name="Sample381" id="Sample381">Sample 381:Class mediator to CBR binary
messages</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<proxy name="JMSBinaryProxy" transports="jms">
<target inSequence="BINARY_CBR_SEQ" />
</proxy>
@@ -4369,7 +4369,7 @@ Discounted price: 138.77458254967408</pr
<h2>
<a name="Sample390" id="Sample390">Sample 390: Introduction to the XQuery
mediator</a></h2>
<pre xml:space="preserve"> <!-- Introduction to the XQuery mediator
-->
-<definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<definitions xmlns="http://ws.apache.org/ns/synapse">
<!-- the SimpleURLRegistry allows access to a URL based registry (e.g.
file:/// or http://) -->
<registry
provider="org.apache.synapse.registry.url.SimpleURLRegistry">
@@ -4426,7 +4426,7 @@ Discounted price: 138.77458254967408</pr
<p/>
<h2>
<a name="Sample391" id="Sample391">Sample 391: How to use data from an
external XML document with in XQuery </a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<!-- the SimpleURLRegistry allows access to URL based registry (e.g.
file:/// or http://) -->
<registry
provider="org.apache.synapse.registry.url.SimpleURLRegistry">
@@ -4471,7 +4471,7 @@ Discounted price: 138.77458254967408</pr
<a name="Splitter" id="Splitter">Splitting messages in to parts and process in
parallel (Iterate / Clone)</a></h2>
<h2>
<a name="Sample400" id="Sample400">Sample 400: Message splitting and
aggregating the responses</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<proxy name="SplitAggregateProxy">
<target>
@@ -4516,7 +4516,7 @@ Discounted price: 138.77458254967408</pr
<p>Cache mediator can be used to utilize the network bandwidth, to protect the
backend service from being loaded with the same type of requests like browser
refresh actions and also to speed up the execution of the web service. This
mediator should be used with sense, because it is not applicable for each and
every service (for example services with dynamic responses for a particular
release) </p>
<h2>
<a name="Sample420" id="Sample420">Sample 420: Simple cache implemented on
Synapse for the actual service</a></h2>
-<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<in>
<cache timeout="20" scope="per-host"
collector="false"
hashGenerator="org.wso2.caching.digest.DOMHASHGenerator">
@@ -4550,7 +4550,7 @@ Discounted price: 138.77458254967408</pr
<h2>
<a name="Sample430" id="Sample430">Sample 430: Simple Callout Mediator for
synchronizing web service invocation</a></h2>
<pre xml:space="preserve"> <!-- Simple callout mediator -->
-<definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<definitions xmlns="http://ws.apache.org/ns/synapse">
<callout
serviceURL="http://localhost:9000/services/SimpleStockQuoteService"
action="urn:getQuote">
<source
xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/"
@@ -4832,7 +4832,7 @@ following on the console:</p>
<a name="Sample500" id="Sample500">Sample 500: Simple Eventing Sample</a>
</h2>
<pre xml:space="preserve"><!-- Simple Eventing configuration -->
-<definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<definitions xmlns="http://ws.apache.org/ns/synapse">
<eventSource name="SampleEventSource">
<subscriptionManager
class="org.apache.synapse.eventing.managers.DefaultInMemorySubscriptionManager">
<property name="topicHeaderName"
value="Topic"/>
@@ -4905,7 +4905,7 @@ following on the console:</p>
<a name="Sample501" id="Sample501">Sample 501: EventSource with static
subscriptions</a>
</h2>
<pre xml:space="preserve"><!-- Eventing configuration with static
subscriptions-->
-<definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<definitions xmlns="http://ws.apache.org/ns/synapse">
<eventSource name="SampleEventSource">
<subscriptionManager
class="org.apache.synapse.eventing.managers.DefaultInMemorySubscriptionManager">
<property name="topicHeaderName"
value="Topic"/>
@@ -4958,7 +4958,7 @@ following on the console:</p>
 
</p>
<pre xml:space="preserve"><!-- Eventing configuration with
transformation before publish-->
-<definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+<definitions xmlns="http://ws.apache.org/ns/synapse">
<eventSource name="SampleEventSource">
<subscriptionManager
class="org.apache.synapse.eventing.managers.DefaultInMemorySubscriptionManager">
<property name="topicHeaderName"
value="Topic"/>
@@ -5133,7 +5133,7 @@ following on the console:</p>
<h2>
<a name="Sample650" id="Sample650">Sample 650: Priority Based Message
Mediation</a>
</h2>
- <pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
+ <pre xml:space="preserve"><definitions
xmlns="http://ws.apache.org/ns/synapse">
<priorityExecutor name="exec">
<queues>
<queue size="100" priority="1"/>