You might try writing a handler class that gets called on the outgoing response. If you correctly register the handler class, it will get called after the web service has formulated the response and sent it out.
You can get the HTTP headers of the response from the MessageContext passed to your invoke() in the handler class, I think, and then you could try editing the appropriate http header. Once you do that, return true from invoke() and hopefully the adjusted http header with '200 OK' will go back to your client. Just a suggestion, -jeff -----Original Message----- From: Guido Wischrop [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 15, 2007 12:08 PM To: [email protected] Subject: Modify servers HTTP response from "202 Accepted" to "200 OK" Hello, we are providing a service for an old external client. This client expects a 200 OK HTTP response for a successful delivered message. We implemented the service by using axis2 1.2 and unfortunately it answers with a "202 Accepted". We tried to set the response code in our MessageReceiver like this: HttpServletResponse response = (HttpServletResponse) MessageContext.getCurrentMessageContext().getProperty(HTTPConstants.MC_H TTP_SERVLETRESPONSE); if (response !=null ) { response.setStatus(HttpServletResponse.SC_OK); } But this doesn't work. Is it possible to change the response code in some other way? Thanks for any help, Guido --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
