开发者

Adobe Flex 3 : Fault Event doesnt return XML Feed sent from Server

开发者 https://www.devze.com 2022-12-12 05:54 出处:网络
I am working on a flex application which communicates with a Rails backened. When i request for some data, It sends back xml feed.

I am working on a flex application which communicates with a Rails backened. When i request for some data, It sends back xml feed.

In some cases, if given p开发者_运维知识库arameters are not valid, then rails return an error feed with status code = 422 as following email is wrong

But I dont get this feed in FaultEvent of Flex, How could i read error feed?

Thanks


Are you getting the result in ResultEvent in such cases? I am not sure for what all HTTP error codes FaultEvent will get invoke(I know only it goes for 404 and 500). May be its still going to ResultEvent as a valid result!


You can use HTTPService instead of URLLoader.


Flex HTTP results will not include the actual underlying HTTP response codes. It just doesn't work. (TM)

0

精彩评论

暂无评论...
验证码 换一张
取 消