axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject svn commit: r406600 - in /webservices/axis2/trunk/c/modules/wsdl/woden: include/woden/axis2_woden.h include/woden/wsdl20/axis2_woden_binding.h include/woden/wsdl20/axis2_woden_binding_fault.h src/wsdl20/Makefile.am src/wsdl20/binding_fault.c
Date Mon, 15 May 2006 10:17:25 GMT
Author: damitha
Date: Mon May 15 03:17:19 2006
New Revision: 406600

URL: http://svn.apache.org/viewcvs?rev=406600&view=rev
Log:
Added more files

Added:
    webservices/axis2/trunk/c/modules/wsdl/woden/include/woden/wsdl20/axis2_woden_binding_fault.h
    webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/binding_fault.c
Modified:
    webservices/axis2/trunk/c/modules/wsdl/woden/include/woden/axis2_woden.h
    webservices/axis2/trunk/c/modules/wsdl/woden/include/woden/wsdl20/axis2_woden_binding.h
    webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/Makefile.am

Modified: webservices/axis2/trunk/c/modules/wsdl/woden/include/woden/axis2_woden.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/wsdl/woden/include/woden/axis2_woden.h?rev=406600&r1=406599&r2=406600&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/woden/include/woden/axis2_woden.h (original)
+++ webservices/axis2/trunk/c/modules/wsdl/woden/include/woden/axis2_woden.h Mon May 15 03:17:19
2006
@@ -69,7 +69,8 @@
         AXIS2_WODEN_INTERFACE_FAULT_REF,
         AXIS2_WODEN_INTERFACE_MSG_REF,
         AXIS2_WODEN_INTERFACE_OP,
-        AXIS2_WODEN_BINDING
+        AXIS2_WODEN_BINDING,
+        AXIS2_WODEN_BINDING_FAULT
     } axis2_woden_obj_types_t;
 
 /** @} */

Modified: webservices/axis2/trunk/c/modules/wsdl/woden/include/woden/wsdl20/axis2_woden_binding.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/wsdl/woden/include/woden/wsdl20/axis2_woden_binding.h?rev=406600&r1=406599&r2=406600&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/woden/include/woden/wsdl20/axis2_woden_binding.h
(original)
+++ webservices/axis2/trunk/c/modules/wsdl/woden/include/woden/wsdl20/axis2_woden_binding.h
Mon May 15 03:17:19 2006
@@ -20,10 +20,8 @@
 /**
  * @file axis2_woden_binding.h
  * @brief Axis2 Binding Interface
- * Represents the Binding component from the WSDL 2.0 Component model.
- * This component provides a read-only, abstract view of the WSDL 
- * interface, including any interface information defined within
- * imported or included WSDL documents. 
+ * This class represents the Binding component from the WSDL 2.0 Component Model 
+ * and the WSDL <binding> element.
  * 
  */
 

Added: webservices/axis2/trunk/c/modules/wsdl/woden/include/woden/wsdl20/axis2_woden_binding_fault.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/wsdl/woden/include/woden/wsdl20/axis2_woden_binding_fault.h?rev=406600&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/woden/include/woden/wsdl20/axis2_woden_binding_fault.h
(added)
+++ webservices/axis2/trunk/c/modules/wsdl/woden/include/woden/wsdl20/axis2_woden_binding_fault.h
Mon May 15 03:17:19 2006
@@ -0,0 +1,166 @@
+/*
+ * 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.
+ */
+
+#ifndef AXIS2_WODEN_BINDING_FAULT_H
+#define AXIS2_WODEN_BINDING_FAULT_H
+
+/**
+ * @file axis2_woden_binding_fault.h
+ * @brief Axis2 Binding Fault Binding Fault
+ * This class represents the Binding Fault component from the WSDL 2.0 Component Model 
+ * and the <fault> child element of the WSDL <binding> element.
+ * 
+ */
+
+#include <woden/axis2_woden.h>
+#include <woden/wsdl20/xml/axis2_woden_binding_fault_element.h>
+#include <woden/wsdl20/axis2_woden_nested_configurable.h>
+#include <axis2_qname.h>
+
+/** @defgroup axis2_woden_binding_fault Binding Fault
+  * @ingroup axis2_wsdl
+  * @{
+  */
+
+typedef union axis2_woden_binding_fault_base axis2_woden_binding_fault_base_t;
+typedef struct axis2_woden_binding_fault axis2_woden_binding_fault_t;
+typedef struct axis2_woden_binding_fault_ops axis2_woden_binding_fault_ops_t;
+
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+struct axis2_woden_binding_fault_ops
+{
+	/** 
+     * Deallocate memory
+     * @return status code
+     */
+    axis2_status_t (AXIS2_CALL *
+    free) (void *binding_fault,
+            axis2_env_t **env);
+
+    axis2_status_t (AXIS2_CALL *
+    to_binding_fault_free) (void *binding_fault,
+            axis2_env_t **env);
+    
+    axis2_hash_t *(AXIS2_CALL *
+    super_objs) (void *binding_fault,
+            axis2_env_t **env);
+
+    axis2_woden_obj_types_t (AXIS2_CALL *
+    type) (void *binding_fault,
+            axis2_env_t **env);
+    /**
+     * @return the base implementation class
+     */
+    struct axis2_woden_nested_configurable *(AXIS2_CALL *
+    get_base_impl) (
+            void *binding_fault,
+            axis2_env_t **env);
+
+    void *(AXIS2_CALL *
+    get_interface_fault) (
+            void *binding_fault,
+            axis2_env_t **env);
+
+    void *(AXIS2_CALL *
+    to_element)  (
+            void *binding_fault,
+            axis2_env_t **env);
+
+    axis2_status_t (AXIS2_CALL *
+    set_interface_fault_element) (
+            void *binding_fault,
+            axis2_env_t **env,
+            void *in_fault);
+};
+
+union axis2_woden_binding_fault_base
+{
+    axis2_woden_nested_configurable_t nested_configurable;
+    axis2_woden_binding_fault_element_t binding_fault_element;
+};
+
+struct axis2_woden_binding_fault
+{
+    axis2_woden_binding_fault_base_t base;
+    axis2_woden_binding_fault_ops_t *ops;
+};
+
+AXIS2_DECLARE(axis2_woden_binding_fault_t *)
+axis2_woden_binding_fault_create(
+        axis2_env_t **env);
+
+
+/***************************Woden C Internal Methods***************************/
+AXIS2_DECLARE(axis2_woden_binding_fault_t *)
+axis2_woden_binding_fault_to_binding_fault_element(
+        void *binding_fault,
+        axis2_env_t **env);
+
+AXIS2_DECLARE(axis2_woden_binding_fault_t *)
+axis2_woden_binding_fault_to_nested_configurable(
+        void *binding_fault,
+        axis2_env_t **env);
+
+AXIS2_DECLARE(axis2_woden_binding_fault_t *)
+axis2_woden_binding_fault_to_configurable(
+        void *binding_fault,
+        axis2_env_t **env);
+
+AXIS2_DECLARE(axis2_status_t)
+axis2_woden_binding_fault_resolve_methods(
+        axis2_woden_binding_fault_t *binding_fault,
+        axis2_env_t **env,
+        axis2_woden_binding_fault_t *binding_fault_impl,
+        axis2_hash_t *methods);
+/************************End of Woden C Internal Methods***********************/
+
+#define AXIS2_WODEN_BINDING_FAULT_FREE(binding_fault, env) \
+		(((axis2_woden_binding_fault_t *) binding_fault)->ops->free(binding_fault, env))
+
+#define AXIS2_WODEN_BINDING_FAULT_TO_BINDING_FAULT_FREE(binding_fault, env) \
+		(((axis2_woden_binding_fault_t *) binding_fault)->ops->to_binding_fault_free(binding_fault,
env))
+
+#define AXIS2_WODEN_BINDING_FAULT_SUPER_OBJS(binding_fault, env) \
+		(((axis2_woden_binding_fault_t *) binding_fault)->ops->super_objs(binding_fault,
env))
+
+#define AXIS2_WODEN_BINDING_FAULT_TYPE(binding_fault, env) \
+		(((axis2_woden_binding_fault_t *) binding_fault)->ops->type(binding_fault, env))
+
+#define AXIS2_WODEN_BINDING_FAULT_GET_BASE_IMPL(binding_fault, env) \
+		(((axis2_woden_binding_fault_t *) binding_fault)->ops->get_base_impl(binding_fault,
env))
+
+#define AXIS2_WODEN_BINDING_FAULT_GET_INTERFACE_FAULT(binding_fault, env) \
+		(((axis2_woden_binding_fault_t *) binding_fault)->\
+         get_interface_fault(binding_fault, env))
+
+#define AXIS2_WODEN_BINDING_FAULT_TO_ELEMENT(binding_fault, env) \
+		(((axis2_woden_binding_fault_t *) binding_fault)->ops->\
+         to_element(binding_fault, env))
+
+#define AXIS2_WODEN_BINDING_FAULT_SET_INTERFACE_FAULT_ELEMENT(binding_fault, env, in_fault)
\
+		(((axis2_woden_binding_fault_t *) binding_fault)->\
+         set_interface_fault_elment(binding_fault, env, in_fault))
+
+/** @} */
+#ifdef __cplusplus
+}
+#endif
+#endif /* AXIS2_WODEN_BINDING_FAULT_H */

Modified: webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/Makefile.am
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/Makefile.am?rev=406600&r1=406599&r2=406600&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/Makefile.am (original)
+++ webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/Makefile.am Mon May 15 03:17:19
2006
@@ -20,7 +20,8 @@
 							interface_fault_ref.c \
 							interface_msg_ref.c \
 							interface_op.c \
-							binding.c
+							binding.c \
+							binding_fault.c
 
 INCLUDES = -I$(top_builddir)/include \
             -I$(AXIS2C_HOME)/include

Added: webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/binding_fault.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/binding_fault.c?rev=406600&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/binding_fault.c (added)
+++ webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/binding_fault.c Mon May 15 03:17:19
2006
@@ -0,0 +1,635 @@
+/*
+ * 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_binding_fault.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>
+#include <xml_schema/axis2_xml_schema_element.h>
+
+typedef struct axis2_woden_binding_fault_impl axis2_woden_binding_fault_impl_t;
+
+/** 
+ * @brief Binding Fault Struct Impl
+ *	Axis2 Binding Fault  
+ */ 
+struct axis2_woden_binding_fault_impl
+{
+    axis2_woden_binding_fault_t binding_fault;
+    axis2_woden_nested_configurable_t *nested_configurable;
+    axis2_woden_obj_types_t obj_type;
+    axis2_hash_t *super;
+    axis2_hash_t *methods;
+    axis2_qname_t *f_ref;
+    void *f_interface_fault;
+};
+
+#define INTF_TO_IMPL(binding_fault) ((axis2_woden_binding_fault_impl_t *) binding_fault)
+
+axis2_status_t AXIS2_CALL 
+axis2_woden_binding_fault_free(
+        void *binding_fault,
+        axis2_env_t **env);
+
+axis2_hash_t *AXIS2_CALL 
+axis2_woden_binding_fault_super_objs(
+        void *binding_fault,
+        axis2_env_t **env);
+
+axis2_woden_obj_types_t AXIS2_CALL 
+axis2_woden_binding_fault_type(
+        void *binding_fault,
+        axis2_env_t **env);
+
+axis2_woden_nested_configurable_t *AXIS2_CALL
+axis2_woden_binding_fault_get_base_impl(
+        void *binding_fault,
+        axis2_env_t **env);
+/* ************************************************************
+ *  Binding Fault interface methods (the WSDL Component model)
+ * ************************************************************/
+void *AXIS2_CALL
+axis2_woden_binding_fault_get_interface_fault(
+        void *binding_fault,
+        axis2_env_t **env);
+
+void *AXIS2_CALL
+axis2_woden_binding_fault_to_element(
+        void *binding_fault,
+        axis2_env_t **env);
+
+/* ************************************************************
+ *  Binding Fault Element interface methods (the XML Element model)
+ * ************************************************************/
+axis2_status_t AXIS2_CALL
+axis2_woden_binding_fault_set_ref(
+        void *binding_fault,
+        axis2_env_t **env,
+        axis2_qname_t *qname);
+
+axis2_qname_t *AXIS2_CALL
+axis2_woden_binding_fault_get_ref(
+        void *binding_fault,
+        axis2_env_t **env);
+
+void *AXIS2_CALL
+axis2_woden_binding_fault_get_interface_fault_element(
+        void *binding_fault,
+        axis2_env_t **env);
+
+/* ************************************************************
+ *  Non-API implementation methods
+ * ************************************************************/
+
+axis2_status_t AXIS2_CALL
+axis2_woden_binding_fault_set_interface_fault_element(
+        void *binding_fault,
+        axis2_env_t **env,
+        void *in_fault);
+
+
+static axis2_woden_binding_fault_t *
+create(axis2_env_t **env);
+
+/************************Woden C Internal Methods******************************/
+AXIS2_DECLARE(axis2_woden_binding_fault_t *)
+axis2_woden_binding_fault_to_binding_fault_element(
+        void *binding_fault,
+        axis2_env_t **env)
+{
+    axis2_woden_binding_fault_impl_t *binding_fault_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    if(!binding_fault)
+    {
+        binding_fault_impl = (axis2_woden_binding_fault_impl_t *) create(env);
+    }
+    else
+        binding_fault_impl = (axis2_woden_binding_fault_impl_t *) binding_fault;
+
+    binding_fault_impl->binding_fault.base.binding_fault_element.ops = 
+        AXIS2_MALLOC((*env)->allocator, 
+                sizeof(axis2_woden_binding_fault_element_ops_t));
+    axis2_woden_binding_fault_element_resolve_methods(&(binding_fault_impl->binding_fault.base.
+            binding_fault_element), env, binding_fault_impl->methods);
+    return binding_fault;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_binding_fault_to_binding_fault_element_free(
+        void *binding_fault,
+        axis2_env_t **env)
+{
+    axis2_woden_binding_fault_impl_t *binding_fault_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    binding_fault_impl = INTF_TO_IMPL(binding_fault);
+
+    if(binding_fault_impl->binding_fault.base.binding_fault_element.ops)
+    {
+        AXIS2_FREE((*env)->allocator, binding_fault_impl->binding_fault.base.
+                binding_fault_element.ops);
+        binding_fault_impl->binding_fault.base.binding_fault_element.ops = NULL;
+    }
+    return AXIS2_SUCCESS;
+}
+
+AXIS2_DECLARE(axis2_woden_binding_fault_t *)
+axis2_woden_binding_fault_to_nested_configurable(
+        void *binding_fault,
+        axis2_env_t **env)
+{
+    axis2_woden_binding_fault_impl_t *binding_fault_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    if(!binding_fault)
+    {
+        binding_fault_impl = (axis2_woden_binding_fault_impl_t *) create(env);
+    }
+    else
+        binding_fault_impl = (axis2_woden_binding_fault_impl_t *) binding_fault;
+
+    binding_fault_impl->binding_fault.base.nested_configurable.ops = 
+        AXIS2_MALLOC((*env)->allocator, 
+                sizeof(axis2_woden_nested_configurable_ops_t));
+    axis2_woden_nested_configurable_resolve_methods(&(binding_fault_impl->binding_fault.base.
+            nested_configurable), env, binding_fault_impl->nested_configurable, 
+            binding_fault_impl->methods);
+    return binding_fault;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_binding_fault_to_nested_configurable_free(
+        void *binding_fault,
+        axis2_env_t **env)
+{
+    axis2_woden_binding_fault_impl_t *binding_fault_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    binding_fault_impl = INTF_TO_IMPL(binding_fault);
+
+    if(binding_fault_impl->binding_fault.base.nested_configurable.ops)
+    {
+        AXIS2_FREE((*env)->allocator, binding_fault_impl->binding_fault.base.
+                nested_configurable.ops);
+        binding_fault_impl->binding_fault.base.nested_configurable.ops = NULL;
+    }
+    return AXIS2_SUCCESS;
+}
+
+
+AXIS2_DECLARE(axis2_woden_binding_fault_t *)
+axis2_woden_binding_fault_to_configurable(
+        void *binding_fault,
+        axis2_env_t **env)
+{
+    axis2_woden_binding_fault_impl_t *binding_fault_impl = NULL;
+    void *configurable = NULL;
+    
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    if(!binding_fault)
+    {
+        binding_fault_impl = (axis2_woden_binding_fault_impl_t *) create(env);
+    }
+    else
+        binding_fault_impl = (axis2_woden_binding_fault_impl_t *) binding_fault;
+
+    binding_fault_impl->binding_fault.base.nested_configurable.base.configurable.ops =

+        AXIS2_MALLOC((*env)->allocator, 
+                sizeof(axis2_woden_configurable_ops_t));
+    configurable = AXIS2_WODEN_NESTED_CONFIGURABLE_GET_BASE_IMPL(
+            binding_fault_impl->nested_configurable, env);
+    axis2_woden_configurable_resolve_methods(&(binding_fault_impl->binding_fault.base.
+            nested_configurable.base.configurable), env, configurable, binding_fault_impl->methods);
+    return binding_fault;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_binding_fault_to_configurable_free(
+        void *binding_fault,
+        axis2_env_t **env)
+{
+    axis2_woden_binding_fault_impl_t *binding_fault_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    binding_fault_impl = INTF_TO_IMPL(binding_fault);
+
+    if(binding_fault_impl->binding_fault.base.nested_configurable.base.configurable.ops)
+    {
+        AXIS2_FREE((*env)->allocator, binding_fault_impl->binding_fault.base.
+                nested_configurable.base.configurable.ops);
+        binding_fault_impl->binding_fault.base.nested_configurable.base.configurable.ops
= NULL;
+    }
+    return AXIS2_SUCCESS;
+}
+
+/************************End of Woden C Internal Methods***********************/
+static axis2_woden_binding_fault_t *
+create(axis2_env_t **env)
+{
+    axis2_woden_binding_fault_impl_t *binding_fault_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    binding_fault_impl = AXIS2_MALLOC((*env)->allocator, 
+                    sizeof(axis2_woden_binding_fault_impl_t));
+
+    binding_fault_impl->obj_type= AXIS2_WODEN_BINDING_FAULT;
+    binding_fault_impl->super = NULL;
+    binding_fault_impl->methods = NULL;
+    binding_fault_impl->f_ref = NULL;
+    binding_fault_impl->f_interface_fault = NULL;
+    
+    binding_fault_impl->binding_fault.base.binding_fault_element.ops = NULL;
+    binding_fault_impl->binding_fault.base.nested_configurable.ops = NULL;
+    binding_fault_impl->binding_fault.base.nested_configurable.base.configurable.ops =

+            NULL;
+    
+    binding_fault_impl->binding_fault.ops = AXIS2_MALLOC((*env)->allocator, 
+            sizeof(axis2_woden_binding_fault_ops_t));
+
+    binding_fault_impl->binding_fault.ops->free = axis2_woden_binding_fault_free;
+    binding_fault_impl->binding_fault.ops->super_objs = axis2_woden_binding_fault_super_objs;
+    binding_fault_impl->binding_fault.ops->type = axis2_woden_binding_fault_type;
+    binding_fault_impl->binding_fault.ops->get_base_impl = axis2_woden_binding_fault_get_base_impl;
+    
+    binding_fault_impl->binding_fault.ops->get_interface_fault = 
+        axis2_woden_binding_fault_get_interface_fault;
+    binding_fault_impl->binding_fault.ops->to_element = 
+        axis2_woden_binding_fault_to_element;
+    binding_fault_impl->binding_fault.ops->set_interface_fault_element = 
+        axis2_woden_binding_fault_set_interface_fault_element;
+ 
+    binding_fault_impl->methods = axis2_hash_make(env);
+    if(!binding_fault_impl->methods) 
+    {
+        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        return NULL;
+    }
+    axis2_hash_set(binding_fault_impl->methods, "free", AXIS2_HASH_KEY_STRING, 
+            axis2_woden_binding_fault_free);
+    axis2_hash_set(binding_fault_impl->methods, "to_binding_fault_element_free", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_binding_fault_to_binding_fault_element_free);
+    axis2_hash_set(binding_fault_impl->methods, "to_nested_configurable_free", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_binding_fault_to_nested_configurable_free);
+    axis2_hash_set(binding_fault_impl->methods, "to_configurable_free", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_binding_fault_to_configurable_free);
+    axis2_hash_set(binding_fault_impl->methods, "super_objs", 
+            AXIS2_HASH_KEY_STRING, axis2_woden_binding_fault_super_objs);
+    axis2_hash_set(binding_fault_impl->methods, "type", 
+            AXIS2_HASH_KEY_STRING, axis2_woden_binding_fault_type);
+
+    axis2_hash_set(binding_fault_impl->methods, "get_interface_fault", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_binding_fault_get_interface_fault);
+    axis2_hash_set(binding_fault_impl->methods, "to_element", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_binding_fault_to_element);
+    axis2_hash_set(binding_fault_impl->methods, "set_ref", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_binding_fault_set_ref);
+    axis2_hash_set(binding_fault_impl->methods, "get_ref", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_binding_fault_get_ref);
+    axis2_hash_set(binding_fault_impl->methods, "get_interface_fault_element", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_binding_fault_get_interface_fault_element);
+    axis2_hash_set(binding_fault_impl->methods, "set_interface_fault_element", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_binding_fault_set_interface_fault_element);
+
+    return &(binding_fault_impl->binding_fault);
+}
+
+AXIS2_DECLARE(axis2_woden_binding_fault_t *)
+axis2_woden_binding_fault_create(axis2_env_t **env)
+{
+    axis2_woden_binding_fault_impl_t *binding_fault_impl = NULL;
+    void *configurable = NULL;
+    
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    binding_fault_impl = (axis2_woden_binding_fault_impl_t *) create(env);
+
+    binding_fault_impl->nested_configurable = axis2_woden_nested_configurable_create(env);
+
+    binding_fault_impl->super = axis2_hash_make(env);
+    if(!binding_fault_impl->super) 
+    {
+        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        return NULL;
+    }
+    axis2_hash_set(binding_fault_impl->super, "AXIS2_WODEN_BINDING_FAULT", 
+            AXIS2_HASH_KEY_STRING, 
+            &(binding_fault_impl->binding_fault));
+    axis2_hash_set(binding_fault_impl->super, "AXIS2_WODEN_NESTED_CONFIGURABLE", 
+            AXIS2_HASH_KEY_STRING, 
+            binding_fault_impl->nested_configurable);
+    configurable = AXIS2_WODEN_NESTED_CONFIGURABLE_GET_BASE_IMPL(
+            binding_fault_impl->nested_configurable, env);
+    axis2_hash_set(binding_fault_impl->super, "AXIS2_WODEN_CONFIGURABLE", 
+            AXIS2_HASH_KEY_STRING, configurable);
+ 
+    return &(binding_fault_impl->binding_fault);
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_binding_fault_free(void *binding_fault,
+                        axis2_env_t **env)
+{
+    axis2_woden_binding_fault_impl_t *binding_fault_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    binding_fault_impl = INTF_TO_IMPL(binding_fault);
+
+    if(binding_fault_impl->f_ref)
+    {
+        AXIS2_QNAME_FREE(binding_fault_impl->f_ref, env);
+        binding_fault_impl->f_ref = NULL;
+    }
+
+    if(binding_fault_impl->f_interface_fault)
+    {
+        AXIS2_WODEN_INTERFACE_FAULT_FREE(binding_fault_impl->
+                f_interface_fault, env);
+        binding_fault_impl->f_interface_fault = NULL;
+    }
+
+    if(binding_fault_impl->super)
+    {
+        axis2_hash_free(binding_fault_impl->super, env);
+        binding_fault_impl->super = NULL;
+    }
+    
+    if(binding_fault_impl->methods)
+    {
+        axis2_hash_free(binding_fault_impl->methods, env);
+        binding_fault_impl->methods = NULL;
+    }
+
+    if(binding_fault_impl->nested_configurable)
+    {
+        AXIS2_WODEN_NESTED_CONFIGURABLE_FREE(binding_fault_impl->
+                nested_configurable, env);
+        binding_fault_impl->nested_configurable = NULL;
+    }
+
+    if(binding_fault_impl->binding_fault.base.binding_fault_element.ops)
+    {
+        AXIS2_FREE((*env)->allocator, binding_fault_impl->binding_fault.base.
+                binding_fault_element.ops);
+        binding_fault_impl->binding_fault.base.binding_fault_element.ops = NULL;
+    }
+
+    if(binding_fault_impl->binding_fault.base.nested_configurable.ops)
+    {
+        AXIS2_FREE((*env)->allocator, binding_fault_impl->binding_fault.base.
+                nested_configurable.ops);
+        binding_fault_impl->binding_fault.base.nested_configurable.ops = 
+            NULL;
+    }
+    
+    if(binding_fault_impl->binding_fault.base.nested_configurable.base.configurable.ops)
+    {
+        AXIS2_FREE((*env)->allocator, binding_fault_impl->binding_fault.base.
+                nested_configurable.base.configurable.ops);
+        binding_fault_impl->binding_fault.base.nested_configurable.base.configurable.ops
= 
+            NULL;
+    }
+    
+    if((&(binding_fault_impl->binding_fault))->ops)
+    {
+        AXIS2_FREE((*env)->allocator, (&(binding_fault_impl->binding_fault))->ops);
+        (&(binding_fault_impl->binding_fault))->ops = NULL;
+    }
+    
+    if(binding_fault_impl)
+    {
+        AXIS2_FREE((*env)->allocator, binding_fault_impl);
+        binding_fault_impl = NULL;
+    }
+    return AXIS2_SUCCESS;
+}
+
+axis2_hash_t *AXIS2_CALL
+axis2_woden_binding_fault_super_objs(
+        void *binding_fault,
+        axis2_env_t **env)
+{
+    axis2_woden_binding_fault_impl_t *binding_fault_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    binding_fault_impl = INTF_TO_IMPL(binding_fault);
+
+    return binding_fault_impl->super;
+}
+
+axis2_woden_obj_types_t AXIS2_CALL
+axis2_woden_binding_fault_type(
+        void *binding_fault,
+        axis2_env_t **env)
+{
+    axis2_woden_binding_fault_impl_t *binding_fault_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    binding_fault_impl = INTF_TO_IMPL(binding_fault);
+
+    return binding_fault_impl->obj_type;
+}
+
+axis2_woden_nested_configurable_t *AXIS2_CALL
+axis2_woden_binding_fault_get_base_impl(
+        void *binding_fault,
+        axis2_env_t **env)
+{
+    axis2_woden_binding_fault_impl_t *binding_fault_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    binding_fault_impl = INTF_TO_IMPL(binding_fault);
+
+    return binding_fault_impl->nested_configurable;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_binding_fault_resolve_methods(
+        axis2_woden_binding_fault_t *binding_fault,
+        axis2_env_t **env,
+        axis2_woden_binding_fault_t *binding_fault_impl,
+        axis2_hash_t *methods)
+{
+    axis2_woden_binding_fault_impl_t *binding_fault_impl_l = NULL;
+    
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, methods, AXIS2_FAILURE);
+    binding_fault_impl_l = INTF_TO_IMPL(binding_fault_impl);
+    
+    binding_fault->ops->free = axis2_hash_get(methods, "free", 
+            AXIS2_HASH_KEY_STRING);
+    binding_fault->ops->to_binding_fault_free = 
+            axis2_hash_get(methods, "to_binding_fault_free", 
+            AXIS2_HASH_KEY_STRING);
+    binding_fault->ops->super_objs = axis2_hash_get(methods, "super_objs", 
+            AXIS2_HASH_KEY_STRING);
+    binding_fault->ops->type = axis2_hash_get(methods, "type", 
+            AXIS2_HASH_KEY_STRING);
+    
+    binding_fault->ops->get_interface_fault = axis2_hash_get(methods, 
+            "get_interface_fault", AXIS2_HASH_KEY_STRING);
+    if(!binding_fault->ops->get_interface_fault && binding_fault_impl_l)
+            binding_fault->ops->get_interface_fault = 
+            binding_fault_impl_l->binding_fault.ops->get_interface_fault;
+    
+    binding_fault->ops->to_element = axis2_hash_get(methods, 
+            "to_element", AXIS2_HASH_KEY_STRING);
+    if(!binding_fault->ops->to_element && binding_fault_impl_l)
+            binding_fault->ops->to_element = 
+            binding_fault_impl_l->binding_fault.ops->to_element;
+    
+    binding_fault->ops->set_interface_fault_element = axis2_hash_get(methods, 
+            "set_interface_fault_element", AXIS2_HASH_KEY_STRING);
+    if(!binding_fault->ops->set_interface_fault_element && binding_fault_impl_l)
+            binding_fault->ops->set_interface_fault_element = 
+            binding_fault_impl_l->binding_fault.ops->set_interface_fault_element;
+   
+    return AXIS2_SUCCESS;
+}
+
+/* ************************************************************
+ *  Binding Fault interface methods (the WSDL Component model)
+ * ************************************************************/
+void *AXIS2_CALL
+axis2_woden_binding_fault_get_interface_fault(
+        void *binding_fault,
+        axis2_env_t **env)
+{
+    axis2_woden_binding_fault_impl_t *binding_fault_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = AXIS2_WODEN_BINDING_FAULT_SUPER_OBJS(binding_fault, env);
+    binding_fault_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_BINDING_FAULT", AXIS2_HASH_KEY_STRING));
+
+    return binding_fault_impl->f_interface_fault;
+}
+
+void *AXIS2_CALL
+axis2_woden_binding_fault_to_element(
+        void *binding_fault,
+        axis2_env_t **env)
+{
+    axis2_woden_binding_fault_impl_t *binding_fault_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = AXIS2_WODEN_BINDING_FAULT_SUPER_OBJS(binding_fault, env);
+    binding_fault_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_BINDING_FAULT", AXIS2_HASH_KEY_STRING));
+    
+    return &(binding_fault_impl->binding_fault);
+}
+
+/* ************************************************************
+ *  Binding Fault Element interface methods (the XML Element model)
+ * ************************************************************/
+axis2_status_t AXIS2_CALL
+axis2_woden_binding_fault_set_ref(
+        void *binding_fault,
+        axis2_env_t **env,
+        axis2_qname_t *qname)
+{
+    axis2_woden_binding_fault_impl_t *binding_fault_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, qname, AXIS2_FAILURE);
+    super = AXIS2_WODEN_BINDING_FAULT_SUPER_OBJS(binding_fault, env);
+    binding_fault_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_BINDING_FAULT", AXIS2_HASH_KEY_STRING));
+
+    if(binding_fault_impl->f_ref)
+    {
+        AXIS2_QNAME_FREE(binding_fault_impl->f_ref, env);
+    }
+    binding_fault_impl->f_ref = AXIS2_QNAME_CLONE(qname, env);
+    return AXIS2_SUCCESS;
+}
+
+axis2_qname_t *AXIS2_CALL
+axis2_woden_binding_fault_get_ref(
+        void *binding_fault,
+        axis2_env_t **env)
+{
+    axis2_woden_binding_fault_impl_t *binding_fault_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = AXIS2_WODEN_BINDING_FAULT_SUPER_OBJS(binding_fault, env);
+    binding_fault_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_BINDING_FAULT", AXIS2_HASH_KEY_STRING));
+    
+    return binding_fault_impl->f_ref;
+}
+
+void *AXIS2_CALL
+axis2_woden_binding_fault_get_interface_fault_element(
+        void *binding_fault,
+        axis2_env_t **env)
+{
+    axis2_woden_binding_fault_impl_t *binding_fault_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = AXIS2_WODEN_BINDING_FAULT_SUPER_OBJS(binding_fault, env);
+    binding_fault_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_BINDING_FAULT", AXIS2_HASH_KEY_STRING));
+
+    return binding_fault_impl->f_interface_fault;
+}
+
+/* ************************************************************
+ *  Non-API implementation methods
+ * ************************************************************/
+
+axis2_status_t AXIS2_CALL
+axis2_woden_binding_fault_set_interface_fault_element(
+        void *binding_fault,
+        axis2_env_t **env,
+        void *in_fault)
+{
+    axis2_woden_binding_fault_impl_t *binding_fault_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, in_fault, AXIS2_FAILURE);
+    super = AXIS2_WODEN_BINDING_FAULT_SUPER_OBJS(binding_fault, env);
+    binding_fault_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_BINDING_FAULT", AXIS2_HASH_KEY_STRING));
+
+    if(!binding_fault_impl->f_interface_fault)
+    {
+        /* TODO */
+    }
+    binding_fault_impl->f_interface_fault = in_fault;;
+
+
+    return AXIS2_SUCCESS;
+}
+
+



Mime
View raw message