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 [29/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/wsdl10/extensions/soap/soap_binding_msg_ref_exts.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl10/extensions/soap/soap_binding_msg_ref_exts.c?rev=419452&view=auto
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl10/extensions/soap/soap_binding_msg_ref_exts.c (added)
+++ webservices/axis2/trunk/c/woden/src/wsdl10/extensions/soap/soap_binding_msg_ref_exts.c Wed Jul  5 23:02:19 2006
@@ -0,0 +1,380 @@
+/*
+ * 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_wsdl10_soap_binding_msg_ref_exts.h>
+#include <woden_component_exts.h>
+#include <woden_wsdl_element.h>
+#include <woden_string_attr.h>
+#include <woden_qname_or_token_any_attr.h>
+#include <woden_qname_list_or_token_any_attr.h>
+#include "woden_wsdl10_soap_constants.h"
+
+typedef struct woden_wsdl10_soap_binding_msg_ref_exts_impl woden_wsdl10_soap_binding_msg_ref_exts_impl_t;
+
+/** 
+ * @brief Soap Binding Message Reference Extensions Struct Impl
+ *   Axis2 Soap Binding Message Reference Extensions  
+ */ 
+struct woden_wsdl10_soap_binding_msg_ref_exts_impl
+{
+    woden_wsdl10_soap_binding_msg_ref_exts_t binding_msg_ref_exts;
+    woden_component_exts_t *component_exts;
+    axis2_hash_t *methods;
+    axis2_hash_t *super;
+    woden_obj_types_t obj_type;
+    
+    axis2_qname_t *qname;
+};
+
+#define INTF_TO_IMPL(binding_msg_ref_exts) ((woden_wsdl10_soap_binding_msg_ref_exts_impl_t *) binding_msg_ref_exts)
+
+axis2_status_t AXIS2_CALL 
+woden_wsdl10_soap_binding_msg_ref_exts_free(
+        void *binding_msg_ref_exts,
+        const axis2_env_t *env);
+
+axis2_hash_t *AXIS2_CALL 
+woden_wsdl10_soap_binding_msg_ref_exts_super_objs(
+        void *binding_msg_ref_exts,
+        const axis2_env_t *env);
+
+woden_obj_types_t AXIS2_CALL 
+woden_wsdl10_soap_binding_msg_ref_exts_type(
+        void *binding_msg_ref_exts,
+        const axis2_env_t *env);
+
+woden_component_exts_t *AXIS2_CALL
+woden_wsdl10_soap_binding_msg_ref_exts_get_base_impl(
+        void *binding_msg_ref_exts,
+        const axis2_env_t *env);
+
+axis2_array_list_t *AXIS2_CALL 
+woden_wsdl10_soap_binding_msg_ref_exts_get_soap_modules(
+        void *binding_msg_ref_exts,
+        const axis2_env_t *env);
+
+axis2_array_list_t *AXIS2_CALL 
+woden_wsdl10_soap_binding_msg_ref_exts_get_soap_headers(
+        void *binding_msg_ref_exts,
+        const axis2_env_t *env);
+
+static woden_wsdl10_soap_binding_msg_ref_exts_t *
+create(
+        const axis2_env_t *env);
+
+static axis2_status_t
+woden_wsdl10_soap_binding_msg_ref_exts_free_ops(
+        void *binding_msg_ref_exts,
+        const axis2_env_t *env);
+
+/************************Woden C Internal Methods******************************/
+AXIS2_EXTERN woden_wsdl10_soap_binding_msg_ref_exts_t * AXIS2_CALL
+woden_wsdl10_soap_binding_msg_ref_exts_to_component_exts(
+        void *binding_msg_ref_exts,
+        const axis2_env_t *env)
+{
+    woden_wsdl10_soap_binding_msg_ref_exts_impl_t *binding_msg_ref_exts_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, NULL);
+    if(!binding_msg_ref_exts)
+    {
+        binding_msg_ref_exts_impl = (woden_wsdl10_soap_binding_msg_ref_exts_impl_t *) create(env);
+    }
+    else
+        binding_msg_ref_exts_impl = (woden_wsdl10_soap_binding_msg_ref_exts_impl_t *) binding_msg_ref_exts;
+    woden_wsdl10_soap_binding_msg_ref_exts_free_ops(binding_msg_ref_exts, env);
+
+    binding_msg_ref_exts_impl->binding_msg_ref_exts.component_exts.ops = 
+        AXIS2_MALLOC(env->allocator, 
+                sizeof(woden_component_exts_ops_t));
+    woden_component_exts_resolve_methods(&(binding_msg_ref_exts_impl->binding_msg_ref_exts.
+            component_exts), env, binding_msg_ref_exts_impl->methods);
+    return binding_msg_ref_exts;
+}
+
+/************************End of Woden C Internal Methods***********************/
+static woden_wsdl10_soap_binding_msg_ref_exts_t *
+create(const axis2_env_t *env)
+{
+    woden_wsdl10_soap_binding_msg_ref_exts_impl_t *binding_msg_ref_exts_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, NULL);
+    binding_msg_ref_exts_impl = AXIS2_MALLOC(env->allocator, 
+                    sizeof(woden_wsdl10_soap_binding_msg_ref_exts_impl_t));
+
+    binding_msg_ref_exts_impl->obj_type= WODEN_WSDL10_SOAP_BINDING_MSG_REF_EXTS;
+    binding_msg_ref_exts_impl->super = NULL;
+    binding_msg_ref_exts_impl->methods = NULL;
+
+    binding_msg_ref_exts_impl->component_exts = NULL;
+    binding_msg_ref_exts_impl->qname = NULL;
+    
+    binding_msg_ref_exts_impl->binding_msg_ref_exts.component_exts.ops = NULL;
+    
+    binding_msg_ref_exts_impl->binding_msg_ref_exts.ops = AXIS2_MALLOC(env->allocator, 
+            sizeof(woden_wsdl10_soap_binding_msg_ref_exts_ops_t));
+
+    binding_msg_ref_exts_impl->binding_msg_ref_exts.ops->free = woden_wsdl10_soap_binding_msg_ref_exts_free;
+    binding_msg_ref_exts_impl->binding_msg_ref_exts.ops->super_objs = 
+        woden_wsdl10_soap_binding_msg_ref_exts_super_objs;
+    binding_msg_ref_exts_impl->binding_msg_ref_exts.ops->type = 
+        woden_wsdl10_soap_binding_msg_ref_exts_type;
+    binding_msg_ref_exts_impl->binding_msg_ref_exts.ops->get_base_impl = 
+        woden_wsdl10_soap_binding_msg_ref_exts_get_base_impl;
+    
+    binding_msg_ref_exts_impl->binding_msg_ref_exts.ops->get_soap_modules = 
+        woden_wsdl10_soap_binding_msg_ref_exts_get_soap_modules;
+    binding_msg_ref_exts_impl->binding_msg_ref_exts.ops->get_soap_headers = 
+        woden_wsdl10_soap_binding_msg_ref_exts_get_soap_headers;
+ 
+    binding_msg_ref_exts_impl->methods = axis2_hash_make(env);
+    if(!binding_msg_ref_exts_impl->methods) 
+    {
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        return NULL;
+    }
+    axis2_hash_set(binding_msg_ref_exts_impl->methods, "free", AXIS2_HASH_KEY_STRING, 
+            woden_wsdl10_soap_binding_msg_ref_exts_free);
+    axis2_hash_set(binding_msg_ref_exts_impl->methods, "super_objs", 
+            AXIS2_HASH_KEY_STRING, woden_wsdl10_soap_binding_msg_ref_exts_super_objs);
+    axis2_hash_set(binding_msg_ref_exts_impl->methods, "type", 
+            AXIS2_HASH_KEY_STRING, woden_wsdl10_soap_binding_msg_ref_exts_type);
+
+    axis2_hash_set(binding_msg_ref_exts_impl->methods, "get_modules", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_wsdl10_soap_binding_msg_ref_exts_get_soap_modules);
+    axis2_hash_set(binding_msg_ref_exts_impl->methods, "get_soap_headers", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_wsdl10_soap_binding_msg_ref_exts_get_soap_headers);
+
+    return &(binding_msg_ref_exts_impl->binding_msg_ref_exts);
+}
+
+AXIS2_EXTERN woden_wsdl10_soap_binding_msg_ref_exts_t * AXIS2_CALL
+woden_wsdl10_soap_binding_msg_ref_exts_create(const axis2_env_t *env)
+{
+    woden_wsdl10_soap_binding_msg_ref_exts_impl_t *binding_msg_ref_exts_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, NULL);
+    binding_msg_ref_exts_impl = (woden_wsdl10_soap_binding_msg_ref_exts_impl_t *) create(env);
+
+    binding_msg_ref_exts_impl->component_exts = woden_component_exts_create(env);
+
+    binding_msg_ref_exts_impl->super = axis2_hash_make(env);
+    if(!binding_msg_ref_exts_impl->super) 
+    {
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        return NULL;
+    }
+    axis2_hash_set(binding_msg_ref_exts_impl->super, "WODEN_WSDL10_SOAP_BINDING_MSG_REF_EXTS", AXIS2_HASH_KEY_STRING, 
+            &(binding_msg_ref_exts_impl->binding_msg_ref_exts));
+    axis2_hash_set(binding_msg_ref_exts_impl->super, "WODEN_COMPONENT_EXTS", AXIS2_HASH_KEY_STRING, 
+            binding_msg_ref_exts_impl->component_exts);
+ 
+    return &(binding_msg_ref_exts_impl->binding_msg_ref_exts);
+}
+
+static axis2_status_t
+woden_wsdl10_soap_binding_msg_ref_exts_free_ops(
+        void *binding_msg_ref_exts,
+        const axis2_env_t *env)
+{
+    woden_wsdl10_soap_binding_msg_ref_exts_impl_t *binding_msg_ref_exts_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    binding_msg_ref_exts_impl = INTF_TO_IMPL(binding_msg_ref_exts);
+
+    if(binding_msg_ref_exts_impl->binding_msg_ref_exts.component_exts.ops)
+    {
+        AXIS2_FREE(env->allocator, binding_msg_ref_exts_impl->binding_msg_ref_exts.
+                component_exts.ops);
+        binding_msg_ref_exts_impl->binding_msg_ref_exts.component_exts.ops = NULL;
+    }
+
+    return AXIS2_SUCCESS;
+}
+
+
+axis2_status_t AXIS2_CALL
+woden_wsdl10_soap_binding_msg_ref_exts_free(void *binding_msg_ref_exts,
+                        const axis2_env_t *env)
+{
+    woden_wsdl10_soap_binding_msg_ref_exts_impl_t *binding_msg_ref_exts_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    binding_msg_ref_exts_impl = INTF_TO_IMPL(binding_msg_ref_exts);
+
+    if(binding_msg_ref_exts_impl->super)
+    {
+        axis2_hash_free(binding_msg_ref_exts_impl->super, env);
+        binding_msg_ref_exts_impl->super = NULL;
+    }
+    
+    if(binding_msg_ref_exts_impl->methods)
+    {
+        axis2_hash_free(binding_msg_ref_exts_impl->methods, env);
+        binding_msg_ref_exts_impl->methods = NULL;
+    }
+
+    if(binding_msg_ref_exts_impl->component_exts)
+    {
+        WODEN_COMPONENT_EXTS_FREE(binding_msg_ref_exts_impl->component_exts, env);
+        binding_msg_ref_exts_impl->component_exts = NULL;
+    }
+
+    if(binding_msg_ref_exts_impl->qname)
+    {
+        AXIS2_QNAME_FREE(binding_msg_ref_exts_impl->qname, env);
+        binding_msg_ref_exts_impl->qname = NULL;
+    }
+    woden_wsdl10_soap_binding_msg_ref_exts_free_ops(binding_msg_ref_exts, env);
+
+    if((&(binding_msg_ref_exts_impl->binding_msg_ref_exts))->ops)
+    {
+        AXIS2_FREE(env->allocator, (&(binding_msg_ref_exts_impl->binding_msg_ref_exts))->ops);
+        (&(binding_msg_ref_exts_impl->binding_msg_ref_exts))->ops = NULL;
+    }
+    
+    if(binding_msg_ref_exts_impl)
+    {
+        AXIS2_FREE(env->allocator, binding_msg_ref_exts_impl);
+        binding_msg_ref_exts_impl = NULL;
+    }
+    return AXIS2_SUCCESS;
+}
+
+axis2_hash_t *AXIS2_CALL
+woden_wsdl10_soap_binding_msg_ref_exts_super_objs(
+        void *binding_msg_ref_exts,
+        const axis2_env_t *env)
+{
+    woden_wsdl10_soap_binding_msg_ref_exts_impl_t *binding_msg_ref_exts_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    binding_msg_ref_exts_impl = INTF_TO_IMPL(binding_msg_ref_exts);
+
+    return binding_msg_ref_exts_impl->super;
+}
+
+woden_obj_types_t AXIS2_CALL
+woden_wsdl10_soap_binding_msg_ref_exts_type(
+        void *binding_msg_ref_exts,
+        const axis2_env_t *env)
+{
+    woden_wsdl10_soap_binding_msg_ref_exts_impl_t *binding_msg_ref_exts_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    binding_msg_ref_exts_impl = INTF_TO_IMPL(binding_msg_ref_exts);
+
+    return binding_msg_ref_exts_impl->obj_type;
+}
+
+woden_component_exts_t *AXIS2_CALL
+woden_wsdl10_soap_binding_msg_ref_exts_get_base_impl(
+        void *binding_msg_ref_exts,
+        const axis2_env_t *env)
+{
+    woden_wsdl10_soap_binding_msg_ref_exts_impl_t *binding_msg_ref_exts_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    binding_msg_ref_exts_impl = INTF_TO_IMPL(binding_msg_ref_exts);
+
+    return binding_msg_ref_exts_impl->component_exts;
+}
+
+axis2_status_t AXIS2_CALL
+woden_wsdl10_soap_binding_msg_ref_exts_resolve_methods(
+        woden_wsdl10_soap_binding_msg_ref_exts_t *binding_msg_ref_exts,
+        const axis2_env_t *env,
+        woden_wsdl10_soap_binding_msg_ref_exts_t *binding_msg_ref_exts_impl,
+        axis2_hash_t *methods)
+{
+    woden_wsdl10_soap_binding_msg_ref_exts_impl_t *binding_msg_ref_exts_impl_l = NULL;
+    
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, methods, AXIS2_FAILURE);
+    binding_msg_ref_exts_impl_l = INTF_TO_IMPL(binding_msg_ref_exts_impl);
+    
+    binding_msg_ref_exts->ops->free = axis2_hash_get(methods, "free", 
+            AXIS2_HASH_KEY_STRING);
+    binding_msg_ref_exts->ops->super_objs = axis2_hash_get(methods, "super_objs", 
+            AXIS2_HASH_KEY_STRING);
+    binding_msg_ref_exts->ops->type = axis2_hash_get(methods, "type", 
+            AXIS2_HASH_KEY_STRING);
+    
+    binding_msg_ref_exts->ops->get_soap_modules = axis2_hash_get(methods, 
+            "get_soap_modules", AXIS2_HASH_KEY_STRING);
+    if(!binding_msg_ref_exts->ops->get_soap_modules && binding_msg_ref_exts_impl_l)
+            binding_msg_ref_exts->ops->get_soap_modules = 
+            binding_msg_ref_exts_impl_l->binding_msg_ref_exts.ops->get_soap_modules;
+    
+    binding_msg_ref_exts->ops->get_soap_headers = axis2_hash_get(methods, 
+            "get_soap_headers", AXIS2_HASH_KEY_STRING);
+    if(!binding_msg_ref_exts->ops->get_soap_headers && binding_msg_ref_exts_impl_l)
+            binding_msg_ref_exts->ops->get_soap_headers = 
+            binding_msg_ref_exts_impl_l->binding_msg_ref_exts.ops->get_soap_headers;
+    
+    return AXIS2_SUCCESS;
+}
+
+axis2_array_list_t *AXIS2_CALL 
+woden_wsdl10_soap_binding_msg_ref_exts_get_soap_modules(
+        void *binding_msg_ref_exts,
+        const axis2_env_t *env) 
+{
+    woden_wsdl10_soap_binding_msg_ref_exts_impl_t *binding_msg_ref_exts_impl = NULL;
+    axis2_array_list_t *soap_mods = NULL;
+    void *parent_element = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    binding_msg_ref_exts_impl = INTF_TO_IMPL(binding_msg_ref_exts);
+
+    parent_element = WODEN_COMPONENT_EXTS_GET_PARENT_ELEMENT(
+            binding_msg_ref_exts_impl->component_exts, env);
+    parent_element = woden_wsdl_element_to_element_extensible(parent_element, 
+            env);
+    binding_msg_ref_exts_impl->qname = axis2_qname_create_from_string(env, 
+            WODEN_Q_ELEM_SOAP_MODULE);
+    soap_mods = WODEN_ELEMENT_EXTENSIBLE_GET_EXT_ELEMENTS_OF_TYPE(
+            parent_element, env, binding_msg_ref_exts_impl->qname); 
+
+    return soap_mods;
+}
+
+axis2_array_list_t *AXIS2_CALL 
+woden_wsdl10_soap_binding_msg_ref_exts_get_soap_headers(
+        void *binding_msg_ref_exts,
+        const axis2_env_t *env) 
+{
+    woden_wsdl10_soap_binding_msg_ref_exts_impl_t *binding_msg_ref_exts_impl = NULL;
+    axis2_array_list_t *soap_headers = NULL;
+    void *parent_element = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    binding_msg_ref_exts_impl = INTF_TO_IMPL(binding_msg_ref_exts);
+
+    parent_element = WODEN_COMPONENT_EXTS_GET_PARENT_ELEMENT(
+            binding_msg_ref_exts_impl->component_exts, env);
+    parent_element = woden_wsdl_element_to_element_extensible(parent_element, 
+            env);
+    binding_msg_ref_exts_impl->qname = axis2_qname_create_from_string(env, 
+            WODEN_Q_ELEM_SOAP_HEADER);
+    soap_headers = WODEN_ELEMENT_EXTENSIBLE_GET_EXT_ELEMENTS_OF_TYPE(
+            parent_element, env, binding_msg_ref_exts_impl->qname); 
+
+    return soap_headers;
+}
+

Added: webservices/axis2/trunk/c/woden/src/wsdl10/extensions/soap/soap_binding_op_exts.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl10/extensions/soap/soap_binding_op_exts.c?rev=419452&view=auto
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl10/extensions/soap/soap_binding_op_exts.c (added)
+++ webservices/axis2/trunk/c/woden/src/wsdl10/extensions/soap/soap_binding_op_exts.c Wed Jul  5 23:02:19 2006
@@ -0,0 +1,399 @@
+/*
+ * 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_wsdl10_soap_binding_op_exts.h>
+#include <woden_component_exts.h>
+#include <woden_wsdl_element.h>
+#include <woden_string_attr.h>
+#include <woden_qname_or_token_any_attr.h>
+#include <woden_qname_list_or_token_any_attr.h>
+#include <woden_uri_attr.h>
+#include "woden_wsdl10_soap_constants.h"
+
+typedef struct woden_wsdl10_soap_binding_op_exts_impl woden_wsdl10_soap_binding_op_exts_impl_t;
+
+/** 
+ * @brief Soap Binding Operation Extensions Struct Impl
+ *   Axis2 Soap Binding Operation Extensions  
+ */ 
+struct woden_wsdl10_soap_binding_op_exts_impl
+{
+    woden_wsdl10_soap_binding_op_exts_t binding_op_exts;
+    woden_component_exts_t *component_exts;
+    axis2_hash_t *methods;
+    axis2_hash_t *super;
+    woden_obj_types_t obj_type;
+    
+    axis2_qname_t *qname;
+};
+
+#define INTF_TO_IMPL(binding_op_exts) ((woden_wsdl10_soap_binding_op_exts_impl_t *) binding_op_exts)
+
+axis2_status_t AXIS2_CALL 
+woden_wsdl10_soap_binding_op_exts_free(
+        void *binding_op_exts,
+        const axis2_env_t *env);
+
+axis2_hash_t *AXIS2_CALL 
+woden_wsdl10_soap_binding_op_exts_super_objs(
+        void *binding_op_exts,
+        const axis2_env_t *env);
+
+woden_obj_types_t AXIS2_CALL 
+woden_wsdl10_soap_binding_op_exts_type(
+        void *binding_op_exts,
+        const axis2_env_t *env);
+
+woden_component_exts_t *AXIS2_CALL
+woden_wsdl10_soap_binding_op_exts_get_base_impl(
+        void *binding_op_exts,
+        const axis2_env_t *env);
+
+axis2_uri_t *AXIS2_CALL 
+woden_wsdl10_soap_binding_op_exts_get_soap_mep(
+        void *binding_op_exts,
+        const axis2_env_t *env);
+
+axis2_uri_t *AXIS2_CALL 
+woden_wsdl10_soap_binding_op_exts_get_soap_action(
+        void *binding_op_exts,
+        const axis2_env_t *env); 
+
+axis2_array_list_t *AXIS2_CALL 
+woden_wsdl10_soap_binding_op_exts_get_soap_modules(
+        void *binding_op_exts,
+        const axis2_env_t *env);
+
+static woden_wsdl10_soap_binding_op_exts_t *
+create(
+        const axis2_env_t *env);
+
+static axis2_status_t
+woden_wsdl10_soap_binding_op_exts_free_ops(
+        void *binding_op_exts,
+        const axis2_env_t *env);
+
+/************************Woden C Internal Methods******************************/
+AXIS2_EXTERN woden_wsdl10_soap_binding_op_exts_t * AXIS2_CALL
+woden_wsdl10_soap_binding_op_exts_to_component_exts(
+        void *binding_op_exts,
+        const axis2_env_t *env)
+{
+    woden_wsdl10_soap_binding_op_exts_impl_t *binding_op_exts_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, NULL);
+    if(!binding_op_exts)
+    {
+        binding_op_exts_impl = (woden_wsdl10_soap_binding_op_exts_impl_t *) create(env);
+    }
+    else
+        binding_op_exts_impl = (woden_wsdl10_soap_binding_op_exts_impl_t *) binding_op_exts;
+    woden_wsdl10_soap_binding_op_exts_free_ops(binding_op_exts, env);
+
+    binding_op_exts_impl->binding_op_exts.component_exts.ops = 
+        AXIS2_MALLOC(env->allocator, 
+                sizeof(woden_component_exts_ops_t));
+    woden_component_exts_resolve_methods(&(binding_op_exts_impl->binding_op_exts.
+            component_exts), env, binding_op_exts_impl->methods);
+    return binding_op_exts;
+}
+
+/************************End of Woden C Internal Methods***********************/
+static woden_wsdl10_soap_binding_op_exts_t *
+create(const axis2_env_t *env)
+{
+    woden_wsdl10_soap_binding_op_exts_impl_t *binding_op_exts_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, NULL);
+    binding_op_exts_impl = AXIS2_MALLOC(env->allocator, 
+                    sizeof(woden_wsdl10_soap_binding_op_exts_impl_t));
+
+    binding_op_exts_impl->obj_type= WODEN_WSDL10_SOAP_BINDING_OP_EXTS;
+    binding_op_exts_impl->super = NULL;
+    binding_op_exts_impl->methods = NULL;
+
+    binding_op_exts_impl->component_exts = NULL;
+    binding_op_exts_impl->qname = NULL;
+    
+    binding_op_exts_impl->binding_op_exts.component_exts.ops = NULL;
+    
+    binding_op_exts_impl->binding_op_exts.ops = AXIS2_MALLOC(env->allocator, 
+            sizeof(woden_wsdl10_soap_binding_op_exts_ops_t));
+
+    binding_op_exts_impl->binding_op_exts.ops->free = woden_wsdl10_soap_binding_op_exts_free;
+    binding_op_exts_impl->binding_op_exts.ops->super_objs = 
+        woden_wsdl10_soap_binding_op_exts_super_objs;
+    binding_op_exts_impl->binding_op_exts.ops->type = 
+        woden_wsdl10_soap_binding_op_exts_type;
+    binding_op_exts_impl->binding_op_exts.ops->get_base_impl = 
+        woden_wsdl10_soap_binding_op_exts_get_base_impl;
+    
+    binding_op_exts_impl->binding_op_exts.ops->get_soap_modules = 
+        woden_wsdl10_soap_binding_op_exts_get_soap_modules;
+ 
+    binding_op_exts_impl->methods = axis2_hash_make(env);
+    if(!binding_op_exts_impl->methods) 
+    {
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        return NULL;
+    }
+    axis2_hash_set(binding_op_exts_impl->methods, "free", AXIS2_HASH_KEY_STRING, 
+            woden_wsdl10_soap_binding_op_exts_free);
+    axis2_hash_set(binding_op_exts_impl->methods, "super_objs", 
+            AXIS2_HASH_KEY_STRING, woden_wsdl10_soap_binding_op_exts_super_objs);
+    axis2_hash_set(binding_op_exts_impl->methods, "type", 
+            AXIS2_HASH_KEY_STRING, woden_wsdl10_soap_binding_op_exts_type);
+
+    axis2_hash_set(binding_op_exts_impl->methods, "get_modules", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_wsdl10_soap_binding_op_exts_get_soap_modules);
+
+    return &(binding_op_exts_impl->binding_op_exts);
+}
+
+AXIS2_EXTERN woden_wsdl10_soap_binding_op_exts_t * AXIS2_CALL
+woden_wsdl10_soap_binding_op_exts_create(const axis2_env_t *env)
+{
+    woden_wsdl10_soap_binding_op_exts_impl_t *binding_op_exts_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, NULL);
+    binding_op_exts_impl = (woden_wsdl10_soap_binding_op_exts_impl_t *) create(env);
+
+    binding_op_exts_impl->component_exts = woden_component_exts_create(env);
+
+    binding_op_exts_impl->super = axis2_hash_make(env);
+    if(!binding_op_exts_impl->super) 
+    {
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        return NULL;
+    }
+    axis2_hash_set(binding_op_exts_impl->super, "WODEN_WSDL10_SOAP_BINDING_OP_EXTS", AXIS2_HASH_KEY_STRING, 
+            &(binding_op_exts_impl->binding_op_exts));
+    axis2_hash_set(binding_op_exts_impl->super, "WODEN_COMPONENT_EXTS", AXIS2_HASH_KEY_STRING, 
+            binding_op_exts_impl->component_exts);
+ 
+    return &(binding_op_exts_impl->binding_op_exts);
+}
+
+static axis2_status_t
+woden_wsdl10_soap_binding_op_exts_free_ops(
+        void *binding_op_exts,
+        const axis2_env_t *env)
+{
+    woden_wsdl10_soap_binding_op_exts_impl_t *binding_op_exts_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    binding_op_exts_impl = INTF_TO_IMPL(binding_op_exts);
+
+    if(binding_op_exts_impl->binding_op_exts.component_exts.ops)
+    {
+        AXIS2_FREE(env->allocator, binding_op_exts_impl->binding_op_exts.
+                component_exts.ops);
+        binding_op_exts_impl->binding_op_exts.component_exts.ops = NULL;
+    }
+
+    return AXIS2_SUCCESS;
+}
+
+
+axis2_status_t AXIS2_CALL
+woden_wsdl10_soap_binding_op_exts_free(void *binding_op_exts,
+                        const axis2_env_t *env)
+{
+    woden_wsdl10_soap_binding_op_exts_impl_t *binding_op_exts_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    binding_op_exts_impl = INTF_TO_IMPL(binding_op_exts);
+
+    if(binding_op_exts_impl->super)
+    {
+        axis2_hash_free(binding_op_exts_impl->super, env);
+        binding_op_exts_impl->super = NULL;
+    }
+    
+    if(binding_op_exts_impl->methods)
+    {
+        axis2_hash_free(binding_op_exts_impl->methods, env);
+        binding_op_exts_impl->methods = NULL;
+    }
+
+    if(binding_op_exts_impl->component_exts)
+    {
+        WODEN_COMPONENT_EXTS_FREE(binding_op_exts_impl->component_exts, env);
+        binding_op_exts_impl->component_exts = NULL;
+    }
+
+    if(binding_op_exts_impl->qname)
+    {
+        AXIS2_QNAME_FREE(binding_op_exts_impl->qname, env);
+        binding_op_exts_impl->qname = NULL;
+    }
+    woden_wsdl10_soap_binding_op_exts_free_ops(binding_op_exts, env);
+
+    if((&(binding_op_exts_impl->binding_op_exts))->ops)
+    {
+        AXIS2_FREE(env->allocator, (&(binding_op_exts_impl->binding_op_exts))->ops);
+        (&(binding_op_exts_impl->binding_op_exts))->ops = NULL;
+    }
+    
+    if(binding_op_exts_impl)
+    {
+        AXIS2_FREE(env->allocator, binding_op_exts_impl);
+        binding_op_exts_impl = NULL;
+    }
+    return AXIS2_SUCCESS;
+}
+
+axis2_hash_t *AXIS2_CALL
+woden_wsdl10_soap_binding_op_exts_super_objs(
+        void *binding_op_exts,
+        const axis2_env_t *env)
+{
+    woden_wsdl10_soap_binding_op_exts_impl_t *binding_op_exts_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    binding_op_exts_impl = INTF_TO_IMPL(binding_op_exts);
+
+    return binding_op_exts_impl->super;
+}
+
+woden_obj_types_t AXIS2_CALL
+woden_wsdl10_soap_binding_op_exts_type(
+        void *binding_op_exts,
+        const axis2_env_t *env)
+{
+    woden_wsdl10_soap_binding_op_exts_impl_t *binding_op_exts_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    binding_op_exts_impl = INTF_TO_IMPL(binding_op_exts);
+
+    return binding_op_exts_impl->obj_type;
+}
+
+woden_component_exts_t *AXIS2_CALL
+woden_wsdl10_soap_binding_op_exts_get_base_impl(
+        void *binding_op_exts,
+        const axis2_env_t *env)
+{
+    woden_wsdl10_soap_binding_op_exts_impl_t *binding_op_exts_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    binding_op_exts_impl = INTF_TO_IMPL(binding_op_exts);
+
+    return binding_op_exts_impl->component_exts;
+}
+
+axis2_status_t AXIS2_CALL
+woden_wsdl10_soap_binding_op_exts_resolve_methods(
+        woden_wsdl10_soap_binding_op_exts_t *binding_op_exts,
+        const axis2_env_t *env,
+        woden_wsdl10_soap_binding_op_exts_t *binding_op_exts_impl,
+        axis2_hash_t *methods)
+{
+    woden_wsdl10_soap_binding_op_exts_impl_t *binding_op_exts_impl_l = NULL;
+    
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, methods, AXIS2_FAILURE);
+    binding_op_exts_impl_l = INTF_TO_IMPL(binding_op_exts_impl);
+    
+    binding_op_exts->ops->free = axis2_hash_get(methods, "free", 
+            AXIS2_HASH_KEY_STRING);
+    binding_op_exts->ops->super_objs = axis2_hash_get(methods, "super_objs", 
+            AXIS2_HASH_KEY_STRING);
+    binding_op_exts->ops->type = axis2_hash_get(methods, "type", 
+            AXIS2_HASH_KEY_STRING);
+    
+    binding_op_exts->ops->get_soap_modules = axis2_hash_get(methods, 
+            "get_soap_modules", AXIS2_HASH_KEY_STRING);
+    if(!binding_op_exts->ops->get_soap_modules && binding_op_exts_impl_l)
+            binding_op_exts->ops->get_soap_modules = 
+            binding_op_exts_impl_l->binding_op_exts.ops->get_soap_modules;
+    
+    return AXIS2_SUCCESS;
+}
+
+axis2_uri_t *AXIS2_CALL 
+woden_wsdl10_soap_binding_op_exts_get_soap_mep(
+        void *binding_op_exts,
+        const axis2_env_t *env) 
+{
+    woden_wsdl10_soap_binding_op_exts_impl_t *binding_op_exts_impl = NULL;
+    woden_uri_attr_t *mep = NULL;
+    void *parent_element = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    binding_op_exts_impl = INTF_TO_IMPL(binding_op_exts);
+
+    parent_element = WODEN_COMPONENT_EXTS_GET_PARENT_ELEMENT(
+            binding_op_exts_impl->component_exts, env);
+    parent_element = woden_wsdl_element_to_attr_extensible(parent_element, 
+            env);
+    binding_op_exts_impl->qname = axis2_qname_create_from_string(env, 
+            WODEN_Q_ATTR_SOAP_MEP);
+    mep = WODEN_ATTR_EXTENSIBLE_GET_EXT_ATTR(
+            parent_element, env, binding_op_exts_impl->qname); 
+
+    return mep != NULL ? WODEN_URI_ATTR_GET_URI(mep, env) : NULL;
+}
+
+axis2_uri_t *AXIS2_CALL 
+woden_wsdl10_soap_binding_op_exts_get_soap_action(
+        void *binding_op_exts,
+        const axis2_env_t *env) 
+{
+    woden_wsdl10_soap_binding_op_exts_impl_t *binding_op_exts_impl = NULL;
+    woden_uri_attr_t *action = NULL;
+    void *parent_element = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    binding_op_exts_impl = INTF_TO_IMPL(binding_op_exts);
+
+    parent_element = WODEN_COMPONENT_EXTS_GET_PARENT_ELEMENT(
+            binding_op_exts_impl->component_exts, env);
+    parent_element = woden_wsdl_element_to_attr_extensible(parent_element, 
+            env);
+    binding_op_exts_impl->qname = axis2_qname_create_from_string(env, 
+            WODEN_Q_ATTR_SOAP_MEP);
+    action = WODEN_ATTR_EXTENSIBLE_GET_EXT_ATTR(
+            parent_element, env, binding_op_exts_impl->qname); 
+
+    return action != NULL ? WODEN_URI_ATTR_GET_URI(action, env) : NULL;
+}
+
+axis2_array_list_t *AXIS2_CALL 
+woden_wsdl10_soap_binding_op_exts_get_soap_modules(
+        void *binding_op_exts,
+        const axis2_env_t *env) 
+{
+    woden_wsdl10_soap_binding_op_exts_impl_t *binding_op_exts_impl = NULL;
+    axis2_array_list_t *soap_mods = NULL;
+    void *parent_element = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    binding_op_exts_impl = INTF_TO_IMPL(binding_op_exts);
+
+    parent_element = WODEN_COMPONENT_EXTS_GET_PARENT_ELEMENT(
+            binding_op_exts_impl->component_exts, env);
+    parent_element = woden_wsdl_element_to_element_extensible(parent_element, 
+            env);
+    binding_op_exts_impl->qname = axis2_qname_create_from_string(env, 
+            WODEN_Q_ELEM_SOAP_MODULE);
+    soap_mods = WODEN_ELEMENT_EXTENSIBLE_GET_EXT_ELEMENTS_OF_TYPE(
+            parent_element, env, binding_op_exts_impl->qname); 
+
+    return soap_mods;
+}
+

Added: webservices/axis2/trunk/c/woden/src/wsdl10/extensions/soap/soap_header_block.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl10/extensions/soap/soap_header_block.c?rev=419452&view=auto
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl10/extensions/soap/soap_header_block.c (added)
+++ webservices/axis2/trunk/c/woden/src/wsdl10/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_wsdl10_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_wsdl10_soap_constants.h"
+#include <woden_element_decl.h>
+
+typedef struct woden_wsdl10_soap_header_block_impl woden_wsdl10_soap_header_block_impl_t;
+
+/** 
+ * @brief Soap Header Blocks Struct Impl
+ *   Axis2 Soap Header Blocks  
+ */ 
+struct woden_wsdl10_soap_header_block_impl
+{
+    woden_wsdl10_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_wsdl10_soap_header_block_impl_t *) header_block)
+
+axis2_status_t AXIS2_CALL 
+woden_wsdl10_soap_header_block_free(
+        void *header_block,
+        const axis2_env_t *env);
+
+axis2_hash_t *AXIS2_CALL 
+woden_wsdl10_soap_header_block_super_objs(
+        void *header_block,
+        const axis2_env_t *env);
+
+woden_obj_types_t AXIS2_CALL 
+woden_wsdl10_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_wsdl10_soap_header_block_get_element_decl(
+        void *header_block,
+        const axis2_env_t *env);
+
+axis2_bool_t AXIS2_CALL 
+woden_wsdl10_soap_header_block_must_understand(
+        void *header_block,
+        const axis2_env_t *env);
+
+axis2_bool_t AXIS2_CALL 
+woden_wsdl10_soap_header_block_is_required(
+        void *header_block,
+        const axis2_env_t *env);
+
+void *AXIS2_CALL
+woden_wsdl10_soap_header_block_get_parent(
+        void *header_block,
+        const axis2_env_t *env);
+
+void *AXIS2_CALL
+woden_wsdl10_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_wsdl10_soap_header_block_set_element_qname(
+        void *header_block,
+        const axis2_env_t *env,
+        axis2_qname_t *qname); 
+
+axis2_qname_t *AXIS2_CALL 
+woden_wsdl10_soap_header_block_get_element_qname(
+        void *header_block,
+        const axis2_env_t *env);
+
+void *AXIS2_CALL
+woden_wsdl10_soap_header_block_get_element(
+        void *header_block,
+        const axis2_env_t *env);
+
+axis2_status_t AXIS2_CALL 
+woden_wsdl10_soap_header_block_set_must_understand(
+        void *header_block,
+        const axis2_env_t *env,
+        axis2_bool_t understood);
+
+axis2_status_t AXIS2_CALL 
+woden_wsdl10_soap_header_block_set_parent_element(
+        void *header_block,
+        const axis2_env_t *env,
+        void *wsdl_el);
+
+void *AXIS2_CALL
+woden_wsdl10_soap_header_block_get_parent_element(
+        void *header_block,
+        const axis2_env_t *env); 
+
+axis2_status_t AXIS2_CALL 
+woden_wsdl10_soap_header_block_add_documentation_element(
+        void *header_block,
+        const axis2_env_t *env,
+        void *doc_el);
+
+axis2_array_list_t *AXIS2_CALL 
+woden_wsdl10_soap_header_block_get_documentation_elements(
+        void *header_block,
+        const axis2_env_t *env);
+
+axis2_status_t AXIS2_CALL 
+woden_wsdl10_soap_header_block_set_extension_type(
+        void *header_block,
+        const axis2_env_t *env,
+        axis2_qname_t *qname); 
+
+axis2_qname_t *AXIS2_CALL 
+woden_wsdl10_soap_header_block_get_extension_type(
+        void *header_block,
+        const axis2_env_t *env);
+
+axis2_status_t AXIS2_CALL 
+woden_wsdl10_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_wsdl10_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_wsdl10_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_wsdl10_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_wsdl10_soap_header_block_get_ext_attrs(
+        void *header_block,
+        const axis2_env_t *env);
+
+axis2_bool_t AXIS2_CALL 
+woden_wsdl10_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_wsdl10_soap_header_block_add_ext_element(
+        void *header_block,
+        const axis2_env_t *env,
+        void *ext_el);
+
+axis2_status_t AXIS2_CALL 
+woden_wsdl10_soap_header_block_remove_ext_element(
+        void *header_block,
+        const axis2_env_t *env,
+        void *ext_el);
+
+axis2_array_list_t *AXIS2_CALL 
+woden_wsdl10_soap_header_block_get_ext_elements(
+        void *header_block,
+        const axis2_env_t *env);
+
+axis2_array_list_t *AXIS2_CALL 
+woden_wsdl10_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_wsdl10_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_wsdl10_soap_header_block_set_element_decl(
+        void *header_block,
+        const axis2_env_t *env,
+        void *element_decl);
+
+axis2_status_t AXIS2_CALL 
+woden_wsdl10_soap_header_block_set_types(
+        void *header_block,
+        const axis2_env_t *env,
+        void *types);
+
+static woden_wsdl10_soap_header_block_t *
+create(const axis2_env_t *env);
+
+static axis2_status_t
+woden_wsdl10_soap_header_block_free_ops(
+        void *header_block,
+        const axis2_env_t *env);
+
+/************************Woden C Internal Methods******************************/
+AXIS2_EXTERN woden_wsdl10_soap_header_block_t * AXIS2_CALL
+woden_wsdl10_soap_header_block_to_soap_header_block_element(
+        void *header_block,
+        const axis2_env_t *env)
+{
+    woden_wsdl10_soap_header_block_impl_t *header_block_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, NULL);
+    if(!header_block)
+    {
+        header_block_impl = (woden_wsdl10_soap_header_block_impl_t *) create(env);
+    }
+    else
+        header_block_impl = (woden_wsdl10_soap_header_block_impl_t *) header_block;
+    woden_wsdl10_soap_header_block_free_ops(header_block, env);
+
+    header_block_impl->header_block.header_block_element.ops = 
+        AXIS2_MALLOC(env->allocator, 
+                sizeof(woden_wsdl10_soap_header_block_element_ops_t));
+    woden_wsdl10_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_wsdl10_soap_header_block_t * AXIS2_CALL
+woden_wsdl10_soap_header_block_to_ext_element(
+        void *header_block,
+        const axis2_env_t *env)
+{
+    woden_wsdl10_soap_header_block_impl_t *header_block_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, NULL);
+    if(!header_block)
+    {
+        header_block_impl = (woden_wsdl10_soap_header_block_impl_t *) create(env);
+    }
+    else
+        header_block_impl = (woden_wsdl10_soap_header_block_impl_t *) header_block;
+    woden_wsdl10_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_wsdl10_soap_header_block_t * AXIS2_CALL
+woden_wsdl10_soap_header_block_to_attr_extensible(
+        void *header_block,
+        const axis2_env_t *env)
+{
+    woden_wsdl10_soap_header_block_impl_t *header_block_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, NULL);
+    if(!header_block)
+    {
+        header_block_impl = (woden_wsdl10_soap_header_block_impl_t *) create(env);
+    }
+    else
+        header_block_impl = (woden_wsdl10_soap_header_block_impl_t *) header_block;
+    woden_wsdl10_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_wsdl10_soap_header_block_t * AXIS2_CALL
+woden_wsdl10_soap_header_block_to_element_extensible(
+        void *header_block,
+        const axis2_env_t *env)
+{
+    woden_wsdl10_soap_header_block_impl_t *header_block_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, NULL);
+    if(!header_block)
+    {
+        header_block_impl = (woden_wsdl10_soap_header_block_impl_t *) create(env);
+    }
+    else
+        header_block_impl = (woden_wsdl10_soap_header_block_impl_t *) header_block;
+    woden_wsdl10_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_wsdl10_soap_header_block_t *
+create(const axis2_env_t *env)
+{
+    woden_wsdl10_soap_header_block_impl_t *header_block_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, NULL);
+    header_block_impl = AXIS2_MALLOC(env->allocator, 
+                    sizeof(woden_wsdl10_soap_header_block_impl_t));
+
+    header_block_impl->obj_type= WODEN_WSDL10_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_wsdl10_soap_header_block_ops_t));
+
+    header_block_impl->header_block.ops->free = woden_wsdl10_soap_header_block_free;
+    header_block_impl->header_block.ops->super_objs = 
+        woden_wsdl10_soap_header_block_super_objs;
+    header_block_impl->header_block.ops->type = 
+        woden_wsdl10_soap_header_block_type;
+    
+    header_block_impl->header_block.ops->get_element_decl = 
+        woden_wsdl10_soap_header_block_get_element_decl;
+    
+    header_block_impl->header_block.ops->must_understand = 
+        woden_wsdl10_soap_header_block_must_understand;
+    
+    header_block_impl->header_block.ops->is_required = 
+        woden_wsdl10_soap_header_block_is_required;
+    
+    header_block_impl->header_block.ops->get_parent = 
+        woden_wsdl10_soap_header_block_get_parent;
+    
+    header_block_impl->header_block.ops->to_element = 
+        woden_wsdl10_soap_header_block_to_element;
+    
+    header_block_impl->header_block.ops->set_element_decl = 
+        woden_wsdl10_soap_header_block_set_element_decl;
+    
+    header_block_impl->header_block.ops->set_types = 
+        woden_wsdl10_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_wsdl10_soap_header_block_free);
+    axis2_hash_set(header_block_impl->methods, "super_objs", 
+            AXIS2_HASH_KEY_STRING, woden_wsdl10_soap_header_block_super_objs);
+    axis2_hash_set(header_block_impl->methods, "type", 
+            AXIS2_HASH_KEY_STRING, woden_wsdl10_soap_header_block_type);
+
+    axis2_hash_set(header_block_impl->methods, "get_element_decl", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_wsdl10_soap_header_block_get_element_decl);
+
+    axis2_hash_set(header_block_impl->methods, "must_understand", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_wsdl10_soap_header_block_must_understand);
+
+    axis2_hash_set(header_block_impl->methods, "is_required", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_wsdl10_soap_header_block_is_required);
+
+    axis2_hash_set(header_block_impl->methods, "get_parent", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_wsdl10_soap_header_block_get_parent);
+
+    axis2_hash_set(header_block_impl->methods, "to_element", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_wsdl10_soap_header_block_to_element);
+
+    axis2_hash_set(header_block_impl->methods, "set_element_qname", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_wsdl10_soap_header_block_set_element_qname);
+
+    axis2_hash_set(header_block_impl->methods, "get_element_qname", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_wsdl10_soap_header_block_get_element_qname);
+
+    axis2_hash_set(header_block_impl->methods, "get_element", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_wsdl10_soap_header_block_get_element);
+
+    axis2_hash_set(header_block_impl->methods, "set_must_understand", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_wsdl10_soap_header_block_set_must_understand);
+
+    axis2_hash_set(header_block_impl->methods, "set_parent_element", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_wsdl10_soap_header_block_set_parent_element);
+
+    axis2_hash_set(header_block_impl->methods, "get_parent_element", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_wsdl10_soap_header_block_get_parent_element);
+
+    axis2_hash_set(header_block_impl->methods, "add_documentation_element", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_wsdl10_soap_header_block_add_documentation_element);
+
+    axis2_hash_set(header_block_impl->methods, "get_documentation_elements", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_wsdl10_soap_header_block_get_documentation_elements);
+
+    axis2_hash_set(header_block_impl->methods, "set_extension_type", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_wsdl10_soap_header_block_set_extension_type);
+
+    axis2_hash_set(header_block_impl->methods, "get_extension_type", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_wsdl10_soap_header_block_get_extension_type);
+
+    axis2_hash_set(header_block_impl->methods, "set_required", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_wsdl10_soap_header_block_set_required);
+
+    axis2_hash_set(header_block_impl->methods, "set_ext_attr", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_wsdl10_soap_header_block_set_ext_attr);
+
+    axis2_hash_set(header_block_impl->methods, "get_ext_attr", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_wsdl10_soap_header_block_get_ext_attr);
+
+    axis2_hash_set(header_block_impl->methods, "get_ext_attrs_for_namespace", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_wsdl10_soap_header_block_get_ext_attrs_for_namespace);
+
+    axis2_hash_set(header_block_impl->methods, "get_ext_attrs", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_wsdl10_soap_header_block_get_ext_attrs);
+
+    axis2_hash_set(header_block_impl->methods, "has_ext_attrs_for_namespace", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_wsdl10_soap_header_block_has_ext_attrs_for_namespace);
+
+    axis2_hash_set(header_block_impl->methods, "add_ext_element", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_wsdl10_soap_header_block_add_ext_element);
+
+    axis2_hash_set(header_block_impl->methods, "remove_ext_element", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_wsdl10_soap_header_block_remove_ext_element);
+
+    axis2_hash_set(header_block_impl->methods, "get_ext_elements", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_wsdl10_soap_header_block_get_ext_elements);
+
+    axis2_hash_set(header_block_impl->methods, "get_ext_elements_of_type", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_wsdl10_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_wsdl10_soap_header_block_has_ext_elements_for_namespace);
+
+    axis2_hash_set(header_block_impl->methods, "set_element_decl", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_wsdl10_soap_header_block_set_element_decl);
+
+    axis2_hash_set(header_block_impl->methods, "set_types", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_wsdl10_soap_header_block_set_types);
+
+    return &(header_block_impl->header_block);
+}
+
+AXIS2_EXTERN woden_wsdl10_soap_header_block_t * AXIS2_CALL
+woden_wsdl10_soap_header_block_create(const axis2_env_t *env)
+{
+    woden_wsdl10_soap_header_block_impl_t *header_block_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, NULL);
+    header_block_impl = (woden_wsdl10_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_WSDL10_SOAP_HEADER_BLOCK", AXIS2_HASH_KEY_STRING, 
+            &(header_block_impl->header_block));
+ 
+    return &(header_block_impl->header_block);
+}
+
+static axis2_status_t
+woden_wsdl10_soap_header_block_free_ops(
+        void *header_block,
+        const axis2_env_t *env)
+{
+    woden_wsdl10_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_wsdl10_soap_header_block_free(void *header_block,
+                        const axis2_env_t *env)
+{
+    woden_wsdl10_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_wsdl10_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_wsdl10_soap_header_block_super_objs(
+        void *header_block,
+        const axis2_env_t *env)
+{
+    woden_wsdl10_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_wsdl10_soap_header_block_type(
+        void *header_block,
+        const axis2_env_t *env)
+{
+    woden_wsdl10_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_wsdl10_soap_header_block_resolve_methods(
+        woden_wsdl10_soap_header_block_t *header_block,
+        const axis2_env_t *env,
+        woden_wsdl10_soap_header_block_t *header_block_impl,
+        axis2_hash_t *methods)
+{
+    woden_wsdl10_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_wsdl10_soap_header_block_get_element_decl(
+        void *header_block,
+        const axis2_env_t *env) 
+{
+    woden_wsdl10_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_WSDL10_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_WSDL10_SOAP_HEADER_BLOCK", AXIS2_HASH_KEY_STRING));
+
+    return header_block_impl->f_element_decl;
+}
+
+axis2_bool_t AXIS2_CALL 
+woden_wsdl10_soap_header_block_must_understand(
+        void *header_block,
+        const axis2_env_t *env) 
+{
+    woden_wsdl10_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FALSE);
+    super = WODEN_WSDL10_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_WSDL10_SOAP_HEADER_BLOCK", AXIS2_HASH_KEY_STRING));
+
+    return header_block_impl->f_must_understand;
+}
+
+axis2_bool_t AXIS2_CALL 
+woden_wsdl10_soap_header_block_is_required(
+        void *header_block,
+        const axis2_env_t *env) 
+{
+    woden_wsdl10_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FALSE);
+    super = WODEN_WSDL10_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_WSDL10_SOAP_HEADER_BLOCK", AXIS2_HASH_KEY_STRING));
+
+    return header_block_impl->f_required;
+}
+
+void *AXIS2_CALL
+woden_wsdl10_soap_header_block_get_parent(
+        void *header_block,
+        const axis2_env_t *env) 
+{
+    woden_wsdl10_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_WSDL10_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_WSDL10_SOAP_HEADER_BLOCK", AXIS2_HASH_KEY_STRING));
+
+    return header_block_impl->f_parent;
+}
+
+void *AXIS2_CALL
+woden_wsdl10_soap_header_block_to_element(
+        void *header_block,
+        const axis2_env_t *env) 
+{
+    woden_wsdl10_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_WSDL10_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_WSDL10_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_wsdl10_soap_header_block_set_element_qname(
+        void *header_block,
+        const axis2_env_t *env,
+        axis2_qname_t *qname) 
+{
+    woden_wsdl10_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = WODEN_WSDL10_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_WSDL10_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_wsdl10_soap_header_block_get_element_qname(
+        void *header_block,
+        const axis2_env_t *env) 
+{
+    woden_wsdl10_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_WSDL10_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_WSDL10_SOAP_HEADER_BLOCK", AXIS2_HASH_KEY_STRING));
+
+    return header_block_impl->f_element_decl_qn;
+}
+
+void *AXIS2_CALL
+woden_wsdl10_soap_header_block_get_element(
+        void *header_block,
+        const axis2_env_t *env) 
+{
+    woden_wsdl10_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+    void *xse = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_WSDL10_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_WSDL10_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_wsdl10_soap_header_block_set_must_understand(
+        void *header_block,
+        const axis2_env_t *env,
+        axis2_bool_t understood) 
+{
+    woden_wsdl10_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = WODEN_WSDL10_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_WSDL10_SOAP_HEADER_BLOCK", AXIS2_HASH_KEY_STRING));
+
+    header_block_impl->f_must_understand = understood;
+
+    return AXIS2_SUCCESS;
+
+}
+
+axis2_status_t AXIS2_CALL 
+woden_wsdl10_soap_header_block_set_parent_element(
+        void *header_block,
+        const axis2_env_t *env,
+        void *wsdl_el) 
+{
+    woden_wsdl10_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = WODEN_WSDL10_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_WSDL10_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_wsdl10_soap_header_block_get_parent_element(
+        void *header_block,
+        const axis2_env_t *env) 
+{
+    woden_wsdl10_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_WSDL10_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_WSDL10_SOAP_HEADER_BLOCK", AXIS2_HASH_KEY_STRING));
+
+    return header_block_impl->f_parent;
+}
+
+axis2_status_t AXIS2_CALL 
+woden_wsdl10_soap_header_block_add_documentation_element(
+        void *header_block,
+        const axis2_env_t *env,
+        void *doc_el) 
+{
+    woden_wsdl10_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_WSDL10_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_WSDL10_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_wsdl10_soap_header_block_get_documentation_elements(
+        void *header_block,
+        const axis2_env_t *env) 
+{
+    woden_wsdl10_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_WSDL10_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_WSDL10_SOAP_HEADER_BLOCK", AXIS2_HASH_KEY_STRING));
+
+    return header_block_impl->f_documentation_elements;
+}
+
+axis2_status_t AXIS2_CALL 
+woden_wsdl10_soap_header_block_set_extension_type(
+        void *header_block,
+        const axis2_env_t *env,
+        axis2_qname_t *qname) 
+{
+    woden_wsdl10_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = WODEN_WSDL10_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_WSDL10_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_wsdl10_soap_header_block_get_extension_type(
+        void *header_block,
+        const axis2_env_t *env) 
+{
+    woden_wsdl10_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_WSDL10_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_WSDL10_SOAP_HEADER_BLOCK", AXIS2_HASH_KEY_STRING));
+
+    return header_block_impl->f_ext_element_type;
+}
+
+axis2_status_t AXIS2_CALL 
+woden_wsdl10_soap_header_block_set_required(
+        void *header_block,
+        const axis2_env_t *env,
+        axis2_bool_t required) 
+{
+    woden_wsdl10_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = WODEN_WSDL10_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_WSDL10_SOAP_HEADER_BLOCK", AXIS2_HASH_KEY_STRING));
+
+    header_block_impl->f_required = required;
+
+    return AXIS2_SUCCESS;
+}
+
+/* ***********************************************************************
+ *  Extensibility methods
+ * ***********************************************************************/
+
+axis2_status_t AXIS2_CALL 
+woden_wsdl10_soap_header_block_set_ext_attr(
+        void *header_block,
+        const axis2_env_t *env,
+        axis2_qname_t *attr_type, 
+        void *attr) 
+{
+    woden_wsdl10_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_WSDL10_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_WSDL10_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_wsdl10_soap_header_block_get_ext_attr(
+        void *header_block,
+        const axis2_env_t *env,
+        axis2_qname_t *attr_type) 
+{
+    woden_wsdl10_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_WSDL10_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_WSDL10_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_wsdl10_soap_header_block_get_ext_attrs_for_namespace(
+        void *header_block,
+        const axis2_env_t *env,
+        axis2_uri_t *namespc) 
+{
+    woden_wsdl10_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_WSDL10_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_WSDL10_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_wsdl10_soap_header_block_get_ext_attrs(
+        void *header_block,
+        const axis2_env_t *env)
+{
+    woden_wsdl10_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_WSDL10_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_WSDL10_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_wsdl10_soap_header_block_has_ext_attrs_for_namespace(
+        void *header_block,
+        const axis2_env_t *env,
+        axis2_uri_t *namespc) 
+{
+    woden_wsdl10_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_WSDL10_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_WSDL10_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_wsdl10_soap_header_block_add_ext_element(
+        void *header_block,
+        const axis2_env_t *env,
+        void *ext_el) 
+{
+    woden_wsdl10_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_WSDL10_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_WSDL10_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_wsdl10_soap_header_block_remove_ext_element(
+        void *header_block,
+        const axis2_env_t *env,
+        void *ext_el) 
+{
+    woden_wsdl10_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_WSDL10_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_WSDL10_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_wsdl10_soap_header_block_get_ext_elements(
+        void *header_block,
+        const axis2_env_t *env)
+{
+    woden_wsdl10_soap_header_block_impl_t *header_block_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_WSDL10_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_WSDL10_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_wsdl10_soap_header_block_get_ext_elements_of_type(
+        void *header_block,
+        const axis2_env_t *env,
+        axis2_qname_t *ext_type) 
+{
+    woden_wsdl10_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_WSDL10_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_WSDL10_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_wsdl10_soap_header_block_has_ext_elements_for_namespace(
+        void *header_block,
+        const axis2_env_t *env,
+        axis2_uri_t *namespc) 
+{
+    woden_wsdl10_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_WSDL10_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_WSDL10_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_wsdl10_soap_header_block_set_element_decl(
+        void *header_block,
+        const axis2_env_t *env,
+        void *element_decl)
+{
+    woden_wsdl10_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_WSDL10_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_WSDL10_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_wsdl10_soap_header_block_set_types(
+        void *header_block,
+        const axis2_env_t *env,
+        void *types) 
+{
+    woden_wsdl10_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_WSDL10_SOAP_HEADER_BLOCK_SUPER_OBJS(header_block, env);
+    header_block_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_WSDL10_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;
+}
+



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