Author: vikas
Date: Tue Jan 17 03:01:35 2006
New Revision: 369751

URL: http://svn.apache.org/viewcvs?rev=369751&view=rev
Log:
Cleaning up, updating!

Modified:
    incubator/synapse/trunk/java/scripts/samples/deprecation_mediator/README.txt
    
incubator/synapse/trunk/java/scripts/samples/deprecation_mediator/synapse.xml

Modified: 
incubator/synapse/trunk/java/scripts/samples/deprecation_mediator/README.txt
URL: 
http://svn.apache.org/viewcvs/incubator/synapse/trunk/java/scripts/samples/deprecation_mediator/README.txt?rev=369751&r1=369750&r2=369751&view=diff
==============================================================================
--- 
incubator/synapse/trunk/java/scripts/samples/deprecation_mediator/README.txt 
(original)
+++ 
incubator/synapse/trunk/java/scripts/samples/deprecation_mediator/README.txt 
Tue Jan 17 03:01:35 2006
@@ -6,7 +6,7 @@
 3. Using the Ant command "ant synapse", start the stand-alone synapse server. 
This will be start at port 8080. 
 4. Use Ant command "ant" StockQuoteClient to run the sample. 
  
-You will get an answer if the system date is not between 06/09/2005:00:00 and 
07/12/2006:00:00 [DD/MM/yyyy:HH:mm]
+You will get an answer if the system date is not between 06/09/2005:00:00 and 
07/02/2006:00:00 [DD/MM/yyyy:HH:mm]
 
 The prior configuration is available at deprecation.xml, where it will located 
at DeprecationMediator.aar's META-INF folder. 
 

Modified: 
incubator/synapse/trunk/java/scripts/samples/deprecation_mediator/synapse.xml
URL: 
http://svn.apache.org/viewcvs/incubator/synapse/trunk/java/scripts/samples/deprecation_mediator/synapse.xml?rev=369751&r1=369750&r2=369751&view=diff
==============================================================================
--- 
incubator/synapse/trunk/java/scripts/samples/deprecation_mediator/synapse.xml 
(original)
+++ 
incubator/synapse/trunk/java/scripts/samples/deprecation_mediator/synapse.xml 
Tue Jan 17 03:01:35 2006
@@ -1,14 +1,39 @@
-<synapse xmlns="http://ws.apache.org/ns/synapse";>
-    <stage name="logall">
-        <engage-addressing-in/>
-               <log/>
-    </stage>
-    <stage name="service-specific" >
-               <regex message-address="to" 
pattern="http://64.124.140.30:9090/soap";>
-            <servicemediator name="optional" service="DeprecationMediator"/>
-               </regex>
-       </stage>
-       <stage name="sender">
-               <send/>
-       </stage>
-</synapse>
+<synapse xmlns="http://ws.apache.org/ns/synapse";>
+
+    <stage name="logall">
+        <engage-addressing-in/>
+        <log/>
+    </stage>
+
+    <stage name="service-specific">
+        <!-- this matches the gateway 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 -->
+        <regex message-address="to" pattern="http://stockquote.*";>
+            <ref ref="stockquote"/>
+        </regex>
+    </stage>
+
+    <stage name="check-deprecation" >
+        <regex message-address="to" 
pattern="http://www.webservicex.net/stockquote.asmx";>
+            <servicemediator name="Deprecation" service="DeprecationMediator"/>
+        </regex>
+    </stage>
+
+    <stage name="sender">
+        <send/>
+    </stage>
+
+    <!-- these are only called if referenced above-->
+    <never>
+        <stage name="stockquote">
+            <header type="to" 
value="http://www.webservicex.net/stockquote.asmx"; />
+            <xpath expr="//*[wsx:symbol='MSFT']" 
xmlns:wsx="http://www.webserviceX.NET/";>
+                <fault/>
+            </xpath>
+        </stage>
+    </never>
+</synapse>
+



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to