Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

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

Avatar

Avatar
Level 1
cybersnl
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
cybersnl
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile
cybersnl
Level 1

11-12-2008

Hi,



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?



thanks,

Sunil

Replies

Avatar

Avatar
Affirm 1
Level 2
Zee_Yang
Level 2

Likes

0 likes

Total Posts

29 posts

Correct Reply

1 solution
Top badges earned
Affirm 1
View profile

Avatar
Affirm 1
Level 2
Zee_Yang
Level 2

Likes

0 likes

Total Posts

29 posts

Correct Reply

1 solution
Top badges earned
Affirm 1
View profile
Zee_Yang
Level 2

12-12-2008

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.