Have SOAP request directly use test case variables

I’ve looked in this forum but can’t find exactly what I want yet, so hoping this is a new question with an easy solution!

Consider a SOAP request that has 50 parameters and I want to specify all of these in my test case. If I’ve already got these values declared as variables in my test case, it seems like a lot of overhead to have to add 50 variables (in the variables tab of my request), and pass every value through a long sendRequestAndVerify call.

Is it possible to have the request XML directly reference my test case’s variables? Something like this…

myVar1 = “hello”
myVar2 - “goodbye”
WS.sendRequestAndVerify(findTestObject(‘SOAP Service/MyService’))

(and then in the request XML…)

<soapenv:Envelope xmlns:soapenv=“http://schemas.xmlsoap.org/soap/envelope/” >
soapenv:Header/
soapenv:Body
${MyTestCase.myVar1}
${MyTestCase.myVar1}
</soapenv:Body>
</soapenv:Envelope>