I am new to soap Ui, and have to configure a mock, to mock responses from asoap service given some requests.
this is the groovy script to dispatch :
def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context)
def holder = groovyUtils.getXmlHolder(mockRequest.requestContent)
def idReq = String.valueOf(holder.getNodeValue("//id"))
switch (idReq) {
case "74":
context.ResultResponse = "Response_74"
break
case "53":
context.ResultResponse = "Response_53"
break
case "37":
context.ResultResponse = "Response_037"
break
case "12":
context.ResultResponse = "Response_12"
break
case "147":
context.ResultResponse = "Response_147"
break
case "90":
context.ResultResponse = "Response_90"
break
default:
context.ResultResponse = "Response_74"
break
}
Then I deployed it as a war. Some colleagues want to edit the script to add a new mock response.
I don't know how to edit it when I only have the war package. Has anyone done this before?