Forum Discussion
BouncyBall
7 years agoNew Contributor
Hey,
Thanks for the response.
I checked in the custom properties what the request value is and it is ${x}. So it seems that when my script runs, he does not use the values I provide.
Also my script fails if I don't run the SOAP request manually first. But if I then run the script, it will always take the result of the manual SOAP request execution. It's like the script doesn't trigger a new request but just keeps working on the manually run request.
My SOAP request looks like this (left the SOAP header out for privacy reasons):
<soapenv:Header/> <soapenv:Body> <tran:RetrieveEquipmentModelDetail> <!--Optional:--> <tran:equipmentModelIds> <!--Zero or more repetitions:--> <equ:EquipmentModelId> <!--Optional:--> <equ:Id>${x}</equ:Id> </equ:EquipmentModelId> </tran:equipmentModelIds> </tran:RetrieveEquipmentModelDetail> </soapenv:Body> </soapenv:Envelope>
My script is this:
context.x = "000000000099007809" def response = context.expand( '${RetrieveEquipmentModelDetail#Response}') log.info response
There is not other step involved. It's just the SOAP request and a Groovy script.
Related Content
- 2 years ago
- 6 years ago
- 2 years ago
- 6 years ago