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 da...@apache.org on 2006/08/10 10:19:44 UTC
svn commit: r430308 -
/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AxisServlet.java
Author: davidillsley
Date: Thu Aug 10 01:19:41 2006
New Revision: 430308
URL: http://svn.apache.org/viewvc?rev=430308&view=rev
Log:
Complete fix for remainder AXIS2-741 - missed a catch block yesterday
Modified:
webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AxisServlet.java
Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AxisServlet.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AxisServlet.java?rev=430308&r1=430307&r2=430308&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AxisServlet.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AxisServlet.java Thu Aug 10 01:19:41 2006
@@ -159,7 +159,12 @@
log.debug(e);
if (msgContext != null) {
try {
- res.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
+ // If the fault is not going along the back channel we should be 202ing
+ if(AddressingHelper.isFaultRedirected(msgContext)){
+ res.setStatus(HttpServletResponse.SC_ACCEPTED);
+ }else{
+ res.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
+ }
handleFault(msgContext, out, e);
} catch (AxisFault e2) {
log.info(e2);
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org