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 se...@apache.org on 2008/03/19 21:10:46 UTC

svn commit: r638992 - /webservices/axis2/trunk/c/src/core/receivers/raw_xml_in_out_msg_recv.c

Author: senaka
Date: Wed Mar 19 13:10:43 2008
New Revision: 638992

URL: http://svn.apache.org/viewvc?rev=638992&view=rev
Log:
Improving HTTP Status Code support

Modified:
    webservices/axis2/trunk/c/src/core/receivers/raw_xml_in_out_msg_recv.c

Modified: webservices/axis2/trunk/c/src/core/receivers/raw_xml_in_out_msg_recv.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/receivers/raw_xml_in_out_msg_recv.c?rev=638992&r1=638991&r2=638992&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/receivers/raw_xml_in_out_msg_recv.c (original)
+++ webservices/axis2/trunk/c/src/core/receivers/raw_xml_in_out_msg_recv.c Wed Mar 19 13:10:43 2008
@@ -254,6 +254,15 @@
             {
                 axis2_msg_ctx_set_no_content(new_msg_ctx, env, AXIS2_TRUE);
             }
+            else
+            {
+                axis2_msg_ctx_set_status_code(msg_ctx, env,
+                    axis2_msg_ctx_get_status_code(new_msg_ctx, env));
+            }
+            /* The new_msg_ctx is passed to the service. The status code must
+             * be taken from here and set to the old message context which is
+             * used by the worker when the request processing fails.
+             */
             fault_node = AXIS2_SVC_SKELETON_ON_FAULT(svc_obj, env, om_node);
         }
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org