Forum Discussion

Woogeek's avatar
Woogeek
New Contributor
11 years ago

SoapUI Mock: multiple response

Hello,

I'm trying to do dynamic MockService with SoapUI. Problem is:
I create MockResponse with data from a database, and I need to put in the response many same rows (sorry for the language, I'm French).
I explain:
The result from the database is like that:

name: John
age: 18

name: Doe
age: 50

And I want to put those data in the response. Like that:

 <soapenv:Body>
<con:result>
<person>
<name>John</name>
<age>18</age>
</person>
<person>
<name>Doe</name>
<age>50</age>
</person>
</con:result>
</soapenv:Body>


I don't know how I can have same structures ( number of person = number of structure <person></person> in the response)
Thank you for your answer
No RepliesBe the first to reply