Bill , following is the sample I ahve tested - This is similar to sample 300. It worked
<!-- Introduction to Tasks with simple trigger --> <definitions xmlns="http://ws.apache.org/ns/synapse"> <task class="org.apache.synapse.startup.tasks.MessageInjector" name="CheckPrice"> <property name="to" value=" http://localhost:9000/services/SimpleStockQuoteService"/> <property name="soapAction" value="urn:getQuote"/> <property name="message"> <m0:getQuote xmlns:m0="http://services.samples"> <m0:request> <m0:symbol sessionID="one"/> </m0:request> </m0:getQuote> </property> <trigger interval="5"/> </task> <in> <filter xmlns="http://ws.apache.org/ns/synapse" xpath="boolean(//m:getQuote/m:request/m:symbol/@sessionID)" xmlns:m="http://services.samples"> <log level="custom"> <property name="sessID" expression="//m:getQuote/m:request/m:symbol/@sessionID" xmlns:m="http://services.samples"/> </log> </filter> <send/> </in> <out> <log level="custom"> <property name="Stock_Quote_on" expression="//ns:return/ax21:lastTradeTimestamp/child::text()" xmlns:ax21="http://services.samples/xsd" xmlns:ns=" http://services.samples"/> <property name="For_the_organization" expression="//ns:return/ax21:name/child::text()" xmlns:ax21="http://services.samples/xsd" xmlns:ns=" http://services.samples"/> <property name="Last_Value" expression="//ns:return/ax21:last/child::text()" xmlns:ax21="http://services.samples/xsd" xmlns:ns=" http://services.samples"/> </log> </out> </definitions> On Wed, Jun 24, 2009 at 1:20 AM, Bill Harts <[email protected]> wrote: > pls try with no data in the symbol tag like > > <m:symbol *sessionID="one" /*> > > > > Mixtped pn my iphne > > On Jun 23, 2009, at 2:25 PM, indika kumara <[email protected]> wrote: > > Bill , I have tested your scenario with the following mediator > configuration and the message. It worked. > > Mediator configuration > > <filter xmlns=" <http://ws.apache.org/ns/synapse> > http://ws.apache.org/ns/synapse" > xpath="boolean(//m:GetQuote/m:symbol/@sessionID)" > xmlns:m="<http://www.webserviceX.NET/> > http://www.webserviceX.NET/"> > <log level="custom"> > <property name="sessID" > expression="//m:GetQuote/m:symbol/@sessionID" > xmlns:m="<http://www.webserviceX.NET/> > http://www.webserviceX.NET/"/> > </log> > </filter> > > Message > > <m:GetQuote xmlns:m=" <http://www.webserviceX.NET/> > http://www.webserviceX.NET/"> > <m:symbol *sessionID="one"*>IBM</m:symbol> > </m:GetQuote> > > Out put > > *sessID = one* > > Thanks > Indika > >
