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/05/30 10:20:42 UTC

svn commit: r410214 [4/5] - in /webservices/axis2/trunk/c/woden: include/woden/ include/woden/wsdl20/ include/woden/wsdl20/enumeration/ include/woden/wsdl20/extensions/ include/woden/wsdl20/xml/ src/types/ src/util/ src/wsdl20/ src/wsdl20/extensions/ s...

Added: webservices/axis2/trunk/c/woden/src/wsdl20/desc.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl20/desc.c?rev=410214&view=auto
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl20/desc.c (added)
+++ webservices/axis2/trunk/c/woden/src/wsdl20/desc.c Tue May 30 01:20:38 2006
@@ -0,0 +1,1883 @@
+/*
+ * 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/axis2_woden_wsdl_obj.h>
+#include <woden/wsdl20/axis2_woden_desc.h>
+#include <woden/wsdl20/extensions/axis2_woden_ext_element.h>
+#include <woden/wsdl20/extensions/axis2_woden_component_exts.h>
+#include <woden/xml/axis2_woden_xml_attr.h>
+#include <woden/wsdl20/xml/axis2_woden_documentation_element.h>
+
+typedef struct axis2_woden_desc_impl axis2_woden_desc_impl_t;
+
+/** 
+ * @brief Description Struct Impl
+ *	Axis2 Description  
+ */ 
+struct axis2_woden_desc_impl
+{
+    axis2_woden_desc_t desc;
+    axis2_woden_obj_types_t obj_type;
+    axis2_woden_documentable_t *documentable;
+    axis2_hash_t *super;
+    axis2_hash_t *methods;
+
+    axis2_array_list_t *f_all_interfaces;
+    axis2_array_list_t *f_all_bindings;
+    axis2_array_list_t *f_all_svcs;
+    axis2_array_list_t *f_all_element_decls;
+    axis2_array_list_t *f_all_type_defs;
+    /* WSDL Element model data */
+    axis2_url_t *f_doc_base_uri;
+    /* <description> attributes */
+    axis2_url_t *f_target_namespc;
+    axis2_hash_t *f_namespcs;
+    /* <description> child elements */
+    axis2_array_list_t *f_import_elements;
+    axis2_array_list_t *f_include_elements;
+    axis2_array_list_t *f_interface_elements;
+    axis2_array_list_t *f_binding_elements;
+    axis2_array_list_t *f_svc_elements;
+    void *f_types_element;
+    /* Woden specific vars */
+    axis2_bool_t f_component_initialized;
+    void *f_ext_reg;
+
+};
+
+#define INTF_TO_IMPL(desc) ((axis2_woden_desc_impl_t *) desc)
+
+axis2_status_t AXIS2_CALL 
+axis2_woden_desc_free(
+        void *desc,
+        axis2_env_t **env);
+
+static axis2_status_t AXIS2_CALL
+axis2_woden_desc_free_ops(
+        void *desc,
+        axis2_env_t **env);
+
+axis2_hash_t *AXIS2_CALL 
+axis2_woden_desc_super_objs(
+        void *desc,
+        axis2_env_t **env);
+
+axis2_woden_obj_types_t AXIS2_CALL 
+axis2_woden_desc_type(
+        void *desc,
+        axis2_env_t **env);
+
+axis2_woden_documentable_t *AXIS2_CALL
+axis2_woden_desc_get_base_impl(
+        void *desc,
+        axis2_env_t **env);
+
+/* ************************************************************
+ *  Description interface methods (the WSDL Component model)
+ * ************************************************************/
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_desc_get_interfaces(
+        void *desc,
+        axis2_env_t **env);
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_desc_get_bindings(
+        void *desc,
+        axis2_env_t **env);
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_desc_get_svcs(
+        void *desc,
+        axis2_env_t **env);
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_desc_get_element_decls(
+        void *desc,
+        axis2_env_t **env);
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_desc_get_element_decl(
+        void *desc,
+        axis2_env_t **env,
+        axis2_qname_t *qname);
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_desc_get_type_defs(
+        void *desc,
+        axis2_env_t **env);
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_desc_get_type_def(
+        void *desc,
+        axis2_env_t **env,
+        axis2_qname_t *qname);
+
+void *AXIS2_CALL
+axis2_woden_desc_to_element(
+        void *desc,
+        axis2_env_t **env);
+
+/* ************************************************************
+ *  Description Element interface methods (the XML Element model)
+ * ************************************************************/
+
+axis2_status_t AXIS2_CALL
+axis2_woden_desc_set_document_base_uri(
+        void *desc,
+        axis2_env_t **env,
+        axis2_url_t *doc_base_uri);
+
+axis2_status_t AXIS2_CALL
+axis2_woden_desc_set_target_namespace(
+        void *desc,
+        axis2_env_t **env,
+        axis2_url_t *namespc);
+
+axis2_url_t *AXIS2_CALL
+axis2_woden_desc_get_target_namespace(
+        void *desc,
+        axis2_env_t **env);
+
+axis2_status_t AXIS2_CALL
+axis2_woden_desc_add_namespace(
+        void *desc,
+        axis2_env_t **env,
+        axis2_char_t *prefix,
+        axis2_url_t *namespc);
+
+axis2_status_t AXIS2_CALL
+axis2_woden_desc_remove_namespace(
+        void *desc,
+        axis2_env_t **env,
+        axis2_char_t *prefix);
+
+axis2_url_t *AXIS2_CALL
+axis2_woden_desc_get_namespace(
+        void *desc,
+        axis2_env_t **env,
+        axis2_char_t *prefix);
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_desc_get_namespaces(
+        void *desc,
+        axis2_env_t **env);
+
+axis2_status_t AXIS2_CALL
+axis2_woden_desc_add_import_element(
+        void *desc,
+        axis2_env_t **env,
+        axis2_char_t *prefix,
+        axis2_url_t *import_el);
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_desc_get_import_elements(
+        void *desc,
+        axis2_env_t **env);
+
+axis2_status_t AXIS2_CALL
+axis2_woden_desc_add_include_element(
+        void *desc,
+        axis2_env_t **env,
+        axis2_char_t *prefix,
+        axis2_url_t *include_el);
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_desc_get_include_elements(
+        void *desc,
+        axis2_env_t **env);
+
+axis2_status_t AXIS2_CALL
+axis2_woden_desc_set_types_element(
+        void *desc,
+        axis2_env_t **env,
+        void *types_el);
+
+axis2_url_t *AXIS2_CALL
+axis2_woden_desc_get_types_element(
+        void *desc,
+        axis2_env_t **env);
+
+axis2_status_t AXIS2_CALL
+axis2_woden_desc_add_interface_element(
+        void *desc,
+        axis2_env_t **env,
+        axis2_char_t *prefix,
+        axis2_url_t *interface_el);
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_desc_get_interface_elements(
+        void *desc,
+        axis2_env_t **env);
+
+axis2_status_t AXIS2_CALL
+axis2_woden_desc_add_binding_element(
+        void *desc,
+        axis2_env_t **env,
+        axis2_char_t *prefix,
+        axis2_url_t *binding_el);
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_desc_get_binding_elements(
+        void *desc,
+        axis2_env_t **env);
+
+axis2_status_t AXIS2_CALL
+axis2_woden_desc_add_svc_element(
+        void *desc,
+        axis2_env_t **env,
+        axis2_char_t *prefix,
+        axis2_url_t *svc_el);
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_desc_get_svc_elements(
+        void *desc,
+        axis2_env_t **env);
+
+/* Creator methods */
+
+void *AXIS2_CALL
+axis2_woden_desc_create_documentation_element(
+        axis2_env_t **env);
+
+void *AXIS2_CALL
+axis2_woden_desc_create_import_element(
+        axis2_env_t **env);
+
+void *AXIS2_CALL
+axis2_woden_desc_create_include_element(
+        axis2_env_t **env);
+
+void *AXIS2_CALL
+axis2_woden_desc_create_types_element(
+        axis2_env_t **env);
+
+void *AXIS2_CALL
+axis2_woden_desc_create_interface_element(
+        axis2_env_t **env);
+
+void *AXIS2_CALL
+axis2_woden_desc_create_interface_fault_element(
+        axis2_env_t **env);
+
+void *AXIS2_CALL
+axis2_woden_desc_create_interface_op_element(
+        axis2_env_t **env);
+
+void *AXIS2_CALL
+axis2_woden_desc_create_interface_fault_ref_element(
+        axis2_env_t **env);
+
+void *AXIS2_CALL
+axis2_woden_desc_create_interface_msg_ref_element(
+        axis2_env_t **env);
+
+void *AXIS2_CALL
+axis2_woden_desc_create_binding_element(
+        axis2_env_t **env);
+
+void *AXIS2_CALL
+axis2_woden_desc_create_binding_fault_element(
+        axis2_env_t **env);
+
+void *AXIS2_CALL
+axis2_woden_desc_create_binding_op_element(
+        axis2_env_t **env);
+
+void *AXIS2_CALL
+axis2_woden_desc_create_binding_fault_ref_element(
+        axis2_env_t **env);
+
+void *AXIS2_CALL
+axis2_woden_desc_create_binding_msg_ref_element(
+        axis2_env_t **env);
+
+void *AXIS2_CALL
+axis2_woden_desc_create_svc_element(
+        axis2_env_t **env);
+
+void *AXIS2_CALL
+axis2_woden_desc_create_endpoint_element(
+        axis2_env_t **env);
+
+void *AXIS2_CALL
+axis2_woden_desc_create_feature_element(
+        axis2_env_t **env);
+
+void *AXIS2_CALL
+axis2_woden_desc_create_property_element(
+        axis2_env_t **env);
+
+axis2_status_t AXIS2_CALL
+axis2_woden_desc_set_extension_registry(
+        void *desc,
+        axis2_env_t **env,
+        void *ext_reg);
+
+void *AXIS2_CALL
+axis2_woden_desc_get_extension_registry(
+        void *desc,
+        axis2_env_t **env);
+
+void *AXIS2_CALL
+axis2_woden_desc_to_component(
+        void *desc,
+        axis2_env_t **env);
+}
+/* ************************************************************
+ *  Non-API implementation methods
+ * ************************************************************/
+
+/*
+ * The 'addAllXXX' methods are used to initialize the Description Component 
+ * with its flattened properties - {Interfaces}, {Bindings}, {Services},
+ * {Element Declarations}, {Type Definitions}. Currently these are non-API
+ * public helper methods used by the implementation to convert the Element
+ * model into the Component model (i.e. the Component model is read-only).
+ * If we need to support programmatic creation/updating of the Component model,
+ * we will need to consider exposing these methods on the API.
+ */
+
+axis2_status_t AXIS2_CALL
+axis2_woden_desc_add_to_all_interfaces(
+        void *desc,
+        axis2_env_t **env,
+        void *interface);
+
+axis2_status_t AXIS2_CALL
+axis2_woden_desc_add_to_all_bindings(
+        void *desc,
+        axis2_env_t **env,
+        void *binding);
+
+axis2_status_t AXIS2_CALL
+axis2_woden_desc_add_to_all_svcs(
+        void *desc,
+        axis2_env_t **env,
+        void *svc);
+
+axis2_status_t AXIS2_CALL
+axis2_woden_desc_add_to_all_element_decls(
+        void *desc,
+        axis2_env_t **env,
+        void *element_decl);
+
+axis2_status_t AXIS2_CALL
+axis2_woden_desc_add_to_all_type_defs(
+        void *desc,
+        axis2_env_t **env,
+        void *type_def);
+
+static axis2_status_t AXIS2_CALL
+axis2_woden_desc_init_components(
+        void *desc,
+        axis2_env_t **env);
+
+static axis2_woden_desc_t *
+create(axis2_env_t **env);
+
+/************************Woden C Internal Methods******************************/
+AXIS2_DECLARE(axis2_woden_desc_t *)
+axis2_woden_desc_to_desc_element(
+        void *desc,
+        axis2_env_t **env)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    if(!desc)
+    {
+        desc_impl = (axis2_woden_desc_impl_t *) create(env);
+    }
+    else
+        desc_impl = (axis2_woden_desc_impl_t *) desc;
+
+    axis2_woden_desc_free_ops(desc, env);
+    desc_impl->desc.base.desc_element.ops = 
+        AXIS2_MALLOC((*env)->allocator, 
+                sizeof(axis2_woden_desc_element_ops_t));
+    axis2_woden_desc_element_resolve_methods(&(desc_impl->desc.base.
+            desc_element), env, desc_impl->methods);
+    return desc;
+}
+
+AXIS2_DECLARE(axis2_woden_desc_t *)
+axis2_woden_desc_to_documentable_element(
+        void *desc,
+        axis2_env_t **env)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    if(!desc)
+    {
+        desc_impl = (axis2_woden_desc_impl_t *) create(env);
+    }
+    else
+        desc_impl = (axis2_woden_desc_impl_t *) desc;
+
+    axis2_woden_desc_free_ops(desc, env);
+    desc_impl->desc.base.desc_element.base.documentable_element.ops = 
+        AXIS2_MALLOC((*env)->allocator, 
+                sizeof(axis2_woden_documentable_element_ops_t));
+    axis2_woden_documentable_element_resolve_methods(&(desc_impl->desc.base.
+            desc_element.base.documentable_element), env, 
+            desc_impl->methods);
+    return desc;
+}
+
+AXIS2_DECLARE(axis2_woden_desc_t *)
+axis2_woden_desc_to_documentable(
+        void *desc,
+        axis2_env_t **env)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    if(!desc)
+    {
+        desc_impl = (axis2_woden_desc_impl_t *) create(env);
+    }
+    else
+        desc_impl = (axis2_woden_desc_impl_t *) desc;
+
+    axis2_woden_desc_free_ops(desc, env);
+    desc_impl->desc.base.documentable.ops = 
+        AXIS2_MALLOC((*env)->allocator, 
+                sizeof(axis2_woden_documentable_ops_t));
+    axis2_woden_documentable_resolve_methods(&(desc_impl->desc.base.
+            documentable), env, desc_impl->documentable, 
+            desc_impl->methods);
+    return desc;
+}
+
+AXIS2_DECLARE(axis2_woden_desc_t *)
+axis2_woden_desc_to_wsdl_obj(
+        void *desc,
+        axis2_env_t **env)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+    void *wsdl_obj = NULL;
+   
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    if(!desc)
+    {
+        desc_impl = (axis2_woden_desc_impl_t *) create(env);
+    }
+    else
+        desc_impl = (axis2_woden_desc_impl_t *) desc;
+
+    axis2_woden_desc_free_ops(desc, env);
+    desc_impl->desc.base.documentable.base.wsdl_obj.ops = 
+        AXIS2_MALLOC((*env)->allocator, 
+                sizeof(axis2_woden_wsdl_obj_ops_t));
+    wsdl_obj = AXIS2_WODEN_DOCUMENTABLE_GET_BASE_IMPL(
+            desc_impl->documentable, env);
+    axis2_woden_wsdl_obj_resolve_methods(&(desc_impl->desc.base.
+            documentable.base.wsdl_obj), env, wsdl_obj, desc_impl->methods);
+    return desc;
+}
+
+AXIS2_DECLARE(axis2_woden_desc_t *)
+axis2_woden_desc_to_wsdl_component(
+        void *desc,
+        axis2_env_t **env)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+
+    if(!desc)
+    {
+        desc_impl = (axis2_woden_desc_impl_t *) create(env);
+    }
+    else
+        desc_impl = (axis2_woden_desc_impl_t *) desc;
+    axis2_woden_desc_free_ops(desc, env);
+    desc_impl->desc.base.wsdl_component.ops = 
+        AXIS2_MALLOC((*env)->allocator, 
+        sizeof(axis2_woden_wsdl_component_ops_t));
+    axis2_woden_wsdl_component_resolve_methods(&(desc_impl->desc.base.
+            wsdl_component), env, desc_impl->methods);
+    return desc;
+}
+
+/************************End of Woden C Internal Methods***********************/
+static axis2_woden_desc_t *
+create(axis2_env_t **env)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    desc_impl = AXIS2_MALLOC((*env)->allocator, 
+                    sizeof(axis2_woden_desc_impl_t));
+
+    desc_impl->obj_type= AXIS2_WODEN_DESC;
+    desc_impl->super = NULL;
+    desc_impl->methods = NULL;
+    
+    desc_impl->f_all_interfaces = NULL;
+    desc_impl->f_all_bindings = NULL;
+    desc_impl->f_all_svcs = NULL;
+    desc_impl->f_all_element_decls = NULL;
+    desc_impl->f_all_type_defs = NULL;
+    desc_impl->f_doc_base_uri = NULL;
+    desc_impl->f_target_namespc = NULL;
+    desc_impl->f_namespcs = NULL;
+    desc_impl->f_import_elements = NULL;
+    desc_impl->f_include_elements = NULL;
+    desc_impl->f_interface_elements = NULL;
+    desc_impl->f_binding_elements = NULL;
+    desc_impl->f_svc_elements = NULL;
+    desc_impl->f_types_element = NULL;
+    desc_impl->f_component_initialized = AXIS2_FALSE;
+    desc_impl->f_ext_reg = NULL;
+
+    desc_impl->desc.base.desc_element.ops = NULL;
+    desc_impl->desc.base.desc_element.base.nested_element.ops = NULL;
+    desc_impl->desc.base.desc_element.base.documentable_element.ops = 
+            NULL;
+    desc_impl->desc.base.documentable.ops = NULL;
+    desc_impl->desc.base.nested_component.ops = NULL; 
+    desc_impl->desc.base.nested_component.wsdl_component.ops = NULL;
+    desc_impl->desc.base.documentable.base.wsdl_obj.ops = NULL;
+    desc_impl->desc.base.documentable.base.wsdl_obj.base.wsdl_element.
+            base.attr_extensible.ops = NULL;
+    desc_impl->desc.base.documentable.base.wsdl_obj.base.wsdl_element.
+            base.element_extensible.ops = NULL;
+    
+    desc_impl->desc.ops = AXIS2_MALLOC((*env)->allocator, 
+            sizeof(axis2_woden_desc_ops_t));
+
+    desc_impl->desc.ops->free = axis2_woden_desc_free;
+    desc_impl->desc.ops->super_objs = axis2_woden_desc_super_objs;
+    desc_impl->desc.ops->type = axis2_woden_desc_type;
+    desc_impl->desc.ops->get_base_impl = axis2_woden_desc_get_base_impl;
+    
+    desc_impl->desc.ops->get_interfaces = axis2_woden_desc_get_interfaces;
+    desc_impl->desc.ops->get_bindings = axis2_woden_desc_get_bindings;
+    desc_impl->desc.ops->get_svcs = axis2_woden_desc_get_svcs;
+    desc_impl->desc.ops->get_element_decls = axis2_woden_desc_get_element_decls;
+    desc_impl->desc.ops->get_element_decl = axis2_woden_desc_get_element_decl;
+    desc_impl->desc.ops->get_type_defs = axis2_woden_desc_get_type_defs;
+    desc_impl->desc.ops->get_type_def = axis2_woden_desc_get_type_def;
+    desc_impl->desc.ops->to_element = axis2_woden_desc_to_element;
+ 
+    desc_impl->methods = axis2_hash_make(env);
+    if(!desc_impl->methods) 
+    {
+        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        return NULL;
+    }
+    axis2_hash_set(desc_impl->methods, "free", AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_free);
+    axis2_hash_set(desc_impl->methods, "super_objs", 
+            AXIS2_HASH_KEY_STRING, axis2_woden_desc_super_objs);
+    axis2_hash_set(desc_impl->methods, "type", 
+            AXIS2_HASH_KEY_STRING, axis2_woden_desc_type);
+
+    axis2_hash_set(desc_impl->methods, "get_interfaces", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_get_interfaces);
+    axis2_hash_set(desc_impl->methods, "get_bindings", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_get_bindings);
+    axis2_hash_set(desc_impl->methods, "get_svcs", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_get_svcs);
+    axis2_hash_set(desc_impl->methods, "get_element_decls", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_get_element_decls);
+    axis2_hash_set(desc_impl->methods, "get_element_decl", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_get_element_decl);
+    axis2_hash_set(desc_impl->methods, "get_type_defs", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_get_type_defs);
+    axis2_hash_set(desc_impl->methods, "get_type_def", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_get_type_def);
+    axis2_hash_set(desc_impl->methods, "to_element", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_to_element);
+    axis2_hash_set(desc_impl->methods, "set_document_base_uri", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_set_document_base_uri);
+    axis2_hash_set(desc_impl->methods, "get_document_base_uri", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_get_document_base_uri);
+    axis2_hash_set(desc_impl->methods, "set_target_namespace", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_set_target_namespace);
+    axis2_hash_set(desc_impl->methods, "get_target_namespace", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_get_target_namespace);
+    axis2_hash_set(desc_impl->methods, "add_namespace", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_add_namespace);
+    axis2_hash_set(desc_impl->methods, "remove_namespace", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_remove_namespace);
+    axis2_hash_set(desc_impl->methods, "get_namespace", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_get_namespace);
+    axis2_hash_set(desc_impl->methods, "get_namespaces", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_get_namespaces);
+    axis2_hash_set(desc_impl->methods, "add_import_element", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_add_import_element);
+    axis2_hash_set(desc_impl->methods, "get_import_elements", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_get_import_elements);
+    axis2_hash_set(desc_impl->methods, "add_include_element", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_add_include_element);
+    axis2_hash_set(desc_impl->methods, "get_include_elements", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_get_include_elements);
+    axis2_hash_set(desc_impl->methods, "set_types_element", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_set_types_element);
+    axis2_hash_set(desc_impl->methods, "get_types_element", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_get_types_element);
+    axis2_hash_set(desc_impl->methods, "add_interface_element", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_add_interface_element);
+    axis2_hash_set(desc_impl->methods, "get_interface_elements", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_get_interface_elements);
+    axis2_hash_set(desc_impl->methods, "add_binding_element", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_add_binding_element);
+    axis2_hash_set(desc_impl->methods, "get_binding_elements", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_get_binding_elements);
+    axis2_hash_set(desc_impl->methods, "add_svc_element", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_add_svc_element);
+    axis2_hash_set(desc_impl->methods, "get_svc_elements", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_get_svc_elements);
+    axis2_hash_set(desc_impl->methods, "create_documentation_element", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_create_documentation_element);
+    axis2_hash_set(desc_impl->methods, "create_import_element", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_create_import_element);
+    axis2_hash_set(desc_impl->methods, "create_include_element", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_create_include_element);
+    axis2_hash_set(desc_impl->methods, "create_types_element", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_create_types_element);
+    axis2_hash_set(desc_impl->methods, "create_interface_element", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_create_interface_element);
+    axis2_hash_set(desc_impl->methods, "create_interface_fault_element", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_create_interface_fault_element);
+    axis2_hash_set(desc_impl->methods, "create_interface_op_element", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_create_interface_op_element);
+    axis2_hash_set(desc_impl->methods, "create_interface_fault_ref_element", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_create_interface_fault_ref_element);
+    axis2_hash_set(desc_impl->methods, "create_interface_msg_ref_element", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_create_interface_msg_ref_element);
+    axis2_hash_set(desc_impl->methods, "create_binding_element", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_create_binding_element);
+    axis2_hash_set(desc_impl->methods, "create_binding_fault_element", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_create_binding_fault_element);
+    axis2_hash_set(desc_impl->methods, "create_binding_op_element", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_create_binding_op_element);
+    axis2_hash_set(desc_impl->methods, "create_binding_fault_ref_element", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_create_binding_fault_ref_element);
+    axis2_hash_set(desc_impl->methods, "create_binding_msg_ref_element", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_create_binding_msg_ref_element);
+    axis2_hash_set(desc_impl->methods, "create_svc_element", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_create_svc_element);
+    axis2_hash_set(desc_impl->methods, "create_endpoint_element", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_create_endpoint_element);
+    axis2_hash_set(desc_impl->methods, "create_feature_element", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_create_feature_element);
+    axis2_hash_set(desc_impl->methods, "create_property_element", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_create_property_element);
+    axis2_hash_set(desc_impl->methods, "set_extension_registry", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_set_extension_registry);
+    axis2_hash_set(desc_impl->methods, "get_extension_registry", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_get_extension_registry);
+    axis2_hash_set(desc_impl->methods, "to_component", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_to_component);
+    axis2_hash_set(desc_impl->methods, "add_to_all_interfaces", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_add_to_all_interfaces);
+    axis2_hash_set(desc_impl->methods, "add_to_all_bindings", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_add_to_all_bindings);
+    axis2_hash_set(desc_impl->methods, "add_to_all_svcs", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_add_to_all_svcs);
+    axis2_hash_set(desc_impl->methods, "add_to_all_element_decls", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_add_to_all_element_decls);
+    axis2_hash_set(desc_impl->methods, "add_to_all_type_defs", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_desc_add_to_all_type_defs);
+
+    return &(desc_impl->desc);
+}
+
+AXIS2_DECLARE(axis2_woden_desc_t *)
+axis2_woden_desc_create(axis2_env_t **env)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    desc_impl = (axis2_woden_desc_impl_t *) create(env);
+
+    desc_impl->documentable = axis2_woden_documentable_create(env);
+
+    desc_impl->super = axis2_hash_make(env);
+    if(!desc_impl->super) 
+    {
+        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        return NULL;
+    }
+    axis2_hash_set(desc_impl->super, "AXIS2_WODEN_DESC", AXIS2_HASH_KEY_STRING, 
+            &(desc_impl->desc));
+    axis2_hash_set(desc_impl->super, "AXIS2_WODEN_DOCUMENTABLE", AXIS2_HASH_KEY_STRING, 
+            desc_impl->documentable);
+ 
+    return &(desc_impl->desc);
+}
+
+static axis2_status_t AXIS2_CALL
+axis2_woden_desc_free_ops(
+        void *desc,
+        axis2_env_t **env)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    desc_impl = INTF_TO_IMPL(desc);
+
+    if(desc_impl->desc.base.desc_element.ops)
+    {
+        AXIS2_FREE((*env)->allocator, desc_impl->desc.base.
+                desc_element.ops);
+        desc_impl->desc.base.desc_element.ops = NULL;
+    }
+
+    if(desc_impl->desc.base.desc_element.base.documentable_element.ops)
+    {
+        AXIS2_FREE((*env)->allocator, desc_impl->desc.base.
+                desc_element.base.documentable_element.ops);
+        desc_impl->desc.base.desc_element.base.documentable_element.ops = 
+            NULL;
+    }
+    
+    if(desc_impl->desc.base.documentable.ops)
+    {
+        AXIS2_FREE((*env)->allocator, desc_impl->desc.base.
+                documentable.ops);
+        desc_impl->desc.base.documentable.ops = 
+            NULL;
+    }
+    
+    if(desc_impl->desc.base.documentable.base.wsdl_obj.ops)
+    {
+        AXIS2_FREE((*env)->allocator, desc_impl->desc.base.
+                documentable.base.wsdl_obj.ops);
+        desc_impl->desc.base.documentable.base.wsdl_obj.ops = 
+            NULL;
+    }
+
+    if(desc_impl->desc.base.nested_component.wsdl_component.ops)
+    {
+        AXIS2_FREE((*env)->allocator, desc_impl->desc.base.
+                nested_component.wsdl_component.ops);
+        desc_impl->desc.base.nested_component.wsdl_component.ops = NULL;
+    }
+
+    return AXIS2_SUCCESS;
+}
+
+
+axis2_status_t AXIS2_CALL
+axis2_woden_desc_free(
+        void *desc,
+        axis2_env_t **env)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    desc_impl = INTF_TO_IMPL(desc);
+
+    if(desc_impl->f_ref)
+    {
+        AXIS2_URL_FREE(desc_impl->f_ref, env);
+        desc_impl->f_ref = NULL;
+    }
+   
+    /* TODO free f_parent */
+    
+    if(desc_impl->super)
+    {
+        axis2_hash_free(desc_impl->super, env);
+        desc_impl->super = NULL;
+    }
+    
+    if(desc_impl->methods)
+    {
+        axis2_hash_free(desc_impl->methods, env);
+        desc_impl->methods = NULL;
+    }
+
+    if(desc_impl->documentable)
+    {
+        AXIS2_WODEN_DOCUMENTABLE_FREE(desc_impl->documentable, env);
+        desc_impl->documentable = NULL;
+    }
+    axis2_woden_desc_free_ops(desc, env);
+
+    if((&(desc_impl->desc))->ops)
+    {
+        AXIS2_FREE((*env)->allocator, (&(desc_impl->desc))->ops);
+        (&(desc_impl->desc))->ops = NULL;
+    }
+    
+    if(desc_impl)
+    {
+        AXIS2_FREE((*env)->allocator, desc_impl);
+        desc_impl = NULL;
+    }
+    return AXIS2_SUCCESS;
+}
+
+axis2_hash_t *AXIS2_CALL
+axis2_woden_desc_super_objs(
+        void *desc,
+        axis2_env_t **env)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    desc_impl = INTF_TO_IMPL(desc);
+
+    return desc_impl->super;
+}
+
+axis2_woden_obj_types_t AXIS2_CALL
+axis2_woden_desc_type(
+        void *desc,
+        axis2_env_t **env)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    desc_impl = INTF_TO_IMPL(desc);
+
+    return desc_impl->obj_type;
+}
+
+axis2_woden_documentable_t *AXIS2_CALL
+axis2_woden_desc_get_base_impl(
+        void *desc,
+        axis2_env_t **env)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    desc_impl = INTF_TO_IMPL(desc);
+
+    return desc_impl->documentable;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_desc_resolve_methods(
+        axis2_woden_desc_t *desc,
+        axis2_env_t **env,
+        axis2_woden_desc_t *desc_impl,
+        axis2_hash_t *methods)
+{
+    axis2_woden_desc_impl_t *desc_impl_l = NULL;
+    
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, methods, AXIS2_FAILURE);
+    desc_impl_l = INTF_TO_IMPL(desc_impl);
+    
+    desc->ops->free = axis2_hash_get(methods, "free", 
+            AXIS2_HASH_KEY_STRING);
+    desc->ops->super_objs = axis2_hash_get(methods, "super_objs", 
+            AXIS2_HASH_KEY_STRING);
+    desc->ops->type = axis2_hash_get(methods, "type", 
+            AXIS2_HASH_KEY_STRING);
+    
+    desc->ops->get_interfaces = axis2_hash_get(methods, 
+            "get_interfaces", AXIS2_HASH_KEY_STRING);
+    if(!desc->ops->get_interfaces && desc_impl_l)
+            desc->ops->get_interfaces = 
+            desc_impl_l->desc.ops->get_interfaces;
+    
+    desc->ops->get_bindings = axis2_hash_get(methods, 
+            "get_bindings", AXIS2_HASH_KEY_STRING);
+    if(!desc->ops->get_bindings && desc_impl_l)
+            desc->ops->get_bindings = 
+            desc_impl_l->desc.ops->get_bindings;
+    
+    desc->ops->get_svcs = axis2_hash_get(methods, 
+            "get_svcs", AXIS2_HASH_KEY_STRING);
+    if(!desc->ops->get_svcs && desc_impl_l)
+            desc->ops->get_svcs = 
+            desc_impl_l->desc.ops->get_svcs;
+    
+    desc->ops->get_element_decls = axis2_hash_get(methods, 
+            "get_element_decls", AXIS2_HASH_KEY_STRING);
+    if(!desc->ops->get_element_decls && desc_impl_l)
+            desc->ops->get_element_decls = 
+            desc_impl_l->desc.ops->get_element_decls;
+    
+    desc->ops->get_get_element_decl = axis2_hash_get(methods, 
+            "get_", AXIS2_HASH_KEY_STRING);
+    if(!desc->ops->get_ && desc_impl_l)
+            desc->ops->get_ = 
+            desc_impl_l->desc.ops->get_;
+    
+    desc->ops->get_get_type_defs = axis2_hash_get(methods, 
+            "get_", AXIS2_HASH_KEY_STRING);
+    if(!desc->ops->get_ && desc_impl_l)
+            desc->ops->get_ = 
+            desc_impl_l->desc.ops->get_;
+    
+    desc->ops->get_get_type_def = axis2_hash_get(methods, 
+            "get_", AXIS2_HASH_KEY_STRING);
+    if(!desc->ops->get_ && desc_impl_l)
+            desc->ops->get_ = 
+            desc_impl_l->desc.ops->get_;
+    
+    desc->ops->get_to_element = axis2_hash_get(methods, 
+            "to_element", AXIS2_HASH_KEY_STRING);
+    if(!desc->ops->to_element && desc_impl_l)
+            desc->ops->to_element = 
+            desc_impl_l->desc.ops->to_element;
+    
+    desc->ops->add_to_all_interfaces = axis2_hash_get(methods, 
+            "add_to_all_interfaces", AXIS2_HASH_KEY_STRING);
+    if(!desc->ops->add_to_all_interfaces && desc_impl_l)
+            desc->ops->add_to_all_interfaces = 
+            desc_impl_l->desc.ops->add_to_all_interfaces;
+    
+    desc->ops->add_to_all_bindings = axis2_hash_get(methods, 
+            "add_to_all_bindings", AXIS2_HASH_KEY_STRING);
+    if(!desc->ops->add_to_all_bindings && desc_impl_l)
+            desc->ops->add_to_all_bindings = 
+            desc_impl_l->desc.ops->add_to_all_bindings;
+    
+    desc->ops->add_to_all_svcs = axis2_hash_get(methods, 
+            "add_to_all_svcs", AXIS2_HASH_KEY_STRING);
+    if(!desc->ops->add_to_all_svcs && desc_impl_l)
+            desc->ops->add_to_all_svcs = 
+            desc_impl_l->desc.ops->add_to_all_svcs;
+    
+    desc->ops->add_to_all_element_decls = axis2_hash_get(methods, 
+            "add_to_all_element_decls", AXIS2_HASH_KEY_STRING);
+    if(!desc->ops->add_to_all_element_decls && desc_impl_l)
+            desc->ops->add_to_all_element_decls = 
+            desc_impl_l->desc.ops->add_to_all_element_decls;
+    
+    desc->ops->add_to_all_type_defs = axis2_hash_get(methods, 
+            "add_to_all_type_defs", AXIS2_HASH_KEY_STRING);
+    if(!desc->ops->add_to_all_type_defs && desc_impl_l)
+            desc->ops->add_to_all_type_defs = 
+            desc_impl_l->desc.ops->add_to_all_type_defs;
+   
+    return AXIS2_SUCCESS;
+}
+
+/* ************************************************************
+ *  Description interface methods (the WSDL Component model)
+ * ************************************************************/
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_desc_get_interfaces(
+        void *desc,
+        axis2_env_t **env)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = AXIS2_WODEN_DESC_SUPER_OBJS(desc, env);
+    desc_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_DESC", AXIS2_HASH_KEY_STRING));
+   
+    if(AXIS2_TRUE != desc_impl->f_component_initialized)
+        axis2_woden_desc_init_components(desc, env);
+    return desc_impl->f_interface_elements;
+}
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_desc_get_bindings(
+        void *desc,
+        axis2_env_t **env)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = AXIS2_WODEN_DESC_SUPER_OBJS(desc, env);
+    desc_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_DESC", AXIS2_HASH_KEY_STRING));
+   
+    if(AXIS2_TRUE != desc_impl->f_component_initialized)
+        axis2_woden_desc_init_components(desc, env);
+    return desc_impl->f_binding_elements;
+}
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_desc_get_svcs(
+        void *desc,
+        axis2_env_t **env)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = AXIS2_WODEN_DESC_SUPER_OBJS(desc, env);
+    desc_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_DESC", AXIS2_HASH_KEY_STRING));
+   
+    if(AXIS2_TRUE != desc_impl->f_component_initialized)
+        axis2_woden_desc_init_components(desc, env);
+    return desc_impl->f_svc_elements;
+}
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_desc_get_element_decls(
+        void *desc,
+        axis2_env_t **env)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = AXIS2_WODEN_DESC_SUPER_OBJS(desc, env);
+    desc_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_DESC", AXIS2_HASH_KEY_STRING));
+   
+    if(AXIS2_TRUE != desc_impl->f_component_initialized)
+        axis2_woden_desc_init_components(desc, env);
+    return desc_impl->f_all_element_decls;
+}
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_desc_get_element_decl(
+        void *desc,
+        axis2_env_t **env,
+        axis2_qname_t *qname)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+    axis2_hash_t *super = NULL;
+    void *el_decl = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    AXIS2_PARAM_CHECK((*env)->error, qname, NULL);
+    super = AXIS2_WODEN_DESC_SUPER_OBJS(desc, env);
+    desc_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_DESC", AXIS2_HASH_KEY_STRING));
+   
+    if(AXIS2_TRUE != desc_impl->f_component_initialized)
+        axis2_woden_desc_init_components(desc, env);
+    size = AXIS2_ARRAY_LIST_SIZE(desc_impl->f_all_element_decls, env);
+    for(i = 0; i < size; i++)
+    {
+        axis2_qname_t *qname_l = NULL;
+        void *ed = AXIS2_ARRAY_LIST_NEXT(desc_impl->f_all_element_decls, env, i);
+        qname_l = AXIS2_ELEMENT_DECL_GET_QNAME(ed, env);
+        if(0 == AXIS2_QNAME_EQUALS(qname, qname_l))
+        {
+            el_decl = ed;
+            break;
+        }
+    }
+    return el_decl;
+}
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_desc_get_type_defs(
+        void *desc,
+        axis2_env_t **env)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = AXIS2_WODEN_DESC_SUPER_OBJS(desc, env);
+    desc_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_DESC", AXIS2_HASH_KEY_STRING));
+   
+    if(AXIS2_TRUE != desc_impl->f_component_initialized)
+        axis2_woden_desc_init_components(desc, env);
+    return desc_impl->f_all_type_defs;
+}
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_desc_get_type_def(
+        void *desc,
+        axis2_env_t **env,
+        axis2_qname_t *qname)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+    axis2_hash_t *super = NULL;
+    void *type_def = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    AXIS2_PARAM_CHECK((*env)->error, qname, NULL);
+    super = AXIS2_WODEN_DESC_SUPER_OBJS(desc, env);
+    desc_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_DESC", AXIS2_HASH_KEY_STRING));
+   
+    if(AXIS2_TRUE != desc_impl->f_component_initialized)
+        axis2_woden_desc_init_components(desc, env);
+    size = AXIS2_ARRAY_LIST_SIZE(desc_impl->f_all_element_decls, env);
+    for(i = 0; i < size; i++)
+    {
+        axis2_qname_t *qname_l = NULL;
+        void *td = AXIS2_ARRAY_LIST_NEXT(desc_impl->f_all_element_decls, env, i);
+        qname_l = AXIS2_TYPE_DEF_GET_QNAME(ed, env);
+        if(0 == AXIS2_QNAME_EQUALS(qname, qname_l))
+        {
+            type_def = td;
+            break;
+        }
+    }
+    return type_def;
+}
+
+void *AXIS2_CALL
+axis2_woden_desc_to_element(
+        void *desc,
+        axis2_env_t **env)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = AXIS2_WODEN_DESC_SUPER_OBJS(desc, env);
+    desc_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_DESC", AXIS2_HASH_KEY_STRING));
+   
+    return &(desc_impl->desc);
+}
+
+/* ************************************************************
+ *  Description Element interface methods (the XML Element model)
+ * ************************************************************/
+
+axis2_status_t AXIS2_CALL
+axis2_woden_desc_set_document_base_uri(
+        void *desc,
+        axis2_env_t **env,
+        axis2_url_t *doc_base_uri)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, doc_base_uri, AXIS2_FAILURE);
+    super = AXIS2_WODEN_DESC_SUPER_OBJS(desc, env);
+    desc_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_DESC", AXIS2_HASH_KEY_STRING));
+    if(desc_impl->f_doc_base_uri)
+    {
+        /* TODO */
+    }
+
+    desc_impl->f_doc_base_uri = doc_base_uri;
+    return AXIS2_SUCCESS;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_desc_set_target_namespace(
+        void *desc,
+        axis2_env_t **env,
+        axis2_url_t *namespc)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, namespc, AXIS2_FAILURE);
+    super = AXIS2_WODEN_DESC_SUPER_OBJS(desc, env);
+    desc_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_DESC", AXIS2_HASH_KEY_STRING));
+    if(desc_impl->f_target_namespc)
+    {
+        /* TODO */
+    }
+
+    desc_impl->f_target_namespc = namespc;
+    return AXIS2_SUCCESS;
+}
+
+axis2_url_t *AXIS2_CALL
+axis2_woden_desc_get_target_namespace(
+        void *desc,
+        axis2_env_t **env)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = AXIS2_WODEN_DESC_SUPER_OBJS(desc, env);
+    desc_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_DESC", AXIS2_HASH_KEY_STRING));
+   
+    return desc_impl->f_target_namespc;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_desc_add_namespace(
+        void *desc,
+        axis2_env_t **env,
+        axis2_char_t *prefix,
+        axis2_url_t *namespc)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+    axis2_hash_t *super = NULL;
+    axis2_char_t *pfx = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = AXIS2_WODEN_DESC_SUPER_OBJS(desc, env);
+    desc_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_DESC", AXIS2_HASH_KEY_STRING));
+    
+    pfx = (NULL != prefix) ? prefix : "";
+    if(NULL != namespc)
+        axis2_hash_set(desc_impl->f_namespcs, pfx, AXIS2_HASH_KEY_STRING, 
+                namespc);
+    else
+        axis2_hash_set(desc_impl->f_namespcs, pfx, AXIS2_HASH_KEY_STRING, NULL);
+    return AXIS2_SUCCESS;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_desc_remove_namespace(
+        void *desc,
+        axis2_env_t **env,
+        axis2_char_t *prefix)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+    axis2_hash_t *super = NULL;
+    axis2_char_t *pfx = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = AXIS2_WODEN_DESC_SUPER_OBJS(desc, env);
+    desc_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_DESC", AXIS2_HASH_KEY_STRING));
+    
+    pfx = (NULL != prefix) ? prefix : "";
+    axis2_hash_set(desc_impl->f_namespcs, pfx, AXIS2_HASH_KEY_STRING, NULL);
+    return AXIS2_SUCCESS;
+}
+
+axis2_url_t *AXIS2_CALL
+axis2_woden_desc_get_namespace(
+        void *desc,
+        axis2_env_t **env,
+        axis2_char_t *prefix)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+    axis2_hash_t *super = NULL;
+    axis2_char_t *pfx = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = AXIS2_WODEN_DESC_SUPER_OBJS(desc, env);
+    desc_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_DESC", AXIS2_HASH_KEY_STRING));
+    
+    pfx = (NULL != prefix) ? prefix : "";
+    return axis2_hash_get(desc_impl->f_namespcs, pfx, AXIS2_HASH_KEY_STRING);
+}
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_desc_get_namespaces(
+        void *desc,
+        axis2_env_t **env)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = AXIS2_WODEN_DESC_SUPER_OBJS(desc, env);
+    desc_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_DESC", AXIS2_HASH_KEY_STRING));
+    
+    return desc_impl->f_namespcs;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_desc_add_import_element(
+        void *desc,
+        axis2_env_t **env,
+        axis2_char_t *prefix,
+        axis2_url_t *import_el)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, import_el, AXIS2_FAILURE);
+    super = AXIS2_WODEN_DESC_SUPER_OBJS(desc, env);
+    desc_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_DESC", AXIS2_HASH_KEY_STRING));
+    
+    return AXIS2_ARRAY_LIST_ADD(desc_impl->f_import_elements, env, import_el);
+}
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_desc_get_import_elements(
+        void *desc,
+        axis2_env_t **env)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = AXIS2_WODEN_DESC_SUPER_OBJS(desc, env);
+    desc_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_DESC", AXIS2_HASH_KEY_STRING));
+    
+    return desc_impl->f_import_elements;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_desc_add_include_element(
+        void *desc,
+        axis2_env_t **env,
+        axis2_char_t *prefix,
+        axis2_url_t *include_el)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, import_el, AXIS2_FAILURE);
+    super = AXIS2_WODEN_DESC_SUPER_OBJS(desc, env);
+    desc_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_DESC", AXIS2_HASH_KEY_STRING));
+    
+    return AXIS2_ARRAY_LIST_ADD(desc_impl->f_include_elements, env, include_el);
+}
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_desc_get_include_elements(
+        void *desc,
+        axis2_env_t **env)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = AXIS2_WODEN_DESC_SUPER_OBJS(desc, env);
+    desc_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_DESC", AXIS2_HASH_KEY_STRING));
+    
+    return desc_impl->f_include_elements;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_desc_set_types_element(
+        void *desc,
+        axis2_env_t **env,
+        void *types_el)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, types_el, AXIS2_FAILURE);
+    super = AXIS2_WODEN_DESC_SUPER_OBJS(desc, env);
+    desc_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_DESC", AXIS2_HASH_KEY_STRING));
+    if(desc_impl->f_types_element)
+    {
+        /* TODO */
+    }
+
+    desc_impl->f_types_element = types_el;
+    return AXIS2_SUCCESS;
+}
+
+axis2_url_t *AXIS2_CALL
+axis2_woden_desc_get_types_element(
+        void *desc,
+        axis2_env_t **env)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = AXIS2_WODEN_DESC_SUPER_OBJS(desc, env);
+    desc_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_DESC", AXIS2_HASH_KEY_STRING));
+   
+    return desc_impl->f_types_element;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_desc_add_interface_element(
+        void *desc,
+        axis2_env_t **env,
+        axis2_char_t *prefix,
+        axis2_url_t *interface_el)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, interface_el, AXIS2_FAILURE);
+    super = AXIS2_WODEN_DESC_SUPER_OBJS(desc, env);
+    desc_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_DESC", AXIS2_HASH_KEY_STRING));
+    
+    return AXIS2_ARRAY_LIST_ADD(desc_impl->f_interface_elements, env, interface_el);
+}
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_desc_get_interface_elements(
+        void *desc,
+        axis2_env_t **env)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = AXIS2_WODEN_DESC_SUPER_OBJS(desc, env);
+    desc_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_DESC", AXIS2_HASH_KEY_STRING));
+    
+    return desc_impl->f_interface_elements;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_desc_add_binding_element(
+        void *desc,
+        axis2_env_t **env,
+        axis2_char_t *prefix,
+        axis2_url_t *binding_el)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, binding_el, AXIS2_FAILURE);
+    super = AXIS2_WODEN_DESC_SUPER_OBJS(desc, env);
+    desc_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_DESC", AXIS2_HASH_KEY_STRING));
+    
+    return AXIS2_ARRAY_LIST_ADD(desc_impl->f_binding_elements, env, binding_el);
+}
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_desc_get_binding_elements(
+        void *desc,
+        axis2_env_t **env)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = AXIS2_WODEN_DESC_SUPER_OBJS(desc, env);
+    desc_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_DESC", AXIS2_HASH_KEY_STRING));
+    
+    return desc_impl->f_binding_elements;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_desc_add_svc_element(
+        void *desc,
+        axis2_env_t **env,
+        axis2_char_t *prefix,
+        axis2_url_t *svc_el)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, svc_el, AXIS2_FAILURE);
+    super = AXIS2_WODEN_DESC_SUPER_OBJS(desc, env);
+    desc_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_DESC", AXIS2_HASH_KEY_STRING));
+    
+    return AXIS2_ARRAY_LIST_ADD(desc_impl->f_svc_elements, env, svc_el);
+}
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_desc_get_svc_elements(
+        void *desc,
+        axis2_env_t **env)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = AXIS2_WODEN_DESC_SUPER_OBJS(desc, env);
+    desc_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_DESC", AXIS2_HASH_KEY_STRING));
+    
+    return desc_impl->f_svc_elements;
+}
+
+/* Creator methods */
+
+void *AXIS2_CALL
+axis2_woden_desc_create_documentation_element(
+        axis2_env_t **env)
+{
+    return axis2_woden_documentation(env);
+}
+
+void *AXIS2_CALL
+axis2_woden_desc_create_import_element(
+        axis2_env_t **env)
+{
+    return axis2_woden_import(env);
+}
+
+void *AXIS2_CALL
+axis2_woden_desc_create_include_element(
+        axis2_env_t **env)
+{
+    return axis2_woden_include(env);
+}
+
+void *AXIS2_CALL
+axis2_woden_desc_create_types_element(
+        axis2_env_t **env)
+{
+    return axis2_woden_types(env);
+}
+
+void *AXIS2_CALL
+axis2_woden_desc_create_interface_element(
+        axis2_env_t **env)
+{
+    return axis2_woden_interface(env);
+}
+
+void *AXIS2_CALL
+axis2_woden_desc_create_interface_fault_element(
+        axis2_env_t **env)
+{
+    return axis2_woden_interface_fault(env);
+}
+
+void *AXIS2_CALL
+axis2_woden_desc_create_interface_op_element(
+        axis2_env_t **env)
+{
+    return axis2_woden_interface_op(env);
+}
+
+void *AXIS2_CALL
+axis2_woden_desc_create_interface_fault_ref_element(
+        axis2_env_t **env)
+{
+    return axis2_woden_interface_fault_ref(env);
+}
+
+void *AXIS2_CALL
+axis2_woden_desc_create_interface_msg_ref_element(
+        axis2_env_t **env)
+{
+    return axis2_woden_interface_msg_ref(env);
+}
+
+void *AXIS2_CALL
+axis2_woden_desc_create_binding_element(
+        axis2_env_t **env)
+{
+    return axis2_woden_binding(env);
+}
+
+void *AXIS2_CALL
+axis2_woden_desc_create_binding_fault_element(
+        axis2_env_t **env)
+{
+    return axis2_woden_binding_fault(env);
+}
+
+void *AXIS2_CALL
+axis2_woden_desc_create_binding_op_element(
+        axis2_env_t **env)
+{
+    return axis2_woden_binding_op(env);
+}
+
+void *AXIS2_CALL
+axis2_woden_desc_create_binding_fault_ref_element(
+        axis2_env_t **env)
+{
+    return axis2_woden_binding_fault_ref(env);
+}
+
+void *AXIS2_CALL
+axis2_woden_desc_create_binding_msg_ref_element(
+        axis2_env_t **env)
+{
+    return axis2_woden_binding_msg_ref(env);
+}
+
+void *AXIS2_CALL
+axis2_woden_desc_create_svc_element(
+        axis2_env_t **env)
+{
+    return axis2_woden_svc(env);
+}
+
+void *AXIS2_CALL
+axis2_woden_desc_create_endpoint_element(
+        axis2_env_t **env)
+{
+    return axis2_woden_endpoint(env);
+}
+
+void *AXIS2_CALL
+axis2_woden_desc_create_feature_element(
+        axis2_env_t **env)
+{
+    return axis2_woden_feature(env);
+}
+
+void *AXIS2_CALL
+axis2_woden_desc_create_property_element(
+        axis2_env_t **env)
+{
+    return axis2_woden_property(env);
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_desc_set_extension_registry(
+        void *desc,
+        axis2_env_t **env,
+        void *ext_reg)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, ext_reg, AXIS2_FAILURE);
+    super = AXIS2_WODEN_DESC_SUPER_OBJS(desc, env);
+    desc_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_DESC", AXIS2_HASH_KEY_STRING));
+    if(desc_impl->f_ext_reg)
+    {
+        /* TODO */
+    }
+
+    desc_impl->f_ext_reg = ext_reg;
+    return AXIS2_SUCCESS;
+}
+
+void *AXIS2_CALL
+axis2_woden_desc_get_extension_registry(
+        void *desc,
+        axis2_env_t **env)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = AXIS2_WODEN_DESC_SUPER_OBJS(desc, env);
+    desc_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_DESC", AXIS2_HASH_KEY_STRING));
+   
+    return desc_impl->f_ext_reg;
+}
+
+void *AXIS2_CALL
+axis2_woden_desc_to_component(
+        void *desc,
+        axis2_env_t **env)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = AXIS2_WODEN_DESC_SUPER_OBJS(desc, env);
+    desc_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_DESC", AXIS2_HASH_KEY_STRING));
+   
+    if(AXIS2_TRUE != desc_impl->f_component_initialized)
+        axis2_woden_desc_init_components(desc, env);
+    return &(desc_impl->desc);
+}
+/* ************************************************************
+ *  Non-API implementation methods
+ * ************************************************************/
+
+/*
+ * The 'addAllXXX' methods are used to initialize the Description Component 
+ * with its flattened properties - {Interfaces}, {Bindings}, {Services},
+ * {Element Declarations}, {Type Definitions}. Currently these are non-API
+ * public helper methods used by the implementation to convert the Element
+ * model into the Component model (i.e. the Component model is read-only).
+ * If we need to support programmatic creation/updating of the Component model,
+ * we will need to consider exposing these methods on the API.
+ */
+
+axis2_status_t AXIS2_CALL
+axis2_woden_desc_add_to_all_interfaces(
+        void *desc,
+        axis2_env_t **env,
+        void *interface)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, interface, AXIS2_FAILURE);
+    super = AXIS2_WODEN_DESC_SUPER_OBJS(desc, env);
+    desc_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_DESC", AXIS2_HASH_KEY_STRING));
+    
+    return AXIS2_ARRAY_LIST_ADD(desc_impl->f_all_interfaces, env, interface);
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_desc_add_to_all_bindings(
+        void *desc,
+        axis2_env_t **env,
+        void *binding)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, binding, AXIS2_FAILURE);
+    super = AXIS2_WODEN_DESC_SUPER_OBJS(desc, env);
+    desc_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_DESC", AXIS2_HASH_KEY_STRING));
+    
+    return AXIS2_ARRAY_LIST_ADD(desc_impl->f_all_bindings, env, binding);
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_desc_add_to_all_svcs(
+        void *desc,
+        axis2_env_t **env,
+        void *svc)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, svc, AXIS2_FAILURE);
+    super = AXIS2_WODEN_DESC_SUPER_OBJS(desc, env);
+    desc_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_DESC", AXIS2_HASH_KEY_STRING));
+    
+    return AXIS2_ARRAY_LIST_ADD(desc_impl->f_all_svcs, env, svc);
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_desc_add_to_all_element_decls(
+        void *desc,
+        axis2_env_t **env,
+        void *element_decl)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, element_decl, AXIS2_FAILURE);
+    super = AXIS2_WODEN_DESC_SUPER_OBJS(desc, env);
+    desc_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_DESC", AXIS2_HASH_KEY_STRING));
+    
+    return AXIS2_ARRAY_LIST_ADD(desc_impl->f_all_element_decls, env, element_decl);
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_desc_add_to_all_type_defs(
+        void *desc,
+        axis2_env_t **env,
+        void *type_def)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, type_def, AXIS2_FAILURE);
+    super = AXIS2_WODEN_DESC_SUPER_OBJS(desc, env);
+    desc_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_DESC", AXIS2_HASH_KEY_STRING));
+    
+    return AXIS2_ARRAY_LIST_ADD(desc_impl->f_all_type_defs, env, type_def);
+}
+
+static axis2_status_t AXIS2_CALL
+axis2_woden_desc_init_components(
+        void *desc,
+        axis2_env_t **env)
+{
+    axis2_woden_desc_impl_t *desc_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, binding, AXIS2_FAILURE);
+    super = AXIS2_WODEN_DESC_SUPER_OBJS(desc, env);
+    desc_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_DESC", AXIS2_HASH_KEY_STRING));
+
+    desc_impl->f_components_initialized = AXIS2_TRUE;
+    return axis2_woden_component_model_builder_create(env, &(desc_impl->desc));
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

Modified: webservices/axis2/trunk/c/woden/src/wsdl20/documentation.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl20/documentation.c?rev=410214&r1=410213&r2=410214&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl20/documentation.c (original)
+++ webservices/axis2/trunk/c/woden/src/wsdl20/documentation.c Tue May 30 01:20:38 2006
@@ -32,6 +32,7 @@
     axis2_woden_wsdl_element_t *wsdl_element;
     axis2_hash_t *super;
     axis2_hash_t *methods;
+
     void *f_content;
 };
 

Added: webservices/axis2/trunk/c/woden/src/wsdl20/element_decl.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl20/element_decl.c?rev=410214&view=auto
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl20/element_decl.c (added)
+++ webservices/axis2/trunk/c/woden/src/wsdl20/element_decl.c Tue May 30 01:20:38 2006
@@ -0,0 +1,461 @@
+/*
+ * 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/wsdl20/axis2_woden_element_decl.h>
+#include <axis2_url.h>
+#include <axis2_hash.h>
+
+typedef struct axis2_woden_element_decl_impl axis2_woden_element_decl_impl_t;
+
+/** 
+ * @brief Element Declaration Struct Impl
+ *	Axis2 Element Declaration  
+ */ 
+struct axis2_woden_element_decl_impl
+{
+    axis2_woden_element_decl_t decl;
+    axis2_woden_obj_types_t obj_type;
+    axis2_hash_t *super;
+    axis2_qname_t *f_qname;
+    axis2_url_t *f_system;
+    axis2_char_t *f_content_model;
+    axis2_generic_obj_t *f_content;
+};
+
+#define INTF_TO_IMPL(decl) \
+    ((axis2_woden_element_decl_impl_t *) decl)
+
+axis2_status_t AXIS2_CALL 
+axis2_woden_element_decl_free(
+        void *decl,
+        axis2_env_t **envv);
+
+axis2_hash_t *AXIS2_CALL 
+axis2_woden_element_decl_super_objs(
+        void *decl,
+        axis2_env_t **env);
+
+axis2_woden_obj_types_t AXIS2_CALL 
+axis2_woden_element_decl_type(
+        void *decl,
+        axis2_env_t **envv);
+
+/* ************************************************************
+ *  Element Declaration interface methods (the WSDL Component model)
+ * ************************************************************/
+axis2_qname_t *AXIS2_CALL 
+axis2_woden_element_decl_get_qname(
+        void *decl,
+        axis2_env_t **env); 
+
+axis2_url_t *AXIS2_CALL 
+axis2_woden_element_decl_get_system(
+        void *decl,
+        axis2_env_t **env); 
+
+axis2_char_t *AXIS2_CALL 
+axis2_woden_element_decl_get_content_model(
+        void *decl,
+        axis2_env_t **env); 
+
+axis2_generic_obj_t *AXIS2_CALL 
+axis2_woden_element_decl_get_content(
+        void *decl,
+        axis2_env_t **env); 
+
+/* ************************************************************
+ *  Non-API implementation methods
+ * ************************************************************/
+
+axis2_status_t AXIS2_CALL 
+axis2_woden_element_decl_set_qname(
+        void *decl,
+        axis2_env_t **env,
+        axis2_qname_t *qname); 
+
+axis2_status_t AXIS2_CALL 
+axis2_woden_element_decl_set_system(
+        void *decl,
+        axis2_env_t **env,
+        axis2_url_t *type_system_uri); 
+
+axis2_status_t AXIS2_CALL 
+axis2_woden_element_decl_set_content_model(
+        void *decl,
+        axis2_env_t **env,
+        axis2_char_t *content_model); 
+
+axis2_status_t AXIS2_CALL 
+axis2_woden_element_decl_set_content(
+        void *decl,
+        axis2_env_t **env,
+        axis2_generic_obj_t *element_content);
+
+
+AXIS2_DECLARE(axis2_woden_element_decl_t *)
+axis2_woden_element_decl_create(
+        axis2_env_t **env)
+{
+    axis2_woden_element_decl_impl_t *decl_impl = NULL;
+    
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    decl_impl = AXIS2_MALLOC((*env)->allocator, 
+                    sizeof(axis2_woden_element_decl_impl_t));
+
+    decl_impl->obj_type = AXIS2_WODEN_ELEMENT_DECL;
+    decl_impl->super = NULL;
+    decl_impl->f_qname = NULL;
+    decl_impl->f_system = NULL;
+    decl_impl->f_content_model = NULL;
+    decl_impl->f_content = NULL;
+
+    decl_impl->decl.ops = 
+        AXIS2_MALLOC((*env)->allocator, 
+                sizeof(axis2_woden_element_decl_ops_t)); 
+    
+    decl_impl->decl.ops->free = 
+        axis2_woden_element_decl_free;
+    decl_impl->decl.ops->type = 
+        axis2_woden_element_decl_type;
+    
+    decl_impl->decl.ops->get_qname = 
+        axis2_woden_element_decl_get_qname;
+    decl_impl->decl.ops->get_system = 
+        axis2_woden_element_decl_get_system;
+    decl_impl->decl.ops->get_content_model = 
+        axis2_woden_element_decl_get_content_model;
+    decl_impl->decl.ops->get_content = 
+        axis2_woden_element_decl_get_content; 
+    decl_impl->decl.ops->set_qname = 
+        axis2_woden_element_decl_set_qname;
+    decl_impl->decl.ops->set_system = 
+        axis2_woden_element_decl_set_system;
+    decl_impl->decl.ops->set_content_model = 
+        axis2_woden_element_decl_set_content_model;
+    decl_impl->decl.ops->set_content = 
+        axis2_woden_element_decl_set_content;
+          
+    decl_impl->super = axis2_hash_make(env);
+    if(!decl_impl->super) 
+    {
+        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        return NULL;
+    }
+    axis2_hash_set(decl_impl->super, "AXIS2_WODEN_ELEMENT_DECL", 
+            AXIS2_HASH_KEY_STRING, &(decl_impl->decl));
+ 
+    return &(decl_impl->decl);
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_element_decl_free(void *decl,
+                axis2_env_t **env)
+{
+    axis2_woden_element_decl_impl_t *decl_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    decl_impl = INTF_TO_IMPL(decl);
+
+    if(decl_impl->super)
+    {
+        axis2_hash_free(decl_impl->super, env);
+        decl_impl->super = NULL;
+    }
+
+    if((&(decl_impl->decl))->ops)
+    {
+        AXIS2_FREE((*env)->allocator, (&(decl_impl->decl))->ops);
+        (&(decl_impl->decl))->ops = NULL;
+    }
+
+    if(decl_impl)
+    {
+        AXIS2_FREE((*env)->allocator, decl_impl);
+        decl_impl = NULL;
+    }
+    return AXIS2_SUCCESS;
+}
+
+axis2_hash_t *AXIS2_CALL
+axis2_woden_element_decl_super_objs(
+        void *decl,
+        axis2_env_t **env)
+{
+    axis2_woden_element_decl_impl_t *decl_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    decl_impl = INTF_TO_IMPL(decl);
+
+    return decl_impl->super;
+}
+
+axis2_woden_obj_types_t AXIS2_CALL 
+axis2_woden_element_decl_type(
+        void *decl,
+        axis2_env_t **env)
+{
+    axis2_woden_element_decl_impl_t *decl_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    decl_impl = INTF_TO_IMPL(decl);
+    
+    return decl_impl->obj_type;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_element_decl_resolve_methods(
+        axis2_woden_element_decl_t *decl,
+        axis2_env_t **env,
+        axis2_woden_element_decl_t *decl_impl,
+        axis2_hash_t *methods)
+{
+    axis2_woden_element_decl_impl_t *decl_impl_l = NULL;
+    
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, methods, AXIS2_FAILURE);
+    decl_impl_l = INTF_TO_IMPL(decl_impl);
+    
+    decl->ops->free = axis2_hash_get(methods, "free", 
+            AXIS2_HASH_KEY_STRING);
+    decl->ops->to_element_decl_free = axis2_hash_get(methods, 
+            "to_element_decl_free", AXIS2_HASH_KEY_STRING); 
+    decl->ops->super_objs = axis2_hash_get(methods, "super_objs", 
+            AXIS2_HASH_KEY_STRING);
+    decl->ops->type = axis2_hash_get(methods, "type", 
+            AXIS2_HASH_KEY_STRING);
+    
+    decl->ops->get_qname = axis2_hash_get(methods, 
+            "get_qname", AXIS2_HASH_KEY_STRING); 
+    if(!decl->ops->get_qname && decl_impl_l)
+            decl->ops->get_qname = 
+            decl_impl_l->decl.ops->get_qname;
+    
+    decl->ops->get_system = axis2_hash_get(methods, 
+            "get_system", AXIS2_HASH_KEY_STRING); 
+    if(!decl->ops->get_system && decl_impl_l)
+            decl->ops->get_system = 
+            decl_impl_l->decl.ops->get_system;
+    
+    decl->ops->get_content_model = axis2_hash_get(methods, 
+            "get_content_model", AXIS2_HASH_KEY_STRING); 
+    if(!decl->ops->get_content_model && decl_impl_l)
+            decl->ops->get_content_model = 
+            decl_impl_l->decl.ops->get_content_model;
+    
+    decl->ops->get_content = axis2_hash_get(methods, 
+            "get_content", AXIS2_HASH_KEY_STRING); 
+    if(!decl->ops->get_content && decl_impl_l)
+            decl->ops->get_content = 
+            decl_impl_l->decl.ops->get_content;
+    
+    decl->ops->set_qname = axis2_hash_get(methods, 
+            "set_qname", AXIS2_HASH_KEY_STRING); 
+    if(!decl->ops->set_qname && decl_impl_l)
+            decl->ops->set_qname = 
+            decl_impl_l->decl.ops->set_qname;
+    
+    decl->ops->set_system = axis2_hash_get(methods, 
+            "set_system", AXIS2_HASH_KEY_STRING); 
+    if(!decl->ops->set_system && decl_impl_l)
+            decl->ops->set_system = 
+            decl_impl_l->decl.ops->set_system;
+    
+    decl->ops->set_content_model = axis2_hash_get(methods, 
+            "set_content_model", AXIS2_HASH_KEY_STRING); 
+    if(!decl->ops->set_content_model && decl_impl_l)
+            decl->ops->set_content_model = 
+            decl_impl_l->decl.ops->set_content_model;
+    
+    decl->ops->set_content = axis2_hash_get(methods, 
+            "set_content", AXIS2_HASH_KEY_STRING); 
+    if(!decl->ops->set_content && decl_impl_l)
+            decl->ops->set_content = 
+            decl_impl_l->decl.ops->set_content;
+    
+    return AXIS2_SUCCESS;    
+}
+/* ************************************************************
+ *  Element Declaration interface methods (the WSDL Component model)
+ * ************************************************************/
+axis2_qname_t *AXIS2_CALL 
+axis2_woden_element_decl_get_qname(
+        void *decl,
+        axis2_env_t **env) 
+{
+    axis2_woden_element_decl_impl_t *decl_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = AXIS2_WODEN_ELEMENT_DECL_SUPER_OBJS(decl, env);
+    decl_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_ELEMENT_DECL", AXIS2_HASH_KEY_STRING)); 
+    
+    return decl_impl->f_qname;
+}
+
+axis2_url_t *AXIS2_CALL 
+axis2_woden_element_decl_get_system(
+        void *decl,
+        axis2_env_t **env) 
+{
+    axis2_woden_element_decl_impl_t *decl_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = AXIS2_WODEN_ELEMENT_DECL_SUPER_OBJS(decl, env);
+    decl_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_ELEMENT_DECL", AXIS2_HASH_KEY_STRING)); 
+    
+    return decl_impl->f_system;
+}
+
+axis2_char_t *AXIS2_CALL 
+axis2_woden_element_decl_get_content_model(
+        void *decl,
+        axis2_env_t **env) 
+{
+    axis2_woden_element_decl_impl_t *decl_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = AXIS2_WODEN_ELEMENT_DECL_SUPER_OBJS(decl, env);
+    decl_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_ELEMENT_DECL", AXIS2_HASH_KEY_STRING)); 
+    
+    return decl_impl->f_content_model;
+}
+
+axis2_generic_obj_t *AXIS2_CALL 
+axis2_woden_element_decl_get_content(
+        void *decl,
+        axis2_env_t **env) 
+{
+    axis2_woden_element_decl_impl_t *decl_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = AXIS2_WODEN_ELEMENT_DECL_SUPER_OBJS(decl, env);
+    decl_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_ELEMENT_DECL", AXIS2_HASH_KEY_STRING)); 
+    
+    return decl_impl->f_content;
+}
+
+
+
+
+/* ************************************************************
+ *  Non-API implementation methods
+ * ************************************************************/
+
+axis2_status_t AXIS2_CALL 
+axis2_woden_element_decl_set_qname(
+        void *decl,
+        axis2_env_t **env,
+        axis2_qname_t *qname) 
+{
+    axis2_woden_element_decl_impl_t *decl_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, qname, AXIS2_FAILURE);
+    super = AXIS2_WODEN_ELEMENT_DECL_SUPER_OBJS(decl, env);
+    decl_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_ELEMENT_DECL", AXIS2_HASH_KEY_STRING)); 
+
+    if(decl_impl->f_qname)
+    {
+        AXIS2_QNAME_FREE(decl_impl->f_qname, env);
+        decl_impl->f_qname = NULL;
+    }
+    decl_impl->f_qname = AXIS2_QNAME_CLONE(qname, env);
+    return AXIS2_SUCCESS;
+}
+
+axis2_status_t AXIS2_CALL 
+axis2_woden_element_decl_set_system(
+        void *decl,
+        axis2_env_t **env,
+        axis2_url_t *type_system_uri) 
+{
+    axis2_woden_element_decl_impl_t *decl_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, type_system_uri, AXIS2_FAILURE);
+    super = AXIS2_WODEN_ELEMENT_DECL_SUPER_OBJS(decl, env);
+    decl_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_ELEMENT_DECL", AXIS2_HASH_KEY_STRING)); 
+
+    if(decl_impl->f_system)
+    {
+        AXIS2_URL_FREE(decl_impl->f_system, env);
+    }
+    decl_impl->f_system = type_system_uri;
+    return AXIS2_SUCCESS;
+}
+
+axis2_status_t AXIS2_CALL 
+axis2_woden_element_decl_set_content_model(
+        void *decl,
+        axis2_env_t **env,
+        axis2_char_t *content_model) 
+{
+    axis2_woden_element_decl_impl_t *decl_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, content_model, AXIS2_FAILURE);
+    super = AXIS2_WODEN_ELEMENT_DECL_SUPER_OBJS(decl, env);
+    decl_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_ELEMENT_DECL", AXIS2_HASH_KEY_STRING)); 
+
+    if(decl_impl->f_content_model)
+    {
+        AXIS2_FREE((*env)->allocator, decl_impl->f_content_model);
+        decl_impl->f_content_model = NULL;
+    }
+    decl_impl->f_content_model = AXIS2_STRDUP(content_model, env);
+    return AXIS2_SUCCESS;
+}
+
+axis2_status_t AXIS2_CALL 
+axis2_woden_element_decl_set_content(
+        void *decl,
+        axis2_env_t **env,
+        axis2_generic_obj_t *element_content) 
+{
+    axis2_woden_element_decl_impl_t *decl_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, element_content, AXIS2_FAILURE);
+    super = AXIS2_WODEN_ELEMENT_DECL_SUPER_OBJS(decl, env);
+    decl_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_ELEMENT_DECL", AXIS2_HASH_KEY_STRING)); 
+
+    if(decl_impl->f_content)
+    {
+        /* TODO */
+    }
+    decl_impl->f_content = element_content;
+    return AXIS2_SUCCESS;
+}
+
+
+
+
+



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