Create Random Values Variable on SOAP request


Please help me to create random values using a variable. I’m trying this request XML, with random variable,


and use this,

it’s not working

import org.apache.commons.lang.RandomStringUtils

String charset = ((‘A’…‘Z’)+(‘1’…‘9’)).join()
Integer lenght = 3
def randomString = RandomStringUtils.random(lenght, charset.toCharArray())
println randomString

response = WS.sendRequest(findTestObject(‘processPO’, [(‘random’) : randomString ]))

RequestObject request = WSResponseManager.getInstance().getCurrentRequest()

ResponseObject response = WSResponseManager.getInstance().getCurrentResponse()