Firstly, I'm new to Groovy so apologies in advance for any school boy errors in the below.

I've created a script which I'm using to simulate the behaviour of a SOAP service in SOAP UI (as a mock...