Forum Discussion

jcaristi's avatar
17 years ago

API Question - How to retrieve request/response XML?

We are just getting started with the SoapUI API.  Can anyone tell me how to retrieve the XML for a request and also for a mock response?

1 Reply

  • Try using
    def requsetHolder = groovyUtils.getXmlHolder( messageExchange.requestContent )
    def responseHolder = groovyUtils.getXmlHolder( messageExchange.responseContent )

    This should give you access to the XML

    /Nenad
    http://eviware.com