Hi, Try using payloadfactory mediator to create request for the second service call. You can use XPathExpressions to retrieve values from the response of the first service call.
Please find a complete tutorial on similar use case in [1]. Thanks, [1] http://wso2.com/library/articles/2014/02/service-orchestration-with-wso2-esb/ On Mon, Jun 22, 2015 at 12:47 PM, Aaquibah Nashry <[email protected]> wrote: > Any idea about the first part of the question? How do i send the parameters > to the webservice using the call mediator? > > Thanks and Regards, > > M.R.Aaquibah Nashry > Intern, Engineering| WSO2, Inc. > Mobile : +94 773946123 > Tel : +94 112662541 > Email : [email protected] > > On Mon, Jun 22, 2015 at 12:25 PM, Aaquibah Nashry <[email protected]> wrote: >> >> Thanks >> >> Thanks and Regards, >> >> M.R.Aaquibah Nashry >> Intern, Engineering| WSO2, Inc. >> Mobile : +94 773946123 >> Tel : +94 112662541 >> Email : [email protected] >> >> On Mon, Jun 22, 2015 at 12:18 PM, Malaka Silva <[email protected]> wrote: >>> >>> 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 <[email protected]> >>> 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 : [email protected] >>>> >>>> _______________________________________________ >>>> Dev mailing list >>>> [email protected] >>>> 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/ >>> >>> Save a tree -Conserve nature & Save the world for your future. Print this >>> email only if it is absolutely necessary. >> >> > > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > -- Viraj Senevirathne Software Engineer; WSO2, Inc. Mobile : +94 71 818 4742 Email : [email protected] _______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
