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 da...@apache.org on 2006/07/06 08:02:31 UTC

svn commit: r419452 [41/46] - in /webservices/axis2/trunk/c/woden: ./ include/ samples/ samples/wsdl10/ src/ src/builder/ src/builder/wsdl10/ src/schema/ src/types/ src/util/ src/wsdl/ src/wsdl/enumeration/ src/wsdl10/ src/wsdl10/enumeration/ src/wsdl1...

Added: webservices/axis2/trunk/c/woden/src/wsdl20/extensions/soap/soap_header_block.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl20/extensions/soap/soap_header_block.c?rev=419452&view=auto
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl20/extensions/soap/soap_header_block.c (added)
+++ webservices/axis2/trunk/c/woden/src/wsdl20/extensions/soap/soap_header_block.c Wed Jul  5 23:02:19 2006
@@ -0,0 +1,1341 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <woden_soap_header_block.h>
+#include <woden_wsdl_element.h>
+#include <woden_string_attr.h>
+#include <woden_uri_attr.h>
+#include <woden_types.h>
+#include "woden_soap_constants.h"
+#include <woden_element_decl.h>
+
+typedef struct woden_soap_header_block_impl woden_soap_header_block_impl_t;
+
+/** 
+ * @brief Soap Header Blocks Struct Impl
+ *   Axis2 Soap Header Blocks  
+ */ 
+struct woden_soap_header_block_impl
+{
+    woden_soap_header_block_t header_block;
+    axis2_hash_t *methods;
+    axis2_hash_t *super;
+    woden_obj_types_t obj_type;
+    
+    void *f_parent;
+    axis2_array_list_t *f_documentation_elements;
+    axis2_qname_t *f_ext_element_type;
+    axis2_bool_t f_required;
+    void *f_attr_ext;
+    void *f_elem_ext;
+    axis2_qname_t *f_element_decl_qn;
+    void *f_element_decl;
+    axis2_bool_t f_must_understand;
+    void *f_types;
+};
+
+#define INTF_TO_IMPL(header_block) ((woden_soap_header_block_impl_t *) header_block)
+
+axis2_status_t AXIS2_CALL 
+woden_soap_header_block_free(
+        void *header_block,
+        const axis2_env_t *env);
+
+axis2_hash_t *AXIS2_CALL 
+woden_soap_header_block_super_objs(
+        void *header_block,
+        const axis2_env_t *env);
+
+woden_obj_types_t AXIS2_CALL 
+woden_soap_header_block_type(
+        void *header_block,
+        const axis2_env_t *env);
+
+/* ***********************************************************************
+ *  Component model methods (SOAPHeaderBlock interface), some shared with Element model
+ * ***********************************************************************/
+
+void *AXIS2_CALL
+woden_soap_header_block_get_element_decl(
+        void *header_block,
+        const axis2_env_t *env);
+
+axis2_bool_t AXIS2_CALL 
+woden_soap_header_block_must_understand(
+        void *header_block,
+        const axis2_env_t *env);
+
+axis2_bool_t AXIS2_CALL 
+woden_soap_header_block_is_required(
+        void *header_block,
+        const axis2_env_t *env);
+
+void *AXIS2_CALL
+woden_soap_header_block_get_parent(
+        void *header_block,
+        const axis2_env_t *env);
+
+void *AXIS2_CALL
+woden_soap_header_block_to_element(
+        void *header_block,
+        const axis2_env_t *env);
+
+/* ***********************************************************************
+ *  Element model-only methods (SOAPHeaderBlockElement interface)
+ * ***********************************************************************/
+
+axis2_status_t AXIS2_CALL 
+woden_soap_header_block_set_element_qname(
+        void *header_block,
+        const axis2_env_t *env,
+        axis2_qname_t *qname); 
+
+axis2_qname_t *AXIS2_CALL 
+woden_soap_header_block_get_element_qname(
+        void *header_block,
+        const axis2_env_t *env);
+
+void *AXIS2_CALL
+woden_soap_header_block_get_element(
+        void *header_block,
+        const axis2_env_t *env);
+
+axis2_status_t AXIS2_CALL 
+woden_soap_header_block_set_must_understand(
+        void *header_block,
+        const axis2_env_t *env,
+        axis2_bool_t understood);
+
+axis2_status_t AXIS2_CALL 
+woden_soap_header_block_set_parent_element(
+        void *header_block,
+        const axis2_env_t *env,
+        void *wsdl_el);
+
+void *AXIS2_CALL
+woden_soap_header_block_get_parent_element(
+        void *header_block,
+        const axis2_env_t *env); 
+
+axis2_status_t AXIS2_CALL 
+woden_soap_header_block_add_documentation_element(
+        void *header_block,
+        const axis2_env_t *env,
+        void *doc_el);
+
+axis2_array_list_t *AXIS2_CALL 
+woden_soap_header_block_get_documentation_elements(
+        void *header_block,
+        const axis2_env_t *env);
+
+axis2_status_t AXIS2_CALL 
+woden_soap_header_block_set_extension_type(
+        void *header_block,
+        const axis2_env_t *env,
+        axis2_qname_t *qname); 
+
+axis2_qname_t *AXIS2_CALL 
+woden_soap_header_block_get_extension_type(
+        void *header_block,
+        const axis2_env_t *env);
+
+axis2_status_t AXIS2_CALL 
+woden_soap_header_block_set_required(
+        void *header_block,
+        const axis2_env_t *env,
+        axis2_bool_t required);
+
+/* ***********************************************************************
+ *  Extensibility methods
+ * ***********************************************************************/
+
+axis2_status_t AXIS2_CALL 
+woden_soap_header_block_set_ext_attr(
+        void *header_block,
+        const axis2_env_t *env,
+        axis2_qname_t *attr_type, 
+        void *attr);
+
+void *AXIS2_CALL
+woden_soap_header_block_get_ext_attr(
+        void *header_block,
+        const axis2_env_t *env,
+        axis2_qname_t *attr_type);
+
+axis2_array_list_t *AXIS2_CALL 
+woden_soap_header_block_get_ext_attrs_for_namespace(
+        void *header_block,
+        const axis2_env_t *env,
+        axis2_uri_t *namespc);
+
+axis2_array_list_t *AXIS2_CALL 
+woden_soap_header_block_get_ext_attrs(
+        void *header_block,
+        const axis2_env_t *env);
+
+axis2_bool_t AXIS2_CALL 
+woden_soap_header_block_has_ext_attrs_for_namespace(
+        void *header_block,
+        const axis2_env_t *env,
+        axis2_uri_t *namespc);
+
+axis2_status_t AXIS2_CALL 
+woden_soap_header_block_add_ext_element(
+        void *header_block,
+        const axis2_env_t *env,
+        void *ext_el);
+
+axis2_status_t AXIS2_CALL 
+woden_soap_header_block_remove_ext_element(
+        void *header_block,
+        const axis2_env_t *env,
+        void *ext_el);
+
+axis2_array_list_t *AXIS2_CALL 
+woden_soap_header_block_get_ext_elements(
+        void *header_block,
+        const axis2_env_t *env);
+
+axis2_array_list_t *AXIS2_CALL 
+woden_soap_header_block_get_ext_elements_of_type(
+        void *header_block,
+        const axis2_env_t *env,
+        axis2_qname_t *ext_type); 
+
+axis2_bool_t AXIS2_CALL 
+woden_soap_header_block_has_ext_elements_for_namespace(
+        void *header_block,
+        const axis2_env_t *env,
+        axis2_uri_t *namespc); 
+
+/* ************************************************************
+ *  Non-API implementation methods
+ * ************************************************************/
+
+axis2_status_t AXIS2_CALL 
+woden_soap_header_block_set_element_decl(
+        void *header_block,
+        const axis2_env_t *env,
+        void *element_decl);
+
+axis2_status_t AXIS2_CALL 
+woden_soap_header_block_set_types(
+        void *header_block,
+        const axis2_env_t *env,
+        void *types);
+
+static woden_soap_header_block_t *
+create(const axis2_env_t *env);
+
+static axis2_status_t
+woden_soap_header_block_free_ops(
+        void *header_block,
+        const axis2_env_t *env);
+
+/************************Woden C Internal Methods******************************/
+AXIS2_EXTERN woden_soap_header_block_t * AXIS2_CALL
+woden_soap_header_block_to_soap_header_block_element(
+        void *header_block,
+        const axis2_env_t *env)
+{
+    woden_soap_header_block_impl_t *header_block_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, NULL);
+    if(!header_block)
+    {
+        header_block_impl = (woden_soap_header_block_impl_t *) create(env);
+    }
+    else
+        header_block_impl = (woden_soap_header_block_impl_t *) header_block;
+    woden_soap_header_block_free_ops(header_block, env);
+
+    header_block_impl->header_block.header_block_element.ops = 
+        AXIS2_MALLOC(env->allocator, 
+                sizeof(woden_soap_header_block_element_ops_t));
+    woden_soap_header_block_element_resolve_methods(&(header_block_impl->header_block.
+            header_block_element), env, header_block_impl->methods);
+    return header_block;
+}
+
+AXIS2_EXTERN woden_soap_header_block_t * AXIS2_CALL
+woden_soap_header_block_to_ext_element(
+        void *header_block,
+        const axis2_env_t *env)
+{
+    woden_soap_header_block_impl_t *header_block_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, NULL);
+    if(!header_block)
+    {
+        header_block_impl = (woden_soap_header_block_impl_t *) create(env);
+    }
+    else
+        header_block_impl = (woden_soap_header_block_impl_t *) header_block;
+    woden_soap_header_block_free_ops(header_block, env);
+
+    header_block_impl->header_block.header_block_element.base.ext_element.ops = 
+        AXIS2_MALLOC(env->allocator, 
+                sizeof(woden_ext_element_ops_t));
+    woden_ext_element_resolve_methods(&(header_block_impl->header_block.
+            header_block_element.base.ext_element), env, header_block_impl->methods);
+    return header_block;
+}
+
+AXIS2_EXTERN woden_soap_header_block_t * AXIS2_CALL
+woden_soap_header_block_to_attr_extensible(
+        void *header_block,
+        const axis2_env_t *env)
+{
+    woden_soap_header_block_impl_t *header_block_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, NULL);
+    if(!header_block)
+    {
+        header_block_impl = (woden_soap_header_block_impl_t *) create(env);
+    }
+    else
+        header_block_impl = (woden_soap_header_block_impl_t *) header_block;
+    woden_soap_header_block_free_ops(header_block, env);
+
+    header_block_impl->header_block.header_block_element.base.attr_extensible.ops = 
+        AXIS2_MALLOC(env->allocator, 
+                sizeof(woden_attr_extensible_ops_t));
+    woden_attr_extensible_resolve_methods(&(header_block_impl->header_block.
+            header_block_element.base.attr_extensible), env, NULL, header_block_impl->methods);
+    return header_block;
+}
+
+AXIS2_EXTERN woden_soap_header_block_t * AXIS2_CALL
+woden_soap_header_block_to_element_extensible(
+        void *header_block,
+        const axis2_env_t *env)
+{
+    woden_soap_header_block_impl_t *header_block_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, NULL);
+    if(!header_block)
+    {
+        header_block_impl = (woden_soap_header_block_impl_t *) create(env);
+    }
+    else
+        header_block_impl = (woden_soap_header_block_impl_t *) header_block;
+    woden_soap_header_block_free_ops(header_block, env);
+
+    header_block_impl->header_block.header_block_element.base.element_extensible.ops = 
+        AXIS2_MALLOC(env->allocator, 
+                sizeof(woden_element_extensible_ops_t));
+    woden_element_extensible_resolve_methods(&(header_block_impl->header_block.
+            header_block_element.base.element_extensible), env, NULL, header_block_impl->methods);
+    return header_block;
+}
+
+/************************End of Woden C Internal Methods***********************/
+static woden_soap_header_block_t *
+create(const axis2_env_t *env)
+{
+    woden_soap_header_block_impl_t *header_block_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, NULL);
+    header_block_impl = AXIS2_MALLOC(env->allocator, 
+                    sizeof(woden_soap_header_block_impl_t));
+
+    header_block_impl->obj_type= WODEN_SOAP_HEADER_BLOCK;
+    header_block_impl->super = NULL;
+    header_block_impl->methods = NULL;
+
+    header_block_impl->f_parent = NULL;
+    header_block_impl->f_documentation_elements = NULL;
+    header_block_impl->f_ext_element_type = NULL;
+    header_block_impl->f_required = AXIS2_FALSE;
+    header_block_impl->f_attr_ext = NULL;
+    header_block_impl->f_elem_ext = NULL;
+    header_block_impl->f_element_decl_qn = NULL;
+    header_block_impl->f_element_decl = NULL;
+    header_block_impl->f_must_understand = AXIS2_FALSE;
+    header_block_impl->f_types = NULL;
+    
+    header_block_impl->header_block.header_block_element.ops = NULL;
+    header_block_impl->header_block.header_block_element.base.ext_element.ops = NULL;
+    header_block_impl->header_block.header_block_element.base.attr_extensible.ops = NULL;
+    header_block_impl->header_block.header_block_element.base.element_extensible.ops = NULL;
+    
+    header_block_impl->header_block.ops = AXIS2_MALLOC(env->allocator, 
+            sizeof(woden_soap_header_block_ops_t));
+
+    header_block_impl->header_block.ops->free = woden_soap_header_block_free;
+    header_block_impl->header_block.ops->super_objs = 
+        woden_soap_header_block_super_objs;
+    header_block_impl->header_block.ops->type = 
+        woden_soap_header_block_type;
+    
+    header_block_impl->header_block.ops->get_element_decl = 
+        woden_soap_header_block_get_element_decl;
+    
+    header_block_impl->header_block.ops->must_understand = 
+        woden_soap_header_block_must_understand;
+    
+    header_block_impl->header_block.ops->is_required = 
+        woden_soap_header_block_is_required;
+    
+    header_block_impl->header_block.ops->get_parent = 
+        woden_soap_header_block_get_parent;
+    
+    header_block_impl->header_block.ops->to_element = 
+        woden_soap_header_block_to_element;
+    
+    header_block_impl->header_block.ops->set_element_decl = 
+        woden_soap_header_block_set_element_decl;
+    
+    header_block_impl->header_block.ops->set_types = 
+        woden_soap_header_block_set_types;
+    
+    header_block_impl->methods = axis2_hash_make(env);
+    if(!header_block_impl->methods) 
+    {
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        return NULL;
+    }
+    axis2_hash_set(header_block_impl->methods, "free", AXIS2_HASH_KEY_STRING, 
+            woden_soap_header_block_free);
+    axis2_hash_set(header_block_impl->methods, "super_objs", 
+            AXIS2_HASH_KEY_STRING, woden_soap_header_block_super_objs);
+    axis2_hash_set(header_block_impl->methods, "type", 
+            AXIS2_HASH_KEY_STRING, woden_soap_header_block_type);
+
+    axis2_hash_set(header_block_impl->methods, "get_element_decl", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_soap_header_block_get_element_decl);
+
+    axis2_hash_set(header_block_impl->methods, "must_understand", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_soap_header_block_must_understand);
+
+    axis2_hash_set(header_block_impl->methods, "is_required", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_soap_header_block_is_required);
+
+    axis2_hash_set(header_block_impl->methods, "get_parent", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_soap_header_block_get_parent);
+
+    axis2_hash_set(header_block_impl->methods, "to_element", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_soap_header_block_to_element);
+
+    axis2_hash_set(header_block_impl->methods, "set_element_qname", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_soap_header_block_set_element_qname);
+
+    axis2_hash_set(header_block_impl->methods, "get_element_qname", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_soap_header_block_get_element_qname);
+
+    axis2_hash_set(header_block_impl->methods, "get_element", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_soap_header_block_get_element);
+
+    axis2_hash_set(header_block_impl->methods, "set_must_understand", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_soap_header_block_set_must_understand);
+
+    axis2_hash_set(header_block_impl->methods, "set_parent_element", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_soap_header_block_set_parent_element);
+
+    axis2_hash_set(header_block_impl->methods, "get_parent_element", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_soap_header_block_get_parent_element);
+
+    axis2_hash_set(header_block_impl->methods, "add_documentation_element", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_soap_header_block_add_documentation_element);
+
+    axis2_hash_set(header_block_impl->methods, "get_documentation_elements", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_soap_header_block_get_documentation_elements);
+
+    axis2_hash_set(header_block_impl->methods, "set_extension_type", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_soap_header_block_set_extension_type);
+
+    axis2_hash_set(header_block_impl->methods, "get_extension_type", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_soap_header_block_get_extension_type);
+
+    axis2_hash_set(header_block_impl->methods, "set_required", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_soap_header_block_set_required);
+
+    axis2_hash_set(header_block_impl->methods, "set_ext_attr", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_soap_header_block_set_ext_attr);
+
+    axis2_hash_set(header_block_impl->methods, "get_ext_attr", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_soap_header_block_get_ext_attr);
+
+    axis2_hash_set(header_block_impl->methods, "get_ext_attrs_for_namespace", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_soap_header_block_get_ext_attrs_for_namespace);
+
+    axis2_hash_set(header_block_impl->methods, "get_ext_attrs", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_soap_header_block_get_ext_attrs);
+
+    axis2_hash_set(header_block_impl->methods, "has_ext_attrs_for_namespace", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_soap_header_block_has_ext_attrs_for_namespace);
+
+    axis2_hash_set(header_block_impl->methods, "add_ext_element", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_soap_header_block_add_ext_element);
+
+    axis2_hash_set(header_block_impl->methods, "remove_ext_element", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_soap_header_block_remove_ext_element);
+
+    axis2_hash_set(header_block_impl->methods, "get_ext_elements", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_soap_header_block_get_ext_elements);
+
+    axis2_hash_set(header_block_impl->methods, "get_ext_elements_of_type", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_soap_header_block_get_ext_elements_of_type);
+
+    axis2_hash_set(header_block_impl->methods, "has_ext_elements_for_namespace", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_soap_header_block_has_ext_elements_for_namespace);
+
+    axis2_hash_set(header_block_impl->methods, "set_element_decl", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_soap_header_block_set_element_decl);
+
+    axis2_hash_set(header_block_impl->methods, "set_types", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_soap_header_block_set_types);
+
+    return &(header_block_impl->header_block);
+}
+
+AXIS2_EXTERN woden_soap_header_block_t * AXIS2_CALL
+woden_soap_header_block_create(const axis2_env_t *env)
+{
+    woden_soap_header_block_impl_t *header_block_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, NULL);
+    header_block_impl = (woden_soap_header_block_impl_t *) create(env);
+
+    header_block_impl->super = axis2_hash_make(env);
+    if(!header_block_impl->super) 
+    {
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        return NULL;
+    }
+    axis2_hash_set(header_block_impl->super, "WODEN_SOAP_HEADER_BLOCK", AXIS2_HASH_KEY_STRING, 
+            &(header_block_impl->header_block));
+ 
+    return &(header_block_impl->header_block);
+}
+
+static axis2_status_t
+woden_soap_header_block_free_ops(
+        void *header_block,
+        const axis2_env_t *env)
+{
+    woden_soap_header_block_impl_t *header_block_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    header_block_impl = INTF_TO_IMPL(header_block);
+
+    if(header_block_impl->header_block.header_block_element.ops)
+    {
+        AXIS2_FREE(env->allocator, header_block_impl->header_block.
+                header_block_element.ops);
+        header_block_impl->header_block.header_block_element.ops = NULL;
+    }
+
+    if(header_block_impl->header_block.header_block_element.base.ext_element.ops)
+    {
+        AXIS2_FREE(env->allocator, header_block_impl->header_block.
+                header_block_element.base.ext_element.ops);
+        header_block_impl->header_block.header_block_element.base.ext_element.ops = NULL;
+    }
+
+    if(header_block_impl->header_block.header_block_element.base.attr_extensible.ops)
+    {
+        AXIS2_FREE(env->allocator, header_block_impl->header_block.
+                header_block_element.base.attr_extensible.ops);
+        header_block_impl->header_block.header_block_element.base.attr_extensible.ops = NULL;
+    }
+
+    if(header_block_impl->header_block.header_block_element.base.element_extensible.ops)
+    {
+        AXIS2_FREE(env->allocator, header_block_impl->header_block.
+                header_block_element.base.element_extensible.ops);
+        header_block_impl->header_block.header_block_element.base.element_extensible.ops = NULL;
+    }
+
+    return AXIS2_SUCCESS;
+}
+
+
+axis2_status_t AXIS2_CALL
+woden_soap_header_block_free(void *header_block,
+                        const axis2_env_t *env)
+{
+    woden_soap_header_block_impl_t *header_block_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    header_block_impl = INTF_TO_IMPL(header_block);
+
+    if(header_block_impl->super)
+    {
+        axis2_hash_free(header_block_impl->super, env);
+        header_block_impl->super = NULL;
+    }
+    
+    if(header_block_impl->methods)
+    {
+        axis2_hash_free(header_block_impl->methods, env);
+        header_block_impl->methods = NULL;
+    }
+
+    if(header_block_impl->f_parent)
+    {
+        WODEN_WSDL_ELEMENT_FREE(header_block_impl->f_parent, env);
+        header_block_impl->f_parent = NULL;
+    }
+
+    if(header_block_impl->f_documentation_elements)
+    {
+        AXIS2_ARRAY_LIST_FREE(header_block_impl->f_documentation_elements, env);
+        header_block_impl->f_documentation_elements = NULL;
+    }
+
+    if(header_block_impl->f_ext_element_type)
+    {
+        AXIS2_QNAME_FREE(header_block_impl->f_ext_element_type, env);
+        header_block_impl->f_ext_element_type = NULL;
+    }
+
+    if(header_block_impl->f_attr_ext)
+    {
+        WODEN_ATTR_EXTENSIBLE_FREE(header_block_impl->f_attr_ext, env);
+        header_block_impl->f_attr_ext = NULL;
+    }
+
+    if(header_block_impl->f_elem_ext)
+    {
+        WODEN_ELEMENT_EXTENSIBLE_FREE(header_block_impl->f_elem_ext, env);
+        header_block_impl->f_elem_ext = NULL;
+    }
+
+    if(header_block_impl->f_element_decl_qn)
+    {
+        AXIS2_QNAME_FREE(header_block_impl->f_element_decl_qn, env);
+        header_block_impl->f_element_decl_qn = NULL;
+    }
+
+    if(header_block_impl->f_element_decl)
+    {
+        WODEN_ELEMENT_DECL_FREE(header_block_impl->f_element_decl, env);
+        header_block_impl->f_element_decl = NULL;
+    }
+
+    if(header_block_impl->f_types)
+    {
+        WODEN_TYPES_FREE(header_block_impl->f_types, env);
+        header_block_impl->f_types = NULL;
+    }
+
+    woden_soap_header_block_free_ops(header_block, env);
+
+    if((&(header_block_impl->header_block))->ops)
+    {
+        AXIS2_FREE(env->allocator, (&(header_block_impl->header_block))->ops);
+        (&(header_block_impl->header_block))->ops = NULL;
+    }
+    
+    if(header_block_impl)
+    {
+        AXIS2_FREE(env->allocator, header_block_impl);
+        header_block_impl = NULL;
+    }
+    return AXIS2_SUCCESS;
+}
+
+axis2_hash_t *AXIS2_CALL
+woden_soap_header_block_super_objs(
+        void *header_block,
+        const axis2_env_t *env)
+{
+    woden_soap_header_block_impl_t *header_block_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    header_block_impl = INTF_TO_IMPL(header_block);
+
+    return header_block_impl->super;
+}
+
+woden_obj_types_t AXIS2_CALL
+woden_soap_header_block_type(
+        void *header_block,
+        const axis2_env_t *env)
+{
+    woden_soap_header_block_impl_t *header_block_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    header_block_impl = INTF_TO_IMPL(header_block);
+
+    return header_block_impl->obj_type;
+}
+
+axis2_status_t AXIS2_CALL
+woden_soap_header_block_resolve_methods(
+        woden_soap_header_block_t *header_block,
+        const axis2_env_t *env,
+        woden_soap_header_block_t *header_block_impl,
+        axis2_hash_t *methods)
+{
+    woden_soap_header_block_impl_t *header_block_impl_l = NULL;
+    
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, methods, AXIS2_FAILURE);
+    header_block_impl_l = INTF_TO_IMPL(header_block_impl);
+    
+    header_block->ops->free = axis2_hash_get(methods, "free", 
+            AXIS2_HASH_KEY_STRING);
+    header_block->ops->super_objs = axis2_hash_get(methods, "super_objs", 
+            AXIS2_HASH_KEY_STRING);
+    header_block->ops->type = axis2_hash_get(methods, "type", 
+            AXIS2_HASH_KEY_STRING);
+    
+    header_block->ops->get_element_decl = axis2_hash_get(methods, 
+            "get_element_decl", AXIS2_HASH_KEY_STRING);
+    if(!header_block->ops->get_element_decl && header_block_impl_l)
+            header_block->ops->get_element_decl = 
+            header_block_impl_l->header_block.ops->get_element_decl;
+    
+    header_block->ops->must_understand = axis2_hash_get(methods, 
+            "must_understand", AXIS2_HASH_KEY_STRING);
+    if(!header_block->ops->must_understand && header_block_impl_l)
+            header_block->ops->must_understand = 
+            header_block_impl_l->header_block.ops->must_understand;
+    
+    header_block->ops->is_required = axis2_hash_get(methods, 
+            "is_required", AXIS2_HASH_KEY_STRING);
+    if(!header_block->ops->is_required && header_block_impl_l)
+            header_block->ops->is_required = 
+            header_block_impl_l->header_block.ops->is_required;
+    
+    header_block->ops->get_parent = axis2_hash_get(methods, 
+            "get_parent", AXIS2_HASH_KEY_STRING);
+    if(!header_block->ops->get_parent && header_block_impl_l)
+            header_block->ops->get_parent = 
+            header_block_impl_l->header_block.ops->get_parent;
+    
+    header_block->ops->to_element = axis2_hash_get(methods, 
+            "to_element", AXIS2_HASH_KEY_STRING);
+    if(!header_block->ops->to_element && header_block_impl_l)
+            header_block->ops->to_element = 
+            header_block_impl_l->header_block.ops->to_element;
+    
+    header_block->ops->set_element_decl = axis2_hash_get(methods, 
+            "set_element_decl", AXIS2_HASH_KEY_STRING);
+    if(!header_block->ops->set_element_decl && header_block_impl_l)
+            header_block->ops->set_element_decl = 
+            header_block_impl_l->header_block.ops->set_element_decl;
+    
+    header_block->ops->set_types = axis2_hash_get(methods, 
+            "set_types", AXIS2_HASH_KEY_STRING);
+    if(!header_block->ops->set_types && header_block_impl_l)
+            header_block->ops->set_types = 
+            header_block_impl_l->header_block.ops->set_types;
+    
+    return AXIS2_SUCCESS;
+}
+
+
+
+/* ***********************************************************************
+ *  Component model methods (SOAPHeaderBlock interface), some shared with Element model
+ * ***********************************************************************/
+
+void *AXIS2_CALL
+woden_soap_header_block_get_element_decl(
+        void *header_block,
+        const axis2_env_t *env) 
+{
+    woden_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_SOAP_HEADER_BLOCK", AXIS2_HASH_KEY_STRING));
+
+    return header_block_impl->f_element_decl;
+}
+
+axis2_bool_t AXIS2_CALL 
+woden_soap_header_block_must_understand(
+        void *header_block,
+        const axis2_env_t *env) 
+{
+    woden_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FALSE);
+    super = WODEN_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_SOAP_HEADER_BLOCK", AXIS2_HASH_KEY_STRING));
+
+    return header_block_impl->f_must_understand;
+}
+
+axis2_bool_t AXIS2_CALL 
+woden_soap_header_block_is_required(
+        void *header_block,
+        const axis2_env_t *env) 
+{
+    woden_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FALSE);
+    super = WODEN_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_SOAP_HEADER_BLOCK", AXIS2_HASH_KEY_STRING));
+
+    return header_block_impl->f_required;
+}
+
+void *AXIS2_CALL
+woden_soap_header_block_get_parent(
+        void *header_block,
+        const axis2_env_t *env) 
+{
+    woden_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_SOAP_HEADER_BLOCK", AXIS2_HASH_KEY_STRING));
+
+    return header_block_impl->f_parent;
+}
+
+void *AXIS2_CALL
+woden_soap_header_block_to_element(
+        void *header_block,
+        const axis2_env_t *env) 
+{
+    woden_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_SOAP_HEADER_BLOCK", AXIS2_HASH_KEY_STRING));
+
+    return &(header_block_impl->header_block);
+}
+
+
+/* ***********************************************************************
+ *  Element model-only methods (SOAPHeaderBlockElement interface)
+ * ***********************************************************************/
+
+axis2_status_t AXIS2_CALL 
+woden_soap_header_block_set_element_qname(
+        void *header_block,
+        const axis2_env_t *env,
+        axis2_qname_t *qname) 
+{
+    woden_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = WODEN_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_SOAP_HEADER_BLOCK", AXIS2_HASH_KEY_STRING));
+
+    if(header_block_impl->f_element_decl_qn)
+    {
+        AXIS2_QNAME_FREE(header_block_impl->f_element_decl_qn, env);
+        header_block_impl->f_element_decl_qn = NULL;
+    }
+
+    header_block_impl->f_element_decl_qn = AXIS2_QNAME_CLONE(qname, env);
+
+    return AXIS2_SUCCESS;
+
+}
+
+axis2_qname_t *AXIS2_CALL 
+woden_soap_header_block_get_element_qname(
+        void *header_block,
+        const axis2_env_t *env) 
+{
+    woden_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_SOAP_HEADER_BLOCK", AXIS2_HASH_KEY_STRING));
+
+    return header_block_impl->f_element_decl_qn;
+}
+
+void *AXIS2_CALL
+woden_soap_header_block_get_element(
+        void *header_block,
+        const axis2_env_t *env) 
+{
+    woden_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+    void *xse = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_SOAP_HEADER_BLOCK", AXIS2_HASH_KEY_STRING));
+
+    if(header_block_impl->f_types != NULL) 
+    {
+        xse = WODEN_TYPES_GET_ELEMENT_DECLARATION(
+                header_block_impl->f_types, env, header_block_impl->
+                f_element_decl_qn);
+    }
+    return xse;
+}
+
+axis2_status_t AXIS2_CALL 
+woden_soap_header_block_set_must_understand(
+        void *header_block,
+        const axis2_env_t *env,
+        axis2_bool_t understood) 
+{
+    woden_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = WODEN_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_SOAP_HEADER_BLOCK", AXIS2_HASH_KEY_STRING));
+
+    header_block_impl->f_must_understand = understood;
+
+    return AXIS2_SUCCESS;
+
+}
+
+axis2_status_t AXIS2_CALL 
+woden_soap_header_block_set_parent_element(
+        void *header_block,
+        const axis2_env_t *env,
+        void *wsdl_el) 
+{
+    woden_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = WODEN_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_SOAP_HEADER_BLOCK", AXIS2_HASH_KEY_STRING));
+
+    if(header_block_impl->f_parent)
+    {
+        /* TODO */
+        header_block_impl->f_parent = NULL;
+    }
+    header_block_impl->f_parent = wsdl_el;
+
+    return AXIS2_SUCCESS;
+}
+
+void *AXIS2_CALL
+woden_soap_header_block_get_parent_element(
+        void *header_block,
+        const axis2_env_t *env) 
+{
+    woden_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_SOAP_HEADER_BLOCK", AXIS2_HASH_KEY_STRING));
+
+    return header_block_impl->f_parent;
+}
+
+axis2_status_t AXIS2_CALL 
+woden_soap_header_block_add_documentation_element(
+        void *header_block,
+        const axis2_env_t *env,
+        void *doc_el) 
+{
+    woden_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, doc_el, AXIS2_FAILURE);
+    super = WODEN_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_SOAP_HEADER_BLOCK", AXIS2_HASH_KEY_STRING));
+
+    if(!header_block_impl->f_documentation_elements)
+    {
+        header_block_impl->f_documentation_elements = 
+            axis2_array_list_create(env, 0);
+        if(!header_block_impl->f_documentation_elements)
+        {
+            AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+            return AXIS2_FAILURE;
+        }
+    }
+    AXIS2_ARRAY_LIST_ADD(header_block_impl->f_documentation_elements, env, doc_el);
+    return AXIS2_SUCCESS;
+}
+
+axis2_array_list_t *AXIS2_CALL 
+woden_soap_header_block_get_documentation_elements(
+        void *header_block,
+        const axis2_env_t *env) 
+{
+    woden_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_SOAP_HEADER_BLOCK", AXIS2_HASH_KEY_STRING));
+
+    return header_block_impl->f_documentation_elements;
+}
+
+axis2_status_t AXIS2_CALL 
+woden_soap_header_block_set_extension_type(
+        void *header_block,
+        const axis2_env_t *env,
+        axis2_qname_t *qname) 
+{
+    woden_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = WODEN_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_SOAP_HEADER_BLOCK", AXIS2_HASH_KEY_STRING));
+
+    if(header_block_impl->f_ext_element_type)
+    {
+        AXIS2_QNAME_FREE(header_block_impl->f_ext_element_type, env);
+        header_block_impl->f_ext_element_type = NULL;
+    }
+
+    header_block_impl->f_ext_element_type = AXIS2_QNAME_CLONE(qname, env);
+
+    return AXIS2_SUCCESS;
+}
+
+axis2_qname_t *AXIS2_CALL 
+woden_soap_header_block_get_extension_type(
+        void *header_block,
+        const axis2_env_t *env) 
+{
+    woden_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_SOAP_HEADER_BLOCK", AXIS2_HASH_KEY_STRING));
+
+    return header_block_impl->f_ext_element_type;
+}
+
+axis2_status_t AXIS2_CALL 
+woden_soap_header_block_set_required(
+        void *header_block,
+        const axis2_env_t *env,
+        axis2_bool_t required) 
+{
+    woden_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = WODEN_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_SOAP_HEADER_BLOCK", AXIS2_HASH_KEY_STRING));
+
+    header_block_impl->f_required = required;
+
+    return AXIS2_SUCCESS;
+}
+
+/* ***********************************************************************
+ *  Extensibility methods
+ * ***********************************************************************/
+
+axis2_status_t AXIS2_CALL 
+woden_soap_header_block_set_ext_attr(
+        void *header_block,
+        const axis2_env_t *env,
+        axis2_qname_t *attr_type, 
+        void *attr) 
+{
+    woden_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, attr_type, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, attr, AXIS2_FAILURE);
+    super = WODEN_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_SOAP_HEADER_BLOCK", AXIS2_HASH_KEY_STRING));
+
+    return WODEN_ATTR_EXTENSIBLE_SET_EXT_ATTR(
+            header_block_impl->f_attr_ext, env, attr_type, attr);
+}
+
+void *AXIS2_CALL
+woden_soap_header_block_get_ext_attr(
+        void *header_block,
+        const axis2_env_t *env,
+        axis2_qname_t *attr_type) 
+{
+    woden_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    AXIS2_PARAM_CHECK(env->error, attr_type, NULL);
+    super = WODEN_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_SOAP_HEADER_BLOCK", AXIS2_HASH_KEY_STRING));
+
+    return WODEN_ATTR_EXTENSIBLE_GET_EXT_ATTR(
+            header_block_impl->f_attr_ext, env, attr_type);
+}
+
+axis2_array_list_t *AXIS2_CALL 
+woden_soap_header_block_get_ext_attrs_for_namespace(
+        void *header_block,
+        const axis2_env_t *env,
+        axis2_uri_t *namespc) 
+{
+    woden_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    AXIS2_PARAM_CHECK(env->error, namespc, NULL);
+    super = WODEN_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_SOAP_HEADER_BLOCK", AXIS2_HASH_KEY_STRING));
+
+    return WODEN_ATTR_EXTENSIBLE_GET_EXT_ATTRS_FOR_NAMESPACE(
+            header_block_impl->f_attr_ext, env, namespc);
+}
+
+axis2_array_list_t *AXIS2_CALL 
+woden_soap_header_block_get_ext_attrs(
+        void *header_block,
+        const axis2_env_t *env)
+{
+    woden_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_SOAP_HEADER_BLOCK", AXIS2_HASH_KEY_STRING));
+
+    return WODEN_ATTR_EXTENSIBLE_GET_EXT_ATTRS(
+            header_block_impl->f_attr_ext, env);
+}
+
+axis2_bool_t AXIS2_CALL 
+woden_soap_header_block_has_ext_attrs_for_namespace(
+        void *header_block,
+        const axis2_env_t *env,
+        axis2_uri_t *namespc) 
+{
+    woden_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FALSE);
+    AXIS2_PARAM_CHECK(env->error, namespc, AXIS2_FAILURE);
+    super = WODEN_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_SOAP_HEADER_BLOCK", AXIS2_HASH_KEY_STRING));
+
+    return WODEN_ATTR_EXTENSIBLE_HAS_EXT_ATTRS_FOR_NAMESPACE(
+            header_block_impl->f_attr_ext, env, namespc);
+}
+
+axis2_status_t AXIS2_CALL 
+woden_soap_header_block_add_ext_element(
+        void *header_block,
+        const axis2_env_t *env,
+        void *ext_el) 
+{
+    woden_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, ext_el, AXIS2_FAILURE);
+    super = WODEN_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_SOAP_HEADER_BLOCK", AXIS2_HASH_KEY_STRING));
+
+    return WODEN_ELEMENT_EXTENSIBLE_ADD_EXT_ELEMENT(
+            header_block_impl->f_elem_ext, env, ext_el);
+}
+
+axis2_status_t AXIS2_CALL 
+woden_soap_header_block_remove_ext_element(
+        void *header_block,
+        const axis2_env_t *env,
+        void *ext_el) 
+{
+    woden_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, ext_el, AXIS2_FAILURE);
+    super = WODEN_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_SOAP_HEADER_BLOCK", AXIS2_HASH_KEY_STRING));
+
+    return WODEN_ELEMENT_EXTENSIBLE_REMOVE_EXT_ELEMENT(
+            header_block_impl->f_elem_ext, env, ext_el);
+
+    return AXIS2_SUCCESS;
+}
+
+axis2_array_list_t *AXIS2_CALL 
+woden_soap_header_block_get_ext_elements(
+        void *header_block,
+        const axis2_env_t *env)
+{
+    woden_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_SOAP_HEADER_BLOCK", AXIS2_HASH_KEY_STRING));
+
+    return WODEN_ELEMENT_EXTENSIBLE_GET_EXT_ELEMENTS(
+            header_block_impl->f_elem_ext, env);
+}
+
+axis2_array_list_t *AXIS2_CALL 
+woden_soap_header_block_get_ext_elements_of_type(
+        void *header_block,
+        const axis2_env_t *env,
+        axis2_qname_t *ext_type) 
+{
+    woden_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    AXIS2_PARAM_CHECK(env->error, ext_type, NULL);
+    super = WODEN_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_SOAP_HEADER_BLOCK", AXIS2_HASH_KEY_STRING));
+
+    return WODEN_ELEMENT_EXTENSIBLE_GET_EXT_ELEMENTS_OF_TYPE(
+            header_block_impl->f_elem_ext, env, ext_type);
+}
+
+axis2_bool_t AXIS2_CALL 
+woden_soap_header_block_has_ext_elements_for_namespace(
+        void *header_block,
+        const axis2_env_t *env,
+        axis2_uri_t *namespc) 
+{
+    woden_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, namespc, AXIS2_FAILURE);
+    super = WODEN_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_SOAP_HEADER_BLOCK", AXIS2_HASH_KEY_STRING));
+
+    return WODEN_ELEMENT_EXTENSIBLE_HAS_EXT_ELEMENTS_FOR_NAMESPACE(
+            header_block_impl->f_elem_ext, env, namespc);
+}
+
+/* ************************************************************
+ *  Non-API implementation methods
+ * ************************************************************/
+
+axis2_status_t AXIS2_CALL 
+woden_soap_header_block_set_element_decl(
+        void *header_block,
+        const axis2_env_t *env,
+        void *element_decl)
+{
+    woden_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, element_decl, AXIS2_FAILURE);
+    super = WODEN_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_SOAP_HEADER_BLOCK", AXIS2_HASH_KEY_STRING));
+
+    if(header_block_impl->f_element_decl)
+    {
+        /* TODO */
+        header_block_impl->f_element_decl = NULL;
+    }
+
+    header_block_impl->f_element_decl = element_decl;
+
+    return AXIS2_SUCCESS;
+}
+
+axis2_status_t AXIS2_CALL 
+woden_soap_header_block_set_types(
+        void *header_block,
+        const axis2_env_t *env,
+        void *types) 
+{
+    woden_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, types, AXIS2_FAILURE);
+    super = WODEN_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_SOAP_HEADER_BLOCK", AXIS2_HASH_KEY_STRING));
+
+    if(header_block_impl->f_types)
+    {
+        /* TODO */
+        header_block_impl->f_types = NULL;
+    }
+
+    header_block_impl->f_types = types;
+
+    return AXIS2_SUCCESS;
+}
+

Added: webservices/axis2/trunk/c/woden/src/wsdl20/extensions/soap/soap_header_block_deserializer.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl20/extensions/soap/soap_header_block_deserializer.c?rev=419452&view=auto
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl20/extensions/soap/soap_header_block_deserializer.c (added)
+++ webservices/axis2/trunk/c/woden/src/wsdl20/extensions/soap/soap_header_block_deserializer.c Wed Jul  5 23:02:19 2006
@@ -0,0 +1,431 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <woden_soap_header_block_deserializer.h>
+#include <woden_soap_header_block.h>
+#include <woden_soap_header_block_element.h>
+#include <woden_desc.h>
+#include <woden_desc_element.h>
+#include <woden_documentation.h>
+#include <woden_documentation_element.h>
+#include "../../../util/woden_om_util.h"
+#include "../../woden_constants.h"
+#include "woden_soap_constants.h"
+#include <axiom_element.h>
+#include <axiom_util.h>
+#include <woden_qname_util.h>
+
+
+typedef struct woden_soap_header_block_deserializer_impl 
+        woden_soap_header_block_deserializer_impl_t;
+
+/** 
+ * @brief Soap Header Block Deserializer Struct Impl
+ *   Axis2 Soap Header Block Deserializer  
+ */ 
+struct woden_soap_header_block_deserializer_impl
+{
+    woden_soap_header_block_deserializer_t header_deser;
+    woden_obj_types_t obj_type;
+    axis2_hash_t *super;
+    axis2_hash_t *methods;
+};
+
+#define INTF_TO_IMPL(header_deser) \
+    ((woden_soap_header_block_deserializer_impl_t *) header_deser)
+
+axis2_status_t AXIS2_CALL 
+woden_soap_header_block_deserializer_free(
+        void *header_deser,
+        const axis2_env_t *env);
+
+woden_obj_types_t AXIS2_CALL 
+woden_soap_header_block_deserializer_type(
+        void *header_deser,
+        const axis2_env_t *env);
+
+axis2_hash_t *AXIS2_CALL 
+woden_soap_header_block_deserializer_super_objs(
+        void *header_deser,
+        const axis2_env_t *env);
+
+void *AXIS2_CALL
+woden_soap_header_block_deserializer_marshall(
+        void *header_deser,
+        const axis2_env_t *env,
+        axis2_char_t *parent_type,
+        void *parent,
+        axis2_qname_t *ext_type,
+        axiom_node_t *ext_el_node,
+        void *desc,
+        woden_ext_registry_t *ext_reg);
+
+static void *
+parse_documentation(
+        void *reader,
+        const axis2_env_t *env,
+        axiom_node_t *doc_el_node,
+        void *desc);
+
+static woden_soap_header_block_deserializer_t *
+create(const axis2_env_t *env);
+
+static axis2_status_t
+woden_soap_header_block_deserializer_free_ops(
+        void *header_deser,
+        const axis2_env_t *env);
+
+/************************Woden C Internal Methods******************************/
+
+AXIS2_EXTERN woden_soap_header_block_deserializer_t * AXIS2_CALL
+woden_soap_header_block_deserializer_to_ext_deserializer(
+        void *header_deser,
+        const axis2_env_t *env)
+{
+    woden_soap_header_block_deserializer_impl_t *header_deser_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, NULL);
+    if(!header_deser)
+    {
+        header_deser_impl = (woden_soap_header_block_deserializer_impl_t *) 
+            create(env);
+    }
+    else
+        header_deser_impl = (woden_soap_header_block_deserializer_impl_t *) 
+            header_deser;
+
+    woden_soap_header_block_deserializer_free_ops(header_deser, env);
+
+    header_deser_impl->header_deser.ext_deserializer.ops = 
+        AXIS2_MALLOC(env->allocator, 
+                sizeof(woden_ext_deserializer_ops_t));
+    woden_ext_deserializer_resolve_methods(&(header_deser_impl->header_deser.
+            ext_deserializer), env, header_deser_impl->methods);
+    return header_deser;
+}
+
+/************************End of Woden C Internal Methods***********************/
+static woden_soap_header_block_deserializer_t *
+create(const axis2_env_t *env)
+{
+    woden_soap_header_block_deserializer_impl_t *header_deser_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, NULL);
+    header_deser_impl = AXIS2_MALLOC(env->allocator, 
+                    sizeof(woden_soap_header_block_deserializer_impl_t));
+
+    header_deser_impl->obj_type= WODEN_SOAP_HEADER_BLOCK_DESERIALIZER;
+    header_deser_impl->super = NULL;
+    header_deser_impl->methods = NULL;
+    
+    header_deser_impl->header_deser.ext_deserializer.ops = NULL;
+    
+    header_deser_impl->header_deser.ops = AXIS2_MALLOC(env->allocator, 
+            sizeof(woden_soap_header_block_deserializer_ops_t));
+
+    header_deser_impl->header_deser.ops->free = 
+        woden_soap_header_block_deserializer_free;
+    header_deser_impl->header_deser.ops->super_objs = 
+        woden_soap_header_block_deserializer_super_objs;
+    header_deser_impl->header_deser.ops->type = 
+        woden_soap_header_block_deserializer_type;
+    
+    header_deser_impl->header_deser.ops->marshall = 
+        woden_soap_header_block_deserializer_marshall;
+ 
+    header_deser_impl->methods = axis2_hash_make(env);
+    if(!header_deser_impl->methods) 
+    {
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        return NULL;
+    }
+    axis2_hash_set(header_deser_impl->methods, "free", AXIS2_HASH_KEY_STRING, 
+            woden_soap_header_block_deserializer_free);
+    axis2_hash_set(header_deser_impl->methods, "super_objs", AXIS2_HASH_KEY_STRING, 
+            woden_soap_header_block_deserializer_super_objs);
+    axis2_hash_set(header_deser_impl->methods, "type", 
+            AXIS2_HASH_KEY_STRING, woden_soap_header_block_deserializer_type);
+
+    axis2_hash_set(header_deser_impl->methods, "marshall", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_soap_header_block_deserializer_marshall);
+
+    return &(header_deser_impl->header_deser);
+}
+
+AXIS2_EXTERN woden_soap_header_block_deserializer_t * AXIS2_CALL
+woden_soap_header_block_deserializer_create(const axis2_env_t *env)
+{
+    woden_soap_header_block_deserializer_impl_t *header_deser_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, NULL);
+    header_deser_impl = (woden_soap_header_block_deserializer_impl_t *) create(env);
+
+    header_deser_impl->super = axis2_hash_make(env);
+    if(!header_deser_impl->super) 
+    {
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        return NULL;
+    }
+    axis2_hash_set(header_deser_impl->super, "WODEN_SOAP_HEADER_BLOCK_DESERIALIZER", 
+            AXIS2_HASH_KEY_STRING, &(header_deser_impl->header_deser));
+ 
+    return &(header_deser_impl->header_deser);
+}
+
+static axis2_status_t
+woden_soap_header_block_deserializer_free_ops(
+        void *header_deser,
+        const axis2_env_t *env)
+{
+    woden_soap_header_block_deserializer_impl_t *header_deser_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    header_deser_impl = INTF_TO_IMPL(header_deser);
+
+    if(header_deser_impl->header_deser.ext_deserializer.ops)
+    {
+        AXIS2_FREE(env->allocator, header_deser_impl->header_deser.
+                ext_deserializer.ops);
+        header_deser_impl->header_deser.ext_deserializer.ops = 
+            NULL;
+    }
+
+    return AXIS2_SUCCESS;
+}
+
+
+axis2_status_t AXIS2_CALL
+woden_soap_header_block_deserializer_free(
+        void *header_deser,
+        const axis2_env_t *env)
+{
+    woden_soap_header_block_deserializer_impl_t *header_deser_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    header_deser_impl = INTF_TO_IMPL(header_deser);
+
+    if(header_deser_impl->super)
+    {
+        axis2_hash_free(header_deser_impl->super, env);
+        header_deser_impl->super = NULL;
+    }
+    
+    if(header_deser_impl->methods)
+    {
+        axis2_hash_free(header_deser_impl->methods, env);
+        header_deser_impl->methods = NULL;
+    }
+
+    woden_soap_header_block_deserializer_free_ops(header_deser, env);
+
+    if((&(header_deser_impl->header_deser))->ops)
+    {
+        AXIS2_FREE(env->allocator, (&(header_deser_impl->header_deser))->ops);
+        (&(header_deser_impl->header_deser))->ops = NULL;
+    }
+    
+    if(header_deser_impl)
+    {
+        AXIS2_FREE(env->allocator, header_deser_impl);
+        header_deser_impl = NULL;
+    }
+    return AXIS2_SUCCESS;
+}
+
+axis2_hash_t *AXIS2_CALL
+woden_soap_header_block_deserializer_super_objs(
+        void *header_deser,
+        const axis2_env_t *env)
+{
+    woden_soap_header_block_deserializer_impl_t *header_deser_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    header_deser_impl = INTF_TO_IMPL(header_deser);
+
+    return header_deser_impl->super;
+}
+
+woden_obj_types_t AXIS2_CALL
+woden_soap_header_block_deserializer_type(
+        void *header_deser,
+        const axis2_env_t *env)
+{
+    woden_soap_header_block_deserializer_impl_t *header_deser_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    header_deser_impl = INTF_TO_IMPL(header_deser);
+
+    return header_deser_impl->obj_type;
+}
+
+axis2_status_t AXIS2_CALL
+woden_soap_header_block_deserializer_resolve_methods(
+        woden_soap_header_block_deserializer_t *header_deser,
+        const axis2_env_t *env,
+        woden_soap_header_block_deserializer_t *header_deser_impl,
+        axis2_hash_t *methods)
+{
+    woden_soap_header_block_deserializer_impl_t *header_deser_impl_l = NULL;
+    
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, methods, AXIS2_FAILURE);
+    header_deser_impl_l = INTF_TO_IMPL(header_deser_impl);
+    
+    header_deser->ops->free = axis2_hash_get(methods, "free", 
+            AXIS2_HASH_KEY_STRING);
+    header_deser->ops->super_objs = axis2_hash_get(methods, "super_objs", 
+            AXIS2_HASH_KEY_STRING);
+    header_deser->ops->type = axis2_hash_get(methods, "type", 
+            AXIS2_HASH_KEY_STRING);
+    
+    header_deser->ops->marshall = axis2_hash_get(methods, 
+            "marshall", AXIS2_HASH_KEY_STRING);
+    if(!header_deser->ops->marshall && header_deser_impl_l)
+            header_deser->ops->marshall = 
+            header_deser_impl_l->header_deser.ops->marshall;
+    
+    return AXIS2_SUCCESS;
+}
+
+void *AXIS2_CALL
+woden_soap_header_block_deserializer_marshall(
+        void *header_deser,
+        const axis2_env_t *env,
+        axis2_char_t *parent_type,
+        void *parent,
+        axis2_qname_t *ext_type,
+        axiom_node_t *ext_el_node,
+        void *desc,
+        woden_ext_registry_t *ext_reg)
+{
+    woden_soap_header_block_deserializer_impl_t *header_deser_impl = NULL;
+    axis2_hash_t *super = NULL;
+    void *soap_hdr = NULL;
+    axis2_char_t *element_decl_qn = NULL;
+    axis2_char_t *must_understand = NULL;
+    axis2_char_t *req = NULL;
+    axiom_element_t *ext_el = NULL;
+    axiom_element_t *temp_el = NULL;
+    axiom_node_t *temp_el_node = NULL;
+    axis2_bool_t understood = AXIS2_FALSE;
+    axis2_bool_t required = AXIS2_FALSE;
+    void *types = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_SOAP_HEADER_BLOCK_DESERIALIZER_SUPER_OBJS(header_deser, env);
+    header_deser_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_SOAP_HEADER_BLOCK_DESERIALIZER", AXIS2_HASH_KEY_STRING));
+   
+    soap_hdr = WODEN_EXT_REGISTRY_QUERY_EXT_ELEMENT_TYPE(ext_reg, env, 
+            parent_type, ext_type);
+
+    soap_hdr = woden_soap_header_block_to_ext_element(soap_hdr, env);
+    WODEN_EXT_ELEMENT_SET_EXT_TYPE(soap_hdr, env, ext_type);
+    soap_hdr = woden_soap_header_block_to_soap_header_block_element(soap_hdr, env);
+    WODEN_SOAP_HEADER_BLOCK_ELEMENT_SET_PARENT_ELEMENT(soap_hdr, env, parent);
+
+    element_decl_qn = AXIOM_ELEMENT_GET_ATTRIBUTE_VALUE_BY_NAME(ext_el, env, 
+            WODEN_ATTR_ELEMENT); 
+    if(NULL != element_decl_qn)
+    {
+        axis2_qname_t *qname = NULL;
+        axis2_hash_t *namespcs = NULL;
+        
+        desc = woden_desc_to_desc_element(desc, env);
+        namespcs = WODEN_DESC_ELEMENT_GET_NAMESPACES(desc, env);
+        qname = woden_om_util_get_qname(env, ext_el_node, 
+                element_decl_qn, namespcs);
+        
+        soap_hdr = woden_soap_header_block_to_soap_header_block_element(soap_hdr, env);
+        WODEN_SOAP_HEADER_BLOCK_ELEMENT_SET_ELEMENT_QNAME(soap_hdr, env, qname);
+    }
+    must_understand = AXIOM_ELEMENT_GET_ATTRIBUTE_VALUE_BY_NAME(ext_el, env, 
+            WODEN_ATTR_MUSTUNDERSTAND);
+    if(NULL != must_understand && 0 == AXIS2_STRCMP(WODEN_VALUE_TRUE, must_understand))
+            understood = AXIS2_TRUE;
+    else
+            understood = AXIS2_FALSE;
+    soap_hdr = woden_soap_header_block_to_soap_header_block_element(soap_hdr, env);
+    WODEN_SOAP_HEADER_BLOCK_ELEMENT_SET_MUST_UNDERSTAND(soap_hdr, env, understood);
+
+    req = AXIOM_ELEMENT_GET_ATTRIBUTE_VALUE_BY_NAME(ext_el, env, 
+            WODEN_ATTR_REQUIRED);
+    if(NULL != req && 0 == AXIS2_STRCMP(WODEN_VALUE_TRUE, req))
+            required = AXIS2_TRUE;
+    else
+            required = AXIS2_FALSE;
+    soap_hdr = woden_soap_header_block_to_ext_element(soap_hdr, env);
+    WODEN_EXT_ELEMENT_SET_REQUIRED(soap_hdr, env, required);
+    
+    desc = woden_desc_to_desc_element(desc, env);
+    types = WODEN_DESC_ELEMENT_GET_TYPES_ELEMENT(desc, env);
+    WODEN_SOAP_HEADER_BLOCK_SET_TYPES(soap_hdr, env, types);
+
+    ext_el = AXIOM_NODE_GET_DATA_ELEMENT(ext_el_node, env);
+    temp_el = axiom_util_get_first_child_element(ext_el, env, ext_el_node, 
+            &temp_el_node);
+
+    while (NULL != temp_el && NULL != temp_el_node)
+    {
+        axis2_qname_t *q_elem_documentation = NULL;
+
+        q_elem_documentation = axis2_qname_create_from_string(env, 
+                WODEN_Q_ELEM_DOCUMENTATION);
+
+        if(AXIS2_TRUE == axis2_qname_util_matches(env, 
+                    q_elem_documentation, temp_el_node))
+        {
+            void *documentation = NULL;
+
+            documentation = parse_documentation(header_deser, env, temp_el_node, desc);
+            soap_hdr = woden_soap_header_block_to_soap_header_block_element(soap_hdr, env);
+            WODEN_SOAP_HEADER_BLOCK_ELEMENT_ADD_DOCUMENTATION_ELEMENT(soap_hdr, env, 
+                    documentation);
+        }
+        else
+        {
+            /* TODO Parse ext elements */
+        }
+
+        temp_el = axiom_util_get_next_sibling_element(temp_el, env, 
+                temp_el_node, &temp_el_node); 
+    }
+    
+    return soap_hdr;
+}
+
+static void *
+parse_documentation(
+        void *header_deser,
+        const axis2_env_t *env,
+        axiom_node_t *doc_el_node,
+        void *desc)
+{
+    void *documentation = NULL;
+    
+    desc = woden_desc_to_desc_element(desc, env);
+    documentation = WODEN_DESC_ELEMENT_CREATE_DOCUMENTATION_ELEMENT(desc, 
+            env);
+    
+    documentation = woden_documentation_to_documentation_element(
+            documentation, env);
+    WODEN_DOCUMENTATION_ELEMENT_SET_CONTENT(documentation, env, doc_el_node);
+    
+    return documentation;
+}
+
+

Added: webservices/axis2/trunk/c/woden/src/wsdl20/extensions/soap/soap_header_block_element.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl20/extensions/soap/soap_header_block_element.c?rev=419452&view=auto
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl20/extensions/soap/soap_header_block_element.c (added)
+++ webservices/axis2/trunk/c/woden/src/wsdl20/extensions/soap/soap_header_block_element.c Wed Jul  5 23:02:19 2006
@@ -0,0 +1,71 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <woden_soap_header_block_element.h>
+
+axis2_status_t AXIS2_CALL
+woden_soap_header_block_element_resolve_methods(
+        woden_soap_header_block_element_t *soap_header_block_element,
+        const axis2_env_t *env,
+        axis2_hash_t *methods)
+{
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, methods, AXIS2_FAILURE);
+    
+    soap_header_block_element->ops->free = axis2_hash_get(methods, "free", 
+            AXIS2_HASH_KEY_STRING);
+    soap_header_block_element->ops->type = axis2_hash_get(methods, "type", 
+            AXIS2_HASH_KEY_STRING);
+
+    soap_header_block_element->ops->set_element_qname = 
+            axis2_hash_get(methods, "set_element_qname", 
+            AXIS2_HASH_KEY_STRING);
+
+    soap_header_block_element->ops->get_element_qname = 
+            axis2_hash_get(methods, "get_element_qname", 
+            AXIS2_HASH_KEY_STRING);
+
+    soap_header_block_element->ops->get_element = 
+            axis2_hash_get(methods, "get_element", 
+            AXIS2_HASH_KEY_STRING);
+
+    soap_header_block_element->ops->set_must_understand = 
+            axis2_hash_get(methods, "set_must understand", 
+            AXIS2_HASH_KEY_STRING);
+
+    soap_header_block_element->ops->must_understand = 
+            axis2_hash_get(methods, "must_understand", 
+            AXIS2_HASH_KEY_STRING);
+
+    soap_header_block_element->ops->set_parent_element = 
+            axis2_hash_get(methods, "set_parent_element", 
+            AXIS2_HASH_KEY_STRING);
+
+    soap_header_block_element->ops->get_parent_element = 
+            axis2_hash_get(methods, "get_parent_element", 
+            AXIS2_HASH_KEY_STRING);
+
+    soap_header_block_element->ops->add_documentation_element = 
+            axis2_hash_get(methods, "add_documentation_element", 
+            AXIS2_HASH_KEY_STRING);
+
+    soap_header_block_element->ops->get_documentation_elements = 
+            axis2_hash_get(methods, "get_documentation_elements", 
+            AXIS2_HASH_KEY_STRING);
+
+    return AXIS2_SUCCESS;    
+}
+



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