You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Guido Wischrop <wi...@googlemail.com> on 2007/08/15 18:07:54 UTC

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_HTTP_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: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org