You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by sa...@apache.org on 2006/12/19 03:57:32 UTC

svn commit: r488510 - /webservices/axis2/trunk/c/modules/core/engine/engine.c

Author: samisa
Date: Mon Dec 18 18:57:31 2006
New Revision: 488510

URL: http://svn.apache.org/viewvc?view=rev&rev=488510
Log:
Fixed the use of addressing always in case of a fault

Modified:
    webservices/axis2/trunk/c/modules/core/engine/engine.c

Modified: webservices/axis2/trunk/c/modules/core/engine/engine.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/engine/engine.c?view=diff&rev=488510&r1=488509&r2=488510
==============================================================================
--- webservices/axis2/trunk/c/modules/core/engine/engine.c (original)
+++ webservices/axis2/trunk/c/modules/core/engine/engine.c Mon Dec 18 18:57:31 2006
@@ -571,6 +571,7 @@
     const axis2_char_t *msg_id = NULL;
     axis2_relates_to_t *relates_to = NULL;
     axis2_char_t *msg_uuid = NULL;
+    axis2_msg_info_headers_t *msg_info_headers = NULL;
 
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     AXIS2_PARAM_CHECK(env->error, processing_context, AXIS2_FAILURE);
@@ -633,13 +634,17 @@
     }
     property = NULL;
 
-    /* set soap action */
-    wsa_action = AXIS2_MSG_CTX_GET_SOAP_ACTION(processing_context, env);
-    if (!wsa_action)
+    /* set WSA action */
+    msg_info_headers = AXIS2_MSG_CTX_GET_MSG_INFO_HEADERS(processing_context, env);
+    if (msg_info_headers)
     {
-        wsa_action = "http://www.w3.org/2005/08/addressing/fault";
+        wsa_action = AXIS2_MSG_INFO_HEADERS_GET_ACTION (msg_info_headers, env);
+        if (wsa_action)
+        {
+            wsa_action = "http://www.w3.org/2005/08/addressing/fault";
+            AXIS2_MSG_CTX_SET_WSA_ACTION(fault_ctx, env, wsa_action);
+        }
     }
-    AXIS2_MSG_CTX_SET_WSA_ACTION(fault_ctx, env, wsa_action);
 
     /* set relates to */
     msg_id = AXIS2_MSG_CTX_GET_MSG_ID(processing_context, env);



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