Forum Discussion

M_McDonald's avatar
M_McDonald
Super Contributor
17 years ago

Rewritten response xml in RequestFilter.afterRequest event is pretty-printed

Hi -

I am intercepting requests and setting the response with:

context.httpResponse.responseContent = xmlResult


xmlResult contains CDATA elements, but these are being stripped out even though I have pretty printing set to false on the request. How can I get around this?

log.info context.httpResponse.prettyPrint


returns false.


Thanks.

5 Replies

  • M_McDonald's avatar
    M_McDonald
    Super Contributor
    I see that the CDATA elements are now appearing, thanks for the fix.

    Is there a reason the Raw tab still shows the original response?
  • Hi!

    great!

    The Raw tabs show the raw messages sent/received by soapUI over the wire.. after or before and processing.. i agress it is confusing in this situation.. hmm... not sure I want to change it thought :-)

    regards!

    /Ole
    eviware.com