[
https://issues.apache.org/jira/browse/AXIS2-3879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13433197#comment-13433197
]
Baskaran Senthivel edited comment on AXIS2-3879 at 8/14/12 11:11 PM:
---------------------------------------------------------------------
Hi,
We have the exactly the same requirement ,to change the response status based
on our functional requirement for implementing CMIS 1.0 specification. I see
this message is registered in 2008 and not yet solved. Could you please guide
me how i can implement this.
We use Axis2 1.6.2 version.
was (Author: baskaran):
Hi,
We have the exactly the same requirement ,to change the response status based
on our functional requirement for implementing CMIS. I see this message is
registered in 2008 and not yet solved. Could you please guide me how i can
implement this.
We use Axis2 1.61 version.
> Ability to change the http status code in the response being sent to the
> client
> -------------------------------------------------------------------------------
>
> Key: AXIS2-3879
> URL: https://issues.apache.org/jira/browse/AXIS2-3879
> Project: Axis2
> Issue Type: Improvement
> Components: transports
> Affects Versions: 1.4
> Reporter: nikki
>
> Hello
> I'd like the ability to change the http status code in the reponse. For
> example : I'd like to send in certain cases an http 503 (instead of a 500)
> when a soap fault occurs. Another of my needs is to send a 202 (instead of
> 200 for an in-out operation.)
> Here's what i attempted which didn't work & I was suggested by Saminda to
> open a JIRA.
> HttpServletResponse resp = (HttpServletResponse)
>
> msgContext.getCurrentMessageContext().getProperty(org.apache.axis2.transport.http.HT
> TPConstants.MC_HTTP_SERVLETRESPONSE);
> if (resp != null) {
> System.out.println("Resp not null ");
> resp.setStatus(503 );
> }
> thankyou
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]