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/03/29 17:55:32 UTC

svn commit: r389815 - in /webservices/axis2/trunk/c: include/axis2_endpoint_ref.h modules/mod_addr/addr_out_handler.c

Author: samisa
Date: Wed Mar 29 07:55:23 2006
New Revision: 389815

URL: http://svn.apache.org/viewcvs?rev=389815&view=rev
Log:
More addressing related fixes

Modified:
    webservices/axis2/trunk/c/include/axis2_endpoint_ref.h
    webservices/axis2/trunk/c/modules/mod_addr/addr_out_handler.c

Modified: webservices/axis2/trunk/c/include/axis2_endpoint_ref.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_endpoint_ref.h?rev=389815&r1=389814&r2=389815&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_endpoint_ref.h (original)
+++ webservices/axis2/trunk/c/include/axis2_endpoint_ref.h Wed Mar 29 07:55:23 2006
@@ -286,7 +286,7 @@
 #define AXIS2_ENDPOINT_REF_GET_META_ATTRIBUTE_LIST(endpoint_ref, env) \
         ((endpoint_ref)->ops->get_meta_attribute_list(endpoint_ref, env))
 
-#define AXIS2_ENDPOINT_REF_GET_REF_EXTENTION_LIST(endpoint_ref, env) \
+#define AXIS2_ENDPOINT_REF_GET_REF_EXTENSION_LIST(endpoint_ref, env) \
         ((endpoint_ref)->ops->get_extension_list(endpoint_ref, env))
 
 #define AXIS2_ENDPOINT_REF_ADD_REF_ATTRIBUTE(endpoint_ref, env, attr) \

Modified: webservices/axis2/trunk/c/modules/mod_addr/addr_out_handler.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/mod_addr/addr_out_handler.c?rev=389815&r1=389814&r2=389815&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/mod_addr/addr_out_handler.c (original)
+++ webservices/axis2/trunk/c/modules/mod_addr/addr_out_handler.c Wed Mar 29 07:55:23 2006
@@ -546,6 +546,7 @@
     axis2_any_content_type_t *reference_param = NULL;
     axis2_array_list_t *ref_param_list = NULL;
     axis2_array_list_t *meta_data_list = NULL;
+    axis2_array_list_t *extension_list = NULL;
     axis2_om_node_t *header_block_node = NULL;
     axis2_om_node_t *header_node = NULL;
     axis2_om_namespace_t *addr_ns_obj = NULL;
@@ -720,6 +721,20 @@
         
     }
     
+    extension_list = AXIS2_ENDPOINT_REF_GET_REF_EXTENSION_LIST(endpoint_ref, env);
+    if (extension_list && AXIS2_ARRAY_LIST_SIZE(extension_list, env) > 0)
+    {
+        int i = 0;
+        for (i = 0; i < AXIS2_ARRAY_LIST_SIZE(extension_list, env); i ++)
+        {
+            axis2_om_node_t *ref_node = (axis2_om_node_t *)AXIS2_ARRAY_LIST_GET(extension_list, env, i);
+            if (ref_node)
+            {
+                AXIS2_OM_NODE_ADD_CHILD(header_block_node, env, ref_node);
+            }
+        }
+    }
+
     if (AXIS2_STRCMP (AXIS2_WSA_NAMESPACE_SUBMISSION, addr_ns) == 0)
     {
         axis2_any_content_type_t *referece_properties = NULL;