Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

How to get the HTTP response body if the body is a malformed XML document


Level 1

I am using HTTP service with resultFormat = "e4x" set. What i
get in response is a malformed XML document in

some cases. Usually HTTPService throws a FaultEvent with the
fault detail set to faultCode:Client.CouldNotDecode
faultString:'Error #1091' or some other Error #1085 and so.

My client tries to log these errors on the server by using
another HTTP service again. But i would like to know

in the client code during run time what exact XML response
came in the first HTTP response.

How do i retrieve this information?


1 Reply


Level 2
service capture or charles debug proxy can do the job.

flex builder 4 is rumored to include a traffic sniffer as
well, but that's next year.