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
Hi, I am using the code below to connect to an IMAP server. When I telnet to the server and use the commands that I am sending in the code, the rsponses are correct. However, when I run the code below, I only obtain the ready and logged in responses
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 re
Dear All I am doing a scenario where I am receiving an asynchronous message in BPM and sending it Synchronously to the external system A. When I get a response from the external system I have to check a condition in BPM and based on that either have
Hi everyone I want to transform from CDATA to XML and I don´t know how to do. anyone can help me please? I'm using OSB OEPE PS3, I have artifacts: person.PROXY, person.BIZ, BIZ-Person.WSDL, PROXY-Person.WSDL, Person-response.xq and Person.xsd. I Use
Hi all, I'm trying to use OpenSTA to automate flex application for Performance and load testing, i got struck with Remote objects and AMF protocols. In OpenSTA AMF protocols are recorded in  binary formats and i'm not getting the response for Flex wi
Hi, I want to implement a scenario like this. A third party system use the soap adapter to call the ECC RFC via XI. AND I want to write the RFC response into another RFC. After that i want to send back another Rfc response result to soap client (thir
Hello to everyone, My doubt is really persistent and it's an important one... Imagine we have an wsdl and we create a enterprise service proxy client. The R3 will generate 'Z' tables for the structure which the webservice needs for the request and th
How can I integrate My oracle policy modelling project or rules with Flex Application.We r Trying to make similar type of project which has been given under OPM Example (Social Sevices) but in Adobe Flex. Till now i have written rules in oracle polic
Hi all. I am new to Flex. I am acting in an architect capacity to review the potential in Flex to become the client presentation layer for a classic ASP?SQL application. I am seeking a cross-browser, cross-platform, zero-installation, just-in-time-de
Hi All, I am experimenting with developing websevices using Sun Java Application Server. I have a working webservice using BEA Weblogic and I would like to have it ported to SUN. The application works like this: A client (Tuxedo application program)
Hi Experts I am trying to call NW BPM scenario(File to BPM) from PI, and using below adapter config. I am getting below error. Failed to call the endpoint: Error in call over HTTP: HTTP 200 OK SOAP: Call failed: java.io.IOException: HTTP Error respon
Hi- We've recently run into a problem with a service provider that is requiring the response code of one of our servlets to be 'HTTP/1.1 200 OK' - i.e. the Reason-Phrase has to be equal to 'OK'. It appears that the Servlet implementation (we are usin
hi all i have a simple class that call a webservice and gets back an xml response, with SOAP. here is a sample : HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"    xmlns:s="library://ns.adobe.com/flex/spark"    xmlns:mx="library://ns.adobe.com/flex/halo" width=&
          WebLogic Server 6.1 SP2 running on NT 4.0 SP6           We need to use a non-persistent cookie as a persistence mechanism to store session           information when a user browser on multiple pages. The cookie may be set multiple          
Hello all, have you ever experienced that after incresing SAPs (adding 2 more CPU + 4 GB of memory) on the VMware ESX 3.5 the DB response time went from 150 to 400-500 ms ? NO DB parameter were changed. In app server, only extended memory and program
I've got the new Lenovo Flex 2 14 with a 500 gb HHD. Now I want to upgrade to a ssd. The problem is that the hardware maintenance manual does not specify how to remove the compartment cover in case of the flex 2 14, which has no optical drive like th
hi all i have a simple class that call a webservice and gets back an xml response, with SOAP. here is a sample : HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?>
Hi, all, We've got IDA's who are testing our work by attempting to SQL-inject harmless code into our project(s). Because of the way we have both DEV and PRODUCTION set up, whenever their attempts cause an error, all they see is a generic error messag