Forum Discussion

sushant99's avatar
sushant99
Occasional Contributor
15 years ago

datasource loop and web service input list object

Hi there,

I have a web service which has one input attribute as list of values (multiple occurrence) besides other inputs which are single occurrence. I am using the datasource loop to grab all input data to be passed to the web service request. I am able to map the single occurrence value columns retrieved from the query directly to the web service request input attributes but am wondering how to go about mapping a collection (database retrieved values) to web service input (list).


Let me know your thoughts


Regards, S

2 Replies

  • sushant99's avatar
    sushant99
    Occasional Contributor
    Ok. Will verify if this can be applied for my scenario.

    I am already running a datasource -datasource loop (step1 of the test suite) for populating the web service request which works well for single occurence elements in the payload. Step 2 of my test suite is the TestRequest step which prepares the web service request payload.
    Should i be running another datasource-datasource loop nested under the parent datasource loop just to populate the web service request multi-occurence element values. I believe the only way to handle this is via groovy script interspersed b/w the second datasource loop and the Test Request