You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by da...@apache.org on 2006/05/17 08:47:39 UTC
svn commit: r407177 [2/2] - in
/webservices/axis2/trunk/c/modules/wsdl/woden: include/woden/wsdl20/
include/woden/wsdl20/xml/ src/schema/ src/wsdl20/ src/wsdl20/xml/
Added: webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/binding_op.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/binding_op.c?rev=407177&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/binding_op.c (added)
+++ webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/binding_op.c Tue May 16 23:47:38 2006
@@ -0,0 +1,906 @@
+/*
+ * 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_op.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_op_impl axis2_woden_binding_op_impl_t;
+
+/**
+ * @brief Binding Operation Struct Impl
+ * Axis2 Binding Operation
+ */
+struct axis2_woden_binding_op_impl
+{
+ axis2_woden_binding_op_t binding_op;
+ 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;
+ axis2_array_list_t *f_msg_refs;
+ axis2_array_list_t *f_fault_refs;
+ void *f_interface_op;
+};
+
+#define INTF_TO_IMPL(binding_op) ((axis2_woden_binding_op_impl_t *) binding_op)
+
+axis2_status_t AXIS2_CALL
+axis2_woden_binding_op_free(
+ void *binding_op,
+ axis2_env_t **env);
+
+axis2_hash_t *AXIS2_CALL
+axis2_woden_binding_op_super_objs(
+ void *binding_op,
+ axis2_env_t **env);
+
+axis2_woden_obj_types_t AXIS2_CALL
+axis2_woden_binding_op_type(
+ void *binding_op,
+ axis2_env_t **env);
+
+axis2_woden_nested_configurable_t *AXIS2_CALL
+axis2_woden_binding_op_get_base_impl(
+ void *binding_op,
+ axis2_env_t **env);
+/* ************************************************************
+ * Binding Operation methods (the WSDL Component model)
+ * ************************************************************/
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_binding_op_get_binding_msg_refs(
+ void *binding_op,
+ axis2_env_t **env);
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_binding_op_get_binding_fault_refs(
+ void *binding_op,
+ axis2_env_t **env);
+
+void *AXIS2_CALL
+axis2_woden_binding_op_to_element(
+ void *binding_op,
+ axis2_env_t **env);
+
+void *AXIS2_CALL
+axis2_woden_binding_op_get_interface_op(
+ void *binding_op,
+ axis2_env_t **env);
+/* ************************************************************
+ * Binding Operation Element methods (the XML Element model)
+ * ************************************************************/
+
+axis2_status_t AXIS2_CALL
+axis2_woden_binding_op_set_ref(
+ void *binding_op,
+ axis2_env_t **env,
+ axis2_qname_t *qname);
+
+axis2_qname_t *AXIS2_CALL
+axis2_woden_binding_op_get_ref(
+ void *binding_op,
+ axis2_env_t **env);
+
+void *AXIS2_CALL
+axis2_woden_binding_op_get_interface_op_element(
+ void *binding_op,
+ axis2_env_t **env);
+
+axis2_status_t AXIS2_CALL
+axis2_woden_binding_op_add_binding_msg_ref_element(
+ void *binding_op,
+ axis2_env_t **env,
+ void *msg_ref);
+
+axis2_status_t AXIS2_CALL
+axis2_woden_binding_op_remove_binding_msg_ref_element(
+ void *binding_op,
+ axis2_env_t **env,
+ void *msg_ref);
+
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_binding_op_get_binding_msg_ref_elements(
+ void *binding_op,
+ axis2_env_t **env);
+
+axis2_status_t AXIS2_CALL
+axis2_woden_binding_op_add_binding_fault_ref_element(
+ void *binding_op,
+ axis2_env_t **env,
+ void *fault_ref);
+
+axis2_status_t AXIS2_CALL
+axis2_woden_binding_op_remove_binding_fault_ref_element(
+ void *binding_op,
+ axis2_env_t **env,
+ void *fault_ref);
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_binding_op_get_binding_fault_ref_elements(
+ void *binding_op,
+ axis2_env_t **env);
+
+/* ************************************************************
+ * Non-API implementation methods
+ * ************************************************************/
+
+axis2_status_t AXIS2_CALL
+axis2_woden_binding_op_set_interface_op_element(
+ void *binding_op,
+ axis2_env_t **env,
+ void *int_op);
+
+static axis2_woden_binding_op_t *
+create(axis2_env_t **env);
+
+/************************Woden C Internal Methods******************************/
+AXIS2_DECLARE(axis2_woden_binding_op_t *)
+axis2_woden_binding_op_to_binding_op_element(
+ void *binding_op,
+ axis2_env_t **env)
+{
+ axis2_woden_binding_op_impl_t *binding_op_impl = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ if(!binding_op)
+ {
+ binding_op_impl = (axis2_woden_binding_op_impl_t *) create(env);
+ }
+ else
+ binding_op_impl = (axis2_woden_binding_op_impl_t *) binding_op;
+
+ binding_op_impl->binding_op.base.binding_op_element.ops =
+ AXIS2_MALLOC((*env)->allocator,
+ sizeof(axis2_woden_binding_op_element_ops_t));
+ axis2_woden_binding_op_element_resolve_methods(&(binding_op_impl->binding_op.base.
+ binding_op_element), env, binding_op_impl->methods);
+ return binding_op;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_binding_op_to_binding_op_element_free(
+ void *binding_op,
+ axis2_env_t **env)
+{
+ axis2_woden_binding_op_impl_t *binding_op_impl = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ binding_op_impl = INTF_TO_IMPL(binding_op);
+
+ if(binding_op_impl->binding_op.base.binding_op_element.ops)
+ {
+ AXIS2_FREE((*env)->allocator, binding_op_impl->binding_op.base.
+ binding_op_element.ops);
+ binding_op_impl->binding_op.base.binding_op_element.ops = NULL;
+ }
+ return AXIS2_SUCCESS;
+}
+
+AXIS2_DECLARE(axis2_woden_binding_op_t *)
+axis2_woden_binding_op_to_nested_configurable(
+ void *binding_op,
+ axis2_env_t **env)
+{
+ axis2_woden_binding_op_impl_t *binding_op_impl = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ if(!binding_op)
+ {
+ binding_op_impl = (axis2_woden_binding_op_impl_t *) create(env);
+ }
+ else
+ binding_op_impl = (axis2_woden_binding_op_impl_t *) binding_op;
+
+ binding_op_impl->binding_op.base.nested_configurable.ops =
+ AXIS2_MALLOC((*env)->allocator,
+ sizeof(axis2_woden_nested_configurable_ops_t));
+ axis2_woden_nested_configurable_resolve_methods(&(binding_op_impl->binding_op.base.
+ nested_configurable), env, binding_op_impl->nested_configurable,
+ binding_op_impl->methods);
+ return binding_op;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_binding_op_to_nested_configurable_free(
+ void *binding_op,
+ axis2_env_t **env)
+{
+ axis2_woden_binding_op_impl_t *binding_op_impl = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ binding_op_impl = INTF_TO_IMPL(binding_op);
+
+ if(binding_op_impl->binding_op.base.nested_configurable.ops)
+ {
+ AXIS2_FREE((*env)->allocator, binding_op_impl->binding_op.base.
+ nested_configurable.ops);
+ binding_op_impl->binding_op.base.nested_configurable.ops = NULL;
+ }
+ return AXIS2_SUCCESS;
+}
+
+
+AXIS2_DECLARE(axis2_woden_binding_op_t *)
+axis2_woden_binding_op_to_configurable(
+ void *binding_op,
+ axis2_env_t **env)
+{
+ axis2_woden_binding_op_impl_t *binding_op_impl = NULL;
+ void *configurable = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ if(!binding_op)
+ {
+ binding_op_impl = (axis2_woden_binding_op_impl_t *) create(env);
+ }
+ else
+ binding_op_impl = (axis2_woden_binding_op_impl_t *) binding_op;
+
+ binding_op_impl->binding_op.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_op_impl->nested_configurable, env);
+ axis2_woden_configurable_resolve_methods(&(binding_op_impl->binding_op.base.
+ nested_configurable.base.configurable), env, configurable, binding_op_impl->methods);
+ return binding_op;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_binding_op_to_configurable_free(
+ void *binding_op,
+ axis2_env_t **env)
+{
+ axis2_woden_binding_op_impl_t *binding_op_impl = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ binding_op_impl = INTF_TO_IMPL(binding_op);
+
+ if(binding_op_impl->binding_op.base.nested_configurable.base.configurable.ops)
+ {
+ AXIS2_FREE((*env)->allocator, binding_op_impl->binding_op.base.
+ nested_configurable.base.configurable.ops);
+ binding_op_impl->binding_op.base.nested_configurable.base.configurable.ops = NULL;
+ }
+ return AXIS2_SUCCESS;
+}
+
+/************************End of Woden C Internal Methods***********************/
+static axis2_woden_binding_op_t *
+create(axis2_env_t **env)
+{
+ axis2_woden_binding_op_impl_t *binding_op_impl = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ binding_op_impl = AXIS2_MALLOC((*env)->allocator,
+ sizeof(axis2_woden_binding_op_impl_t));
+
+ binding_op_impl->obj_type= AXIS2_WODEN_BINDING_OP;
+ binding_op_impl->super = NULL;
+ binding_op_impl->methods = NULL;
+ binding_op_impl->f_ref = NULL;
+ binding_op_impl->f_msg_refs = NULL;
+ binding_op_impl->f_fault_refs = NULL;
+ binding_op_impl->f_interface_op = NULL;
+
+ binding_op_impl->binding_op.base.binding_op_element.ops = NULL;
+ binding_op_impl->binding_op.base.nested_configurable.ops = NULL;
+ binding_op_impl->binding_op.base.nested_configurable.base.configurable.ops =
+ NULL;
+
+ binding_op_impl->binding_op.ops = AXIS2_MALLOC((*env)->allocator,
+ sizeof(axis2_woden_binding_op_ops_t));
+
+ binding_op_impl->binding_op.ops->free = axis2_woden_binding_op_free;
+ binding_op_impl->binding_op.ops->super_objs = axis2_woden_binding_op_super_objs;
+ binding_op_impl->binding_op.ops->type = axis2_woden_binding_op_type;
+ binding_op_impl->binding_op.ops->get_base_impl = axis2_woden_binding_op_get_base_impl;
+
+ binding_op_impl->binding_op.ops->get_binding_msg_refs =
+ axis2_woden_binding_op_get_binding_msg_refs;
+ binding_op_impl->binding_op.ops->get_binding_fault_refs =
+ axis2_woden_binding_op_get_binding_fault_refs;
+ binding_op_impl->binding_op.ops->to_element =
+ axis2_woden_binding_op_to_element;
+ binding_op_impl->binding_op.ops->set_interface_op_element =
+ axis2_woden_binding_op_set_interface_op_element;
+
+ binding_op_impl->methods = axis2_hash_make(env);
+ if(!binding_op_impl->methods)
+ {
+ AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+ return NULL;
+ }
+ axis2_hash_set(binding_op_impl->methods, "free", AXIS2_HASH_KEY_STRING,
+ axis2_woden_binding_op_free);
+ axis2_hash_set(binding_op_impl->methods, "to_binding_op_element_free",
+ AXIS2_HASH_KEY_STRING,
+ axis2_woden_binding_op_to_binding_op_element_free);
+ axis2_hash_set(binding_op_impl->methods, "to_nested_configurable_free",
+ AXIS2_HASH_KEY_STRING,
+ axis2_woden_binding_op_to_nested_configurable_free);
+ axis2_hash_set(binding_op_impl->methods, "to_configurable_free",
+ AXIS2_HASH_KEY_STRING,
+ axis2_woden_binding_op_to_configurable_free);
+ axis2_hash_set(binding_op_impl->methods, "super_objs",
+ AXIS2_HASH_KEY_STRING, axis2_woden_binding_op_super_objs);
+ axis2_hash_set(binding_op_impl->methods, "type",
+ AXIS2_HASH_KEY_STRING, axis2_woden_binding_op_type);
+
+ axis2_hash_set(binding_op_impl->methods, "get_interface_op",
+ AXIS2_HASH_KEY_STRING,
+ axis2_woden_binding_op_get_interface_op);
+ axis2_hash_set(binding_op_impl->methods, "get_binding_msg_refs",
+ AXIS2_HASH_KEY_STRING,
+ axis2_woden_binding_op_get_binding_msg_refs);
+ axis2_hash_set(binding_op_impl->methods, "get_binding_fault_refs",
+ AXIS2_HASH_KEY_STRING,
+ axis2_woden_binding_op_get_binding_fault_refs);
+ axis2_hash_set(binding_op_impl->methods, "to_element",
+ AXIS2_HASH_KEY_STRING,
+ axis2_woden_binding_op_to_element);
+ axis2_hash_set(binding_op_impl->methods, "set_ref",
+ AXIS2_HASH_KEY_STRING,
+ axis2_woden_binding_op_set_ref);
+ axis2_hash_set(binding_op_impl->methods, "get_ref",
+ AXIS2_HASH_KEY_STRING,
+ axis2_woden_binding_op_get_ref);
+ axis2_hash_set(binding_op_impl->methods, "get_interface_op_element",
+ AXIS2_HASH_KEY_STRING,
+ axis2_woden_binding_op_get_interface_op_element);
+ axis2_hash_set(binding_op_impl->methods, "add_binding_msg_ref_element",
+ AXIS2_HASH_KEY_STRING,
+ axis2_woden_binding_op_add_binding_msg_ref_element);
+ axis2_hash_set(binding_op_impl->methods, "remove_binding_msg_ref_element",
+ AXIS2_HASH_KEY_STRING,
+ axis2_woden_binding_op_remove_binding_msg_ref_element);
+ axis2_hash_set(binding_op_impl->methods, "get_binding_msg_ref_elements",
+ AXIS2_HASH_KEY_STRING,
+ axis2_woden_binding_op_get_binding_msg_ref_elements);
+ axis2_hash_set(binding_op_impl->methods, "add_binding_fault_ref_element",
+ AXIS2_HASH_KEY_STRING,
+ axis2_woden_binding_op_add_binding_fault_ref_element);
+ axis2_hash_set(binding_op_impl->methods, "remove_binding_fault_ref_element",
+ AXIS2_HASH_KEY_STRING,
+ axis2_woden_binding_op_remove_binding_fault_ref_element);
+ axis2_hash_set(binding_op_impl->methods, "get_binding_fault_ref_elements",
+ AXIS2_HASH_KEY_STRING,
+ axis2_woden_binding_op_get_binding_fault_ref_elements);
+ axis2_hash_set(binding_op_impl->methods, "set_interface_op_element",
+ AXIS2_HASH_KEY_STRING,
+ axis2_woden_binding_op_set_interface_op_element);
+
+ return &(binding_op_impl->binding_op);
+}
+
+AXIS2_DECLARE(axis2_woden_binding_op_t *)
+axis2_woden_binding_op_create(axis2_env_t **env)
+{
+ axis2_woden_binding_op_impl_t *binding_op_impl = NULL;
+ void *configurable = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ binding_op_impl = (axis2_woden_binding_op_impl_t *) create(env);
+
+ binding_op_impl->nested_configurable = axis2_woden_nested_configurable_create(env);
+
+ binding_op_impl->super = axis2_hash_make(env);
+ if(!binding_op_impl->super)
+ {
+ AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+ return NULL;
+ }
+ axis2_hash_set(binding_op_impl->super, "AXIS2_WODEN_BINDING_OP",
+ AXIS2_HASH_KEY_STRING,
+ &(binding_op_impl->binding_op));
+ axis2_hash_set(binding_op_impl->super, "AXIS2_WODEN_NESTED_CONFIGURABLE",
+ AXIS2_HASH_KEY_STRING,
+ binding_op_impl->nested_configurable);
+ configurable = AXIS2_WODEN_NESTED_CONFIGURABLE_GET_BASE_IMPL(
+ binding_op_impl->nested_configurable, env);
+ axis2_hash_set(binding_op_impl->super, "AXIS2_WODEN_CONFIGURABLE",
+ AXIS2_HASH_KEY_STRING, configurable);
+
+ return &(binding_op_impl->binding_op);
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_binding_op_free(void *binding_op,
+ axis2_env_t **env)
+{
+ axis2_woden_binding_op_impl_t *binding_op_impl = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ binding_op_impl = INTF_TO_IMPL(binding_op);
+
+ if(binding_op_impl->f_ref)
+ {
+ AXIS2_QNAME_FREE(binding_op_impl->f_ref, env);
+ binding_op_impl->f_ref = NULL;
+ }
+
+ if(binding_op_impl->f_msg_refs)
+ {
+ AXIS2_ARRAY_LIST_FREE(binding_op_impl->f_msg_refs, env);
+ binding_op_impl->f_msg_refs = NULL;
+ }
+
+ if(binding_op_impl->f_fault_refs)
+ {
+ AXIS2_ARRAY_LIST_FREE(binding_op_impl->f_fault_refs, env);
+ binding_op_impl->f_fault_refs = NULL;
+ }
+
+ if(binding_op_impl->f_interface_op)
+ {
+ AXIS2_INTERFACE_OP_FREE(binding_op_impl->f_interface_op, env);
+ binding_op_impl->f_interface_op = NULL;
+ }
+
+ if(binding_op_impl->super)
+ {
+ axis2_hash_free(binding_op_impl->super, env);
+ binding_op_impl->super = NULL;
+ }
+
+ if(binding_op_impl->methods)
+ {
+ axis2_hash_free(binding_op_impl->methods, env);
+ binding_op_impl->methods = NULL;
+ }
+
+ if(binding_op_impl->nested_configurable)
+ {
+ AXIS2_WODEN_NESTED_CONFIGURABLE_FREE(binding_op_impl->
+ nested_configurable, env);
+ binding_op_impl->nested_configurable = NULL;
+ }
+
+ if(binding_op_impl->binding_op.base.binding_op_element.ops)
+ {
+ AXIS2_FREE((*env)->allocator, binding_op_impl->binding_op.base.
+ binding_op_element.ops);
+ binding_op_impl->binding_op.base.binding_op_element.ops = NULL;
+ }
+
+ if(binding_op_impl->binding_op.base.nested_configurable.ops)
+ {
+ AXIS2_FREE((*env)->allocator, binding_op_impl->binding_op.base.
+ nested_configurable.ops);
+ binding_op_impl->binding_op.base.nested_configurable.ops =
+ NULL;
+ }
+
+ if(binding_op_impl->binding_op.base.nested_configurable.base.configurable.ops)
+ {
+ AXIS2_FREE((*env)->allocator, binding_op_impl->binding_op.base.
+ nested_configurable.base.configurable.ops);
+ binding_op_impl->binding_op.base.nested_configurable.base.configurable.ops =
+ NULL;
+ }
+
+ if((&(binding_op_impl->binding_op))->ops)
+ {
+ AXIS2_FREE((*env)->allocator, (&(binding_op_impl->binding_op))->ops);
+ (&(binding_op_impl->binding_op))->ops = NULL;
+ }
+
+ if(binding_op_impl)
+ {
+ AXIS2_FREE((*env)->allocator, binding_op_impl);
+ binding_op_impl = NULL;
+ }
+ return AXIS2_SUCCESS;
+}
+
+axis2_hash_t *AXIS2_CALL
+axis2_woden_binding_op_super_objs(
+ void *binding_op,
+ axis2_env_t **env)
+{
+ axis2_woden_binding_op_impl_t *binding_op_impl = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ binding_op_impl = INTF_TO_IMPL(binding_op);
+
+ return binding_op_impl->super;
+}
+
+axis2_woden_obj_types_t AXIS2_CALL
+axis2_woden_binding_op_type(
+ void *binding_op,
+ axis2_env_t **env)
+{
+ axis2_woden_binding_op_impl_t *binding_op_impl = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ binding_op_impl = INTF_TO_IMPL(binding_op);
+
+ return binding_op_impl->obj_type;
+}
+
+axis2_woden_nested_configurable_t *AXIS2_CALL
+axis2_woden_binding_op_get_base_impl(
+ void *binding_op,
+ axis2_env_t **env)
+{
+ axis2_woden_binding_op_impl_t *binding_op_impl = NULL;
+
+ AXIS2_ENV_CHECK(env, NULL);
+ binding_op_impl = INTF_TO_IMPL(binding_op);
+
+ return binding_op_impl->nested_configurable;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_binding_op_resolve_methods(
+ axis2_woden_binding_op_t *binding_op,
+ axis2_env_t **env,
+ axis2_woden_binding_op_t *binding_op_impl,
+ axis2_hash_t *methods)
+{
+ axis2_woden_binding_op_impl_t *binding_op_impl_l = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ AXIS2_PARAM_CHECK((*env)->error, methods, AXIS2_FAILURE);
+ binding_op_impl_l = INTF_TO_IMPL(binding_op_impl);
+
+ binding_op->ops->free = axis2_hash_get(methods, "free",
+ AXIS2_HASH_KEY_STRING);
+ binding_op->ops->to_binding_op_free =
+ axis2_hash_get(methods, "to_binding_op_free",
+ AXIS2_HASH_KEY_STRING);
+ binding_op->ops->super_objs = axis2_hash_get(methods, "super_objs",
+ AXIS2_HASH_KEY_STRING);
+ binding_op->ops->type = axis2_hash_get(methods, "type",
+ AXIS2_HASH_KEY_STRING);
+
+ binding_op->ops->get_interface_op = axis2_hash_get(methods,
+ "get_interface_op", AXIS2_HASH_KEY_STRING);
+ if(!binding_op->ops->get_interface_op && binding_op_impl_l)
+ binding_op->ops->get_interface_op =
+ binding_op_impl_l->binding_op.ops->get_interface_op;
+
+ binding_op->ops->get_binding_msg_refs = axis2_hash_get(methods,
+ "get_binding_msg_refs", AXIS2_HASH_KEY_STRING);
+ if(!binding_op->ops->get_binding_msg_refs && binding_op_impl_l)
+ binding_op->ops->get_binding_msg_refs =
+ binding_op_impl_l->binding_op.ops->get_binding_msg_refs;
+
+ binding_op->ops->get_binding_fault_refs = axis2_hash_get(methods,
+ "get_binding_fault_refs", AXIS2_HASH_KEY_STRING);
+ if(!binding_op->ops->get_binding_fault_refs && binding_op_impl_l)
+ binding_op->ops->get_binding_fault_refs =
+ binding_op_impl_l->binding_op.ops->get_binding_fault_refs;
+
+
+ binding_op->ops->to_element = axis2_hash_get(methods,
+ "to_element", AXIS2_HASH_KEY_STRING);
+ if(!binding_op->ops->to_element && binding_op_impl_l)
+ binding_op->ops->to_element =
+ binding_op_impl_l->binding_op.ops->to_element;
+
+ binding_op->ops->set_interface_op_element = axis2_hash_get(methods,
+ "set_interface_op_element", AXIS2_HASH_KEY_STRING);
+ if(!binding_op->ops->set_interface_op_element && binding_op_impl_l)
+ binding_op->ops->set_interface_op_element =
+ binding_op_impl_l->binding_op.ops->set_interface_op_element;
+
+
+ return AXIS2_SUCCESS;
+}
+
+/* ************************************************************
+ * Binding Operation methods (the WSDL Component model)
+ * ************************************************************/
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_binding_op_get_binding_msg_refs(
+ void *binding_op,
+ axis2_env_t **env)
+{
+ axis2_woden_binding_op_impl_t *binding_op_impl = NULL;
+ axis2_hash_t *super = NULL;
+
+ AXIS2_ENV_CHECK(env, NULL);
+ super = AXIS2_WODEN_BINDING_OP_SUPER_OBJS(binding_op, env);
+ binding_op_impl = INTF_TO_IMPL(axis2_hash_get(super,
+ "AXIS2_WODEN_BINDING_OP", AXIS2_HASH_KEY_STRING));
+
+ return binding_op_impl->f_msg_refs;
+}
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_binding_op_get_binding_fault_refs(
+ void *binding_op,
+ axis2_env_t **env)
+{
+ axis2_woden_binding_op_impl_t *binding_op_impl = NULL;
+ axis2_hash_t *super = NULL;
+
+ AXIS2_ENV_CHECK(env, NULL);
+ super = AXIS2_WODEN_BINDING_OP_SUPER_OBJS(binding_op, env);
+ binding_op_impl = INTF_TO_IMPL(axis2_hash_get(super,
+ "AXIS2_WODEN_BINDING_OP", AXIS2_HASH_KEY_STRING));
+
+ return binding_op_impl->f_fault_refs;
+}
+
+void *AXIS2_CALL
+axis2_woden_binding_op_to_element(
+ void *binding_op,
+ axis2_env_t **env)
+{
+ axis2_woden_binding_op_impl_t *binding_op_impl = NULL;
+ axis2_hash_t *super = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ super = AXIS2_WODEN_BINDING_OP_SUPER_OBJS(binding_op, env);
+ binding_op_impl = INTF_TO_IMPL(axis2_hash_get(super,
+ "AXIS2_WODEN_BINDING_OP", AXIS2_HASH_KEY_STRING));
+
+ return &(binding_op_impl->binding_op);
+}
+
+void *AXIS2_CALL
+axis2_woden_binding_op_get_interface_op(
+ void *binding_op,
+ axis2_env_t **env)
+{
+ axis2_woden_binding_op_impl_t *binding_op_impl = NULL;
+ axis2_hash_t *super = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ super = AXIS2_WODEN_BINDING_OP_SUPER_OBJS(binding_op, env);
+ binding_op_impl = INTF_TO_IMPL(axis2_hash_get(super,
+ "AXIS2_WODEN_BINDING_OP", AXIS2_HASH_KEY_STRING));
+
+ return binding_op_impl->f_interface_op;
+}
+/* ************************************************************
+ * Binding Operation Element methods (the XML Element model)
+ * ************************************************************/
+
+axis2_status_t AXIS2_CALL
+axis2_woden_binding_op_set_ref(
+ void *binding_op,
+ axis2_env_t **env,
+ axis2_qname_t *qname)
+{
+ axis2_woden_binding_op_impl_t *binding_op_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_OP_SUPER_OBJS(binding_op, env);
+ binding_op_impl = INTF_TO_IMPL(axis2_hash_get(super,
+ "AXIS2_WODEN_BINDING_OP", AXIS2_HASH_KEY_STRING));
+
+ if(!binding_op_impl->f_ref)
+ {
+ AXIS2_QNAME_FREE(binding_op_impl->f_ref, env);
+ binding_op_impl->f_ref = NULL;
+ }
+ binding_op_impl->f_ref = AXIS2_QNAME_CLONE(qname, env);
+
+ return AXIS2_SUCCESS;
+}
+
+axis2_qname_t *AXIS2_CALL
+axis2_woden_binding_op_get_ref(
+ void *binding_op,
+ axis2_env_t **env)
+{
+ axis2_woden_binding_op_impl_t *binding_op_impl = NULL;
+ axis2_hash_t *super = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ super = AXIS2_WODEN_BINDING_OP_SUPER_OBJS(binding_op, env);
+ binding_op_impl = INTF_TO_IMPL(axis2_hash_get(super,
+ "AXIS2_WODEN_BINDING_OP", AXIS2_HASH_KEY_STRING));
+
+ return binding_op_impl->f_ref;
+}
+
+void *AXIS2_CALL
+axis2_woden_binding_op_get_interface_op_element(
+ void *binding_op,
+ axis2_env_t **env)
+{
+ axis2_woden_binding_op_impl_t *binding_op_impl = NULL;
+ axis2_hash_t *super = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ super = AXIS2_WODEN_BINDING_OP_SUPER_OBJS(binding_op, env);
+ binding_op_impl = INTF_TO_IMPL(axis2_hash_get(super,
+ "AXIS2_WODEN_BINDING_OP", AXIS2_HASH_KEY_STRING));
+
+ return binding_op_impl->f_interface_op;
+}
+
+
+axis2_status_t AXIS2_CALL
+axis2_woden_binding_op_add_binding_msg_ref_element(
+ void *binding_op,
+ axis2_env_t **env,
+ void *msg_ref)
+{
+ axis2_woden_binding_op_impl_t *binding_op_impl = NULL;
+ axis2_hash_t *super = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ AXIS2_PARAM_CHECK((*env)->error, msg_ref, AXIS2_FAILURE);
+ super = AXIS2_WODEN_BINDING_OP_SUPER_OBJS(binding_op, env);
+ binding_op_impl = INTF_TO_IMPL(axis2_hash_get(super,
+ "AXIS2_WODEN_BINDING_OP", AXIS2_HASH_KEY_STRING));
+
+ if(!binding_op_impl->f_msg_refs)
+ {
+ binding_op_impl->f_msg_refs = axis2_array_list_create(env, 0);
+ if(!binding_op_impl->f_msg_refs)
+ {
+ AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+ return AXIS2_FAILURE;
+ }
+ }
+ AXIS2_ARRAY_LIST_ADD(binding_op_impl->f_msg_refs, env, msg_ref);
+
+ return AXIS2_SUCCESS;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_binding_op_remove_binding_msg_ref_element(
+ void *binding_op,
+ axis2_env_t **env,
+ void *msg_ref)
+{
+ axis2_woden_binding_op_impl_t *binding_op_impl = NULL;
+ axis2_hash_t *super = NULL;
+ int index = 0;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ AXIS2_PARAM_CHECK((*env)->error, msg_ref, AXIS2_FAILURE);
+ super = AXIS2_WODEN_BINDING_OP_SUPER_OBJS(binding_op, env);
+ binding_op_impl = INTF_TO_IMPL(axis2_hash_get(super,
+ "AXIS2_WODEN_BINDING_OP", AXIS2_HASH_KEY_STRING));
+
+ index = AXIS2_ARRAY_LIST_INDEX_OF(binding_op_impl->f_msg_refs, env, msg_ref);
+ AXIS2_ARRAY_LIST_REMOVE(binding_op_impl->f_msg_refs, env, index);
+ return AXIS2_SUCCESS;
+}
+
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_binding_op_get_binding_msg_ref_elements(
+ void *binding_op,
+ axis2_env_t **env)
+{
+ axis2_woden_binding_op_impl_t *binding_op_impl = NULL;
+ axis2_hash_t *super = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ super = AXIS2_WODEN_BINDING_OP_SUPER_OBJS(binding_op, env);
+ binding_op_impl = INTF_TO_IMPL(axis2_hash_get(super,
+ "AXIS2_WODEN_BINDING_OP", AXIS2_HASH_KEY_STRING));
+
+ return binding_op_impl->f_msg_refs;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_binding_op_add_binding_fault_ref_element(
+ void *binding_op,
+ axis2_env_t **env,
+ void *fault_ref)
+{
+ axis2_woden_binding_op_impl_t *binding_op_impl = NULL;
+ axis2_hash_t *super = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ AXIS2_PARAM_CHECK((*env)->error, fault_ref, AXIS2_FAILURE);
+ super = AXIS2_WODEN_BINDING_OP_SUPER_OBJS(binding_op, env);
+ binding_op_impl = INTF_TO_IMPL(axis2_hash_get(super,
+ "AXIS2_WODEN_BINDING_OP", AXIS2_HASH_KEY_STRING));
+
+ if(!binding_op_impl->f_fault_refs)
+ {
+ binding_op_impl->f_fault_refs = axis2_array_list_create(env, 0);
+ if(!binding_op_impl->f_fault_refs)
+ {
+ AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+ return AXIS2_FAILURE;
+ }
+ }
+ AXIS2_ARRAY_LIST_ADD(binding_op_impl->f_fault_refs, env, fault_ref);
+
+ return AXIS2_SUCCESS;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_binding_op_remove_binding_fault_ref_element(
+ void *binding_op,
+ axis2_env_t **env,
+ void *fault_ref)
+{
+ axis2_woden_binding_op_impl_t *binding_op_impl = NULL;
+ axis2_hash_t *super = NULL;
+ int index = 0;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ AXIS2_PARAM_CHECK((*env)->error, fault_ref, AXIS2_FAILURE);
+ super = AXIS2_WODEN_BINDING_OP_SUPER_OBJS(binding_op, env);
+ binding_op_impl = INTF_TO_IMPL(axis2_hash_get(super,
+ "AXIS2_WODEN_BINDING_OP", AXIS2_HASH_KEY_STRING));
+
+ index = AXIS2_ARRAY_LIST_INDEX_OF(binding_op_impl->f_fault_refs, env, fault_ref);
+ AXIS2_ARRAY_LIST_REMOVE(binding_op_impl->f_fault_refs, env, index);
+ return AXIS2_SUCCESS;
+}
+
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_binding_op_get_binding_fault_ref_elements(
+ void *binding_op,
+ axis2_env_t **env)
+{
+ axis2_woden_binding_op_impl_t *binding_op_impl = NULL;
+ axis2_hash_t *super = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ super = AXIS2_WODEN_BINDING_OP_SUPER_OBJS(binding_op, env);
+ binding_op_impl = INTF_TO_IMPL(axis2_hash_get(super,
+ "AXIS2_WODEN_BINDING_OP", AXIS2_HASH_KEY_STRING));
+
+ return binding_op_impl->f_fault_refs;
+}
+
+
+
+/* ************************************************************
+ * Non-API implementation methods
+ * ************************************************************/
+
+axis2_status_t AXIS2_CALL
+axis2_woden_binding_op_set_interface_op_element(
+ void *binding_op,
+ axis2_env_t **env,
+ void *int_op)
+{
+ axis2_woden_binding_op_impl_t *binding_op_impl = NULL;
+ axis2_hash_t *super = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ AXIS2_PARAM_CHECK((*env)->error, int_op, AXIS2_FAILURE);
+ super = AXIS2_WODEN_BINDING_OP_SUPER_OBJS(binding_op, env);
+ binding_op_impl = INTF_TO_IMPL(axis2_hash_get(super,
+ "AXIS2_WODEN_BINDING_OP", AXIS2_HASH_KEY_STRING));
+
+ if(!binding_op_impl->f_interface_op)
+ {
+ /* TODO */
+ }
+ binding_op_impl->f_interface_op = int_op;
+
+
+ return AXIS2_SUCCESS;
+}
+
Modified: webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/xml/Makefile.am
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/xml/Makefile.am?rev=407177&r1=407176&r2=407177&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/xml/Makefile.am (original)
+++ webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/xml/Makefile.am Tue May 16 23:47:38 2006
@@ -20,7 +20,9 @@
binding_op_element.c \
include_element.c \
import_element.c \
- fault_ref_element.c
+ fault_ref_element.c \
+ desc_element.c
INCLUDES = -I$(top_builddir)/include \
- -I$(AXIS2C_HOME)/include
+ -I$(AXIS2C_HOME)/include \
+ -I$(XML_SCHEMA)/include
Added: webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/xml/binding_op_element.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/xml/binding_op_element.c?rev=407177&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/xml/binding_op_element.c (added)
+++ webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/xml/binding_op_element.c Tue May 16 23:47:38 2006
@@ -0,0 +1,74 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <woden/wsdl20/xml/axis2_woden_binding_op_element.h>
+
+axis2_status_t AXIS2_CALL
+axis2_woden_binding_op_element_resolve_methods(
+ axis2_woden_binding_op_element_t *binding_op_element,
+ axis2_env_t **env,
+ axis2_hash_t *methods)
+{
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ AXIS2_PARAM_CHECK((*env)->error, methods, AXIS2_FAILURE);
+
+ binding_op_element->ops->free = axis2_hash_get(methods, "free",
+ AXIS2_HASH_KEY_STRING);
+ binding_op_element->ops->to_binding_op_element_free =
+ axis2_hash_get(methods, "to_binding_op_element_free",
+ AXIS2_HASH_KEY_STRING);
+ binding_op_element->ops->type = axis2_hash_get(methods, "type",
+ AXIS2_HASH_KEY_STRING);
+
+ binding_op_element->ops->set_ref =
+ axis2_hash_get(methods, "set_ref",
+ AXIS2_HASH_KEY_STRING);
+
+ binding_op_element->ops->get_ref =
+ axis2_hash_get(methods, "get_ref",
+ AXIS2_HASH_KEY_STRING);
+
+ binding_op_element->ops->get_interface_op_element =
+ axis2_hash_get(methods, "get_interface_op_element",
+ AXIS2_HASH_KEY_STRING);
+
+ binding_op_element->ops->add_binding_msg_ref_element =
+ axis2_hash_get(methods, "add_binding_msg_ref_element",
+ AXIS2_HASH_KEY_STRING);
+
+ binding_op_element->ops->remove_binding_msg_ref_element =
+ axis2_hash_get(methods, "remove_binding_msg_ref_element",
+ AXIS2_HASH_KEY_STRING);
+
+ binding_op_element->ops->get_binding_msg_ref_elements =
+ axis2_hash_get(methods, "get_binding_msg_ref_elements",
+ AXIS2_HASH_KEY_STRING);
+
+ binding_op_element->ops->add_binding_fault_ref_element =
+ axis2_hash_get(methods, "add_binding_fault_ref_element",
+ AXIS2_HASH_KEY_STRING);
+
+ binding_op_element->ops->remove_binding_fault_ref_element =
+ axis2_hash_get(methods, "remove_binding_fault_ref_element",
+ AXIS2_HASH_KEY_STRING);
+
+ binding_op_element->ops->get_binding_fault_ref_elements =
+ axis2_hash_get(methods, "get_binding_fault_ref_elements",
+ AXIS2_HASH_KEY_STRING);
+
+ return AXIS2_SUCCESS;
+}
+
Added: webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/xml/desc_element.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/xml/desc_element.c?rev=407177&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/xml/desc_element.c (added)
+++ webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/xml/desc_element.c Tue May 16 23:47:38 2006
@@ -0,0 +1,120 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <woden/wsdl20/xml/axis2_woden_desc_element.h>
+
+axis2_status_t AXIS2_CALL
+axis2_woden_desc_element_resolve_methods(
+ axis2_woden_desc_element_t *desc_element,
+ axis2_env_t **env,
+ axis2_hash_t *methods)
+{
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ AXIS2_PARAM_CHECK((*env)->error, methods, AXIS2_FAILURE);
+
+ desc_element->ops->free = axis2_hash_get(methods, "free",
+ AXIS2_HASH_KEY_STRING);
+ desc_element->ops->to_desc_element_free = axis2_hash_get(methods,
+ "to_desc_element_free", AXIS2_HASH_KEY_STRING);
+ desc_element->ops->type = axis2_hash_get(methods, "type",
+ AXIS2_HASH_KEY_STRING);
+
+ desc_element->ops->set_document_base_uri = axis2_hash_get(methods,
+ "set_document_base_uri", AXIS2_HASH_KEY_STRING);
+ desc_element->ops->get_document_base_uri = axis2_hash_get(methods,
+ "get_document_base_uri", AXIS2_HASH_KEY_STRING);
+ desc_element->ops->set_target_namespace = axis2_hash_get(methods,
+ "set_target_namespace", AXIS2_HASH_KEY_STRING);
+ desc_element->ops->get_target_namespace = axis2_hash_get(methods,
+ "get_target_namespace", AXIS2_HASH_KEY_STRING);
+ desc_element->ops->add_namespace = axis2_hash_get(methods,
+ "add_namespace", AXIS2_HASH_KEY_STRING);
+ desc_element->ops->remove_namespace = axis2_hash_get(methods,
+ "remove_namespace", AXIS2_HASH_KEY_STRING);
+ desc_element->ops->get_namespace = axis2_hash_get(methods,
+ "get_namespace", AXIS2_HASH_KEY_STRING);
+ desc_element->ops->get_namespaces = axis2_hash_get(methods,
+ "get_namespaces", AXIS2_HASH_KEY_STRING);
+ desc_element->ops->create_documentation_element = axis2_hash_get(methods,
+ "create_documentation_element", AXIS2_HASH_KEY_STRING);
+ desc_element->ops->create_import_element = axis2_hash_get(methods,
+ "create_import_element", AXIS2_HASH_KEY_STRING);
+ desc_element->ops->create_include_element = axis2_hash_get(methods,
+ "create_include_element", AXIS2_HASH_KEY_STRING);
+ desc_element->ops->create_types_element = axis2_hash_get(methods,
+ "create_types_element", AXIS2_HASH_KEY_STRING);
+ desc_element->ops->create_interface_element = axis2_hash_get(methods,
+ "create_interface_element", AXIS2_HASH_KEY_STRING);
+ desc_element->ops->create_interface_fault_element = axis2_hash_get(methods,
+ "create_interface_fault_element", AXIS2_HASH_KEY_STRING);
+ desc_element->ops->create_interface_op_element = axis2_hash_get(methods,
+ "create_interface_op_element", AXIS2_HASH_KEY_STRING);
+ desc_element->ops->create_interface_fault_ref_element = axis2_hash_get(methods,
+ "create_interface_fault_ref_element", AXIS2_HASH_KEY_STRING);
+ desc_element->ops->create_interface_msg_ref_element = axis2_hash_get(methods,
+ "create_interface_msg_ref_element", AXIS2_HASH_KEY_STRING);
+ desc_element->ops->create_binding_element = axis2_hash_get(methods,
+ "create_binding_element", AXIS2_HASH_KEY_STRING);
+ desc_element->ops->create_binding_fault_element = axis2_hash_get(methods,
+ "create_binding_fault_element", AXIS2_HASH_KEY_STRING);
+ desc_element->ops->create_binding_op_element = axis2_hash_get(methods,
+ "create_binding_op_element", AXIS2_HASH_KEY_STRING);
+ desc_element->ops->create_binding_fault_ref_element = axis2_hash_get(methods,
+ "create_binding_fault_ref_element", AXIS2_HASH_KEY_STRING);
+ desc_element->ops->create_binding_msg_ref_element = axis2_hash_get(methods,
+ "create_binding_msg_ref_element", AXIS2_HASH_KEY_STRING);
+ desc_element->ops->create_feature_element = axis2_hash_get(methods,
+ "create_feature_element", AXIS2_HASH_KEY_STRING);
+ desc_element->ops->create_svc_element = axis2_hash_get(methods,
+ "create_svc_element", AXIS2_HASH_KEY_STRING);
+ desc_element->ops->create_endpoint_element = axis2_hash_get(methods,
+ "create_endpoint_element", AXIS2_HASH_KEY_STRING);
+ desc_element->ops->create_property_element = axis2_hash_get(methods,
+ "create_property_element", AXIS2_HASH_KEY_STRING);
+ desc_element->ops->add_import_element = axis2_hash_get(methods,
+ "add_import_element", AXIS2_HASH_KEY_STRING);
+ desc_element->ops->get_import_elements = axis2_hash_get(methods,
+ "get_import_elements", AXIS2_HASH_KEY_STRING);
+ desc_element->ops->add_include_element = axis2_hash_get(methods,
+ "add_include_element", AXIS2_HASH_KEY_STRING);
+ desc_element->ops->get_include_elements = axis2_hash_get(methods,
+ "get_include_elements", AXIS2_HASH_KEY_STRING);
+ desc_element->ops->set_types_element = axis2_hash_get(methods,
+ "set_types_element", AXIS2_HASH_KEY_STRING);
+ desc_element->ops->get_types_element = axis2_hash_get(methods,
+ "get_types_element", AXIS2_HASH_KEY_STRING);
+ desc_element->ops->add_interface_element = axis2_hash_get(methods,
+ "add_interface_element", AXIS2_HASH_KEY_STRING);
+ desc_element->ops->get_interface_elements = axis2_hash_get(methods,
+ "get_interface_elements", AXIS2_HASH_KEY_STRING);
+ desc_element->ops->add_binding_element = axis2_hash_get(methods,
+ "add_binding_element", AXIS2_HASH_KEY_STRING);
+ desc_element->ops->get_binding_elements = axis2_hash_get(methods,
+ "get_binding_elements", AXIS2_HASH_KEY_STRING);
+ desc_element->ops->add_svc_element = axis2_hash_get(methods,
+ "add_svc_element", AXIS2_HASH_KEY_STRING);
+ desc_element->ops->get_svc_elements = axis2_hash_get(methods,
+ "get_svc_elements", AXIS2_HASH_KEY_STRING);
+ desc_element->ops->add_extension_registry = axis2_hash_get(methods,
+ "add_extension_registry", AXIS2_HASH_KEY_STRING);
+ desc_element->ops->get_extension_registry = axis2_hash_get(methods,
+ "get_extension_registry", AXIS2_HASH_KEY_STRING);
+ desc_element->ops->to_component = axis2_hash_get(methods,
+ "to_component", AXIS2_HASH_KEY_STRING);
+
+ return AXIS2_SUCCESS;
+}
+
Added: webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/xml/fault_ref_element.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/xml/fault_ref_element.c?rev=407177&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/xml/fault_ref_element.c (added)
+++ webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/xml/fault_ref_element.c Tue May 16 23:47:38 2006
@@ -0,0 +1,62 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <woden/wsdl20/xml/axis2_woden_interface_fault_ref_element.h>
+
+axis2_status_t AXIS2_CALL
+axis2_woden_interface_fault_ref_element_resolve_methods(
+ axis2_woden_interface_fault_ref_element_t *interface_fault_ref_element,
+ axis2_env_t **env,
+ axis2_hash_t *methods)
+{
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ AXIS2_PARAM_CHECK((*env)->error, methods, AXIS2_FAILURE);
+
+ interface_fault_ref_element->ops->free = axis2_hash_get(methods, "free",
+ AXIS2_HASH_KEY_STRING);
+ interface_fault_ref_element->ops->to_interface_fault_ref_element_free =
+ axis2_hash_get(methods, "to_interface_fault_ref_element_free",
+ AXIS2_HASH_KEY_STRING);
+ interface_fault_ref_element->ops->type = axis2_hash_get(methods, "type",
+ AXIS2_HASH_KEY_STRING);
+
+ interface_fault_ref_element->ops->set_ref =
+ axis2_hash_get(methods, "set_ref",
+ AXIS2_HASH_KEY_STRING);
+
+ interface_fault_ref_element->ops->get_ref =
+ axis2_hash_get(methods, "get_ref",
+ AXIS2_HASH_KEY_STRING);
+
+ interface_fault_ref_element->ops->set_msg_label =
+ axis2_hash_get(methods, "set_msg_label",
+ AXIS2_HASH_KEY_STRING);
+
+ interface_fault_ref_element->ops->get_msg_label =
+ axis2_hash_get(methods, "get_msg_label",
+ AXIS2_HASH_KEY_STRING);
+
+ interface_fault_ref_element->ops->set_direction =
+ axis2_hash_get(methods, "set_direction",
+ AXIS2_HASH_KEY_STRING);
+
+ interface_fault_ref_element->ops->get_direction =
+ axis2_hash_get(methods, "get_direction",
+ AXIS2_HASH_KEY_STRING);
+
+ return AXIS2_SUCCESS;
+}
+
Added: webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/xml/import_element.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/xml/import_element.c?rev=407177&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/xml/import_element.c (added)
+++ webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/xml/import_element.c Tue May 16 23:47:38 2006
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <woden/wsdl20/xml/axis2_woden_import_element.h>
+
+axis2_status_t AXIS2_CALL
+axis2_woden_import_element_resolve_methods(
+ axis2_woden_import_element_t *import_element,
+ axis2_env_t **env,
+ axis2_hash_t *methods)
+{
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ AXIS2_PARAM_CHECK((*env)->error, methods, AXIS2_FAILURE);
+
+ import_element->ops->free = axis2_hash_get(methods, "free",
+ AXIS2_HASH_KEY_STRING);
+ import_element->ops->to_import_element_free = axis2_hash_get(methods,
+ "to_import_element_free", AXIS2_HASH_KEY_STRING);
+ import_element->ops->type = axis2_hash_get(methods, "type",
+ AXIS2_HASH_KEY_STRING);
+
+ import_element->ops->set_namespace = axis2_hash_get(methods,
+ "set_namespace", AXIS2_HASH_KEY_STRING);
+ import_element->ops->get_namespace = axis2_hash_get(methods,
+ "get_namespace", AXIS2_HASH_KEY_STRING);
+ import_element->ops->set_location = axis2_hash_get(methods,
+ "set_location", AXIS2_HASH_KEY_STRING);
+ import_element->ops->get_location = axis2_hash_get(methods,
+ "get_location", AXIS2_HASH_KEY_STRING);
+ import_element->ops->set_desc_element = axis2_hash_get(methods,
+ "set_desc_element", AXIS2_HASH_KEY_STRING);
+ import_element->ops->get_desc_element = axis2_hash_get(methods,
+ "get_desc_element", AXIS2_HASH_KEY_STRING);
+
+ return AXIS2_SUCCESS;
+}
+
Added: webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/xml/include_element.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/xml/include_element.c?rev=407177&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/xml/include_element.c (added)
+++ webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/xml/include_element.c Tue May 16 23:47:38 2006
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <woden/wsdl20/xml/axis2_woden_include_element.h>
+
+axis2_status_t AXIS2_CALL
+axis2_woden_include_element_resolve_methods(
+ axis2_woden_include_element_t *include_element,
+ axis2_env_t **env,
+ axis2_hash_t *methods)
+{
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ AXIS2_PARAM_CHECK((*env)->error, methods, AXIS2_FAILURE);
+
+ include_element->ops->free = axis2_hash_get(methods, "free",
+ AXIS2_HASH_KEY_STRING);
+ include_element->ops->to_include_element_free = axis2_hash_get(methods,
+ "to_include_element_free", AXIS2_HASH_KEY_STRING);
+ include_element->ops->type = axis2_hash_get(methods, "type",
+ AXIS2_HASH_KEY_STRING);
+
+ include_element->ops->set_location = axis2_hash_get(methods,
+ "set_location", AXIS2_HASH_KEY_STRING);
+ include_element->ops->get_location = axis2_hash_get(methods,
+ "get_location", AXIS2_HASH_KEY_STRING);
+ include_element->ops->set_desc_element = axis2_hash_get(methods,
+ "set_desc_element", AXIS2_HASH_KEY_STRING);
+ include_element->ops->get_desc_element = axis2_hash_get(methods,
+ "get_desc_element", AXIS2_HASH_KEY_STRING);
+
+ return AXIS2_SUCCESS;
+}
+