mrhaboobi
16 years agoNew Contributor
MockService, Adding XML Nodes to Mock Response.
I'm new to SoapUI and Groovy, so appologies if this is an obvious question.
One of my responses is stubbed out like ( See below ) I can return one or more Validation Faults.. under validation faults i can have a details node and various other things, im just wondering how i would dynamically add Validation faults to this response. Essentially i want to add nodes and child nodes to the response.
Again sorry if this is all blindly obvious, some sample code would be greatly appreciated.
Invalid UserName Supplied
...
One of my responses is stubbed out like ( See below ) I can return one or more Validation Faults.. under validation faults i can have a details node and various other things, im just wondering how i would dynamically add Validation faults to this response. Essentially i want to add nodes and child nodes to the response.
Again sorry if this is all blindly obvious, some sample code would be greatly appreciated.
s:Sender
...