Alejandro21
11 years agoOccasional Contributor
Adding multiple values to request parameters
Hi all, I need to send a request that consist of a dynamic number of parameters based on a given input, something like this:
<wfas:A>
<wfas:B>V1</wfas:B>
<wfas:C>V2</C>
</wfas:A>
<wfas:A>
<wfas:B>V3</wfas:B>
<wfas:C>V4</C>
</wfas:A>
<wfas:A>
<wfas:B>V5</wfas:B>
<wfas:C>V6</C>
</wfas:A>
V1 through V6 will be the received input. I guess I need to do this using a groovy script. I have used the SetPropertyValue method to add a single value to a parameter, my goal now is to be able to add as much as requested. The thing is I'm a newbie with groovy so I'm kind of lost. Does anyone have an idea from which I can start from?
Thanks in advance,
Alejandro
<wfas:A>
<wfas:B>V1</wfas:B>
<wfas:C>V2</C>
</wfas:A>
<wfas:A>
<wfas:B>V3</wfas:B>
<wfas:C>V4</C>
</wfas:A>
<wfas:A>
<wfas:B>V5</wfas:B>
<wfas:C>V6</C>
</wfas:A>
V1 through V6 will be the received input. I guess I need to do this using a groovy script. I have used the SetPropertyValue method to add a single value to a parameter, my goal now is to be able to add as much as requested. The thing is I'm a newbie with groovy so I'm kind of lost. Does anyone have an idea from which I can start from?
Thanks in advance,
Alejandro