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 sa...@apache.org on 2006/04/22 13:10:59 UTC

svn commit: r396110 - /webservices/axis2/trunk/c/modules/mod_addr/addr_in_handler.c

Author: samisa
Date: Sat Apr 22 04:10:57 2006
New Revision: 396110

URL: http://svn.apache.org/viewcvs?rev=396110&view=rev
Log:
Added code to handle none role in header blocks

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

Modified: webservices/axis2/trunk/c/modules/mod_addr/addr_in_handler.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/mod_addr/addr_in_handler.c?rev=396110&r1=396109&r2=396110&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/mod_addr/addr_in_handler.c (original)
+++ webservices/axis2/trunk/c/modules/mod_addr/addr_in_handler.c Sat Apr 22 04:10:57 2006
@@ -316,6 +316,7 @@
         axis2_om_element_t *header_block_ele = NULL;
         axis2_char_t *ele_localname = NULL;
         axis2_endpoint_ref_t *epr = NULL;        
+        axis2_char_t *role = NULL;
         
         axis2_hash_this(hash_index, NULL, NULL, &hb);
         
@@ -323,6 +324,13 @@
         header_block_node = AXIS2_SOAP_HEADER_BLOCK_GET_BASE_NODE(header_block, env);
         header_block_ele  = (axis2_om_element_t*)AXIS2_OM_NODE_GET_DATA_ELEMENT(header_block_node, env);
         ele_localname = AXIS2_OM_ELEMENT_GET_LOCALNAME(header_block_ele, env);
+
+        role = AXIS2_SOAP_HEADER_BLOCK_GET_ROLE(header_block, env);
+        if (role && AXIS2_STRCMP(role, AXIS2_SOAP12_SOAP_ROLE_NONE) == 0)
+        {
+            /* Role is none, no need of processing */
+            continue;
+        }
         
         if(AXIS2_STRCMP(ele_localname, AXIS2_WSA_TO) == 0)
         {