Is it possible and if yes than how, to run a single XML request with different data. Here is an example of the request:
<soapenv:Envelope xmlns:soapenv="http://ift.tt/sVJIaE" xmlns:chan="xxx">
<soapenv:Header/>
<soapenv:Body>
<chan:hire>
<MessageID>123</MessageID>
<Worker>
<WorkerId>987</WorkerId>
<FirstName>aaa</FirstName>
<LastName>aTest</LastName>
</Worker>
</chan:hire>
</soapenv:Body>
</soapenv:Envelope>
I'd like to write a groovy script that will run the request eg. 10 times, each time incrementing MessageID and WorkerID by one and changing name (aaa>bbb>ccc>etc.) and respectively surname aTest>bTest>cTest. If that's impossible than at least name like a>aa>aaa>aaaa and surname b>bb>bbb>bbbb etc.
Thanks! :)
Aucun commentaire:
Enregistrer un commentaire