Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Is there any way to capture the "response" which is generated from tRestResponse (after the response is sent)? I have a need to save the responses for audit purposes.
java.util.Map<String, Object> response = (java.util.Map<String, Object>) globalMap.get("restResponse"); System.out.println( "Res: " + response ); --> This gives: {drop.json.root.element=true, STATUS=200, HEADERS={}, BODY=org.dom4j.tree.DefaultDocument@32f7902f [Document: name null]} System.out.println( "ResStream: " + (String) globalMap.get("restResponseStream") ); --> This is null
I tried above globalMap values, but am unsuccessful.
Hi,
tRestresponse has it own schema. Use that schema only to get output. Response comes under that schema only.
Shameles bump. Is it even possible to capture the payload once its sent? the tRestResponse component does not seem to have any output links/ globalmap variables to use. Any help is appreciated. Thank you
Hello,
Do you want to output the response on console to a specific file?
Best regards
Sabrina