gkaindia.com

Home > > HTTP Responses with Flex, how to transform http 500 into http 200

HTTP Responses with Flex, how to transform http 500 into http 200

Advertisement
Hello
We have deployed a Web Service application in our WAS 7.10 SP6.
Our application is a standard java 5 app with annotations (ejbs exposed as web services).
When a web service call operation returns a java exception (any kind of exception), WAS returns http 500 to the client.
http 500 cannot be interpreted by a flex client (2.0, 3.0 no matter which version) because of an interaction between browser and flex runtime issue.   Flex code can only obtain an i/o error when http 500 is returned by the server.
The usual way to solve this problem is to create a filter that transforms http 500 to http 200, but we don't know how to implement a filter for web services http responses in WAS 7.1 or 7.0
Other solutions involve using Adobe proxy, but in our case we can't use it.
Is there any other solution to this matter?
Advertisement
Hello
We have deployed a Web Service application in our WAS 7.10 SP6.
Our application is a standard java 5 app with annotations (ejbs exposed as web services).
When a web service call operation returns a java exception (any kind of exception), WAS returns http 500 to the client.
http 500 cannot be interpreted by a flex client (2.0, 3.0 no matter which version) because of an interaction between browser and flex runtime issue.   Flex code can only obtain an i/o error when http 500 is returned by the server.
The usual way to solve this problem is to create a filter that transforms http 500 to http 200, but we don't know how to implement a filter for web services http responses in WAS 7.1 or 7.0
Other solutions involve using Adobe proxy, but in our case we can't use it.
Is there any other solution to this matter?
Read the other 8 answers