Hi,
I did some testing and here is the analysis.
I am using "Raise Error" assertion in the policy and because of this the Request body is not logged incase of error.
Instead of Request Body, I see "Unable to get request xml:Stream Closed".
But, If I catch the message in Service Debugger, then the Request Body is properly logged even if there is an error.
Also, if during the flow, "Raise Error" assertion is not executed and some other error occurs (for example Route via HTTPs error), then also the Request Body is logged properly.
Original Message:
Sent: 01-28-2020 06:01 AM
From: Ronald Dsouza
Subject: Audit Request Body Save : Unable to get request XML: Stream closed
The request body aspect comes from Request payload
Most likely you have some snippet that send the request body in either your app or on gateway as follow which is why you get the error. This is very less likely a gateway issue..
------------------------------
Pre-Sales Consultant
CA Southern Africa
Original Message:
Sent: 01-28-2020 05:45 AM
From: Amit Jaiswal
Subject: Audit Request Body Save : Unable to get request XML: Stream closed
My mistake... it is not an error, I just see this in the Request section (next to Associated logs) of the Audit window, where the body must be logged.
Disclaimer: This communication is for the exclusive use of the intended recipient(s) and shall not attach any liability on the originator or ITC Infotech India Ltd./its Holding company/ its Subsidiaries/ its Group Companies. If you are the addressee, the contents of this e-mail are intended for your use only and it shall not be forwarded to any third party, without first obtaining written authorization from the originator or ITC Infotech India Ltd./ its Holding company/its Subsidiaries/ its Group Companies. It may contain information which is confidential and legally privileged and the same shall not be used or dealt with by any third party in any manner whatsoever without the specific consent of ITC Infotech India Ltd./ its Holding company/ its Subsidiaries/ its Group Companies.
Original Message------
------------------------------
Pre-Sales Consultant
CA Southern Africa
------------------------------