BouncyBall
7 years agoNew Contributor
Passing a value in a Groovy request and catching the response
Hey,
I am really having trouble with this simple groovy script. I have a SOAP service that takes a single parameter and I just want to pass the parameter as a variable and catch the response. The request outputs the correct structure with the value I passed but the response is always empty.
I passed the parameter in the SOAP request as ${x} and wrote some code like this :
def durp = context.x = "000000000009006087" def request = context.expand( '${RetrieveEquipmentModelDetail#Request}') log.info request.toString() //log.info context.toString() def response = context.expand( '${$request#Response}') //log.info context.toString() log.info response.toString()