OK, let me ask this. When error on HttpService, we want to display some friendly message for user, the error message can be defined in flex, but I want it comes from server when error occurs. so I defined a 503 error on php side like this
$response->setHeader('HTTP/1.1','503 Service Unavailable');
$response->setHeader('Status','503 Service Unavailable');
$response->setHeader('Content-Length', strlen('Invalid Version'));
please ignore the php syntax, its just returing a normal http 503 response, which has a 503 header and a 'invalid version' html bod, y
now I want to popup a alert window saying "invalid version", I tried to use faultEvent.fault.faultString, faultEvent.fault.faultDetail, its not in neither of them...
WHERE IS MY HTML BODY
or faultevent just do not get html body from server?
thanks in advance!!!
Maybe we are closer to the answer
faultEvent has e.message.header and e,message.body which looks like what I want(not sure if these are request or response though), but in my case, they are empty.
How do you guys handle faultEvent? just show messages defined in flex?
On web browsers, when a service returns any status code other than 200, Adobe Flash Player cannot read the body of the response