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 di...@apache.org on 2006/10/20 15:10:15 UTC

svn commit: r466102 - /webservices/axis2/trunk/c/modules/mod_addr/addr_out_handler.c

Author: dinesh
Date: Fri Oct 20 06:10:14 2006
New Revision: 466102

URL: http://svn.apache.org/viewvc?view=rev&rev=466102
Log:
fixed:Axis2c Server sends addressing headers when addressing headers are not sent in request

Modified:
    webservices/axis2/trunk/c/modules/mod_addr/addr_out_handler.c

Modified: webservices/axis2/trunk/c/modules/mod_addr/addr_out_handler.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/mod_addr/addr_out_handler.c?view=diff&rev=466102&r1=466101&r2=466102
==============================================================================
--- webservices/axis2/trunk/c/modules/mod_addr/addr_out_handler.c (original)
+++ webservices/axis2/trunk/c/modules/mod_addr/addr_out_handler.c Fri Oct 20 06:10:14 2006
@@ -121,6 +121,7 @@
     axiom_element_t *soap_header_ele = NULL;
     axis2_endpoint_ref_t *epr = NULL;
     axis2_property_t *property = NULL;
+	 const axis2_char_t *wsa_action = NULL;
 
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     AXIS2_PARAM_CHECK(env->error, msg_ctx, AXIS2_FAILURE);
@@ -128,7 +129,9 @@
     msg_info_headers = AXIS2_MSG_CTX_GET_MSG_INFO_HEADERS(msg_ctx, env);
     if (!msg_info_headers)
         return AXIS2_SUCCESS; /* no addressing in use */
-    if (!AXIS2_MSG_INFO_HEADERS_GET_ACTION(msg_info_headers, env))
+	 wsa_action = AXIS2_MSG_INFO_HEADERS_GET_ACTION (msg_info_headers, env);
+
+    if (!wsa_action || !axis2_strcmp (wsa_action, ""))
         return AXIS2_SUCCESS; /* If no action present, assume no addressing in use */
 
 
@@ -288,7 +291,7 @@
         }
 
         action = AXIS2_MSG_INFO_HEADERS_GET_ACTION(msg_info_headers, env);
-        if (action)
+        if (action && axis2_strcmp(action, ""))
         {
             axis2_addr_out_handler_process_string_info(env, action,
                     AXIS2_WSA_ACTION,



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