SOATest Virtualize : How to create a dynamic response xml to send multiple transactions for account
I created a responder to return a response having multiple transactions. I have a table having data with multiple set of rows with transactions to return.
Based on the account number in the request I have to return the transactions in the response.
Response is parameterized using the table which i created. But when i trigger the request from other source i am seeing only one row (one transaction) that was returned in the response.
I need all the rows which has transactions for the same account number. Also, transactions may increase based on the account number.
Is there a way that i can iterate the number of rows having the same account number and add the accountSummary tag dynamically to the response xml for each transaction ?
Take a look at the "Multiple Responses Generator" on marketplace and in the documentation.
Thanks william. I could see that elements can be added dynamically but I have the data in the table. How could i iterate through rows to see whether it has same account number (received in request) and if yes i need to add the entire row as elements under each transactions tag0
I don't know of a way to iterate through rows and add them. Look at the documentation link I sent, the multiple responses generator has a way to break a message down into pieces and then each piece is processed to add all the transactions.0
I got another way of doing this to return multiple rows . Thanks0
Could you share how you solved this? I am facing the same issue.0