You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by pz...@apache.org on 2006/01/22 19:21:45 UTC
svn commit: r371342 - /incubator/synapse/trunk/java/repository/synapse.xml
Author: pzf
Date: Sun Jan 22 10:21:42 2006
New Revision: 371342
URL: http://svn.apache.org/viewcvs?rev=371342&view=rev
Log:
added more comments to synapse.xml
Modified:
incubator/synapse/trunk/java/repository/synapse.xml
Modified: incubator/synapse/trunk/java/repository/synapse.xml
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/java/repository/synapse.xml?rev=371342&r1=371341&r2=371342&view=diff
==============================================================================
--- incubator/synapse/trunk/java/repository/synapse.xml (original)
+++ incubator/synapse/trunk/java/repository/synapse.xml Sun Jan 22 10:21:42 2006
@@ -1,26 +1,36 @@
<synapse xmlns="http://ws.apache.org/ns/synapse">
+ <!-- start by reading ws-a headers if they exist -->
<engage-addressing-in/>
+
+ <!-- now log the message using log4j -->
<log/>
- <!-- this matches the gateway case -->
+
+ <!-- Check if the URL matches the stockquote gateway/dumb case -->
<regex message-address="to" pattern="/StockQuote.*">
<ref ref="stockquote"/>
</regex>
- <!-- this matches the virtual url case for either the proxy or ws-add case -->
+ <!-- check if the URL matches the virtual url - either the proxy or ws-add case -->
<regex message-address="to" pattern="http://stockquote.*">
<ref ref="stockquote"/>
</regex>
+ <!-- send the message on -->
<send/>
<!-- these are only called if referenced above-->
<never>
+
<stage name="stockquote">
+ <!-- set the To address to the real endpoint -->
<header type="to" value="http://www.webservicex.net/stockquote.asmx" />
+ <!-- check if the symbol is MSFT -->
<xpath expr="//*[wsx:symbol='MSFT']" xmlns:wsx="http://www.webserviceX.NET/">
+ <!-- if it is throw a fault -->
<fault/>
</xpath>
</stage>
+
</never>
</synapse>
---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org