You can't pass dynamic values for property. However you can store the rate in message context and extract from from message context from class mediator.
eg: synCtx.getProperty(key); On Mon, Jun 22, 2015 at 12:11 PM, Aaquibah Nashry <nas...@wso2.com> wrote: > Hi, > i am trying to get the current currency exchange rate from EUR to USD from > a webservice. i used a call mediator as follows: > > <call> > <endpoint> > <address uri=" > http://www.webservicex.net/CurrencyConvertor.asmx?WSDL"/> > </endpoint> > </call> > > I need to send the FromCurrency and the ToCurrency to the webservice and > get the rate. How can i do this? > > Also, > how can i store the value returned, in my proxy and then send this value > into a class mediator that i have written. > <class name="mediator.CustomMediator"> > <property name="rate" value="100"/> > </class> > I want to send the rate instead of the value 100 > > > > Please help... > > Thanks and Regards, > > M.R.Aaquibah Nashry > *Intern, Engineering**| **WSO2, Inc.* > Mobile : +94 773946123 > Tel : +94 112662541 > Email : nas...@wso2.com <nas...@wso2.com> > > _______________________________________________ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Best Regards, Malaka Silva Senior Tech Lead M: +94 777 219 791 Tel : 94 11 214 5345 Fax :94 11 2145300 Skype : malaka.sampath.silva LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 Blog : http://mrmalakasilva.blogspot.com/ WSO2, Inc. lean . enterprise . middleware http://www.wso2.com/ http://www.wso2.com/about/team/malaka-silva/ <http://wso2.com/about/team/malaka-silva/> Save a tree -Conserve nature & Save the world for your future. Print this email only if it is absolutely necessary.
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev