You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@synapse.apache.org by ve...@apache.org on 2012/09/17 21:33:14 UTC
svn commit: r1386787 - in /synapse/branches/SYNAPSE-905:
modules/documentation/src/site/xdoc/userguide/samples/sample352.xml
repository/conf/sample/synapse_sample_352.xml
Author: veithen
Date: Mon Sep 17 19:33:13 2012
New Revision: 1386787
URL: http://svn.apache.org/viewvc?rev=1386787&view=rev
Log:
Fixed sample 352.
Modified:
synapse/branches/SYNAPSE-905/modules/documentation/src/site/xdoc/userguide/samples/sample352.xml
synapse/branches/SYNAPSE-905/repository/conf/sample/synapse_sample_352.xml
Modified: synapse/branches/SYNAPSE-905/modules/documentation/src/site/xdoc/userguide/samples/sample352.xml
URL: http://svn.apache.org/viewvc/synapse/branches/SYNAPSE-905/modules/documentation/src/site/xdoc/userguide/samples/sample352.xml?rev=1386787&r1=1386786&r2=1386787&view=diff
==============================================================================
--- synapse/branches/SYNAPSE-905/modules/documentation/src/site/xdoc/userguide/samples/sample352.xml (original)
+++ synapse/branches/SYNAPSE-905/modules/documentation/src/site/xdoc/userguide/samples/sample352.xml Mon Sep 17 19:33:13 2012
@@ -24,26 +24,26 @@
</properties>
<body>
<section name="Sample 352: Accessing the Synapse MessageContext API Through Scripts">
- <div class="xmlConf"><definitions xmlns="http://ws.apache.org/ns/synapse">
+ <div class="xmlConf"><![CDATA[<definitions xmlns="http://ws.apache.org/ns/synapse">
- <sequence name="main">
- <in>
- <!-- change the MessageContext into a response and set a response payload -->
- <script language="js">
+ <sequence name="main">
+ <in>
+ <!-- change the MessageContext into a response and set a response payload -->
+ <script language="js">
mc.setTo(mc.getReplyTo());
mc.setProperty("RESPONSE", "true");
mc.setPayloadXML(
- <ns:getQuoteResponse xmlns:ns="http://services.samples/xsd">
- <ns:return>
- <ns:last>99.9</ns:last>
- </ns:return>
+ <ns:getQuoteResponse xmlns:ns="http://services.samples">
+ <ns:return>
+ <ns:last>99.9</ns:last>
+ </ns:return>
</ns:getQuoteResponse>);
- </script>
- </in>
- <send/>
- </sequence>
+ </script>
+ </in>
+ <send/>
+ </sequence>
-</definitions></div>
+</definitions>]]></div>
<subsection name="Objective">
<p>
Demonstrate how to access various methods on the Synapse MessageContext API
Modified: synapse/branches/SYNAPSE-905/repository/conf/sample/synapse_sample_352.xml
URL: http://svn.apache.org/viewvc/synapse/branches/SYNAPSE-905/repository/conf/sample/synapse_sample_352.xml?rev=1386787&r1=1386786&r2=1386787&view=diff
==============================================================================
--- synapse/branches/SYNAPSE-905/repository/conf/sample/synapse_sample_352.xml (original)
+++ synapse/branches/SYNAPSE-905/repository/conf/sample/synapse_sample_352.xml Mon Sep 17 19:33:13 2012
@@ -28,7 +28,7 @@
mc.setTo(mc.getReplyTo());
mc.setProperty("RESPONSE", "true");
mc.setPayloadXML(
- <ns:getQuoteResponse xmlns:ns="http://services.samples/xsd">
+ <ns:getQuoteResponse xmlns:ns="http://services.samples">
<ns:return>
<ns:last>99.9</ns:last>
</ns:return>