You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Senthivel, Baskaran" <Ba...@PinkRoccade.nl> on 2012/08/16 10:08:32 UTC

[AXIS2]Transport setting http response satus not working

Hello,



I'd like the ability to to change the response status based on our functional requirement for implementing CMIS 1.0 specification



For example : I'd like to send in certain cases an http 503 (instead of a 500) when a soap fault occurs.



HttpServletResponse resp =  (HttpServletResponse)   msgContext.getCurrentMessageContext().getProperty(org.apache.axis2.transport.http.HT TPConstants.MC_HTTP_SERVLETRESPONSE);

if (resp != null) {

resp.setStatus(503 );

  }




We use Axis2 1.6.2 version.





Kind regards



Baskaran