Would be good if Asanka's Chaining sample could be added in for Release 3 and also a test case for this. I think this example poses a problem if the proxy is changed to a VFS file mediator proxy when the out_only is set to stop the callback table growing, the chaining no longer works ??? <property action="set" name="OUT_ONLY" value="true"/>
I am testing this. Chaining Example: http://adroitlogic.org/knowledge-base-synapse/11-message-chaining-with-synapse.html <definitions xmlns="http://ws.apache.org/ns/synapse"> <proxy name="StockQuoteProxy"> <target> <endpoint> <address uri="http://localhost:9000/soap/SimpleStockQuoteService"/> </endpoint> <outSequence> <log level="custom"> <property name="LAST PRICE" expression="//ns:getQuoteResponse/ns:return/ax:last" xmlns:ns="http://services.samples/xsd" xmlns:ax="http://services.samples/xsd"/> </log> <filter xpath="fn:number(//ns:getQuoteResponse/ns:return/ax:last) > 70" xmlns:ns="http://services.samples/xsd" xmlns:ax="http://services.samples/xsd"> <then> <log level="custom"><property name="MSG" value="send again"/></log> <script language="js"><![CDATA[ var symbol = mc.getPayloadXML()..*::symbol.toString() + "_RETRY"; mc.setPayloadXML( <m:getQuote xmlns:m="http://services.samples/xsd"> <m:request> <m:symbol>{symbol}</m:symbol> </m:request> </m:getQuote>); ]]></script> <send> <endpoint> <address uri="http://localhost:9000/soap/SimpleStockQuoteService"/> </endpoint> </send> </then> <else> <log level="custom"> <property name="MSG" value="send reply"/> </log> <send/> </else> </filter> </outSequence> </target> </proxy> </definitions> -- View this message in context: http://www.nabble.com/Chaining-Sample-for-Release-1.3-tp23475248p23475248.html Sent from the Synapse - Dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
