Syamala
16 years agoOccasional Contributor
How to pass data from response XML to request XML as input with groovy script
Hi,
I have a webservice which returns list of all players. the response is as below....
Tendulkar Ganguly Dravid
Result data is : Tendulkar, Ganguly and Dravid.
I want to pass each name as input to another webservice which gives me the age of each player.
i.e I want to pass all three values one after the other to another webservice which takes Player name as input and gives me the age of that particular players.
Could you please tell me the code how can I do this with Groovy script
The input XML for getAgeof Player webservice is
Tendulkar
and response is :
32
I want to automate using Groovy script. After getting results from webservice , I want to pass them to another and run automatically one after the other.
Please kindly share me the code
Appreciate your help.
Thanks
SYamala
I have a webservice which returns list of all players. the response is as below....
Result data is : Tendulkar, Ganguly and Dravid.
I want to pass each name as input to another webservice which gives me the age of each player.
i.e I want to pass all three values one after the other to another webservice which takes Player name as input and gives me the age of that particular players.
Could you please tell me the code how can I do this with Groovy script
The input XML for getAgeof Player webservice is
and response is :
I want to automate using Groovy script. After getting results from webservice , I want to pass them to another and run automatically one after the other.
Please kindly share me the code
Appreciate your help.
Thanks
SYamala