You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by da...@apache.org on 2006/05/30 10:20:42 UTC
svn commit: r410214 [5/5] - in /webservices/axis2/trunk/c/woden:
include/woden/ include/woden/wsdl20/ include/woden/wsdl20/enumeration/
include/woden/wsdl20/extensions/ include/woden/wsdl20/xml/ src/types/
src/util/ src/wsdl20/ src/wsdl20/extensions/ s...
Added: webservices/axis2/trunk/c/woden/src/wsdl20/extensions/ext_registry.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl20/extensions/ext_registry.c?rev=410214&view=auto
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl20/extensions/ext_registry.c (added)
+++ webservices/axis2/trunk/c/woden/src/wsdl20/extensions/ext_registry.c Tue May 30 01:20:38 2006
@@ -0,0 +1,802 @@
+/*
+ * 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/extensions/axis2_woden_ext_registry.h>
+#include <woden/wsdl20/xml/axis2_woden_wsdl_element.h>
+#include <axis2_url.h>
+#include <axis2_hash.h>
+
+typedef struct axis2_woden_ext_registry_impl axis2_woden_ext_registry_impl_t;
+
+/**
+ * @brief Extension Registry Struct Impl
+ * Axis2 Extension Registry
+ */
+struct axis2_woden_ext_registry_impl
+{
+ axis2_woden_ext_registry_t registry;
+ /*
+ This is a Map of Maps. The top-level Map is keyed by parent type,
+ and the inner Maps are keyed by element QN.
+ */
+ axis2_hash_t *deserializer_reg;
+ /*
+ This is a Map of Maps. The top-level Map is keyed by parent type,
+ and the inner Maps are keyed by element QN.
+ */
+ axis2_hash_t *ext_element_reg;
+ /*
+ This is a Map of Maps. The top-level Map is keyed by parent type,
+ and the inner Maps are keyed by attr qname.
+ */
+ axis2_hash_t *ext_attr_reg;
+
+ /*
+ * This is a Map of Maps. The top-level Map is keyed by parent component
+ * and the inner Map is keyed by (URI)extension namespace with a value of
+ * component extensions.
+ */
+ axis2_hash_t *comp_ext_reg;
+
+ axis2_array_list_t *key_set;
+
+ axis2_woden_string_attr_t *string_attr;
+ axis2_woden_uri_attr_t *uri_attr;
+ axis2_woden_qname_or_token_any_attr_t *qname_or_token_any_attr;
+ axis2_woden_qname_list_or_token_any_attr_t *qname_list_or_token_any_attr;
+ axis2_woden_soap_module_deserializer_t *soap_module_deser;
+ axis2_woden_soap_module_t *soap_module;
+ axis2_woden_soap_header_block_deserializer_t *soap_header_block_deser;
+ axis2_woden_soap_header_block_t *soap_header_block;
+ axis2_woden_soap_binding_ext_t *soap_binding_ext;
+ axis2_woden_soap_binding_fault_ext_t *soap_binding_fault_ext;
+ axis2_woden_soap_binding_op_ext_t *soap_binding_op_ext;
+ axis2_woden_soap_binding_msg_ref_ext_t *soap_binding_msg_ref_ext;
+ axis2_woden_soap_binding_fault_ref_ext_t *soap_binding_fault_ref_ext;
+};
+
+#define INTF_TO_IMPL(registry) ((axis2_woden_ext_registry_impl_t *) registry)
+
+axis2_status_t AXIS2_CALL
+axis2_woden_ext_registry_free(
+ void *registry,
+ axis2_env_t **envv);
+
+axis2_status_t AXIS2_CALL
+axis2_woden_ext_registry_register_deserializer(
+ void *registry,
+ axis2_env_t **env,
+ axis2_char_t *parent_type,
+ axis2_qname_t *element_qtype,
+ void *ed);
+
+void *AXIS2_CALL
+axis2_woden_ext_registry_query_deserializer(
+ void *registry,
+ axis2_env_t **env,
+ axis2_char_t *parent_type,
+ axis2_qname_t *element_type);
+
+void *AXIS2_CALL
+axis2_woden_ext_registry_query_ext_element_type(
+ void *registry,
+ axis2_env_t **env,
+ axis2_char_t *parent_class,
+ axis2_qname_t *elem_qn);
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_ext_registry_get_allowable_exts(
+ void *registry,
+ axis2_env_t **env,
+ axis2_char_t *parent_type);
+
+axis2_status_t AXIS2_CALL
+axis2_woden_ext_registry_register_ext_element_type(
+ void *registry,
+ axis2_env_t **env,
+ axis2_char_t *parent_type,
+ axis2_qname_t *element_qtype,
+ void *element);
+
+axis2_status_t AXIS2_CALL
+axis2_woden_ext_registry_register_ext_attr_type(
+ void *registry,
+ axis2_env_t **env,
+ axis2_char_t *owner_class,
+ axis2_qname_t *attr_qname,
+ void *attr);
+
+void *AXIS2_CALL
+axis2_woden_ext_registry_query_ext_attr_type(
+ void *registry,
+ axis2_env_t **env,
+ axis2_char_t *parent_class,
+ axis2_qname_t *attr_qn);
+
+axis2_status_t AXIS2_CALL
+axis2_woden_ext_registry_register_component_ext(
+ void *registry,
+ axis2_env_t **env,
+ axis2_char_t *parent_class,
+ axis2_url_t *ext_namespc,
+ void *comp_ext);
+
+void *AXIS2_CALL
+axis2_woden_ext_registry_query_component_ext(
+ void *registry,
+ axis2_env_t **env,
+ axis2_char_t *parent_class,
+ axis2_url_t *ext_namespc);
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_ext_registry_query_component_ext_namespaces(
+ void *registry,
+ axis2_env_t **env,
+ axis2_char_t *parent_class);
+
+static axis2_status_t
+axis2_woden_ext_registry_populate(
+ void *registry,
+ axis2_env_t **env);
+
+AXIS2_DECLARE(axis2_woden_ext_registry_t *)
+axis2_woden_ext_registry_create(
+ axis2_env_t **env)
+{
+ axis2_woden_ext_registry_impl_t *registry_impl = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ registry_impl = AXIS2_MALLOC((*env)->allocator,
+ sizeof(axis2_woden_ext_registry_impl_t));
+
+ registry_impl->deserializer_reg = NULL;
+ registry_impl->ext_element_reg = NULL;
+ registry_impl->ext_attr_reg = NULL;
+ registry_impl->comp_ext_reg = NULL;
+ registry_impl->key_set = NULL;
+
+ registry_impl->string_attr = NULL;
+ registry_impl->uri_attr = NULL;
+ registry_impl->qname_or_token_any_attr = NULL;
+ registry_impl->qname_list_or_token_any_attr = NULL;
+ registry_impl->soap_module_deser = NULL;
+ registry_impl->soap_module = NULL;
+ registry_impl->soap_header_block_deser = NULL;
+ registry_impl->soap_header_block = NULL;
+ registry_impl->soap_binding_ext = NULL;
+ registry_impl->soap_binding_fault_ext = NULL;
+ registry_impl->soap_binding_op_ext = NULL;
+ registry_impl->soap_binding_msg_ref_ext = NULL;
+ registry_impl->soap_binding_fault_ref_ext = NULL;
+
+ registry_impl->registry.ops = AXIS2_MALLOC((*env)->allocator,
+ sizeof(axis2_woden_ext_registry_ops_t));
+
+ registry_impl->registry.ops->free =
+ axis2_woden_ext_registry_free;
+ registry_impl->registry.ops->register_deserializer =
+ axis2_woden_ext_registry_register_deserializer;
+ registry_impl->registry.ops->query_deserializer =
+ axis2_woden_ext_registry_query_deserializer;
+ registry_impl->registry.ops->query_ext_element_type =
+ axis2_woden_ext_registry_query_ext_element_type;
+ registry_impl->registry.ops->get_allowable_exts =
+ axis2_woden_ext_registry_get_allowable_exts;
+ registry_impl->registry.ops->register_ext_element_type =
+ axis2_woden_ext_registry_register_ext_element_type;
+ registry_impl->registry.ops->register_ext_attr_type =
+ axis2_woden_ext_registry_register_ext_attr_type;
+ registry_impl->registry.ops->query_ext_attr_type =
+ axis2_woden_ext_registry_query_ext_attr_type;
+ registry_impl->registry.ops->register_component_ext =
+ axis2_woden_ext_registry_register_component_ext;
+ registry_impl->registry.ops->query_component_ext =
+ axis2_woden_ext_registry_query_component_ext;
+ registry_impl->registry.ops->query_component_ext_namespaces =
+ axis2_woden_ext_registry_query_component_ext_namespaces;
+
+ axis2_woden_ext_registry_populate(registry, env);
+
+ return &(registry_impl->registry);
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_ext_registry_free(
+ void *registry,
+ axis2_env_t **env)
+{
+ axis2_woden_ext_registry_impl_t *registry_impl = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ registry_impl = INTF_TO_IMPL(registry);
+
+ if(registry_impl->deserializer_reg)
+ {
+ /* TODO */
+ }
+
+ if(registry_impl->ext_element_reg)
+ {
+ /* TODO */
+ }
+
+ if(registry_impl->ext_attr_reg)
+ {
+ /* TODO */
+ }
+
+ if(registry_impl->comp_ext_reg)
+ {
+ /* TODO */
+ }
+
+ if((&(registry_impl->registry))->ops)
+ {
+ AXIS2_FREE((*env)->allocator, (&(registry_impl->registry))->ops);
+ (&(registry_impl->registry))->ops = NULL;
+ }
+
+ if(registry_impl)
+ {
+ AXIS2_FREE((*env)->allocator, registry_impl);
+ registry_impl = NULL;
+ }
+ return AXIS2_SUCCESS;
+}
+
+/**
+* Declare that the specified deserializer should be used to deserialize
+* all extensibility elements with a qname matching elementQN, when
+* encountered as immediate children of the element represented by the
+* specified parentType.
+*
+* @param parent type a class object indicating where in the WSDL
+* document this extensibility element was encountered. For
+* example, axis2_woden_binding would be used to indicate
+* this element was encountered as an immediate child of
+* a <wsdl:binding> element.
+* @param element QN the qname of the extensibility element
+* @param ed the extension deserializer to use
+*
+*/
+axis2_status_t AXIS2_CALL
+axis2_woden_ext_registry_register_deserializer(
+ void *registry,
+ axis2_env_t **env,
+ axis2_char_t *parent_type,
+ axis2_qname_t *element_qtype,
+ void *ed)
+{
+ axis2_woden_ext_registry_impl_t *registry_impl = NULL;
+ axis2_hash_t *inner_deserializer_reg = NULL;
+ axis2_char_t *element_type = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ registry_impl = INTF_TO_IMPL(registry);
+
+ inner_deserializer_reg = axis2_hash_get(registry_impl->deserializer_reg,
+ parent_type, AXIS2_HASH_KEY_STRING);
+ if(NULL == inner_deserializer_reg)
+ {
+ inner_deserializer_reg = axis2_hash_make(env);
+ axis2_hash_set(registry_impl->deserializer_reg, parent_type,
+ AXIS2_HASH_KEY_STRING, inner_deserializer_reg);
+ }
+ element_type = AXIS2_QNAME_TO_STRING(element_qtype, env);
+ axis2_hash_set(inner_deserializer_reg, element_type, AXIS2_HASH_KEY_STRING,
+ ed);
+ return AXIS2_SUCCESS;
+}
+
+/**
+* Look up the deserializer for the extensibility element with the
+* qname element QN, which was encountered as an immediate child
+* of the element represented by the specified parentType.
+*
+* @param parent type a class object indicating where in the WSDL
+* document this extensibility element was encountered. For
+* example, axis2_woden_binding would be used to indicate
+* this element was encountered as an immediate child of
+* a <wsdl:binding> element.
+* @param element QN the qname of the extensibility element
+*
+* @return the extension deserializer, if one was found. If none was
+* found. TODO Decide what to do if no deserializer found
+*
+*/
+void *AXIS2_CALL
+axis2_woden_ext_registry_query_deserializer(
+ void *registry,
+ axis2_env_t **env,
+ axis2_char_t *parent_type,
+ axis2_qname_t *element_type)
+{
+ axis2_woden_ext_registry_impl_t *registry_impl = NULL;
+ axis2_hash_t *inner_deserializer_reg = NULL;
+ axis2_char_t *elem_name = NULL;
+ void *ed = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ registry_impl = INTF_TO_IMPL(registry);
+
+ inner_deserializer_reg = axis2_hash_get(registry_impl->deserializer_reg,
+ parent_type, AXIS2_HASH_KEY_STRING);
+ elem_name = AXIS2_QNAME_TO_STRING(element_type, env);
+ if(NULL != inner_deserializer_reg)
+ {
+ ed = axis2_hash_get(inner_deserializer_reg, elem_name,
+ AXIS2_HASH_KEY_STRING);
+ }
+ return ed;
+}
+
+/**
+* Look up the type of the extensibility element with the specified qname, which
+* was defined as a child of the element represented by the specified parent class.
+*
+* @param parent type a class object indicating where in the WSDL
+* document this extensibility attribute was encountered. For
+* example, axis2_woden_binding would be used to indicate
+* this attribute was defined on a <wsdl:binding> element.
+* @param attr name the qname of the extensibility attribute
+*
+* @return one of the constants defined on the Attribute Extensible class
+*
+*/
+void *AXIS2_CALL
+axis2_woden_ext_registry_query_ext_element_type(
+ void *registry,
+ axis2_env_t **env,
+ axis2_char_t *parent_class,
+ axis2_qname_t *elem_qn)
+{
+ axis2_woden_ext_registry_impl_t *registry_impl = NULL;
+ axis2_hash_t *inner_ext_attr_reg = NULL;
+ axis2_char_t *elem_name = NULL;
+ void *element = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ registry_impl = INTF_TO_IMPL(registry);
+
+ inner_ext_attr_reg = axis2_hash_get(registry_impl->ext_attr_reg,
+ parent_class, AXIS2_HASH_KEY_STRING);
+ elem_name = AXIS2_QNAME_TO_STRING(elem_qn, env);
+ if(NULL != inner_ext_attr_reg)
+ {
+ element = axis2_hash_get(inner_ext_attr_reg, elem_name,
+ AXIS2_HASH_KEY_STRING);
+ }
+ return element;
+}
+
+/**
+* Returns a set of QNames representing the extensibility elements
+* that are allowed as children of the specified parent type.
+* Basically, this method returns the keys associated with the set
+* of extension deserializers registered for this parent type.
+* Returns null if no extension deserializers are registered for
+* this parent type.
+*/
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_ext_registry_get_allowable_exts(
+ void *registry,
+ axis2_env_t **env,
+ axis2_char_t *parent_type)
+{
+ axis2_woden_ext_registry_impl_t *registry_impl = NULL;
+ axis2_hash_t *inner_deserializer_reg = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ registry_impl = INTF_TO_IMPL(registry);
+
+ inner_deserializer_reg = axis2_hash_get(registry_impl->deserializer_reg,
+ parent_type, AXIS2_HASH_KEY_STRING);
+ if(NULL != inner_deserializer_reg)
+ {
+ axis2_hash_index_t *i = NULL;
+
+ registry_impl->key_set = axis2_array_list_create(env, 0);
+ for (i = axis2_hash_first (inner_deserializer_reg, env); i; i =
+ axis2_hash_next (env, i))
+ {
+ void *v = NULL;
+
+ axis2_hash_this (i, NULL, NULL, &v);
+ AXIS2_ARRAY_LIST_ADD(registry_impl->key_set, env, v);
+ }
+ }
+ return registry_impl->key_set;
+}
+
+/**
+* Declare that the specified extensionType is the concrete
+* class which should be used to represent extensibility elements
+* with qnames matching elementQN, that are intended to exist as
+* children of the specified parentType.
+*
+* @param parentType a class object indicating where in the WSDL
+* definition this extension would exist. For example,
+* axis2_woden_binding would be used to indicate
+* this extensibility element would be added to the list of
+* extensibility elements belonging to a javax.wsdl.Binding,
+* after being instantiated.
+* @param element QN the qname of the extensibility element
+* @param extension type the concrete class which should be instantiated
+*
+*/
+axis2_status_t AXIS2_CALL
+axis2_woden_ext_registry_register_ext_element_type(
+ void *registry,
+ axis2_env_t **env,
+ axis2_char_t *parent_type,
+ axis2_qname_t *element_qtype,
+ void *element)
+{
+ axis2_woden_ext_registry_impl_t *registry_impl = NULL;
+ axis2_hash_t *inner_ext_type_reg = NULL;
+ axis2_char_t *element_type = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ registry_impl = INTF_TO_IMPL(registry);
+
+ inner_ext_type_reg = axis2_hash_get(registry_impl->ext_element_reg,
+ parent_type, AXIS2_HASH_KEY_STRING);
+ if(NULL == inner_ext_type_reg)
+ {
+ inner_ext_type_reg = axis2_hash_make(env);
+ axis2_hash_set(registry_impl->ext_element_reg, parent_type,
+ AXIS2_HASH_KEY_STRING, inner_ext_type_reg);
+ }
+ element_type = AXIS2_QNAME_TO_STRING(element_qtype, env);
+ axis2_hash_set(inner_ext_type_reg, element_type, AXIS2_HASH_KEY_STRING,
+ element);
+ return AXIS2_SUCCESS;
+}
+
+
+/**
+* Declare that the type of the specified extension attribute, when it occurs
+* as an attribute of the specified parent type, should be assumed to be
+* attrType.
+*
+* @param parent_type a class object indicating where in the WSDL
+* document this extensibility attribute was encountered. For
+* example, axis2_woden_bindin would be used to indicate
+* this attribute was defined on a <wsdl:binding> element.
+* @param attr_qname the qname of the extensibility attribute
+* @param attr_type one of the constants defined on the Attribute Extensible
+* class
+*/
+axis2_status_t AXIS2_CALL
+axis2_woden_ext_registry_register_ext_attr_type(
+ void *registry,
+ axis2_env_t **env,
+ axis2_char_t *owner_class,
+ axis2_qname_t *attr_qname,
+ void *attr)
+{
+ axis2_woden_ext_registry_impl_t *registry_impl = NULL;
+ axis2_hash_t *inner_ext_attr_reg = NULL;
+ axis2_char_t *attr_name = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ registry_impl = INTF_TO_IMPL(registry);
+
+ inner_ext_attr_reg = axis2_hash_get(registry_impl->ext_attr_reg,
+ owner_class, AXIS2_HASH_KEY_STRING);
+ if(NULL == inner_ext_attr_reg)
+ {
+ inner_ext_attr_reg = axis2_hash_make(env);
+ axis2_hash_set(registry_impl->ext_attr_reg, owner_class,
+ AXIS2_HASH_KEY_STRING, inner_ext_attr_reg);
+ }
+ attr_name = AXIS2_QNAME_TO_STRING(attr_qname, env);
+ axis2_hash_set(inner_ext_attr_reg, attr_name, AXIS2_HASH_KEY_STRING, attr);
+ return AXIS2_SUCCESS;
+}
+
+/**
+* Look up the type of the extensibility attribute with the specified qname,
+* which was defined on an element represented by the specified parent class.
+*
+* @param parentType a class object indicating where in the WSDL
+* document this extensibility attribute was encountered. For
+* example, axis2_woden_binding would be used to indicate
+* this attribute was defined on a <wsdl:binding> element.
+* @param attr_qname the qname of the extensibility attribute
+*
+* @return one of the constants defined on the Attribute Extensible class
+*/
+void *AXIS2_CALL
+axis2_woden_ext_registry_query_ext_attr_type(
+ void *registry,
+ axis2_env_t **env,
+ axis2_char_t *parent_class,
+ axis2_qname_t *attr_qn)
+{
+ axis2_woden_ext_registry_impl_t *registry_impl = NULL;
+ axis2_hash_t *inner_ext_attr_reg = NULL;
+ void *attr = NULL;
+ axis2_char_t *attr_name = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ registry_impl = INTF_TO_IMPL(registry);
+
+ inner_ext_attr_reg = axis2_hash_get(registry_impl->ext_attr_reg,
+ parent_class, AXIS2_HASH_KEY_STRING);
+ attr_name = AXIS2_QNAME_TO_STRING(attr_qn, env);
+ if(NULL != inner_ext_attr_reg)
+ {
+ attr = axis2_hash_get(inner_ext_attr_reg, attr_name,
+ AXIS2_HASH_KEY_STRING);
+ }
+ return attr;
+}
+
+/**
+* Register the object that will represent extensions from a specified
+* namespace that will extend the specified WSDL component class.
+*
+* @param parent_class the WSDL component class
+* @param ext_namespace the extension namespace
+* @param comp_ext_class the obj representing these extensions
+*/
+axis2_status_t AXIS2_CALL
+axis2_woden_ext_registry_register_component_ext(
+ void *registry,
+ axis2_env_t **env,
+ axis2_char_t *parent_class,
+ axis2_url_t *ext_namespc,
+ void *comp_ext)
+{
+ axis2_woden_ext_registry_impl_t *registry_impl = NULL;
+ axis2_hash_t *inner_comp_ext_reg = NULL;
+ axis2_char_t *namespc = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ registry_impl = INTF_TO_IMPL(registry);
+
+ inner_comp_ext_reg = axis2_hash_get(registry_impl->comp_ext_reg,
+ parent_class, AXIS2_HASH_KEY_STRING);
+ if(NULL == inner_comp_ext_reg)
+ {
+ inner_comp_ext_reg = axis2_hash_make(env);
+ axis2_hash_set(registry_impl->comp_ext_reg, parent_class,
+ AXIS2_HASH_KEY_STRING, inner_comp_ext_reg);
+ }
+ namespc = AXIS2_URL_TO_EXTERNAL_FORM(ext_namespc, env);
+ axis2_hash_set(inner_comp_ext_reg, namespc, AXIS2_HASH_KEY_STRING, comp_ext);
+ return AXIS2_SUCCESS;
+}
+
+/**
+* Return the object that represents the extensions from the specified
+* namespace that extend the specified WSDL component class.
+*
+* @param parent_class the WSDL component
+* @param ext_namespace the extension namespace
+* @return the object of the component extensions
+*/
+void *AXIS2_CALL
+axis2_woden_ext_registry_query_component_ext(
+ void *registry,
+ axis2_env_t **env,
+ axis2_char_t *parent_class,
+ axis2_url_t *ext_namespc)
+{
+ axis2_woden_ext_registry_impl_t *registry_impl = NULL;
+ axis2_hash_t *inner_comp_ext_reg = NULL;
+ void *comp_ext = NULL;
+ axis2_char_t *namespc = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ registry_impl = INTF_TO_IMPL(registry);
+
+ inner_comp_ext_reg = axis2_hash_get(registry_impl->comp_ext_reg,
+ parent_class, AXIS2_HASH_KEY_STRING);
+ namespc = AXIS2_URL_TO_EXTERNAL_FORM(ext_namespc, env);
+ if(NULL != inner_comp_ext_reg)
+ {
+ comp_ext = axis2_hash_get(inner_comp_ext_reg, namespc,
+ AXIS2_HASH_KEY_STRING);
+ }
+ return comp_ext;
+}
+
+/**
+* Return the extension namespaces registered for the specified WSDL Component class.
+*
+* @param parentClass the class of WSDL component extended by these namespaces
+* @return an array of namespace URIs
+*/
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_ext_registry_query_component_ext_namespaces(
+ void *registry,
+ axis2_env_t **env,
+ axis2_char_t *parent_class)
+{
+ axis2_woden_ext_registry_impl_t *registry_impl = NULL;
+ axis2_hash_t *inner_comp_ext_reg = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ registry_impl = INTF_TO_IMPL(registry);
+
+ inner_comp_ext_reg = axis2_hash_get(registry_impl->comp_ext_reg,
+ parent_class, AXIS2_HASH_KEY_STRING);
+ registry_impl->key_set = axis2_array_list_create(env, 0);
+ if(NULL != inner_comp_ext_reg)
+ {
+ axis2_hash_index_t *i = NULL;
+
+ for (i = axis2_hash_first (inner_comp_ext_reg, env); i; i =
+ axis2_hash_next (env, i))
+ {
+ void *key = NULL;
+
+ axis2_hash_this (i, &key, NULL, NULL);
+ AXIS2_ARRAY_LIST_ADD(registry_impl->key_set, env, key);
+ }
+ }
+ return registry_impl->key_set;
+}
+
+static axis2_status_t
+axis2_woden_ext_registry_populate(
+ void *registry,
+ axis2_env_t **env)
+{
+ axis2_woden_ext_registry_impl_t *registry_impl = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ registry_impl = INTF_TO_IMPL(registry);
+
+ /*********************** SOAP extension attributes ************************/
+
+ registry_impl->string_attr = axis2_string_attr_create(env);
+ registry_impl->uri_attr = axis2_woden_uri_attr_create(env);
+ registry_impl->qname_or_token_any_attr =
+ axis2_woden_qname_or_token_any_attr_create(env);
+ registry_impl->qname_list_or_token_any_attr =
+ axis2_woden_qname_list_or_token_any_attr_create(env);
+
+ axis2_woden_content_model_builder_register_ext_attribute_type(
+ "binding_element", AXIS2_WODEN_Q_ATTR_SOAP_VERSION,
+ registry_impl->string_attr);
+
+ axis2_woden_content_model_builder_register_ext_attribute_type(
+ "binding_element", AXIS2_WODEN_Q_ATTR_SOAP_PROTOCOL,
+ registry_impl->uri_attr);
+
+ axis2_woden_content_model_builder_register_ext_attribute_type(
+ "binding_element", AXIS2_WODEN_Q_ATTR_SOAP_MEPDEFAULT,
+ registry_impl->uri_attr);
+
+ axis2_woden_content_model_builder_register_ext_attribute_type(
+ "binding_fault_element", AXIS2_WODEN_Q_ATTR_SOAP_CODE,
+ registry_impl->qname_or_token_any_attr);
+
+ axis2_woden_content_model_builder_register_ext_attribute_type(
+ "binding_fault_element", AXIS2_WODEN_Q_ATTR_SOAP_SUBCODES,
+ registry_impl->qname_list_or_token_any_attr);
+
+ axis2_woden_content_model_builder_register_ext_attribute_type(
+ "binding_op_element", AXIS2_WODEN_Q_ATTR_SOAP_MEP,
+ registry_impl->uri_attr);
+
+ axis2_woden_content_model_builder_register_ext_attribute_type(
+ "binding_op_element", AXIS2_WODEN_Q_ATTR_SOAP_ACTION,
+ registry_impl->uri_attr);
+
+ /************** SOAPModule extension elements *****************************/
+
+ registry_impl->soap_module_deser =
+ axis2_woden_soap_module_deserializer_create(env);
+ registry_impl->soap_module = axis2_woden_soap_module_create(env);
+
+ axis2_woden_content_model_builder_register_deserializer("binding_element",
+ WODEN_Q_ELEM_SOAP_MODULE,
+ registry_impl->soap_module_deser);
+
+ axis2_woden_content_model_builder_register_ext_element_type("binding_element",
+ WODEN_Q_ELEM_SOAP_MODULE,
+ registry_impl->soap_module);
+
+ axis2_woden_content_model_builder_register_deserializer("binding_fault_element",
+ WODEN_Q_ELEM_SOAP_MODULE,
+ registry_impl->soap_module_deser);
+
+ axis2_woden_content_model_builder_register_ext_element_type("binding_fault_element",
+ WODEN_Q_ELEM_SOAP_MODULE,
+ registry_impl->soap_module);
+
+ axis2_woden_content_model_builder_register_deserializer("binding_op_element",
+ WODEN_Q_ELEM_SOAP_MODULE,
+ registry_impl->soap_module_deser);
+
+ axis2_woden_content_model_builder_register_ext_element_type("binding_op_element",
+ WODEN_Q_ELEM_SOAP_MODULE,
+ registry_impl->soap_module);
+
+ axis2_woden_content_model_builder_register_deserializer("binding_msg_ref_element",
+ WODEN_Q_ELEM_SOAP_MODULE,
+ registry_impl->soap_module_deser);
+
+ axis2_woden_content_model_builder_register_ext_element_type("binding_msg_ref_element",
+ WODEN_Q_ELEM_SOAP_MODULE,
+ registry_impl->soap_module);
+
+ axis2_woden_content_model_builder_register_deserializer("binding_fault_ref_element",
+ WODEN_Q_ELEM_SOAP_MODULE,
+ registry_impl->soap_module_deser);
+
+ axis2_woden_content_model_builder_register_ext_element_type("binding_fault_ref_element",
+ WODEN_Q_ELEM_SOAP_MODULE,
+ registry_impl->soap_module);
+
+ /**************** SOAPHeaderBlock extension elements **********************/
+ registry_impl->soap_header_block_deser =
+ axis2_woden_soap_header_block_deserializer_create(env);
+ registry_impl->soap_header_block = axis2_woden_soap_header_block_create(env);
+
+ axis2_woden_content_model_builder_register_deserializer("binding_fault_element",
+ WODEN_Q_ELEM_SOAP_HEADER,
+ registry_impl->soap_header_block_deser);
+
+ axis2_woden_content_model_builder_register_ext_element_type("binding_fault_element",
+ WODEN_Q_ELEM_SOAP_HEADER,
+ registry_impl->soap_header_block);
+
+ axis2_woden_content_model_builder_register_deserializer("binding_msg_ref_element",
+ WODEN_Q_ELEM_SOAP_HEADER,
+ registry_impl->soap_header_block_deser);
+
+ axis2_woden_content_model_builder_register_ext_element_type("binding_msg_ref_element",
+ WODEN_Q_ELEM_SOAP_HEADER,
+ registry_impl->soap_header_block);
+
+ /*************** WSDL Component Extensions *******************************/
+ registry_impl->soap_binding_ext = axis2_woden_soap_binding_ext_create(env);
+ registry_impl->soap_binding_fault_ext =
+ axis2_woden_soap_binding_fault_ext_create(env);
+ registry_impl->soap_binding_op_ext =
+ axis2_woden_soap_binding_op_ext_create(env);
+ registry_impl->soap_binding_msg_ref_ext =
+ axis2_woden_soap_binding_msg_ref_ext_create(env);
+ registry_impl->soap_binding_fault_ref_ext =
+ axis2_woden_soap_binding_fault_ref_ext_create(env);
+
+ axis2_woden_content_model_builder_register_component_ext("binding",
+ WODEN_URI_NS_SOAP,
+ registry_impl->soap_binding_ext);
+
+ axis2_woden_content_model_builder_register_component_ext("binding_fault",
+ WODEN_URI_NS_SOAP,
+ registry_impl->soap_binding_fault_ext);
+
+ axis2_woden_content_model_builder_register_component_ext("binding_op",
+ WODEN_URI_NS_SOAP,
+ registry_impl->soap_binding_op_ext);
+
+ axis2_woden_content_model_builder_register_component_ext("binding_msg_ref",
+ WODEN_URI_NS_SOAP,
+ registry_impl->soap_binding_msg_ref_ext);
+
+ axis2_woden_content_model_builder_register_component_ext("binding_fault_ref",
+ WODEN_URI_NS_SOAP,
+ registry_impl->soap_binding_fault_ref_ext);
+
+ return AXIS2_SUCCESS;
+}
Modified: webservices/axis2/trunk/c/woden/src/wsdl20/interface_msg_ref.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl20/interface_msg_ref.c?rev=410214&r1=410213&r2=410214&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl20/interface_msg_ref.c (original)
+++ webservices/axis2/trunk/c/woden/src/wsdl20/interface_msg_ref.c Tue May 30 01:20:38 2006
@@ -326,6 +326,10 @@
axis2_woden_interface_msg_ref_get_element_declaration;
interface_msg_ref_impl->interface_msg_ref.ops->to_element =
axis2_woden_interface_msg_ref_to_element;
+ interface_msg_ref_impl->interface_msg_ref.ops->set_element_declaration =
+ axis2_woden_interface_msg_ref_set_element_declaration;
+ interface_msg_ref_impl->interface_msg_ref.ops->set_types =
+ axis2_woden_interface_msg_ref_set_types;
interface_msg_ref_impl->methods = axis2_hash_make(env);
if(!interface_msg_ref_impl->methods)
@@ -616,6 +620,18 @@
if(!interface_msg_ref->ops->to_element && interface_msg_ref_impl_l)
interface_msg_ref->ops->to_element =
interface_msg_ref_impl_l->interface_msg_ref.ops->to_element;
+
+ interface_msg_ref->ops->set_element_declaration = axis2_hash_get(methods,
+ "set_element_declaration", AXIS2_HASH_KEY_STRING);
+ if(!interface_msg_ref->ops->set_element_declaration && interface_msg_ref_impl_l)
+ interface_msg_ref->ops->set_element_declaration =
+ interface_msg_ref_impl_l->interface_msg_ref.ops->set_element_declaration;
+
+ interface_msg_ref->ops->set_types = axis2_hash_get(methods,
+ "set_types", AXIS2_HASH_KEY_STRING);
+ if(!interface_msg_ref->ops->set_types && interface_msg_ref_impl_l)
+ interface_msg_ref->ops->set_types =
+ interface_msg_ref_impl_l->interface_msg_ref.ops->set_types;
return AXIS2_SUCCESS;
}
Modified: webservices/axis2/trunk/c/woden/src/wsdl20/svc.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl20/svc.c?rev=410214&r1=410213&r2=410214&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl20/svc.c (original)
+++ webservices/axis2/trunk/c/woden/src/wsdl20/svc.c Tue May 30 01:20:38 2006
@@ -14,7 +14,6 @@
* limitations under the License.
*/
-#include <woden/axis2_woden_wsdl_obj.h>
#include <woden/wsdl20/axis2_woden_svc.h>
#include <woden/wsdl20/extensions/axis2_woden_ext_element.h>
#include <woden/wsdl20/extensions/axis2_woden_component_exts.h>
@@ -34,7 +33,7 @@
axis2_woden_configurable_t *configurable;
axis2_hash_t *super;
axis2_hash_t *methods;
- woden_nc_name_t *f_qname;
+ axis2_qname_t *f_qname;
axis2_qname_t *f_interface_qname;
void *f_interface;
axis2_array_list_t *f_endpoints;
@@ -87,7 +86,7 @@
axis2_woden_svc_set_qname(
void *svc,
axis2_env_t **env,
- woden_nc_name_t *qname);
+ axis2_qname_t *qname);
axis2_status_t AXIS2_CALL
axis2_woden_svc_set_interface_qname(
@@ -174,49 +173,6 @@
}
AXIS2_DECLARE(axis2_woden_svc_t *)
-axis2_woden_svc_to_nested_element(
- void *svc,
- axis2_env_t **env)
-{
- axis2_woden_svc_impl_t *svc_impl = NULL;
-
- AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
- if(!svc)
- {
- svc_impl = (axis2_woden_svc_impl_t *) create(env);
- }
- else
- svc_impl = (axis2_woden_svc_impl_t *) svc;
-
- svc_impl->svc.base.svc_element.base.nested_element.ops =
- AXIS2_MALLOC((*env)->allocator,
- sizeof(axis2_woden_nested_element_ops_t));
- axis2_woden_nested_element_resolve_methods(&(svc_impl->svc.base.
- svc_element.base.nested_element), env, svc_impl->methods);
- return svc;
-}
-
-axis2_status_t AXIS2_CALL
-axis2_woden_svc_to_nested_element_free(
- void *svc,
- axis2_env_t **env)
-{
- axis2_woden_svc_impl_t *svc_impl = NULL;
-
- AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
- svc_impl = INTF_TO_IMPL(svc);
-
- if(svc_impl->svc.base.svc_element.base.nested_element.ops)
- {
- AXIS2_FREE((*env)->allocator, svc_impl->svc.base.
- svc_element.base.nested_element.ops);
- svc_impl->svc.base.svc_element.base.nested_element.ops =
- NULL;
- }
- return AXIS2_SUCCESS;
-}
-
-AXIS2_DECLARE(axis2_woden_svc_t *)
axis2_woden_svc_to_documentable_element(
void *svc,
axis2_env_t **env)
@@ -305,49 +261,6 @@
}
AXIS2_DECLARE(axis2_woden_svc_t *)
-axis2_woden_svc_to_nested_component(
- void *svc,
- axis2_env_t **env)
-{
- axis2_woden_svc_impl_t *svc_impl = NULL;
-
- AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
- if(!svc)
- {
- svc_impl = (axis2_woden_svc_impl_t *) create(env);
- }
- else
- svc_impl = (axis2_woden_svc_impl_t *) svc;
-
- svc_impl->svc.base.configurable.base.nested_component.ops =
- AXIS2_MALLOC((*env)->allocator,
- sizeof(axis2_woden_nested_component_ops_t));
- axis2_woden_nested_component_resolve_methods(&(svc_impl->svc.base.
- configurable.base.nested_component), env, svc_impl->methods);
- return svc;
-}
-
-axis2_status_t AXIS2_CALL
-axis2_woden_svc_to_nested_component_free(
- void *svc,
- axis2_env_t **env)
-{
- axis2_woden_svc_impl_t *svc_impl = NULL;
-
- AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
- svc_impl = INTF_TO_IMPL(svc);
-
- if(svc_impl->svc.base.configurable.base.nested_component.ops)
- {
- AXIS2_FREE((*env)->allocator, svc_impl->svc.base.
- configurable.base.nested_component.ops);
- svc_impl->svc.base.configurable.base.nested_component.
- ops = NULL;
- }
- return AXIS2_SUCCESS;
-}
-
-AXIS2_DECLARE(axis2_woden_svc_t *)
axis2_woden_svc_to_configurable_component(
void *svc,
axis2_env_t **env)
@@ -451,12 +364,9 @@
svc_impl->f_endpoints = NULL;
svc_impl->svc.base.svc_element.ops = NULL;
- svc_impl->svc.base.svc_element.base.nested_element.ops = NULL;
svc_impl->svc.base.svc_element.base.documentable_element.ops =
NULL;
svc_impl->svc.base.configurable.ops = NULL;
- svc_impl->svc.base.configurable.base.configurable.ops = NULL;
- svc_impl->svc.base.configurable.base.nested_component.ops = NULL;
svc_impl->svc.base.configurable_component.ops = NULL;
svc_impl->svc.base.configurable_component.wsdl_component.ops = NULL;
@@ -486,9 +396,6 @@
axis2_hash_set(svc_impl->methods, "to_svc_element_free",
AXIS2_HASH_KEY_STRING,
axis2_woden_svc_to_svc_element_free);
- axis2_hash_set(svc_impl->methods, "to_nested_element_free",
- AXIS2_HASH_KEY_STRING,
- axis2_woden_svc_to_nested_element_free);
axis2_hash_set(svc_impl->methods, "to_documentable_element_free",
AXIS2_HASH_KEY_STRING,
axis2_woden_svc_to_documentable_element_free);
@@ -498,9 +405,6 @@
axis2_hash_set(svc_impl->methods, "to_configurable_free",
AXIS2_HASH_KEY_STRING,
axis2_woden_svc_to_configurable_free);
- axis2_hash_set(svc_impl->methods, "to_nested_component_free",
- AXIS2_HASH_KEY_STRING,
- axis2_woden_svc_to_nested_component_free);
axis2_hash_set(svc_impl->methods, "to_configurable_component_free",
AXIS2_HASH_KEY_STRING,
axis2_woden_svc_to_configurable_component_free);
@@ -535,7 +439,7 @@
axis2_woden_svc_get_interface_element);
axis2_hash_set(svc_impl->methods, "add_endpoint_element",
AXIS2_HASH_KEY_STRING,
- axis2_woden_svc_add_enpoint_element);
+ axis2_woden_svc_add_endpoint_element);
axis2_hash_set(svc_impl->methods, "get_endpoint_elements",
AXIS2_HASH_KEY_STRING,
axis2_woden_svc_get_endpoint_elements);
@@ -630,14 +534,6 @@
svc_impl->svc.base.svc_element.ops = NULL;
}
- if(svc_impl->svc.base.svc_element.base.nested_element.ops)
- {
- AXIS2_FREE((*env)->allocator, svc_impl->svc.base.
- svc_element.base.nested_element.ops);
- svc_impl->svc.base.svc_element.base.nested_element.ops =
- NULL;
- }
-
if(svc_impl->svc.base.svc_element.base.documentable_element.ops)
{
AXIS2_FREE((*env)->allocator, svc_impl->svc.base.
@@ -654,21 +550,6 @@
NULL;
}
- if(svc_impl->svc.base.configurable.base.configurable.ops)
- {
- AXIS2_FREE((*env)->allocator, svc_impl->svc.base.
- configurable.base.configurable.ops);
- svc_impl->svc.base.configurable.base.configurable.ops =
- NULL;
- }
-
- if(svc_impl->svc.base.configurable.base.nested_component.ops)
- {
- AXIS2_FREE((*env)->allocator, svc_impl->svc.base.
- configurable.base.nested_component.ops);
- svc_impl->svc.base.configurable.base.nested_component.ops = NULL;
- }
-
if(svc_impl->svc.base.configurable_component.ops)
{
AXIS2_FREE((*env)->allocator, svc_impl->svc.base.
@@ -788,7 +669,7 @@
* Service interface methods (the WSDL Component model)
* ************************************************************/
-woden_qname_t *AXIS2_CALL
+axis2_qname_t *AXIS2_CALL
axis2_woden_svc_get_qname(
void *svc,
axis2_env_t **env)
@@ -843,7 +724,7 @@
axis2_woden_svc_set_qname(
void *svc,
axis2_env_t **env,
- woden_nc_name_t *qname)
+ axis2_qname_t *qname)
{
axis2_woden_svc_impl_t *svc_impl = NULL;
axis2_hash_t *super = NULL;
Modified: webservices/axis2/trunk/c/woden/src/wsdl20/wsdl_ref.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl20/wsdl_ref.c?rev=410214&r1=410213&r2=410214&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl20/wsdl_ref.c (original)
+++ webservices/axis2/trunk/c/woden/src/wsdl20/wsdl_ref.c Tue May 30 01:20:38 2006
@@ -14,8 +14,9 @@
* limitations under the License.
*/
-#include <woden/axis2_woden_wsdl_ref.h>
+#include <woden/wsdl20/axis2_woden_wsdl_ref.h>
#include <woden/wsdl20/extensions/axis2_woden_component_exts.h>
+#include <woden/wsdl20/xml/axis2_woden_desc_element.h>
typedef struct axis2_woden_wsdl_ref_impl axis2_woden_wsdl_ref_impl_t;
@@ -31,7 +32,7 @@
axis2_woden_obj_types_t obj_type;
axis2_array_list_t *f_documentation_elements;
axis2_url_t *f_location;
- axis2_desc_element_t *f_desc_element;
+ axis2_woden_desc_element_t *f_desc_element;
};
#define INTF_TO_IMPL(wsdl_ref) ((axis2_woden_wsdl_ref_impl_t *) wsdl_ref)
@@ -274,7 +275,6 @@
axis2_env_t **env)
{
axis2_woden_wsdl_ref_impl_t *wsdl_ref_impl = NULL;
- axis2_char_t *str_namespc = NULL;
axis2_hash_t *super = NULL;
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
@@ -292,7 +292,6 @@
axis2_url_t *loc_uri)
{
axis2_woden_wsdl_ref_impl_t *wsdl_ref_impl = NULL;
- axis2_char_t *str_namespc;
axis2_hash_t *super = NULL;
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
@@ -314,7 +313,6 @@
axis2_env_t **env)
{
axis2_woden_wsdl_ref_impl_t *wsdl_ref_impl = NULL;
- axis2_char_t *str_namespc = NULL;
axis2_hash_t *super = NULL;
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
@@ -332,7 +330,6 @@
void *desc)
{
axis2_woden_wsdl_ref_impl_t *wsdl_ref_impl = NULL;
- axis2_char_t *str_namespc;
axis2_hash_t *super = NULL;
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
@@ -355,7 +352,6 @@
void *doc_el)
{
axis2_woden_wsdl_ref_impl_t *wsdl_ref_impl = NULL;
- axis2_char_t *str_namespc;
axis2_hash_t *super = NULL;
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
@@ -365,8 +361,8 @@
if(!wsdl_ref_impl->f_documentation_elements)
{
- f_documentation_elements = axis2_array_list_create(env, 0);
- if(!f_documentation_elements)
+ wsdl_ref_impl->f_documentation_elements = axis2_array_list_create(env, 0);
+ if(!wsdl_ref_impl->f_documentation_elements)
{
AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
return AXIS2_FAILURE;
@@ -382,7 +378,6 @@
axis2_env_t **env)
{
axis2_woden_wsdl_ref_impl_t *wsdl_ref_impl = NULL;
- axis2_char_t *str_namespc = NULL;
axis2_hash_t *super = NULL;
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
Modified: webservices/axis2/trunk/c/woden/src/wsdl20/xml/interface_element.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl20/xml/interface_element.c?rev=410214&r1=410213&r2=410214&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl20/xml/interface_element.c (original)
+++ webservices/axis2/trunk/c/woden/src/wsdl20/xml/interface_element.c Tue May 30 01:20:38 2006
@@ -27,9 +27,7 @@
interface_element->ops->free = axis2_hash_get(methods, "free",
AXIS2_HASH_KEY_STRING);
- interface_element->ops->to_interface_element_free =
- axis2_hash_get(methods, "to_interface_element_free",
- AXIS2_HASH_KEY_STRING);
+
interface_element->ops->type = axis2_hash_get(methods, "type",
AXIS2_HASH_KEY_STRING);
Added: webservices/axis2/trunk/c/woden/src/wsdl20/xml/svc_element.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl20/xml/svc_element.c?rev=410214&view=auto
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl20/xml/svc_element.c (added)
+++ webservices/axis2/trunk/c/woden/src/wsdl20/xml/svc_element.c Tue May 30 01:20:38 2006
@@ -0,0 +1,51 @@
+/*
+ * 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_svc_element.h>
+
+axis2_status_t AXIS2_CALL
+axis2_woden_svc_element_resolve_methods(
+ axis2_woden_svc_element_t *svc_element,
+ axis2_env_t **env,
+ axis2_hash_t *methods)
+{
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ AXIS2_PARAM_CHECK((*env)->error, methods, AXIS2_FAILURE);
+
+ svc_element->ops->free = axis2_hash_get(methods, "free",
+ AXIS2_HASH_KEY_STRING);
+ svc_element->ops->to_svc_element_free = axis2_hash_get(methods,
+ "to_svc_element_free", AXIS2_HASH_KEY_STRING);
+ svc_element->ops->type = axis2_hash_get(methods, "type",
+ AXIS2_HASH_KEY_STRING);
+ svc_element->ops->set_qname = axis2_hash_get(methods,
+ "set_qname", AXIS2_HASH_KEY_STRING);
+ svc_element->ops->get_qname = axis2_hash_get(methods,
+ "get_qname", AXIS2_HASH_KEY_STRING);
+ svc_element->ops->set_interface_qname = axis2_hash_get(methods,
+ "set_interface_qname", AXIS2_HASH_KEY_STRING);
+ svc_element->ops->get_interface_qname = axis2_hash_get(methods,
+ "get_interface_qname", AXIS2_HASH_KEY_STRING);
+ svc_element->ops->get_interface_element = axis2_hash_get(methods,
+ "get_interface_element", AXIS2_HASH_KEY_STRING);
+ svc_element->ops->add_endpoint_element = axis2_hash_get(methods,
+ "add_endpoint_element", AXIS2_HASH_KEY_STRING);
+ svc_element->ops->get_endpoint_elements = axis2_hash_get(methods,
+ "get_endpoint_elements", 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