Thank you for the link. Unfortunately that is not helpful. That is how I am currently doing it. What I really want is the request panel to show the xml, not the property; this allows the user to see the xml as normal except it is generated from the library rather than by SoapUI.
Instead of:
<soap:Envelope xmlns:soap="
http://www.w3.org/2003/05/soap-envelope" >
<soap:Header/>
<soap:Body>
${#TestCase#certifyXML}
</soap:Body>
</soap:Envelope>
I want the entire xml that I am generating to appear in this panel.
I think I am close with using new com.eviware.soapui.support.GroovyUtils(context) and setting the request context: context.requestContent. However, I can't figure out how to communicate directly with the specific test case and update the request.