axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject svn commit: r419452 [17/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...
Date Thu, 06 Jul 2006 06:02:31 GMT
Added: webservices/axis2/trunk/c/woden/src/wsdl/binding.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl/binding.c?rev=419452&view=auto
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl/binding.c (added)
+++ webservices/axis2/trunk/c/woden/src/wsdl/binding.c Wed Jul  5 23:02:19 2006
@@ -0,0 +1,1183 @@
+/*
+ * 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_wsdl_obj.h>
+#include <woden_binding.h>
+#include <woden_ext_element.h>
+#include <woden_component_exts.h>
+#include <woden_xml_attr.h>
+#include <woden_documentation_element.h>
+#include <woden_binding_fault_element.h>
+#include <woden_interface.h>
+#include <woden_binding_op_element.h>
+
+typedef struct woden_binding_impl woden_binding_impl_t;
+
+/** 
+ * @brief Binding Struct Impl
+ *   Axis2 Binding  
+ */ 
+struct woden_binding_impl
+{
+    woden_binding_t binding;
+    woden_configurable_t *configurable;
+    woden_obj_types_t obj_type;
+    axis2_hash_t *super;
+    axis2_hash_t *methods;
+    axis2_array_list_t *f_extended_bindings;
+    axis2_qname_t *f_qname;
+    axis2_qname_t *f_interface_qname;
+    void *f_interface;
+    axis2_uri_t *f_type;
+    /*
+     * Binding faults and operations may be referred to specifically by the qname represented by
+     * their 'ref' attribute. This typically suggests a Map implementation keyed by 'ref' qname. 
+     * However if the validation feature is disabled, it is possible that the 'ref' attribute may 
+     * be missing, which will cause a null key problem if a Map is used.
+     * To avoid this problem, binding faults and operations will be stored in Lists instead. 
+     * This will avoid any null key issues, however it will make the implementation of 'ref' based
+     * access more complicated. 
+     */
+    axis2_array_list_t *f_faults;
+    axis2_array_list_t *f_ops;
+};
+
+#define INTF_TO_IMPL(binding) ((woden_binding_impl_t *) binding)
+
+axis2_status_t AXIS2_CALL 
+woden_binding_free(
+        void *binding,
+        const axis2_env_t *env);
+
+axis2_hash_t *AXIS2_CALL 
+woden_binding_super_objs(
+        void *binding,
+        const axis2_env_t *env);
+
+woden_obj_types_t AXIS2_CALL 
+woden_binding_type(
+        void *binding,
+        const axis2_env_t *env);
+
+woden_configurable_t *AXIS2_CALL
+woden_binding_get_base_impl(
+        void *binding,
+        const axis2_env_t *env);
+
+/* ************************************************************
+ *  Binding interface methods (the WSDL Component model)
+ * ************************************************************/
+axis2_qname_t *AXIS2_CALL
+woden_binding_get_qname(
+        void *binding,
+        const axis2_env_t *env);
+
+void *AXIS2_CALL
+woden_binding_get_interface(
+        void *binding,
+        const axis2_env_t *env);
+
+axis2_uri_t *AXIS2_CALL
+woden_binding_get_type(
+        void *binding,
+        const axis2_env_t *env);
+
+axis2_array_list_t *AXIS2_CALL
+woden_binding_get_binding_faults(
+        void *binding,
+        const axis2_env_t *env);
+
+axis2_array_list_t *AXIS2_CALL
+woden_binding_get_binding_ops(
+        void *binding,
+        const axis2_env_t *env);
+
+void *AXIS2_CALL
+woden_binding_to_element(
+        void *binding,
+        const axis2_env_t *env);
+
+/* ************************************************************
+ *  Binding Element interface methods (the XML Element model)
+ * ************************************************************/
+axis2_status_t AXIS2_CALL
+woden_binding_set_qname(
+        void *binding,
+        const axis2_env_t *env,
+        axis2_qname_t *qname);
+
+axis2_status_t AXIS2_CALL
+woden_binding_set_interface_qname(
+        void *binding,
+        const axis2_env_t *env,
+        axis2_qname_t *qname);
+
+axis2_qname_t *AXIS2_CALL
+woden_binding_get_interface_qname(
+        void *binding,
+        const axis2_env_t *env);
+
+void *AXIS2_CALL
+woden_binding_get_interface_element(
+        void *binding,
+        const axis2_env_t *env);
+
+axis2_status_t AXIS2_CALL
+woden_binding_set_type(
+        void *binding,
+        const axis2_env_t *env,
+        axis2_uri_t *type);
+
+axis2_status_t AXIS2_CALL
+woden_binding_add_binding_fault_element(
+        void *binding,
+        const axis2_env_t *env,
+        void *fault);
+
+axis2_array_list_t *AXIS2_CALL
+woden_binding_get_binding_fault_elements(
+        void *binding,
+        const axis2_env_t *env);
+
+axis2_status_t AXIS2_CALL
+woden_binding_add_binding_op_element(
+        void *binding,
+        const axis2_env_t *env,
+        void *op);
+
+axis2_array_list_t *AXIS2_CALL
+woden_binding_get_binding_op_elements(
+        void *binding,
+        const axis2_env_t *env);
+
+/* ************************************************************
+ *  Non-API implementation methods
+ * ************************************************************/
+void *AXIS2_CALL
+woden_binding_get_binding_fault_element(
+        void *binding,
+        const axis2_env_t *env,
+        axis2_qname_t *qname);
+
+void *AXIS2_CALL
+woden_binding_get_binding_op_element(
+        void *binding,
+        const axis2_env_t *env,
+        axis2_qname_t *qname);
+
+axis2_status_t AXIS2_CALL
+woden_binding_set_interface_element(
+        void *binding,
+        const axis2_env_t *env,
+        void *interface);
+
+static woden_binding_t *
+create(const axis2_env_t *env);
+
+static axis2_status_t
+woden_binding_free_ops(
+        void *binding,
+        const axis2_env_t *env);
+
+/************************Woden C Internal Methods******************************/
+AXIS2_EXTERN woden_binding_t * AXIS2_CALL
+woden_binding_to_binding_element(
+        void *binding,
+        const axis2_env_t *env)
+{
+    woden_binding_impl_t *binding_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, NULL);
+    if(!binding)
+    {
+        binding_impl = (woden_binding_impl_t *) create(env);
+    }
+    else
+        binding_impl = (woden_binding_impl_t *) binding;
+    woden_binding_free_ops(binding, env);
+
+    binding_impl->binding.base.binding_element.ops = 
+        AXIS2_MALLOC(env->allocator, 
+                sizeof(woden_binding_element_ops_t));
+    woden_binding_element_resolve_methods(&(binding_impl->binding.base.
+            binding_element), env, binding_impl->methods);
+    return binding;
+}
+
+AXIS2_EXTERN woden_binding_t * AXIS2_CALL
+woden_binding_to_configurable_element(
+        void *binding,
+        const axis2_env_t *env)
+{
+    woden_binding_impl_t *binding_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, NULL);
+    if(!binding)
+    {
+        binding_impl = (woden_binding_impl_t *) create(env);
+    }
+    else
+        binding_impl = (woden_binding_impl_t *) binding;
+    woden_binding_free_ops(binding, env);
+
+    binding_impl->binding.base.binding_element.base.configurable_element.ops = 
+        AXIS2_MALLOC(env->allocator, 
+                sizeof(woden_configurable_element_ops_t));
+    woden_configurable_element_resolve_methods(&(binding_impl->binding.base.
+            binding_element.base.configurable_element), env, binding_impl->methods);
+    return binding;
+}
+
+AXIS2_EXTERN woden_binding_t * AXIS2_CALL
+woden_binding_to_documentable_element(
+        void *binding,
+        const axis2_env_t *env)
+{
+    woden_binding_impl_t *binding_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, NULL);
+    if(!binding)
+    {
+        binding_impl = (woden_binding_impl_t *) create(env);
+    }
+    else
+        binding_impl = (woden_binding_impl_t *) binding;
+    woden_binding_free_ops(binding, env);
+
+    binding_impl->binding.base.binding_element.base.documentable_element.ops = 
+        AXIS2_MALLOC(env->allocator, 
+                sizeof(woden_documentable_element_ops_t));
+    woden_documentable_element_resolve_methods(&(binding_impl->binding.base.
+            binding_element.base.documentable_element), env, 
+            binding_impl->methods);
+    return binding;
+}
+
+AXIS2_EXTERN woden_binding_t * AXIS2_CALL
+woden_binding_to_documentable(
+        void *binding,
+        const axis2_env_t *env)
+{
+    woden_binding_impl_t *binding_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, NULL);
+    if(!binding)
+    {
+        binding_impl = (woden_binding_impl_t *) create(env);
+    }
+    else
+        binding_impl = (woden_binding_impl_t *) binding;
+
+    woden_binding_free_ops(binding, env);
+
+    binding_impl->binding.base.configurable.base.documentable.ops = 
+        AXIS2_MALLOC(env->allocator, 
+                sizeof(woden_documentable_ops_t));
+    woden_documentable_resolve_methods(&(binding_impl->binding.base.
+            configurable.base.documentable), env, NULL,
+            binding_impl->methods);
+    return binding;
+}
+
+AXIS2_EXTERN woden_binding_t * AXIS2_CALL
+woden_binding_to_configurable(
+        void *binding,
+        const axis2_env_t *env)
+{
+    woden_binding_impl_t *binding_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, NULL);
+    if(!binding)
+    {
+        binding_impl = (woden_binding_impl_t *) create(env);
+    }
+    else
+        binding_impl = (woden_binding_impl_t *) binding;
+    woden_binding_free_ops(binding, env);
+
+    binding_impl->binding.base.configurable.ops = 
+        AXIS2_MALLOC(env->allocator, 
+                sizeof(woden_configurable_ops_t));
+    woden_configurable_resolve_methods(&(binding_impl->binding.base.
+            configurable), env, binding_impl->configurable, 
+            binding_impl->methods);
+    return binding;
+}
+
+AXIS2_EXTERN woden_binding_t * AXIS2_CALL
+woden_binding_to_wsdl_obj(
+        void *binding,
+        const axis2_env_t *env)
+{
+    woden_binding_impl_t *binding_impl = NULL;
+    void *documentable = NULL;
+    void *wsdl_obj = NULL;
+    
+    AXIS2_ENV_CHECK(env, NULL);
+    if(!binding)
+    {
+        binding_impl = (woden_binding_impl_t *) create(env);
+    }
+    else
+        binding_impl = (woden_binding_impl_t *) binding;
+    woden_binding_free_ops(binding, env);
+
+    binding_impl->binding.base.configurable.
+        base.documentable.base.wsdl_obj.ops = AXIS2_MALLOC(env->allocator, 
+                sizeof(woden_wsdl_obj_ops_t));
+    documentable = WODEN_CONFIGURABLE_GET_BASE_IMPL(
+            binding_impl->configurable, env);
+    wsdl_obj = WODEN_DOCUMENTABLE_GET_BASE_IMPL(
+            documentable, env);
+    woden_wsdl_obj_resolve_methods(&(binding_impl->binding.base.
+            configurable.base.documentable.base.wsdl_obj), 
+            env, wsdl_obj, binding_impl->methods);
+    return binding;
+}
+
+AXIS2_EXTERN woden_binding_t * AXIS2_CALL
+woden_binding_to_wsdl_component(
+        void *binding,
+        const axis2_env_t *env)
+{
+    woden_binding_impl_t *binding_impl = NULL;
+    
+    AXIS2_ENV_CHECK(env, NULL);
+    if(!binding)
+    {
+        binding_impl = (woden_binding_impl_t *) create(env);
+    }
+    else
+        binding_impl = (woden_binding_impl_t *) binding;
+    woden_binding_free_ops(binding, env);
+
+    binding_impl->binding.base.configurable.base.
+        configurable_component.wsdl_component.ops = AXIS2_MALLOC(env->allocator, 
+                sizeof(woden_wsdl_component_ops_t));
+    woden_wsdl_component_resolve_methods(&(binding_impl->binding.base.
+            configurable.base.configurable_component.wsdl_component), 
+            env, binding_impl->methods);
+    return binding;
+}
+
+/************************End of Woden C Internal Methods***********************/
+static woden_binding_t *
+create(const axis2_env_t *env)
+{
+    woden_binding_impl_t *binding_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, NULL);
+    binding_impl = AXIS2_MALLOC(env->allocator, 
+                    sizeof(woden_binding_impl_t));
+
+    binding_impl->obj_type= WODEN_BINDING;
+    binding_impl->super = NULL;
+    binding_impl->methods = NULL;
+    binding_impl->f_qname = NULL;
+    binding_impl->f_interface_qname = NULL;
+    binding_impl->f_interface = NULL;
+    binding_impl->f_type = NULL;
+    binding_impl->f_faults = NULL;
+    binding_impl->f_ops = NULL;
+    
+    binding_impl->binding.base.binding_element.ops = NULL;
+    binding_impl->binding.base.binding_element.base.documentable_element.ops = NULL;
+    binding_impl->binding.base.configurable.base.documentable.ops = NULL;
+    binding_impl->binding.base.binding_element.base.configurable_element.ops = NULL;
+    binding_impl->binding.base.configurable.ops = NULL;
+    
+    binding_impl->binding.ops = AXIS2_MALLOC(env->allocator, 
+            sizeof(woden_binding_ops_t));
+
+    binding_impl->binding.ops->free = woden_binding_free;
+    binding_impl->binding.ops->super_objs = woden_binding_super_objs;
+    binding_impl->binding.ops->type = woden_binding_type;
+    binding_impl->binding.ops->get_base_impl = woden_binding_get_base_impl;
+    
+    binding_impl->binding.ops->get_qname = woden_binding_get_qname;
+    binding_impl->binding.ops->get_interface = woden_binding_get_interface;
+    binding_impl->binding.ops->get_type = woden_binding_get_type;
+    binding_impl->binding.ops->get_binding_faults = 
+        woden_binding_get_binding_faults;
+    binding_impl->binding.ops->get_binding_ops = 
+        woden_binding_get_binding_ops;
+    binding_impl->binding.ops->to_element = woden_binding_to_element;
+    binding_impl->binding.ops->get_binding_fault_element = 
+        woden_binding_get_binding_fault_element;
+    binding_impl->binding.ops->get_binding_op_element = 
+        woden_binding_get_binding_op_element;
+    binding_impl->binding.ops->set_interface_element = 
+        woden_binding_set_interface_element;
+ 
+    binding_impl->methods = axis2_hash_make(env);
+    if(!binding_impl->methods) 
+    {
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        return NULL;
+    }
+    axis2_hash_set(binding_impl->methods, "free", AXIS2_HASH_KEY_STRING, 
+            woden_binding_free);
+    axis2_hash_set(binding_impl->methods, "super_objs", 
+            AXIS2_HASH_KEY_STRING, woden_binding_super_objs);
+    axis2_hash_set(binding_impl->methods, "type", 
+            AXIS2_HASH_KEY_STRING, woden_binding_type);
+
+    axis2_hash_set(binding_impl->methods, "get_qname", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_binding_get_qname);
+    axis2_hash_set(binding_impl->methods, "get_interface", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_binding_get_interface);
+    axis2_hash_set(binding_impl->methods, "get_type", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_binding_get_type);
+    axis2_hash_set(binding_impl->methods, "get_binding_faults", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_binding_get_binding_faults);
+    axis2_hash_set(binding_impl->methods, "get_binding_ops", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_binding_get_binding_ops);
+    axis2_hash_set(binding_impl->methods, "to_element", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_binding_to_element);
+    axis2_hash_set(binding_impl->methods, "set_qname", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_binding_set_qname);
+    axis2_hash_set(binding_impl->methods, "set_interface_qname", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_binding_set_interface_qname);
+    axis2_hash_set(binding_impl->methods, "get_interface_qname", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_binding_get_interface_qname);
+    axis2_hash_set(binding_impl->methods, "get_interface_element", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_binding_get_interface_element);
+    axis2_hash_set(binding_impl->methods, "set_type", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_binding_set_type);
+    axis2_hash_set(binding_impl->methods, "add_binding_fault_element", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_binding_add_binding_fault_element);
+    axis2_hash_set(binding_impl->methods, "get_binding_fault_elements", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_binding_get_binding_fault_elements);
+    axis2_hash_set(binding_impl->methods, "add_binding_op_element", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_binding_add_binding_op_element);
+    axis2_hash_set(binding_impl->methods, "get_binding_op_elements", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_binding_get_binding_op_elements);
+    axis2_hash_set(binding_impl->methods, "get_binding_fault_element", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_binding_get_binding_fault_element);
+    axis2_hash_set(binding_impl->methods, "get_binding_op_element", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_binding_get_binding_op_element);
+    axis2_hash_set(binding_impl->methods, "set_interface_element", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_binding_set_interface_element);
+
+    return &(binding_impl->binding);
+}
+
+AXIS2_EXTERN woden_binding_t * AXIS2_CALL
+woden_binding_create(const axis2_env_t *env)
+{
+    woden_binding_impl_t *binding_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, NULL);
+    binding_impl = (woden_binding_impl_t *) create(env);
+
+    binding_impl->configurable = woden_configurable_create(env);
+
+    binding_impl->super = axis2_hash_make(env);
+    if(!binding_impl->super) 
+    {
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        return NULL;
+    }
+    axis2_hash_set(binding_impl->super, "WODEN_BINDING", AXIS2_HASH_KEY_STRING, 
+            &(binding_impl->binding));
+    axis2_hash_set(binding_impl->super, "WODEN_CONFIGURABLE", AXIS2_HASH_KEY_STRING, 
+            binding_impl->configurable);
+ 
+    return &(binding_impl->binding);
+}
+
+static axis2_status_t
+woden_binding_free_ops(
+        void *binding,
+        const axis2_env_t *env)
+{
+    woden_binding_impl_t *binding_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    binding_impl = INTF_TO_IMPL(binding);
+
+    if(binding_impl->binding.base.binding_element.ops)
+    {
+        AXIS2_FREE(env->allocator, binding_impl->binding.base.
+                binding_element.ops);
+        binding_impl->binding.base.binding_element.ops = NULL;
+    }
+
+    if(binding_impl->binding.base.binding_element.base.configurable_element.ops)
+    {
+        AXIS2_FREE(env->allocator, binding_impl->binding.base.
+                binding_element.base.configurable_element.ops);
+        binding_impl->binding.base.binding_element.base.configurable_element.ops = 
+            NULL;
+    }
+    
+    if(binding_impl->binding.base.binding_element.base.documentable_element.ops)
+    {
+        AXIS2_FREE(env->allocator, binding_impl->binding.base.
+                binding_element.base.documentable_element.ops);
+        binding_impl->binding.base.binding_element.base.documentable_element.ops = 
+            NULL;
+    }
+     
+    if(binding_impl->binding.base.configurable.base.documentable.ops)
+    {
+        AXIS2_FREE(env->allocator, binding_impl->binding.base.
+                configurable.base.documentable.ops);
+        binding_impl->binding.base.configurable.base.documentable.ops = 
+            NULL;
+    }
+    
+    if(binding_impl->binding.base.configurable.ops)
+    {
+        AXIS2_FREE(env->allocator, binding_impl->binding.base.
+                configurable.ops);
+        binding_impl->binding.base.configurable.ops = 
+            NULL;
+    }
+  
+    if(binding_impl->binding.base.
+            configurable.base.documentable.base.wsdl_obj.ops)
+    {
+        AXIS2_FREE(env->allocator, binding_impl->binding.base.
+                configurable.base.documentable.base.wsdl_obj.ops);
+        binding_impl->binding.base.configurable.base.documentable.base.wsdl_obj.ops = NULL;
+    }
+    
+    if(binding_impl->binding.base.configurable.base.
+            configurable_component.wsdl_component.ops)
+    {
+        AXIS2_FREE(env->allocator, binding_impl->binding.base.
+                configurable.base.configurable_component.wsdl_component.ops);
+        binding_impl->binding.base.configurable.base.
+            configurable_component.wsdl_component.ops = NULL;
+    }
+    
+    return AXIS2_SUCCESS;
+}
+
+
+axis2_status_t AXIS2_CALL
+woden_binding_free(void *binding,
+                        const axis2_env_t *env)
+{
+    woden_binding_impl_t *binding_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    binding_impl = INTF_TO_IMPL(binding);
+
+    if(binding_impl->f_qname)
+    {
+        AXIS2_QNAME_FREE(binding_impl->f_qname, env);
+        binding_impl->f_qname = NULL;
+    }
+
+    if(binding_impl->f_interface_qname)
+    {
+        AXIS2_QNAME_FREE(binding_impl->f_interface_qname, env);
+        binding_impl->f_interface_qname = NULL;
+    }
+
+    if(binding_impl->f_interface)
+    {
+        WODEN_INTERFACE_FREE(binding_impl->f_interface, env);
+        binding_impl->f_interface = NULL;
+    }
+
+    if(binding_impl->f_type)
+    {
+        AXIS2_URI_FREE(binding_impl->f_type, env);
+        binding_impl->f_type = NULL;
+    }
+
+    if(binding_impl->f_faults)
+    {
+        AXIS2_ARRAY_LIST_FREE(binding_impl->f_faults, env);
+        binding_impl->f_faults = NULL;
+    }
+
+    if(binding_impl->f_ops)
+    {
+        AXIS2_ARRAY_LIST_FREE(binding_impl->f_ops, env);
+        binding_impl->f_ops = NULL;
+    }
+   
+    if(binding_impl->super)
+    {
+        axis2_hash_free(binding_impl->super, env);
+        binding_impl->super = NULL;
+    }
+    
+    if(binding_impl->methods)
+    {
+        axis2_hash_free(binding_impl->methods, env);
+        binding_impl->methods = NULL;
+    }
+
+    if(binding_impl->configurable)
+    {
+        WODEN_CONFIGURABLE_FREE(binding_impl->configurable, env);
+        binding_impl->configurable = NULL;
+    }
+    woden_binding_free_ops(binding, env);
+
+    if((&(binding_impl->binding))->ops)
+    {
+        AXIS2_FREE(env->allocator, (&(binding_impl->binding))->ops);
+        (&(binding_impl->binding))->ops = NULL;
+    }
+    
+    if(binding_impl)
+    {
+        AXIS2_FREE(env->allocator, binding_impl);
+        binding_impl = NULL;
+    }
+    return AXIS2_SUCCESS;
+}
+
+axis2_hash_t *AXIS2_CALL
+woden_binding_super_objs(
+        void *binding,
+        const axis2_env_t *env)
+{
+    woden_binding_impl_t *binding_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    binding_impl = INTF_TO_IMPL(binding);
+
+    return binding_impl->super;
+}
+
+woden_obj_types_t AXIS2_CALL
+woden_binding_type(
+        void *binding,
+        const axis2_env_t *env)
+{
+    woden_binding_impl_t *binding_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    binding_impl = INTF_TO_IMPL(binding);
+
+    return binding_impl->obj_type;
+}
+
+woden_configurable_t *AXIS2_CALL
+woden_binding_get_base_impl(
+        void *binding,
+        const axis2_env_t *env)
+{
+    woden_binding_impl_t *binding_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    binding_impl = INTF_TO_IMPL(binding);
+
+    return binding_impl->configurable;
+}
+
+axis2_status_t AXIS2_CALL
+woden_binding_resolve_methods(
+        woden_binding_t *binding,
+        const axis2_env_t *env,
+        woden_binding_t *binding_impl,
+        axis2_hash_t *methods)
+{
+    woden_binding_impl_t *binding_impl_l = NULL;
+    
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, methods, AXIS2_FAILURE);
+    binding_impl_l = INTF_TO_IMPL(binding_impl);
+    
+    binding->ops->free = axis2_hash_get(methods, "free", 
+            AXIS2_HASH_KEY_STRING);
+    binding->ops->super_objs = axis2_hash_get(methods, "super_objs", 
+            AXIS2_HASH_KEY_STRING);
+    binding->ops->type = axis2_hash_get(methods, "type", 
+            AXIS2_HASH_KEY_STRING);
+    
+    binding->ops->get_qname = axis2_hash_get(methods, 
+            "get_qname", AXIS2_HASH_KEY_STRING);
+    if(!binding->ops->get_qname && binding_impl_l)
+            binding->ops->get_qname = 
+            binding_impl_l->binding.ops->get_qname;
+    
+    binding->ops->get_interface = axis2_hash_get(methods, 
+            "get_interface", AXIS2_HASH_KEY_STRING);
+    if(!binding->ops->get_interface && binding_impl_l)
+            binding->ops->get_interface = 
+            binding_impl_l->binding.ops->get_interface;
+    
+    binding->ops->get_type = axis2_hash_get(methods, 
+            "get_type", AXIS2_HASH_KEY_STRING);
+    if(!binding->ops->get_type && binding_impl_l)
+            binding->ops->get_type = 
+            binding_impl_l->binding.ops->get_type;
+
+    binding->ops->get_binding_faults = axis2_hash_get(methods, 
+            "get_binding_faults", AXIS2_HASH_KEY_STRING);
+    if(!binding->ops->get_binding_faults && binding_impl_l)
+            binding->ops->get_binding_faults = 
+            binding_impl_l->binding.ops->get_binding_faults;
+
+    binding->ops->get_binding_ops = axis2_hash_get(methods, 
+            "get_binding_ops", AXIS2_HASH_KEY_STRING);
+    if(!binding->ops->get_binding_ops && binding_impl_l)
+            binding->ops->get_binding_ops = 
+            binding_impl_l->binding.ops->get_binding_ops;
+
+    binding->ops->to_element = axis2_hash_get(methods, 
+            "to_element", AXIS2_HASH_KEY_STRING);
+    if(!binding->ops->to_element && binding_impl_l)
+            binding->ops->to_element = 
+            binding_impl_l->binding.ops->to_element;
+ 
+    binding->ops->get_binding_fault_element = axis2_hash_get(methods, 
+            "get_binding_fault_element", AXIS2_HASH_KEY_STRING);
+    if(!binding->ops->get_binding_fault_element && binding_impl_l)
+            binding->ops->get_binding_fault_element = 
+            binding_impl_l->binding.ops->get_binding_fault_element;
+ 
+    binding->ops->get_binding_op_element = axis2_hash_get(methods, 
+            "get_binding_op_element", AXIS2_HASH_KEY_STRING);
+    if(!binding->ops->get_binding_op_element && binding_impl_l)
+            binding->ops->get_binding_op_element = 
+            binding_impl_l->binding.ops->get_binding_op_element;
+ 
+    binding->ops->set_interface_element = axis2_hash_get(methods, 
+            "set_interface_element", AXIS2_HASH_KEY_STRING);
+    if(!binding->ops->set_interface_element && binding_impl_l)
+            binding->ops->set_interface_element = 
+            binding_impl_l->binding.ops->set_interface_element;
+   
+  
+    return AXIS2_SUCCESS;
+}
+
+/* ************************************************************
+ *  Binding interface methods (the WSDL Component model)
+ * ************************************************************/
+axis2_qname_t *AXIS2_CALL
+woden_binding_get_qname(
+        void *binding,
+        const axis2_env_t *env)
+{
+    woden_binding_impl_t *binding_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_BINDING_SUPER_OBJS(binding, env);
+    binding_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_BINDING", AXIS2_HASH_KEY_STRING));
+    
+    return binding_impl->f_qname;
+}
+
+void *AXIS2_CALL
+woden_binding_get_interface(
+        void *binding,
+        const axis2_env_t *env)
+{
+    woden_binding_impl_t *binding_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_BINDING_SUPER_OBJS(binding, env);
+    binding_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_BINDING", AXIS2_HASH_KEY_STRING));
+    
+    return binding_impl->f_interface;
+}
+
+axis2_uri_t *AXIS2_CALL
+woden_binding_get_type(
+        void *binding,
+        const axis2_env_t *env)
+{
+    woden_binding_impl_t *binding_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_BINDING_SUPER_OBJS(binding, env);
+    binding_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_BINDING", AXIS2_HASH_KEY_STRING));
+    
+    return binding_impl->f_type;
+}
+
+
+axis2_array_list_t *AXIS2_CALL
+woden_binding_get_binding_faults(
+        void *binding,
+        const axis2_env_t *env)
+{
+    woden_binding_impl_t *binding_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_BINDING_SUPER_OBJS(binding, env);
+    binding_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_BINDING", AXIS2_HASH_KEY_STRING));
+
+    return binding_impl->f_faults;
+}
+
+axis2_array_list_t *AXIS2_CALL
+woden_binding_get_binding_ops(
+        void *binding,
+        const axis2_env_t *env)
+{
+    woden_binding_impl_t *binding_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_BINDING_SUPER_OBJS(binding, env);
+    binding_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_BINDING", AXIS2_HASH_KEY_STRING));
+
+    return binding_impl->f_ops;
+}
+
+void *AXIS2_CALL
+woden_binding_to_element(
+        void *binding,
+        const axis2_env_t *env)
+{
+    woden_binding_impl_t *binding_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_BINDING_SUPER_OBJS(binding, env);
+    binding_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_BINDING", AXIS2_HASH_KEY_STRING));
+    
+    return &(binding_impl->binding);
+}
+
+/* ************************************************************
+ *  Binding Element interface methods (the XML Element model)
+ * ************************************************************/
+axis2_status_t AXIS2_CALL
+woden_binding_set_qname(
+        void *binding,
+        const axis2_env_t *env,
+        axis2_qname_t *qname)
+{
+    woden_binding_impl_t *binding_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, qname, AXIS2_FAILURE);
+    super = WODEN_BINDING_SUPER_OBJS(binding, env);
+    binding_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_BINDING", AXIS2_HASH_KEY_STRING));
+
+    if(binding_impl->f_qname)
+    {
+        AXIS2_QNAME_FREE(binding_impl->f_qname, env);
+    }
+    binding_impl->f_qname = AXIS2_QNAME_CLONE(qname, env);
+    return AXIS2_SUCCESS;
+}
+
+axis2_status_t AXIS2_CALL
+woden_binding_set_interface_qname(
+        void *binding,
+        const axis2_env_t *env,
+        axis2_qname_t *qname)
+{
+    woden_binding_impl_t *binding_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, qname, AXIS2_FAILURE);
+    super = WODEN_BINDING_SUPER_OBJS(binding, env);
+    binding_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_BINDING", AXIS2_HASH_KEY_STRING));
+
+    if(binding_impl->f_interface_qname)
+    {
+        AXIS2_QNAME_FREE(binding_impl->f_interface_qname, env);
+    }
+    binding_impl->f_interface_qname = AXIS2_QNAME_CLONE(qname, env);
+
+    return AXIS2_SUCCESS;
+}
+
+axis2_qname_t *AXIS2_CALL
+woden_binding_get_interface_qname(
+        void *binding,
+        const axis2_env_t *env)
+{
+    woden_binding_impl_t *binding_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_BINDING_SUPER_OBJS(binding, env);
+    binding_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_BINDING", AXIS2_HASH_KEY_STRING));
+
+    return binding_impl->f_interface_qname;
+}
+
+void *AXIS2_CALL
+woden_binding_get_interface_element(
+        void *binding,
+        const axis2_env_t *env)
+{
+    woden_binding_impl_t *binding_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_BINDING_SUPER_OBJS(binding, env);
+    binding_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_BINDING", AXIS2_HASH_KEY_STRING));
+
+    return binding_impl->f_interface;
+}
+
+
+axis2_status_t AXIS2_CALL
+woden_binding_set_type(
+        void *binding,
+        const axis2_env_t *env,
+        axis2_uri_t *type)
+{
+    woden_binding_impl_t *binding_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, type, AXIS2_FAILURE);
+    super = WODEN_BINDING_SUPER_OBJS(binding, env);
+    binding_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_BINDING", AXIS2_HASH_KEY_STRING));
+    
+    if(binding_impl->f_type)
+    {
+        AXIS2_URI_FREE(binding_impl->f_type, env);
+        binding_impl->f_type = NULL;
+    }
+    binding_impl->f_type = AXIS2_URI_CLONE(type, env);
+
+    return AXIS2_SUCCESS;
+}
+
+axis2_status_t AXIS2_CALL
+woden_binding_add_binding_fault_element(
+        void *binding,
+        const axis2_env_t *env,
+        void *fault)
+{
+    woden_binding_impl_t *binding_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, fault, AXIS2_FAILURE);
+    super = WODEN_BINDING_SUPER_OBJS(binding, env);
+    binding_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_BINDING", AXIS2_HASH_KEY_STRING));
+    
+    if(!binding_impl->f_faults)
+    {
+        binding_impl->f_faults = axis2_array_list_create(env, 0);
+        if(!binding_impl->f_faults)
+        {
+            AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+            return AXIS2_FAILURE;
+        }
+    }
+    AXIS2_ARRAY_LIST_ADD(binding_impl->f_faults, env, fault);
+
+    return AXIS2_SUCCESS;
+}
+
+axis2_array_list_t *AXIS2_CALL
+woden_binding_get_binding_fault_elements(
+        void *binding,
+        const axis2_env_t *env)
+{
+    woden_binding_impl_t *binding_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_BINDING_SUPER_OBJS(binding, env);
+    binding_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_BINDING", AXIS2_HASH_KEY_STRING));
+
+    return binding_impl->f_faults;
+}
+
+axis2_status_t AXIS2_CALL
+woden_binding_add_binding_op_element(
+        void *binding,
+        const axis2_env_t *env,
+        void *op)
+{
+    woden_binding_impl_t *binding_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, op, AXIS2_FAILURE);
+    super = WODEN_BINDING_SUPER_OBJS(binding, env);
+    binding_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_BINDING", AXIS2_HASH_KEY_STRING));
+    
+    if(!binding_impl->f_ops)
+    {
+        binding_impl->f_ops = axis2_array_list_create(env, 0);
+        if(!binding_impl->f_ops)
+        {
+            AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+            return AXIS2_FAILURE;
+        }
+    }
+    AXIS2_ARRAY_LIST_ADD(binding_impl->f_ops, env, op);
+
+    return AXIS2_SUCCESS;
+}
+
+axis2_array_list_t *AXIS2_CALL
+woden_binding_get_binding_op_elements(
+        void *binding,
+        const axis2_env_t *env)
+{
+    woden_binding_impl_t *binding_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_BINDING_SUPER_OBJS(binding, env);
+    binding_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_BINDING", AXIS2_HASH_KEY_STRING));
+
+    return binding_impl->f_ops;
+}
+
+/* ************************************************************
+ *  Non-API implementation methods
+ * ************************************************************/
+void *AXIS2_CALL
+woden_binding_get_binding_fault_element(
+        void *binding,
+        const axis2_env_t *env,
+        axis2_qname_t *qname)
+{
+    woden_binding_impl_t *binding_impl = NULL;
+    axis2_hash_t *super = NULL;
+    int i = 0, size = 0;
+    void *fault = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    AXIS2_PARAM_CHECK(env->error, qname, NULL);
+    super = WODEN_BINDING_SUPER_OBJS(binding, env);
+    binding_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_BINDING", AXIS2_HASH_KEY_STRING));
+
+    size = AXIS2_ARRAY_LIST_SIZE(binding_impl->f_faults, env);
+    for(i = 0; i < size; i++)
+    {
+        void *bind_fault = NULL;
+        axis2_qname_t *qname_l = NULL;
+        
+        bind_fault = AXIS2_ARRAY_LIST_GET(binding_impl->f_faults, 
+                env, i);
+        qname_l = (axis2_qname_t *) WODEN_BINDING_FAULT_ELEMENT_GET_REF(
+                bind_fault, env);
+        if(AXIS2_TRUE == AXIS2_QNAME_EQUALS(qname, env, qname_l))
+        {
+            fault = bind_fault;
+            break;
+        }
+    }
+
+    return fault;
+}
+
+void *AXIS2_CALL
+woden_binding_get_binding_op_element(
+        void *binding,
+        const axis2_env_t *env,
+        axis2_qname_t *qname)
+{
+    woden_binding_impl_t *binding_impl = NULL;
+    axis2_hash_t *super = NULL;
+    int i = 0, size = 0;
+    void *op = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    AXIS2_PARAM_CHECK(env->error, qname, NULL);
+    super = WODEN_BINDING_SUPER_OBJS(binding, env);
+    binding_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_BINDING", AXIS2_HASH_KEY_STRING));
+
+    size = AXIS2_ARRAY_LIST_SIZE(binding_impl->f_ops, env);
+    for(i = 0; i < size; i++)
+    {
+        void *bind_op = NULL;
+        axis2_qname_t *qname_l = NULL;
+        
+        bind_op = AXIS2_ARRAY_LIST_GET(binding_impl->f_ops, 
+                env, i);
+        qname_l = (axis2_qname_t *) WODEN_BINDING_OP_ELEMENT_GET_REF(
+                bind_op, env);
+        if(AXIS2_TRUE == AXIS2_QNAME_EQUALS(qname, env, qname_l))
+        {
+            op = bind_op;
+            break;
+        }
+    }
+
+    return op;
+}
+
+axis2_status_t AXIS2_CALL
+woden_binding_set_interface_element(
+        void *binding,
+        const axis2_env_t *env,
+        void *interface)
+{
+    woden_binding_impl_t *binding_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, interface, AXIS2_FAILURE);
+    super = WODEN_BINDING_SUPER_OBJS(binding, env);
+    binding_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_BINDING", AXIS2_HASH_KEY_STRING));
+
+    if(binding_impl->f_interface)
+    {
+        /* TODO */
+    }
+    binding_impl->f_interface = interface;
+
+    return AXIS2_SUCCESS;
+}
+

Added: webservices/axis2/trunk/c/woden/src/wsdl/binding_element.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl/binding_element.c?rev=419452&view=auto
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl/binding_element.c (added)
+++ webservices/axis2/trunk/c/woden/src/wsdl/binding_element.c Wed Jul  5 23:02:19 2006
@@ -0,0 +1,79 @@
+/*
+ * 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_binding_element.h>
+
+axis2_status_t AXIS2_CALL
+woden_binding_element_resolve_methods(
+        woden_binding_element_t *binding_element,
+        const axis2_env_t *env,
+        axis2_hash_t *methods)
+{
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, methods, AXIS2_FAILURE);
+    
+    binding_element->ops->free = axis2_hash_get(methods, "free", 
+            AXIS2_HASH_KEY_STRING);
+    binding_element->ops->type = axis2_hash_get(methods, "type", 
+            AXIS2_HASH_KEY_STRING);
+
+    binding_element->ops->set_qname = 
+            axis2_hash_get(methods, "set_qname", 
+            AXIS2_HASH_KEY_STRING);
+
+    binding_element->ops->get_qname = 
+            axis2_hash_get(methods, "get_qname", 
+            AXIS2_HASH_KEY_STRING);
+
+    binding_element->ops->set_interface_qname = 
+            axis2_hash_get(methods, "set_interface_qname", 
+            AXIS2_HASH_KEY_STRING);
+
+    binding_element->ops->get_interface_qname = 
+            axis2_hash_get(methods, "get_interface_qname", 
+            AXIS2_HASH_KEY_STRING);
+
+    binding_element->ops->get_interface_element = 
+            axis2_hash_get(methods, "get_interface_element", 
+            AXIS2_HASH_KEY_STRING);
+
+    binding_element->ops->set_type = 
+            axis2_hash_get(methods, "set_type", 
+            AXIS2_HASH_KEY_STRING);
+
+    binding_element->ops->get_type = 
+            axis2_hash_get(methods, "get_type", 
+            AXIS2_HASH_KEY_STRING);
+
+    binding_element->ops->add_binding_fault_element = 
+            axis2_hash_get(methods, "add_binding_fault_element", 
+            AXIS2_HASH_KEY_STRING);
+
+    binding_element->ops->get_binding_fault_elements = 
+            axis2_hash_get(methods, "get_binding_fault_elements", 
+            AXIS2_HASH_KEY_STRING);
+
+    binding_element->ops->add_binding_op_element = 
+            axis2_hash_get(methods, "add_binding_op_element", 
+            AXIS2_HASH_KEY_STRING);
+
+    binding_element->ops->get_binding_op_elements = 
+            axis2_hash_get(methods, "get_binding_op_elements", 
+            AXIS2_HASH_KEY_STRING);
+
+    return AXIS2_SUCCESS;    
+}
+

Added: webservices/axis2/trunk/c/woden/src/wsdl/binding_fault_ref.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl/binding_fault_ref.c?rev=419452&view=auto
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl/binding_fault_ref.c (added)
+++ webservices/axis2/trunk/c/woden/src/wsdl/binding_fault_ref.c Wed Jul  5 23:02:19 2006
@@ -0,0 +1,1021 @@
+/*
+ * 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_wsdl_obj.h>
+#include <woden_binding_fault_ref.h>
+#include <woden_interface_fault_ref.h>
+#include <woden_nested_configurable.h>
+#include <woden_ext_element.h>
+#include <woden_component_exts.h>
+#include <woden_msg_label.h>
+#include <woden_xml_attr.h>
+#include <woden_documentation_element.h>
+#include <xml_schema_element.h>
+#include <woden_direction.h>
+
+typedef struct woden_binding_fault_ref_impl woden_binding_fault_ref_impl_t;
+
+/** 
+ * @brief Binding Fault Reference Struct Impl
+ *   Axis2 Binding Fault Reference  
+ */ 
+struct woden_binding_fault_ref_impl
+{
+    woden_binding_fault_ref_t binding_fault_ref;
+    woden_nested_configurable_t *nested_configurable;
+    woden_obj_types_t obj_type;
+    axis2_hash_t *super;
+    axis2_hash_t *methods;
+    axis2_qname_t *f_ref;
+    void *f_direction;
+    void *f_msg_label;
+    void *f_interface_fault_ref;
+};
+
+#define INTF_TO_IMPL(binding_fault_ref) ((woden_binding_fault_ref_impl_t *) binding_fault_ref)
+
+axis2_status_t AXIS2_CALL 
+woden_binding_fault_ref_free(
+        void *binding_fault_ref,
+        const axis2_env_t *env);
+
+axis2_hash_t *AXIS2_CALL 
+woden_binding_fault_ref_super_objs(
+        void *binding_fault_ref,
+        const axis2_env_t *env);
+
+woden_obj_types_t AXIS2_CALL 
+woden_binding_fault_ref_type(
+        void *binding_fault_ref,
+        const axis2_env_t *env);
+
+woden_nested_configurable_t *AXIS2_CALL
+woden_binding_fault_ref_get_base_impl(
+        void *binding_fault_ref,
+        const axis2_env_t *env);
+
+/* ************************************************************
+ *  Binding Fault Reference  methods (the WSDL Component model)
+ * ************************************************************/
+void *AXIS2_CALL
+woden_binding_fault_ref_get_interface_fault_ref(
+        void *binding_fault_ref,
+        const axis2_env_t *env);
+
+void *AXIS2_CALL
+woden_binding_fault_ref_get_direction(
+        void *binding_fault_ref,
+        const axis2_env_t *env);
+
+void *AXIS2_CALL
+woden_binding_fault_ref_to_element(
+        void *binding_fault_ref,
+        const axis2_env_t *env);
+
+/* ************************************************************
+ *  Binding Fault Reference Element methods (the XML Element model)
+ * ************************************************************/
+axis2_status_t AXIS2_CALL
+woden_binding_fault_ref_set_ref(
+        void *binding_fault_ref,
+        const axis2_env_t *env,
+        axis2_qname_t *fault_qname);
+
+axis2_qname_t *AXIS2_CALL
+woden_binding_fault_ref_get_ref(
+        void *binding_fault_ref,
+        const axis2_env_t *env);
+
+void *AXIS2_CALL
+woden_binding_fault_ref_get_interface_fault_ref_element(
+        void *binding_fault_ref,
+        const axis2_env_t *env);
+
+axis2_status_t AXIS2_CALL
+woden_binding_fault_ref_set_msg_label(
+        void *binding_fault_ref,
+        const axis2_env_t *env,
+        void *msg_label);
+
+void *AXIS2_CALL
+woden_binding_fault_ref_get_msg_label(
+        void *binding_fault_ref,
+        const axis2_env_t *env);
+
+/* ************************************************************
+ *  Non-API implementation methods
+ * ************************************************************/
+axis2_status_t AXIS2_CALL
+woden_binding_fault_ref_set_interface_fault_ref_element(
+        void *binding_fault_ref,
+        const axis2_env_t *env,
+        void *fault_ref);
+
+axis2_status_t AXIS2_CALL
+woden_binding_fault_ref_set_interface_fault_ref(
+        void *binding_fault_ref,
+        const axis2_env_t *env,
+        void *fault_ref);
+
+static woden_binding_fault_ref_t *
+create(const axis2_env_t *env);
+ 
+static axis2_status_t
+woden_binding_fault_ref_free_ops(
+        void *binding_fault_ref,
+        const axis2_env_t *env);
+
+/************************Woden C Internal Methods******************************/
+AXIS2_EXTERN woden_binding_fault_ref_t * AXIS2_CALL
+woden_binding_fault_ref_to_binding_fault_ref_element(
+        void *binding_fault_ref,
+        const axis2_env_t *env)
+{
+    woden_binding_fault_ref_impl_t *binding_fault_ref_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, NULL);
+    if(!binding_fault_ref)
+    {
+        binding_fault_ref_impl = (woden_binding_fault_ref_impl_t *) create(env);
+    }
+    else
+        binding_fault_ref_impl = (woden_binding_fault_ref_impl_t *) binding_fault_ref;
+
+    woden_binding_fault_ref_free_ops(binding_fault_ref, env);
+
+    binding_fault_ref_impl->binding_fault_ref.base.binding_fault_ref_element.ops = 
+        AXIS2_MALLOC(env->allocator, 
+                sizeof(woden_binding_fault_ref_element_ops_t));
+    woden_binding_fault_ref_element_resolve_methods(&(binding_fault_ref_impl->binding_fault_ref.base.
+            binding_fault_ref_element), env, binding_fault_ref_impl->methods);
+    return binding_fault_ref;
+}
+
+AXIS2_EXTERN woden_binding_fault_ref_t * AXIS2_CALL
+woden_binding_fault_ref_to_nested_configurable(
+        void *binding_fault_ref,
+        const axis2_env_t *env)
+{
+    woden_binding_fault_ref_impl_t *binding_fault_ref_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, NULL);
+    if(!binding_fault_ref)
+    {
+        binding_fault_ref_impl = (woden_binding_fault_ref_impl_t *) create(env);
+    }
+    else
+        binding_fault_ref_impl = (woden_binding_fault_ref_impl_t *) binding_fault_ref;
+    woden_binding_fault_ref_free_ops(binding_fault_ref, env);
+
+    binding_fault_ref_impl->binding_fault_ref.base.nested_configurable.ops = 
+        AXIS2_MALLOC(env->allocator, 
+                sizeof(woden_nested_configurable_ops_t));
+    woden_nested_configurable_resolve_methods(&(binding_fault_ref_impl->binding_fault_ref.base.
+            nested_configurable), env, binding_fault_ref_impl->nested_configurable, 
+            binding_fault_ref_impl->methods);
+    return binding_fault_ref;
+}
+
+AXIS2_EXTERN woden_binding_fault_ref_t * AXIS2_CALL
+woden_binding_fault_ref_to_configurable(
+        void *binding_fault_ref,
+        const axis2_env_t *env)
+{
+    woden_binding_fault_ref_impl_t *binding_fault_ref_impl = NULL;
+    void *configurable = NULL;
+    
+    AXIS2_ENV_CHECK(env, NULL);
+    if(!binding_fault_ref)
+    {
+        binding_fault_ref_impl = (woden_binding_fault_ref_impl_t *) create(env);
+    }
+    else
+        binding_fault_ref_impl = (woden_binding_fault_ref_impl_t *) binding_fault_ref;
+    woden_binding_fault_ref_free_ops(binding_fault_ref, env);
+
+    binding_fault_ref_impl->binding_fault_ref.base.nested_configurable.base.configurable.ops = 
+        AXIS2_MALLOC(env->allocator, 
+                sizeof(woden_configurable_ops_t));
+    configurable = WODEN_NESTED_CONFIGURABLE_GET_BASE_IMPL(
+            binding_fault_ref_impl->nested_configurable, env);
+    woden_configurable_resolve_methods(&(binding_fault_ref_impl->binding_fault_ref.base.
+            nested_configurable.base.configurable), env, configurable, binding_fault_ref_impl->methods);
+    return binding_fault_ref;
+}
+
+AXIS2_EXTERN woden_binding_fault_ref_t * AXIS2_CALL
+woden_binding_fault_ref_to_wsdl_obj(
+        void *binding_fault_ref,
+        const axis2_env_t *env)
+{
+    woden_binding_fault_ref_impl_t *binding_fault_ref_impl = NULL;
+    void *configurable = NULL;
+    void *documentable = NULL;
+    void *wsdl_obj = NULL;
+    
+    AXIS2_ENV_CHECK(env, NULL);
+    if(!binding_fault_ref)
+    {
+        binding_fault_ref_impl = (woden_binding_fault_ref_impl_t *) create(env);
+    }
+    else
+        binding_fault_ref_impl = (woden_binding_fault_ref_impl_t *) binding_fault_ref;
+    woden_binding_fault_ref_free_ops(binding_fault_ref, env);
+
+    binding_fault_ref_impl->binding_fault_ref.base.nested_configurable.base.configurable.
+        base.documentable.base.wsdl_obj.ops = AXIS2_MALLOC(env->allocator, 
+                sizeof(woden_wsdl_obj_ops_t));
+    configurable = WODEN_NESTED_CONFIGURABLE_GET_BASE_IMPL(
+            binding_fault_ref_impl->nested_configurable, env);
+    documentable = WODEN_CONFIGURABLE_GET_BASE_IMPL(
+            configurable, env);
+    wsdl_obj = WODEN_DOCUMENTABLE_GET_BASE_IMPL(
+            documentable, env);
+    woden_wsdl_obj_resolve_methods(&(binding_fault_ref_impl->binding_fault_ref.base.
+            nested_configurable.base.configurable.base.documentable.base.wsdl_obj), 
+            env, wsdl_obj, binding_fault_ref_impl->methods);
+    return binding_fault_ref;
+}
+
+AXIS2_EXTERN woden_binding_fault_ref_t * AXIS2_CALL
+woden_binding_fault_ref_to_nested_element(
+        void *binding_fault_ref,
+        const axis2_env_t *env)
+{
+    woden_binding_fault_ref_impl_t *binding_fault_ref_impl = NULL;
+    
+    AXIS2_ENV_CHECK(env, NULL);
+    if(!binding_fault_ref)
+    {
+        binding_fault_ref_impl = (woden_binding_fault_ref_impl_t *) create(env);
+    }
+    else
+        binding_fault_ref_impl = (woden_binding_fault_ref_impl_t *) binding_fault_ref;
+    woden_binding_fault_ref_free_ops(binding_fault_ref, env);
+
+    binding_fault_ref_impl->binding_fault_ref.base.nested_configurable.base.
+        nested_element.ops = AXIS2_MALLOC(env->allocator, 
+                sizeof(woden_nested_element_ops_t));
+    woden_nested_element_resolve_methods(&(binding_fault_ref_impl->binding_fault_ref.base.
+            nested_configurable.base.nested_element), 
+            env, binding_fault_ref_impl->methods);
+    return binding_fault_ref;
+}
+
+AXIS2_EXTERN woden_binding_fault_ref_t * AXIS2_CALL
+woden_binding_fault_ref_to_wsdl_component(
+        void *binding_fault_ref,
+        const axis2_env_t *env)
+{
+    woden_binding_fault_ref_impl_t *binding_fault_ref_impl = NULL;
+    
+    AXIS2_ENV_CHECK(env, NULL);
+    if(!binding_fault_ref)
+    {
+        binding_fault_ref_impl = (woden_binding_fault_ref_impl_t *) create(env);
+    }
+    else
+        binding_fault_ref_impl = (woden_binding_fault_ref_impl_t *) binding_fault_ref;
+    woden_binding_fault_ref_free_ops(binding_fault_ref, env);
+
+    binding_fault_ref_impl->binding_fault_ref.base.nested_configurable.base.
+        nested_component.wsdl_component.ops = AXIS2_MALLOC(env->allocator, 
+                sizeof(woden_wsdl_component_ops_t));
+    woden_wsdl_component_resolve_methods(&(binding_fault_ref_impl->binding_fault_ref.base.
+            nested_configurable.base.nested_component.wsdl_component), 
+            env, binding_fault_ref_impl->methods);
+    return binding_fault_ref;
+}
+
+AXIS2_EXTERN woden_binding_fault_ref_t * AXIS2_CALL
+woden_binding_fault_ref_to_configurable_element(
+        void *binding_fault_ref,
+        const axis2_env_t *env)
+{
+    woden_binding_fault_ref_impl_t *binding_fault_ref_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, NULL);
+    if(!binding_fault_ref)
+    {
+        binding_fault_ref_impl = (woden_binding_fault_ref_impl_t *) create(env);
+    }
+    else
+        binding_fault_ref_impl = (woden_binding_fault_ref_impl_t *) binding_fault_ref;
+
+    woden_binding_fault_ref_free_ops(binding_fault_ref, env);
+
+    binding_fault_ref_impl->binding_fault_ref.base.binding_fault_ref_element.base.configurable_element.ops = 
+        AXIS2_MALLOC(env->allocator, 
+                sizeof(woden_configurable_element_ops_t));
+    woden_configurable_element_resolve_methods(&(binding_fault_ref_impl->binding_fault_ref.base.
+            binding_fault_ref_element.base.configurable_element), env, binding_fault_ref_impl->methods);
+    return binding_fault_ref;
+}
+
+AXIS2_EXTERN woden_binding_fault_ref_t * AXIS2_CALL
+woden_binding_fault_ref_to_documentable_element(
+        void *binding_fault_ref,
+        const axis2_env_t *env)
+{
+    woden_binding_fault_ref_impl_t *binding_fault_ref_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, NULL);
+    if(!binding_fault_ref)
+    {
+        binding_fault_ref_impl = (woden_binding_fault_ref_impl_t *) create(env);
+    }
+    else
+        binding_fault_ref_impl = (woden_binding_fault_ref_impl_t *) binding_fault_ref;
+
+    woden_binding_fault_ref_free_ops(binding_fault_ref, env);
+
+    binding_fault_ref_impl->binding_fault_ref.base.binding_fault_ref_element.base.documentable_element.ops = 
+        AXIS2_MALLOC(env->allocator, 
+                sizeof(woden_documentable_element_ops_t));
+    woden_documentable_element_resolve_methods(&(binding_fault_ref_impl->binding_fault_ref.base.
+            binding_fault_ref_element.base.documentable_element), env, 
+            binding_fault_ref_impl->methods);
+    return binding_fault_ref;
+}
+
+AXIS2_EXTERN woden_binding_fault_ref_t * AXIS2_CALL
+woden_binding_fault_ref_to_documentable(
+        void *binding_fault_ref,
+        const axis2_env_t *env)
+{
+    woden_binding_fault_ref_impl_t *binding_fault_ref_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, NULL);
+    if(!binding_fault_ref)
+    {
+        binding_fault_ref_impl = (woden_binding_fault_ref_impl_t *) create(env);
+    }
+    else
+        binding_fault_ref_impl = (woden_binding_fault_ref_impl_t *) binding_fault_ref;
+
+    woden_binding_fault_ref_free_ops(binding_fault_ref, env);
+
+    binding_fault_ref_impl->binding_fault_ref.base.nested_configurable.base.
+        configurable.base.documentable.ops = AXIS2_MALLOC(env->allocator, 
+                sizeof(woden_documentable_ops_t));
+    woden_documentable_resolve_methods(&(binding_fault_ref_impl->binding_fault_ref.base.
+            nested_configurable.base.configurable.base.documentable), env, NULL,
+            binding_fault_ref_impl->methods);
+    return binding_fault_ref;
+}
+
+
+
+AXIS2_EXTERN woden_binding_fault_ref_t * AXIS2_CALL
+woden_binding_fault_ref_to_attr_extensible(
+        void *binding_fault_ref,
+        const axis2_env_t *env)
+{
+    woden_binding_fault_ref_impl_t *binding_fault_ref_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, NULL);
+    if(!binding_fault_ref)
+    {
+        binding_fault_ref_impl = (woden_binding_fault_ref_impl_t *) create(env);
+    }
+    else
+        binding_fault_ref_impl = (woden_binding_fault_ref_impl_t *) binding_fault_ref;
+    woden_binding_fault_ref_free_ops(binding_fault_ref, env);
+
+    binding_fault_ref_impl->binding_fault_ref.base.binding_fault_ref_element.
+        base.documentable_element.wsdl_element.base.attr_extensible.ops = 
+        AXIS2_MALLOC(env->allocator, 
+                sizeof(woden_attr_extensible_ops_t));
+    woden_attr_extensible_resolve_methods(&(binding_fault_ref_impl->binding_fault_ref.base.
+            binding_fault_ref_element.base.documentable_element.
+            wsdl_element.base.attr_extensible), env, NULL, binding_fault_ref_impl->methods);
+    return binding_fault_ref;
+}
+
+AXIS2_EXTERN woden_binding_fault_ref_t * AXIS2_CALL
+woden_binding_fault_ref_to_element_extensible(
+        void *binding_fault_ref,
+        const axis2_env_t *env)
+{
+    woden_binding_fault_ref_impl_t *binding_fault_ref_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, NULL);
+    if(!binding_fault_ref)
+    {
+        binding_fault_ref_impl = (woden_binding_fault_ref_impl_t *) create(env);
+    }
+    else
+        binding_fault_ref_impl = (woden_binding_fault_ref_impl_t *) binding_fault_ref;
+    woden_binding_fault_ref_free_ops(binding_fault_ref, env);
+
+    binding_fault_ref_impl->binding_fault_ref.base.binding_fault_ref_element.
+        base.documentable_element.wsdl_element.base.element_extensible.ops = 
+        AXIS2_MALLOC(env->allocator, 
+                sizeof(woden_element_extensible_ops_t));
+    woden_element_extensible_resolve_methods(&(binding_fault_ref_impl->binding_fault_ref.base.
+            binding_fault_ref_element.base.documentable_element.
+            wsdl_element.base.element_extensible), env, NULL, binding_fault_ref_impl->methods);
+    return binding_fault_ref;
+}
+
+
+/************************End of Woden C Internal Methods***********************/
+static woden_binding_fault_ref_t *
+create(const axis2_env_t *env)
+{
+    woden_binding_fault_ref_impl_t *binding_fault_ref_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, NULL);
+    binding_fault_ref_impl = AXIS2_MALLOC(env->allocator, 
+                    sizeof(woden_binding_fault_ref_impl_t));
+
+    binding_fault_ref_impl->obj_type= WODEN_BINDING_FAULT_REF;
+    binding_fault_ref_impl->super = NULL;
+    binding_fault_ref_impl->methods = NULL;
+    binding_fault_ref_impl->f_ref = NULL;
+    binding_fault_ref_impl->f_direction = NULL;
+    binding_fault_ref_impl->f_msg_label = NULL;
+    binding_fault_ref_impl->f_interface_fault_ref = NULL;
+    
+    binding_fault_ref_impl->binding_fault_ref.base.binding_fault_ref_element.ops = NULL;
+    binding_fault_ref_impl->binding_fault_ref.base.nested_configurable.ops = NULL;
+    binding_fault_ref_impl->binding_fault_ref.base.nested_configurable.base.configurable.ops = 
+            NULL;
+    binding_fault_ref_impl->binding_fault_ref.base.binding_fault_ref_element.base.
+        nested_element.ops = NULL;
+    binding_fault_ref_impl->binding_fault_ref.base.binding_fault_ref_element.base.
+        configurable_element.ops = NULL;
+    binding_fault_ref_impl->binding_fault_ref.base.binding_fault_ref_element.base.
+        documentable_element.ops = NULL;
+    binding_fault_ref_impl->binding_fault_ref.base.nested_configurable.base.configurable.base.
+        documentable.ops = NULL;
+    binding_fault_ref_impl->binding_fault_ref.base.binding_fault_ref_element.base.
+        documentable_element.wsdl_element.base.attr_extensible.ops = NULL;
+    binding_fault_ref_impl->binding_fault_ref.base.binding_fault_ref_element.base.
+        documentable_element.wsdl_element.base.element_extensible.ops = NULL;
+
+
+    binding_fault_ref_impl->binding_fault_ref.ops = AXIS2_MALLOC(env->allocator, 
+            sizeof(woden_binding_fault_ref_ops_t));
+
+    binding_fault_ref_impl->binding_fault_ref.ops->free = woden_binding_fault_ref_free;
+    binding_fault_ref_impl->binding_fault_ref.ops->super_objs = woden_binding_fault_ref_super_objs;
+    binding_fault_ref_impl->binding_fault_ref.ops->type = woden_binding_fault_ref_type;
+    binding_fault_ref_impl->binding_fault_ref.ops->get_base_impl = woden_binding_fault_ref_get_base_impl;
+    
+    binding_fault_ref_impl->binding_fault_ref.ops->get_interface_fault_ref = 
+        woden_binding_fault_ref_get_interface_fault_ref;
+    binding_fault_ref_impl->binding_fault_ref.ops->to_element = 
+        woden_binding_fault_ref_to_element;
+    binding_fault_ref_impl->binding_fault_ref.ops->set_interface_fault_ref_element = 
+        woden_binding_fault_ref_set_interface_fault_ref_element;
+    binding_fault_ref_impl->binding_fault_ref.ops->set_interface_fault_ref = 
+        woden_binding_fault_ref_set_interface_fault_ref;
+ 
+    binding_fault_ref_impl->methods = axis2_hash_make(env);
+    if(!binding_fault_ref_impl->methods) 
+    {
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        return NULL;
+    }
+    axis2_hash_set(binding_fault_ref_impl->methods, "free", AXIS2_HASH_KEY_STRING, 
+            woden_binding_fault_ref_free);
+    axis2_hash_set(binding_fault_ref_impl->methods, "super_objs", 
+            AXIS2_HASH_KEY_STRING, woden_binding_fault_ref_super_objs);
+    axis2_hash_set(binding_fault_ref_impl->methods, "type", 
+            AXIS2_HASH_KEY_STRING, woden_binding_fault_ref_type);
+
+    axis2_hash_set(binding_fault_ref_impl->methods, "get_interface_fault_ref", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_binding_fault_ref_get_interface_fault_ref);
+    axis2_hash_set(binding_fault_ref_impl->methods, "to_element", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_binding_fault_ref_to_element);
+    axis2_hash_set(binding_fault_ref_impl->methods, "set_ref", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_binding_fault_ref_set_ref);
+    axis2_hash_set(binding_fault_ref_impl->methods, "get_ref", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_binding_fault_ref_get_ref);
+    axis2_hash_set(binding_fault_ref_impl->methods, "get_interface_fault_ref_element", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_binding_fault_ref_get_interface_fault_ref_element);
+    axis2_hash_set(binding_fault_ref_impl->methods, "set_msg_label", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_binding_fault_ref_set_msg_label);
+    axis2_hash_set(binding_fault_ref_impl->methods, "get_msg_label", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_binding_fault_ref_get_msg_label);
+    axis2_hash_set(binding_fault_ref_impl->methods, "set_interface_fault_ref_element", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_binding_fault_ref_set_interface_fault_ref_element);
+    axis2_hash_set(binding_fault_ref_impl->methods, "set_interface_fault_ref", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_binding_fault_ref_set_interface_fault_ref);
+
+    return &(binding_fault_ref_impl->binding_fault_ref);
+}
+
+AXIS2_EXTERN woden_binding_fault_ref_t * AXIS2_CALL
+woden_binding_fault_ref_create(const axis2_env_t *env)
+{
+    woden_binding_fault_ref_impl_t *binding_fault_ref_impl = NULL;
+    void *configurable = NULL;
+    
+    AXIS2_ENV_CHECK(env, NULL);
+    binding_fault_ref_impl = (woden_binding_fault_ref_impl_t *) create(env);
+
+    binding_fault_ref_impl->nested_configurable = woden_nested_configurable_create(env);
+
+    binding_fault_ref_impl->super = axis2_hash_make(env);
+    if(!binding_fault_ref_impl->super) 
+    {
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        return NULL;
+    }
+    axis2_hash_set(binding_fault_ref_impl->super, "WODEN_BINDING_FAULT_REF", 
+            AXIS2_HASH_KEY_STRING, 
+            &(binding_fault_ref_impl->binding_fault_ref));
+    axis2_hash_set(binding_fault_ref_impl->super, "WODEN_NESTED_CONFIGURABLE", 
+            AXIS2_HASH_KEY_STRING, 
+            binding_fault_ref_impl->nested_configurable);
+    configurable = WODEN_NESTED_CONFIGURABLE_GET_BASE_IMPL(
+            binding_fault_ref_impl->nested_configurable, env);
+    axis2_hash_set(binding_fault_ref_impl->super, "WODEN_CONFIGURABLE", 
+            AXIS2_HASH_KEY_STRING, configurable);
+ 
+    return &(binding_fault_ref_impl->binding_fault_ref);
+}
+ 
+static axis2_status_t
+woden_binding_fault_ref_free_ops(
+        void *binding_fault_ref,
+        const axis2_env_t *env)
+{
+    woden_binding_fault_ref_impl_t *binding_fault_ref_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    binding_fault_ref_impl = INTF_TO_IMPL(binding_fault_ref);
+
+    if(binding_fault_ref_impl->binding_fault_ref.base.binding_fault_ref_element.ops)
+    {
+        AXIS2_FREE(env->allocator, binding_fault_ref_impl->binding_fault_ref.base.
+                binding_fault_ref_element.ops);
+        binding_fault_ref_impl->binding_fault_ref.base.binding_fault_ref_element.ops = NULL;
+    }
+
+    if(binding_fault_ref_impl->binding_fault_ref.base.nested_configurable.ops)
+    {
+        AXIS2_FREE(env->allocator, binding_fault_ref_impl->binding_fault_ref.base.
+                nested_configurable.ops);
+        binding_fault_ref_impl->binding_fault_ref.base.nested_configurable.ops = 
+            NULL;
+    }
+    
+    if(binding_fault_ref_impl->binding_fault_ref.base.nested_configurable.base.configurable.ops)
+    {
+        AXIS2_FREE(env->allocator, binding_fault_ref_impl->binding_fault_ref.base.
+                nested_configurable.base.configurable.ops);
+        binding_fault_ref_impl->binding_fault_ref.base.nested_configurable.base.configurable.ops = 
+            NULL;
+    }
+     
+    if(binding_fault_ref_impl->binding_fault_ref.base.nested_configurable.base.
+            configurable.base.documentable.base.wsdl_obj.ops)
+    {
+        AXIS2_FREE(env->allocator, binding_fault_ref_impl->binding_fault_ref.base.
+                nested_configurable.base.configurable.base.documentable.base.wsdl_obj.ops);
+        binding_fault_ref_impl->binding_fault_ref.base.nested_configurable.base.
+            configurable.base.documentable.base.wsdl_obj.ops = NULL;
+    }
+    
+    if(binding_fault_ref_impl->binding_fault_ref.base.nested_configurable.base.
+            nested_component.wsdl_component.ops)
+    {
+        AXIS2_FREE(env->allocator, binding_fault_ref_impl->binding_fault_ref.base.
+                nested_configurable.base.nested_component.wsdl_component.ops);
+        binding_fault_ref_impl->binding_fault_ref.base.nested_configurable.base.
+            nested_component.wsdl_component.ops = NULL;
+    }
+    
+    if(binding_fault_ref_impl->binding_fault_ref.base.nested_configurable.base.
+            nested_element.ops)
+    {
+        AXIS2_FREE(env->allocator, binding_fault_ref_impl->binding_fault_ref.base.
+                nested_configurable.base.nested_element.ops);
+        binding_fault_ref_impl->binding_fault_ref.base.nested_configurable.base.
+            nested_element.ops = NULL;
+    }
+  
+    if(binding_fault_ref_impl->binding_fault_ref.base.binding_fault_ref_element.base.
+            documentable_element.ops)
+    {
+        AXIS2_FREE(env->allocator, binding_fault_ref_impl->binding_fault_ref.base.
+                binding_fault_ref_element.base.documentable_element.ops);
+        binding_fault_ref_impl->binding_fault_ref.base.binding_fault_ref_element.base.
+            documentable_element.ops = NULL;
+    }
+     
+    if(binding_fault_ref_impl->binding_fault_ref.base.nested_configurable.base.
+            configurable.base.documentable.ops)
+    {
+        AXIS2_FREE(env->allocator, binding_fault_ref_impl->binding_fault_ref.base.
+                nested_configurable.base.configurable.base.documentable.ops);
+        binding_fault_ref_impl->binding_fault_ref.base.nested_configurable.base.
+            configurable.base.documentable.ops = NULL;
+    }
+      
+
+   
+    if(binding_fault_ref_impl->binding_fault_ref.base.binding_fault_ref_element.
+            base.documentable_element.wsdl_element.base.attr_extensible.ops)
+    {
+        AXIS2_FREE(env->allocator, binding_fault_ref_impl->binding_fault_ref.
+                base.binding_fault_ref_element.base.documentable_element.
+                wsdl_element.base.attr_extensible.ops );
+        binding_fault_ref_impl->binding_fault_ref.
+                base.binding_fault_ref_element.base.documentable_element.
+                wsdl_element.base.attr_extensible.ops = NULL;
+    }
+    
+    if(binding_fault_ref_impl->binding_fault_ref.base.binding_fault_ref_element.
+            base.documentable_element.wsdl_element.base.element_extensible.ops)
+    {
+        AXIS2_FREE(env->allocator, binding_fault_ref_impl->binding_fault_ref.
+                base.binding_fault_ref_element.base.documentable_element.
+                wsdl_element.base.element_extensible.ops );
+        binding_fault_ref_impl->binding_fault_ref.
+                base.binding_fault_ref_element.base.documentable_element.
+                wsdl_element.base.element_extensible.ops = NULL;
+    }
+    return AXIS2_SUCCESS;
+}
+
+axis2_status_t AXIS2_CALL
+woden_binding_fault_ref_free(void *binding_fault_ref,
+                        const axis2_env_t *env)
+{
+    woden_binding_fault_ref_impl_t *binding_fault_ref_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    binding_fault_ref_impl = INTF_TO_IMPL(binding_fault_ref);
+
+    if(binding_fault_ref_impl->f_ref)
+    {
+        AXIS2_QNAME_FREE(binding_fault_ref_impl->f_ref, env);
+        binding_fault_ref_impl->f_ref = NULL;
+    }
+
+    if(binding_fault_ref_impl->f_direction)
+    {
+        WODEN_DIRECTION_FREE(binding_fault_ref_impl->f_direction, env);
+        binding_fault_ref_impl->f_direction = NULL;
+    }
+
+    if(binding_fault_ref_impl->f_msg_label)
+    {
+        WODEN_MSG_LABEL_FREE(binding_fault_ref_impl->
+                f_msg_label, env);
+        binding_fault_ref_impl->f_msg_label = NULL;
+    }
+
+    if(binding_fault_ref_impl->f_interface_fault_ref)
+    {
+        WODEN_INTERFACE_FAULT_REF_FREE(binding_fault_ref_impl->
+                f_interface_fault_ref, env);
+        binding_fault_ref_impl->f_interface_fault_ref = NULL;
+    }
+
+    if(binding_fault_ref_impl->super)
+    {
+        axis2_hash_free(binding_fault_ref_impl->super, env);
+        binding_fault_ref_impl->super = NULL;
+    }
+    
+    if(binding_fault_ref_impl->methods)
+    {
+        axis2_hash_free(binding_fault_ref_impl->methods, env);
+        binding_fault_ref_impl->methods = NULL;
+    }
+
+    if(binding_fault_ref_impl->nested_configurable)
+    {
+        WODEN_NESTED_CONFIGURABLE_FREE(binding_fault_ref_impl->
+                nested_configurable, env);
+        binding_fault_ref_impl->nested_configurable = NULL;
+    }
+    woden_binding_fault_ref_free_ops(binding_fault_ref, env);
+   
+    if((&(binding_fault_ref_impl->binding_fault_ref))->ops)
+    {
+        AXIS2_FREE(env->allocator, (&(binding_fault_ref_impl->binding_fault_ref))->ops);
+        (&(binding_fault_ref_impl->binding_fault_ref))->ops = NULL;
+    }
+    
+    if(binding_fault_ref_impl)
+    {
+        AXIS2_FREE(env->allocator, binding_fault_ref_impl);
+        binding_fault_ref_impl = NULL;
+    }
+    return AXIS2_SUCCESS;
+}
+
+axis2_hash_t *AXIS2_CALL
+woden_binding_fault_ref_super_objs(
+        void *binding_fault_ref,
+        const axis2_env_t *env)
+{
+    woden_binding_fault_ref_impl_t *binding_fault_ref_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    binding_fault_ref_impl = INTF_TO_IMPL(binding_fault_ref);
+
+    return binding_fault_ref_impl->super;
+}
+
+woden_obj_types_t AXIS2_CALL
+woden_binding_fault_ref_type(
+        void *binding_fault_ref,
+        const axis2_env_t *env)
+{
+    woden_binding_fault_ref_impl_t *binding_fault_ref_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    binding_fault_ref_impl = INTF_TO_IMPL(binding_fault_ref);
+
+    return binding_fault_ref_impl->obj_type;
+}
+
+woden_nested_configurable_t *AXIS2_CALL
+woden_binding_fault_ref_get_base_impl(
+        void *binding_fault_ref,
+        const axis2_env_t *env)
+{
+    woden_binding_fault_ref_impl_t *binding_fault_ref_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    binding_fault_ref_impl = INTF_TO_IMPL(binding_fault_ref);
+
+    return binding_fault_ref_impl->nested_configurable;
+}
+
+axis2_status_t AXIS2_CALL
+woden_binding_fault_ref_resolve_methods(
+        woden_binding_fault_ref_t *binding_fault_ref,
+        const axis2_env_t *env,
+        woden_binding_fault_ref_t *binding_fault_ref_impl,
+        axis2_hash_t *methods)
+{
+    woden_binding_fault_ref_impl_t *binding_fault_ref_impl_l = NULL;
+    
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, methods, AXIS2_FAILURE);
+    binding_fault_ref_impl_l = INTF_TO_IMPL(binding_fault_ref_impl);
+    
+    binding_fault_ref->ops->free = axis2_hash_get(methods, "free", 
+            AXIS2_HASH_KEY_STRING);
+    binding_fault_ref->ops->super_objs = axis2_hash_get(methods, "super_objs", 
+            AXIS2_HASH_KEY_STRING);
+    binding_fault_ref->ops->type = axis2_hash_get(methods, "type", 
+            AXIS2_HASH_KEY_STRING);
+    
+    binding_fault_ref->ops->get_interface_fault_ref = axis2_hash_get(methods, 
+            "get_interface_fault_ref", AXIS2_HASH_KEY_STRING);
+    if(!binding_fault_ref->ops->get_interface_fault_ref && binding_fault_ref_impl_l)
+            binding_fault_ref->ops->get_interface_fault_ref = 
+            binding_fault_ref_impl_l->binding_fault_ref.ops->get_interface_fault_ref;
+    
+    binding_fault_ref->ops->to_element = axis2_hash_get(methods, 
+            "to_element", AXIS2_HASH_KEY_STRING);
+    if(!binding_fault_ref->ops->to_element && binding_fault_ref_impl_l)
+            binding_fault_ref->ops->to_element = 
+            binding_fault_ref_impl_l->binding_fault_ref.ops->to_element;
+    
+    binding_fault_ref->ops->set_interface_fault_ref_element = axis2_hash_get(methods, 
+            "set_interface_fault_ref_element", AXIS2_HASH_KEY_STRING);
+    if(!binding_fault_ref->ops->set_interface_fault_ref_element && binding_fault_ref_impl_l)
+            binding_fault_ref->ops->set_interface_fault_ref_element = 
+            binding_fault_ref_impl_l->binding_fault_ref.ops->set_interface_fault_ref_element;
+    
+    binding_fault_ref->ops->set_interface_fault_ref = axis2_hash_get(methods, 
+            "set_interface_fault_ref", AXIS2_HASH_KEY_STRING);
+    if(!binding_fault_ref->ops->set_interface_fault_ref && binding_fault_ref_impl_l)
+            binding_fault_ref->ops->set_interface_fault_ref = 
+            binding_fault_ref_impl_l->binding_fault_ref.ops->set_interface_fault_ref;
+   
+    return AXIS2_SUCCESS;
+}
+
+/* ************************************************************
+ *  Binding Fault Reference  methods (the WSDL Component model)
+ * ************************************************************/
+void *AXIS2_CALL
+woden_binding_fault_ref_get_interface_fault_ref(
+        void *binding_fault_ref,
+        const axis2_env_t *env)
+{
+    woden_binding_fault_ref_impl_t *binding_fault_ref_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_BINDING_FAULT_REF_SUPER_OBJS(binding_fault_ref, env);
+    binding_fault_ref_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_BINDING_FAULT_REF", AXIS2_HASH_KEY_STRING));
+    
+    return binding_fault_ref_impl->f_interface_fault_ref;
+}
+
+void *AXIS2_CALL
+woden_binding_fault_ref_get_direction(
+        void *binding_fault_ref,
+        const axis2_env_t *env)
+{
+    woden_binding_fault_ref_impl_t *binding_fault_ref_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_BINDING_FAULT_REF_SUPER_OBJS(binding_fault_ref, env);
+    binding_fault_ref_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_BINDING_FAULT_REF", AXIS2_HASH_KEY_STRING));
+
+    return binding_fault_ref_impl->f_direction;
+}
+void *AXIS2_CALL
+woden_binding_fault_ref_to_element(
+        void *binding_fault_ref,
+        const axis2_env_t *env)
+{
+    woden_binding_fault_ref_impl_t *binding_fault_ref_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_BINDING_FAULT_REF_SUPER_OBJS(binding_fault_ref, env);
+    binding_fault_ref_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_BINDING_FAULT_REF", AXIS2_HASH_KEY_STRING));
+    
+    return &(binding_fault_ref_impl->binding_fault_ref);
+}
+
+/* ************************************************************
+ *  Binding Fault Reference Element methods (the XML Element model)
+ * ************************************************************/
+axis2_status_t AXIS2_CALL
+woden_binding_fault_ref_set_ref(
+        void *binding_fault_ref,
+        const axis2_env_t *env,
+        axis2_qname_t *fault_qname)
+{
+    woden_binding_fault_ref_impl_t *binding_fault_ref_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, fault_qname, AXIS2_FAILURE);
+    super = WODEN_BINDING_FAULT_REF_SUPER_OBJS(binding_fault_ref, env);
+    binding_fault_ref_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_BINDING_FAULT_REF", AXIS2_HASH_KEY_STRING));
+
+    if(binding_fault_ref_impl->f_ref)
+    {
+        AXIS2_QNAME_FREE(binding_fault_ref_impl->f_ref, env);
+    }
+    binding_fault_ref_impl->f_ref = AXIS2_QNAME_CLONE(fault_qname, env);
+    return AXIS2_SUCCESS;
+}
+
+axis2_qname_t *AXIS2_CALL
+woden_binding_fault_ref_get_ref(
+        void *binding_fault_ref,
+        const axis2_env_t *env)
+{
+    woden_binding_fault_ref_impl_t *binding_fault_ref_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_BINDING_FAULT_REF_SUPER_OBJS(binding_fault_ref, env);
+    binding_fault_ref_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_BINDING_FAULT_REF", AXIS2_HASH_KEY_STRING));
+
+    return binding_fault_ref_impl->f_ref;
+}
+
+void *AXIS2_CALL
+woden_binding_fault_ref_get_interface_fault_ref_element(
+        void *binding_fault_ref,
+        const axis2_env_t *env)
+{
+    woden_binding_fault_ref_impl_t *binding_fault_ref_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_BINDING_FAULT_REF_SUPER_OBJS(binding_fault_ref, env);
+    binding_fault_ref_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_BINDING_FAULT_REF", AXIS2_HASH_KEY_STRING));
+
+    return NULL;
+}
+
+axis2_status_t AXIS2_CALL
+woden_binding_fault_ref_set_msg_label(
+        void *binding_fault_ref,
+        const axis2_env_t *env,
+        void *msg_label)
+{
+    woden_binding_fault_ref_impl_t *binding_fault_ref_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, msg_label, AXIS2_FAILURE);
+    super = WODEN_BINDING_FAULT_REF_SUPER_OBJS(binding_fault_ref, env);
+    binding_fault_ref_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_BINDING_FAULT_REF", AXIS2_HASH_KEY_STRING));
+
+    if(!binding_fault_ref_impl->f_msg_label)
+    {
+        /* TODO */
+    }
+    binding_fault_ref_impl->f_msg_label = msg_label;
+
+
+    return AXIS2_SUCCESS;
+}
+
+void *AXIS2_CALL
+woden_binding_fault_ref_get_msg_label(
+        void *binding_fault_ref,
+        const axis2_env_t *env)
+{
+    woden_binding_fault_ref_impl_t *binding_fault_ref_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_BINDING_FAULT_REF_SUPER_OBJS(binding_fault_ref, env);
+    binding_fault_ref_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_BINDING_FAULT_REF", AXIS2_HASH_KEY_STRING));
+
+    return binding_fault_ref_impl->f_msg_label;
+}
+
+/* ************************************************************
+ *  Non-API implementation methods
+ * ************************************************************/
+axis2_status_t AXIS2_CALL
+woden_binding_fault_ref_set_interface_fault_ref_element(
+        void *binding_fault_ref,
+        const axis2_env_t *env,
+        void *fault_ref)
+{
+    woden_binding_fault_ref_impl_t *binding_fault_ref_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, fault_ref, AXIS2_FAILURE);
+    super = WODEN_BINDING_FAULT_REF_SUPER_OBJS(binding_fault_ref, env);
+    binding_fault_ref_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_BINDING_FAULT_REF", AXIS2_HASH_KEY_STRING));
+
+    if(!binding_fault_ref_impl->f_interface_fault_ref)
+    {
+        /* TODO */
+    }
+    binding_fault_ref_impl->f_interface_fault_ref = fault_ref;
+    
+    return AXIS2_SUCCESS;
+}
+
+axis2_status_t AXIS2_CALL
+woden_binding_fault_ref_set_interface_fault_ref(
+        void *binding_fault_ref,
+        const axis2_env_t *env,
+        void *fault_ref)
+{
+    woden_binding_fault_ref_impl_t *binding_fault_ref_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, fault_ref, AXIS2_FAILURE);
+    super = WODEN_BINDING_FAULT_REF_SUPER_OBJS(binding_fault_ref, env);
+    binding_fault_ref_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_BINDING_FAULT_REF", AXIS2_HASH_KEY_STRING));
+
+    if(!binding_fault_ref_impl->f_interface_fault_ref)
+    {
+        /* TODO */
+    }
+    binding_fault_ref_impl->f_interface_fault_ref = fault_ref;
+    
+    return AXIS2_SUCCESS;
+}
+

Added: webservices/axis2/trunk/c/woden/src/wsdl/binding_fault_ref_element.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl/binding_fault_ref_element.c?rev=419452&view=auto
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl/binding_fault_ref_element.c (added)
+++ webservices/axis2/trunk/c/woden/src/wsdl/binding_fault_ref_element.c Wed Jul  5 23:02:19 2006
@@ -0,0 +1,55 @@
+/*
+ * 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_binding_fault_ref_element.h>
+
+axis2_status_t AXIS2_CALL
+woden_binding_fault_ref_element_resolve_methods(
+        woden_binding_fault_ref_element_t *binding_fault_ref_element,
+        const axis2_env_t *env,
+        axis2_hash_t *methods)
+{
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, methods, AXIS2_FAILURE);
+    
+    binding_fault_ref_element->ops->free = axis2_hash_get(methods, "free", 
+            AXIS2_HASH_KEY_STRING);
+    binding_fault_ref_element->ops->type = axis2_hash_get(methods, "type", 
+            AXIS2_HASH_KEY_STRING);
+
+    binding_fault_ref_element->ops->set_ref = 
+            axis2_hash_get(methods, "set_ref", 
+            AXIS2_HASH_KEY_STRING);
+
+    binding_fault_ref_element->ops->get_ref = 
+            axis2_hash_get(methods, "get_ref", 
+            AXIS2_HASH_KEY_STRING);
+
+    binding_fault_ref_element->ops->get_interface_fault_ref_element = 
+            axis2_hash_get(methods, "get_interface_fault_ref_element", 
+            AXIS2_HASH_KEY_STRING);
+
+    binding_fault_ref_element->ops->set_msg_label = 
+            axis2_hash_get(methods, "set_msg_label", 
+            AXIS2_HASH_KEY_STRING);
+
+    binding_fault_ref_element->ops->get_msg_label = 
+            axis2_hash_get(methods, "get_msg_label", 
+            AXIS2_HASH_KEY_STRING);
+
+    return AXIS2_SUCCESS;    
+}
+



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


Mime
View raw message