Author: ruwan
Date: Wed Jul 28 16:18:47 2010
New Revision: 980112
URL: http://svn.apache.org/viewvc?rev=980112&view=rev
Log:
migrating samples 400, 420, 430
Modified:
synapse/trunk/java/repository/conf/sample/synapse_sample_400.xml
synapse/trunk/java/repository/conf/sample/synapse_sample_420.xml
synapse/trunk/java/repository/conf/sample/synapse_sample_430.xml
Modified: synapse/trunk/java/repository/conf/sample/synapse_sample_400.xml
URL:
http://svn.apache.org/viewvc/synapse/trunk/java/repository/conf/sample/synapse_sample_400.xml?rev=980112&r1=980111&r2=980112&view=diff
==============================================================================
--- synapse/trunk/java/repository/conf/sample/synapse_sample_400.xml (original)
+++ synapse/trunk/java/repository/conf/sample/synapse_sample_400.xml Wed Jul 28
16:18:47 2010
@@ -1,3 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
@@ -23,15 +24,14 @@
<proxy name="SplitAggregateProxy">
<target>
<inSequence>
- <iterate expression="//m0:getQuote/m0:request"
preservePayload="true"
- attachPath="//m0:getQuote"
- xmlns:m0="http://services.samples">
+ <iterate xmlns:m0="http://services.samples"
expression="//m0:getQuote/m0:request"
+ preservePayload="true" attachPath="//m0:getQuote">
<target>
<sequence>
<send>
<endpoint>
<address
-
uri="http://localhost:9000/services/SimpleStockQuoteService"/>
+
uri="http://localhost:9000/services/SimpleStockQuoteService"/>
</endpoint>
</send>
</sequence>
@@ -40,12 +40,13 @@
</inSequence>
<outSequence>
<aggregate>
- <onComplete expression="//m0:getQuoteResponse"
- xmlns:m0="http://services.samples">
+ <onComplete xmlns:m0="http://services.samples"
+ expression="//m0:getQuoteResponse">
<send/>
</onComplete>
</aggregate>
</outSequence>
</target>
</proxy>
-</definitions>
\ No newline at end of file
+
+</definitions>
Modified: synapse/trunk/java/repository/conf/sample/synapse_sample_420.xml
URL:
http://svn.apache.org/viewvc/synapse/trunk/java/repository/conf/sample/synapse_sample_420.xml?rev=980112&r1=980111&r2=980112&view=diff
==============================================================================
--- synapse/trunk/java/repository/conf/sample/synapse_sample_420.xml (original)
+++ synapse/trunk/java/repository/conf/sample/synapse_sample_420.xml Wed Jul 28
16:18:47 2010
@@ -1,3 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
@@ -19,19 +20,23 @@
<!-- Simple cache implemented on synapse for the actual service -->
<definitions xmlns="http://synapse.apache.org/ns/2010/04/configuration">
- <in>
- <cache timeout="20" scope="per-host" collector="false"
- hashGenerator="org.wso2.caching.digest.DOMHASHGenerator">
- <implementation type="memory" maxSize="100"/>
- </cache>
- <send>
- <endpoint>
- <address
uri="http://localhost:9000/services/SimpleStockQuoteService"/>
- </endpoint>
- </send>
- </in>
- <out>
- <cache collector="true"/>
- <send/>
- </out>
-</definitions>
\ No newline at end of file
+
+ <sequence name="main">
+ <in>
+ <cache timeout="20" scope="per-host" collector="false"
+ hashGenerator="org.wso2.caching.digest.DOMHASHGenerator">
+ <implementation type="memory" maxSize="100"/>
+ </cache>
+ <send>
+ <endpoint>
+ <address
uri="http://localhost:9000/services/SimpleStockQuoteService"/>
+ </endpoint>
+ </send>
+ </in>
+ <out>
+ <cache collector="true"/>
+ <send/>
+ </out>
+ </sequence>
+
+</definitions>
Modified: synapse/trunk/java/repository/conf/sample/synapse_sample_430.xml
URL:
http://svn.apache.org/viewvc/synapse/trunk/java/repository/conf/sample/synapse_sample_430.xml?rev=980112&r1=980111&r2=980112&view=diff
==============================================================================
--- synapse/trunk/java/repository/conf/sample/synapse_sample_430.xml (original)
+++ synapse/trunk/java/repository/conf/sample/synapse_sample_430.xml Wed Jul 28
16:18:47 2010
@@ -1,3 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
@@ -19,17 +20,21 @@
<!-- Simple callout mediator -->
<definitions xmlns="http://synapse.apache.org/ns/2010/04/configuration">
- <callout
serviceURL="http://localhost:9000/services/SimpleStockQuoteService"
- 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]"/>
- </callout>
- <property name="RESPONSE" value="true"/>
- <header name="To" action="remove"/>
- <send/>
- <drop/>
-</definitions>
\ No newline at end of file
+
+ <sequence name="main">
+ <callout
serviceURL="http://localhost:9000/services/SimpleStockQuoteService"
+ 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]"/>
+ </callout>
+ <property name="RESPONSE" value="true"/>
+ <header name="To" action="remove"/>
+ <send/>
+ <drop/>
+ </sequence>
+
+</definitions>