axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject svn commit: r413791 - in /webservices/axis2/trunk/c/woden: include/woden/ include/woden/wsdl20/extensions/soap/ src/wsdl20/extensions/soap/
Date Tue, 13 Jun 2006 02:41:11 GMT
Author: damitha
Date: Mon Jun 12 19:41:11 2006
New Revision: 413791

URL: http://svn.apache.org/viewvc?rev=413791&view=rev
Log:
Added soap_header_block_deserializer and soap_module_deserializer.

Added:
    webservices/axis2/trunk/c/woden/include/woden/wsdl20/extensions/soap/axis2_woden_soap_header_block_deserializer.h
    webservices/axis2/trunk/c/woden/include/woden/wsdl20/extensions/soap/axis2_woden_soap_module_deserializer.h
    webservices/axis2/trunk/c/woden/src/wsdl20/extensions/soap/soap_header_block_deserializer.c
    webservices/axis2/trunk/c/woden/src/wsdl20/extensions/soap/soap_module_deserializer.c
Modified:
    webservices/axis2/trunk/c/woden/include/woden/axis2_woden.h
    webservices/axis2/trunk/c/woden/include/woden/wsdl20/extensions/soap/axis2_woden_soap_header_block.h
    webservices/axis2/trunk/c/woden/src/wsdl20/extensions/soap/Makefile.am
    webservices/axis2/trunk/c/woden/src/wsdl20/extensions/soap/soap_header_block.c

Modified: webservices/axis2/trunk/c/woden/include/woden/axis2_woden.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/include/woden/axis2_woden.h?rev=413791&r1=413790&r2=413791&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/include/woden/axis2_woden.h (original)
+++ webservices/axis2/trunk/c/woden/include/woden/axis2_woden.h Mon Jun 12 19:41:11 2006
@@ -87,7 +87,9 @@
         AXIS2_QNAME,
         AXIS2_QNAME_LIST,
         AXIS2_WODEN_SOAP_HEADER_BLOCK,
-        AXIS2_WODEN_SOAP_MODULE
+        AXIS2_WODEN_SOAP_MODULE,
+        AXIS2_WODEN_SOAP_MODULE_DESERIALIZER,
+        AXIS2_WODEN_SOAP_HEADER_BLOCK_DESERIALIZER
     } axis2_woden_obj_types_t;
 
 /** @} */

Modified: webservices/axis2/trunk/c/woden/include/woden/wsdl20/extensions/soap/axis2_woden_soap_header_block.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/include/woden/wsdl20/extensions/soap/axis2_woden_soap_header_block.h?rev=413791&r1=413790&r2=413791&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/include/woden/wsdl20/extensions/soap/axis2_woden_soap_header_block.h (original)
+++ webservices/axis2/trunk/c/woden/include/woden/wsdl20/extensions/soap/axis2_woden_soap_header_block.h Mon Jun 12 19:41:11 2006
@@ -76,27 +76,27 @@
     void *(AXIS2_CALL *
     get_element_decl) (
             void *header_block,
-            axis2_env_t *env);
+            const axis2_env_t *env);
 
     axis2_bool_t (AXIS2_CALL * 
     must_understand) (
             void *header_block,
-            axis2_env_t *env);
+            const axis2_env_t *env);
 
     axis2_bool_t (AXIS2_CALL * 
     is_required) (
             void *header_block,
-            axis2_env_t *env);
+            const axis2_env_t *env);
 
     void *(AXIS2_CALL *
     get_parent) (
             void *header_block,
-            axis2_env_t *env);
+            const axis2_env_t *env);
 
     void *(AXIS2_CALL *
     to_element) (
             void *header_block,
-            axis2_env_t *env);
+            const axis2_env_t *env);
 
     /* ************************************************************
      *  Non-API implementation methods
@@ -105,13 +105,13 @@
     axis2_status_t (AXIS2_CALL * 
     set_element_decl) (
             void *header_block,
-            axis2_env_t *env,
+            const axis2_env_t *env,
             void *element_decl);
 
     axis2_status_t (AXIS2_CALL * 
     set_types) (
             void *header_block,
-            axis2_env_t *env,
+            const axis2_env_t *env,
             void *types);
 
 
@@ -163,43 +163,47 @@
 /************************End of Woden C Internal Methods***********************/
 
 #define AXIS2_WODEN_SOAP_HEADER_BLOCK_FREE(soap_header_block, env) \
-      (((axis2_woden_soap_header_block_t *) soap_header_block)->ops->free(soap_header_block, env))
+      (((axis2_woden_soap_header_block_t *) soap_header_block)->ops->\
+       free(soap_header_block, env))
 
 #define AXIS2_WODEN_SOAP_HEADER_BLOCK_SUPER_OBJS(soap_header_block, env) \
-      (((axis2_woden_soap_header_block_t *) soap_header_block)->ops->super_objs(soap_header_block, env))
+      (((axis2_woden_soap_header_block_t *) soap_header_block)->\
+       ops->super_objs(soap_header_block, env))
 
 #define AXIS2_WODEN_SOAP_HEADER_BLOCK_TYPE(soap_header_block, env) \
-      (((axis2_woden_soap_header_block_t *) soap_header_block)->ops->type(soap_header_block, env))
+      (((axis2_woden_soap_header_block_t *) soap_header_block)->ops->\
+       type(soap_header_block, env))
 
 #define AXIS2_WODEN_SOAP_HEADER_BLOCK_GET_BASE_IMPL(soap_header_block, env) \
-      (((axis2_woden_soap_header_block_t *) soap_header_block)->ops->get_base_impl(soap_header_block, env))
+      (((axis2_woden_soap_header_block_t *) soap_header_block)->ops->\
+       get_base_impl(soap_header_block, env))
 
 #define AXIS2_WODEN_SOAP_HEADER_BLOCK_GET_ELEMENT_DECL(soap_header_block, env) \
-      (((axis2_woden_soap_header_block_t *) soap_header_block)->\
+      (((axis2_woden_soap_header_block_t *) soap_header_block)->ops->\
         get_element_decl (soap_header_block, env))
 
 #define AXIS2_WODEN_SOAP_HEADER_BLOCK_MUST_UNDERSTAND(soap_header_block, env) \
-      (((axis2_woden_soap_header_block_t *) soap_header_block)->\
+      (((axis2_woden_soap_header_block_t *) soap_header_block)->ops->\
         must_understand (soap_header_block, env))
 
 #define AXIS2_WODEN_SOAP_HEADER_BLOCK_IS_REQUIRED(soap_header_block, env) \
-      (((axis2_woden_soap_header_block_t *) soap_header_block)->\
+      (((axis2_woden_soap_header_block_t *) soap_header_block)->ops->\
         is_required (soap_header_block, env))
 
 #define AXIS2_WODEN_SOAP_HEADER_BLOCK_GET_PARENT(soap_header_block, env) \
-      (((axis2_woden_soap_header_block_t *) soap_header_block)->\
+      (((axis2_woden_soap_header_block_t *) soap_header_block)->ops->\
         get_parent (soap_header_block, env))
 
 #define AXIS2_WODEN_SOAP_HEADER_BLOCK_TO_ELEMENT(soap_header_block, env) \
-      (((axis2_woden_soap_header_block_t *) soap_header_block)->\
+      (((axis2_woden_soap_header_block_t *) soap_header_block)->ops->\
         to_element (soap_header_block, env))
 
 #define AXIS2_WODEN_SOAP_HEADER_BLOCK_SET_ELEMENT_DECL(soap_header_block, env, element_decl) \
-      (((axis2_woden_soap_header_block_t *) soap_header_block)->\
+      (((axis2_woden_soap_header_block_t *) soap_header_block)->ops->\
         set_element_decl (soap_header_block, env, element_decl))
 
 #define AXIS2_WODEN_SOAP_HEADER_BLOCK_SET_TYPES(soap_header_block, env, types) \
-      (((axis2_woden_soap_header_block_t *) soap_header_block)->\
+      (((axis2_woden_soap_header_block_t *) soap_header_block)->ops->\
         set_types (soap_header_block, env, types))
 
 /** @} */

Added: webservices/axis2/trunk/c/woden/include/woden/wsdl20/extensions/soap/axis2_woden_soap_header_block_deserializer.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/include/woden/wsdl20/extensions/soap/axis2_woden_soap_header_block_deserializer.h?rev=413791&view=auto
==============================================================================
--- webservices/axis2/trunk/c/woden/include/woden/wsdl20/extensions/soap/axis2_woden_soap_header_block_deserializer.h (added)
+++ webservices/axis2/trunk/c/woden/include/woden/wsdl20/extensions/soap/axis2_woden_soap_header_block_deserializer.h Mon Jun 12 19:41:11 2006
@@ -0,0 +1,135 @@
+/*
+ * 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_SOAP_HEADER_BLOCK_DESERIALIZER_H
+#define AXIS2_WODEN_SOAP_HEADER_BLOCK_DESERIALIZER_H
+
+/**
+ * @file axis2_woden_soap_header_block_deserializer.h
+ * @brief Axis2 Soap Header Block Deserializer Soap Header Block Deserializer
+ * Deserializes the <wsoap:header_block> extension element into a 
+ * soap_header_block_element.
+ * 
+ */
+
+#include <woden/axis2_woden.h>
+#include <woden/wsdl20/extensions/axis2_woden_ext_deserializer.h>
+#include <woden/wsdl20/extensions/axis2_woden_ext_registry.h>
+#include <axiom_node.h>
+#include <axis2_qname.h>
+
+/** @defgroup axis2_woden_soap_header_block_deserializer Soap Header Block Deserializer
+  * @ingroup axis2_wsdl
+  * @{
+  */
+
+typedef struct axis2_woden_soap_header_block_deserializer 
+        axis2_woden_soap_header_block_deserializer_t;
+typedef struct axis2_woden_soap_header_block_deserializer_ops 
+        axis2_woden_soap_header_block_deserializer_ops_t;
+
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+struct axis2_woden_soap_header_block_deserializer_ops
+{
+   /** 
+     * Deallocate memory
+     * @return status code
+     */
+    axis2_status_t (AXIS2_CALL *
+    free) (void *mod_deser,
+            const axis2_env_t *env);
+
+    axis2_hash_t *(AXIS2_CALL *
+    super_objs) (void *mod_deser,
+            const axis2_env_t *env);
+
+    axis2_woden_obj_types_t (AXIS2_CALL *
+    type) (void *mod_deser,
+            const axis2_env_t *env);
+    /**
+     * @return the base implementation class
+     */
+    struct axis2_woden_ext_deserializer *(AXIS2_CALL *
+    get_base_impl) (
+            void *mod_deser,
+            const axis2_env_t *env);
+
+    void *(AXIS2_CALL *
+    marshall) (
+            void *mod_deser,
+            const axis2_env_t *env,
+            axis2_char_t *parent_type,
+            void *parent,
+            axis2_qname_t *element_type,
+            axiom_node_t *el_node,
+            void *desc,
+            axis2_woden_ext_registry_t *ext_reg);
+
+};
+
+struct axis2_woden_soap_header_block_deserializer
+{
+    axis2_woden_ext_deserializer_t ext_deserializer;
+    axis2_woden_soap_header_block_deserializer_ops_t *ops;
+};
+
+AXIS2_EXTERN axis2_woden_soap_header_block_deserializer_t * AXIS2_CALL
+axis2_woden_soap_header_block_deserializer_create(
+        const axis2_env_t *env);
+
+
+/***************************Woden C Internal Methods***************************/
+AXIS2_EXTERN axis2_woden_soap_header_block_deserializer_t * AXIS2_CALL
+axis2_woden_soap_header_block_deserializer_to_ext_deserializer(
+        void *mod_deser,
+        const axis2_env_t *env);
+
+AXIS2_EXTERN axis2_status_t AXIS2_CALL
+axis2_woden_soap_header_block_deserializer_resolve_methods(
+        axis2_woden_soap_header_block_deserializer_t *mod_deser,
+        const axis2_env_t *env,
+        axis2_woden_soap_header_block_deserializer_t *mod_deser_impl,
+        axis2_hash_t *methods);
+/************************End of Woden C Internal Methods***********************/
+
+#define AXIS2_WODEN_SOAP_HEADER_BLOCK_DESERIALIZER_FREE(mod_deser, env) \
+      (((axis2_woden_soap_header_block_deserializer_t *) mod_deser)->ops->free(mod_deser, env))
+
+#define AXIS2_WODEN_SOAP_HEADER_BLOCK_DESERIALIZER_SUPER_OBJS(mod_deser, env) \
+      (((axis2_woden_soap_header_block_deserializer_t *) mod_deser)->ops->super_objs(mod_deser, env))
+
+#define AXIS2_WODEN_SOAP_HEADER_BLOCK_DESERIALIZER_TYPE(mod_deser, env) \
+      (((axis2_woden_soap_header_block_deserializer_t *) mod_deser)->ops->type(mod_deser, env))
+
+#define AXIS2_WODEN_SOAP_HEADER_BLOCK_DESERIALIZER_GET_BASE_IMPL(mod_deser, env) \
+      (((axis2_woden_soap_header_block_deserializer_t *) mod_deser)->ops->get_base_impl(mod_deser, env))
+
+#define AXIS2_WODEN_SOAP_HEADER_BLOCK_DESERIALIZER_MARSHALL(mod_deser, env, \
+        parent_type, parent, element_type, el_node, desc, ext_reg) \
+      (((axis2_woden_soap_header_block_deserializer_t *) mod_deser)->\
+         marshall(mod_deser, env, parent_type, parent, element_type, el_node, \
+             desc, ext_reg))
+
+/** @} */
+#ifdef __cplusplus
+}
+#endif
+#endif /* AXIS2_WODEN_SOAP_HEADER_BLOCK_DESERIALIZER_H */

Added: webservices/axis2/trunk/c/woden/include/woden/wsdl20/extensions/soap/axis2_woden_soap_module_deserializer.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/include/woden/wsdl20/extensions/soap/axis2_woden_soap_module_deserializer.h?rev=413791&view=auto
==============================================================================
--- webservices/axis2/trunk/c/woden/include/woden/wsdl20/extensions/soap/axis2_woden_soap_module_deserializer.h (added)
+++ webservices/axis2/trunk/c/woden/include/woden/wsdl20/extensions/soap/axis2_woden_soap_module_deserializer.h Mon Jun 12 19:41:11 2006
@@ -0,0 +1,135 @@
+/*
+ * 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_SOAP_MODULE_DESERIALIZER_H
+#define AXIS2_WODEN_SOAP_MODULE_DESERIALIZER_H
+
+/**
+ * @file axis2_woden_soap_module_deserializer.h
+ * @brief Axis2 Soap Module Deserializer Soap Module Deserializer
+ * Deserializes the &lt;wsoap:module&gt; extension element into a 
+ * soap_module_element.
+ * 
+ */
+
+#include <woden/axis2_woden.h>
+#include <woden/wsdl20/extensions/axis2_woden_ext_deserializer.h>
+#include <woden/wsdl20/extensions/axis2_woden_ext_registry.h>
+#include <axiom_node.h>
+#include <axis2_qname.h>
+
+/** @defgroup axis2_woden_soap_module_deserializer Soap Module Deserializer
+  * @ingroup axis2_wsdl
+  * @{
+  */
+
+typedef struct axis2_woden_soap_module_deserializer 
+        axis2_woden_soap_module_deserializer_t;
+typedef struct axis2_woden_soap_module_deserializer_ops 
+        axis2_woden_soap_module_deserializer_ops_t;
+
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+struct axis2_woden_soap_module_deserializer_ops
+{
+   /** 
+     * Deallocate memory
+     * @return status code
+     */
+    axis2_status_t (AXIS2_CALL *
+    free) (void *mod_deser,
+            const axis2_env_t *env);
+
+    axis2_hash_t *(AXIS2_CALL *
+    super_objs) (void *mod_deser,
+            const axis2_env_t *env);
+
+    axis2_woden_obj_types_t (AXIS2_CALL *
+    type) (void *mod_deser,
+            const axis2_env_t *env);
+    /**
+     * @return the base implementation class
+     */
+    struct axis2_woden_ext_deserializer *(AXIS2_CALL *
+    get_base_impl) (
+            void *mod_deser,
+            const axis2_env_t *env);
+
+    void *(AXIS2_CALL *
+    marshall) (
+            void *mod_deser,
+            const axis2_env_t *env,
+            axis2_char_t *parent_type,
+            void *parent,
+            axis2_qname_t *element_type,
+            axiom_node_t *el_node,
+            void *desc,
+            axis2_woden_ext_registry_t *ext_reg);
+
+};
+
+struct axis2_woden_soap_module_deserializer
+{
+    axis2_woden_ext_deserializer_t ext_deserializer;
+    axis2_woden_soap_module_deserializer_ops_t *ops;
+};
+
+AXIS2_EXTERN axis2_woden_soap_module_deserializer_t * AXIS2_CALL
+axis2_woden_soap_module_deserializer_create(
+        const axis2_env_t *env);
+
+
+/***************************Woden C Internal Methods***************************/
+AXIS2_EXTERN axis2_woden_soap_module_deserializer_t * AXIS2_CALL
+axis2_woden_soap_module_deserializer_to_ext_deserializer(
+        void *mod_deser,
+        const axis2_env_t *env);
+
+AXIS2_EXTERN axis2_status_t AXIS2_CALL
+axis2_woden_soap_module_deserializer_resolve_methods(
+        axis2_woden_soap_module_deserializer_t *mod_deser,
+        const axis2_env_t *env,
+        axis2_woden_soap_module_deserializer_t *mod_deser_impl,
+        axis2_hash_t *methods);
+/************************End of Woden C Internal Methods***********************/
+
+#define AXIS2_WODEN_SOAP_MODULE_DESERIALIZER_FREE(mod_deser, env) \
+      (((axis2_woden_soap_module_deserializer_t *) mod_deser)->ops->free(mod_deser, env))
+
+#define AXIS2_WODEN_SOAP_MODULE_DESERIALIZER_SUPER_OBJS(mod_deser, env) \
+      (((axis2_woden_soap_module_deserializer_t *) mod_deser)->ops->super_objs(mod_deser, env))
+
+#define AXIS2_WODEN_SOAP_MODULE_DESERIALIZER_TYPE(mod_deser, env) \
+      (((axis2_woden_soap_module_deserializer_t *) mod_deser)->ops->type(mod_deser, env))
+
+#define AXIS2_WODEN_SOAP_MODULE_DESERIALIZER_GET_BASE_IMPL(mod_deser, env) \
+      (((axis2_woden_soap_module_deserializer_t *) mod_deser)->ops->get_base_impl(mod_deser, env))
+
+#define AXIS2_WODEN_SOAP_MODULE_DESERIALIZER_MARSHALL(mod_deser, env, \
+        parent_type, parent, element_type, el_node, desc, ext_reg) \
+      (((axis2_woden_soap_module_deserializer_t *) mod_deser)->\
+         marshall(mod_deser, env, parent_type, parent, element_type, el_node, \
+             desc, ext_reg))
+
+/** @} */
+#ifdef __cplusplus
+}
+#endif
+#endif /* AXIS2_WODEN_SOAP_MODULE_DESERIALIZER_H */

Modified: webservices/axis2/trunk/c/woden/src/wsdl20/extensions/soap/Makefile.am
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl20/extensions/soap/Makefile.am?rev=413791&r1=413790&r2=413791&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl20/extensions/soap/Makefile.am (original)
+++ webservices/axis2/trunk/c/woden/src/wsdl20/extensions/soap/Makefile.am Mon Jun 12 19:41:11 2006
@@ -9,7 +9,9 @@
 											soap_header_block_element.c \
 											soap_module_element.c \
 											soap_header_block.c \
-											soap_module.c
+											soap_module.c \
+											soap_module_deserializer.c \
+											soap_header_block_deserializer.c
 
 INCLUDES = -I$(top_builddir)/include \
 			@AXIOMINC@ \

Modified: webservices/axis2/trunk/c/woden/src/wsdl20/extensions/soap/soap_header_block.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl20/extensions/soap/soap_header_block.c?rev=413791&r1=413790&r2=413791&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl20/extensions/soap/soap_header_block.c (original)
+++ webservices/axis2/trunk/c/woden/src/wsdl20/extensions/soap/soap_header_block.c Mon Jun 12 19:41:11 2006
@@ -70,27 +70,27 @@
 void *AXIS2_CALL
 axis2_woden_soap_header_block_get_element_decl(
         void *header_block,
-        axis2_env_t *env);
+        const axis2_env_t *env);
 
 axis2_bool_t AXIS2_CALL 
 axis2_woden_soap_header_block_must_understand(
         void *header_block,
-        axis2_env_t *env);
+        const axis2_env_t *env);
 
 axis2_bool_t AXIS2_CALL 
 axis2_woden_soap_header_block_is_required(
         void *header_block,
-        axis2_env_t *env);
+        const axis2_env_t *env);
 
 void *AXIS2_CALL
 axis2_woden_soap_header_block_get_parent(
         void *header_block,
-        axis2_env_t *env);
+        const axis2_env_t *env);
 
 void *AXIS2_CALL
 axis2_woden_soap_header_block_to_element(
         void *header_block,
-        axis2_env_t *env);
+        const axis2_env_t *env);
 
 /* ***********************************************************************
  *  Element model-only methods (SOAPHeaderBlockElement interface)
@@ -99,62 +99,62 @@
 axis2_status_t AXIS2_CALL 
 axis2_woden_soap_header_block_set_element_qname(
         void *header_block,
-        axis2_env_t *env,
+        const axis2_env_t *env,
         axis2_qname_t *qname); 
 
 axis2_qname_t *AXIS2_CALL 
 axis2_woden_soap_header_block_get_element_qname(
         void *header_block,
-        axis2_env_t *env);
+        const axis2_env_t *env);
 
 void *AXIS2_CALL
 axis2_woden_soap_header_block_get_element(
         void *header_block,
-        axis2_env_t *env);
+        const axis2_env_t *env);
 
 axis2_status_t AXIS2_CALL 
 axis2_woden_soap_header_block_set_must_understand(
         void *header_block,
-        axis2_env_t *env,
+        const axis2_env_t *env,
         axis2_bool_t understood);
 
 axis2_status_t AXIS2_CALL 
 axis2_woden_soap_header_block_set_parent_element(
         void *header_block,
-        axis2_env_t *env,
+        const axis2_env_t *env,
         void *wsdl_el);
 
 void *AXIS2_CALL
 axis2_woden_soap_header_block_get_parent_element(
         void *header_block,
-        axis2_env_t *env); 
+        const axis2_env_t *env); 
 
 axis2_status_t AXIS2_CALL 
 axis2_woden_soap_header_block_add_documentation_element(
         void *header_block,
-        axis2_env_t *env,
+        const axis2_env_t *env,
         void *doc_el);
 
 axis2_array_list_t *AXIS2_CALL 
 axis2_woden_soap_header_block_get_documentation_elements(
         void *header_block,
-        axis2_env_t *env);
+        const axis2_env_t *env);
 
 axis2_status_t AXIS2_CALL 
 axis2_woden_soap_header_block_set_extension_type(
         void *header_block,
-        axis2_env_t *env,
+        const axis2_env_t *env,
         axis2_qname_t *qname); 
 
 axis2_qname_t *AXIS2_CALL 
 axis2_woden_soap_header_block_get_extension_type(
         void *header_block,
-        axis2_env_t *env);
+        const axis2_env_t *env);
 
 axis2_status_t AXIS2_CALL 
 axis2_woden_soap_header_block_set_required(
         void *header_block,
-        axis2_env_t *env,
+        const axis2_env_t *env,
         axis2_bool_t required);
 
 /* ***********************************************************************
@@ -164,60 +164,60 @@
 axis2_status_t AXIS2_CALL 
 axis2_woden_soap_header_block_set_ext_attr(
         void *header_block,
-        axis2_env_t *env,
+        const axis2_env_t *env,
         axis2_qname_t *attr_type, 
         void *attr);
 
 void *AXIS2_CALL
 axis2_woden_soap_header_block_get_ext_attr(
         void *header_block,
-        axis2_env_t *env,
+        const axis2_env_t *env,
         axis2_qname_t *attr_type);
 
 axis2_array_list_t *AXIS2_CALL 
 axis2_woden_soap_header_block_get_ext_attrs_for_namespace(
         void *header_block,
-        axis2_env_t *env,
+        const axis2_env_t *env,
         axis2_uri_t *namespc);
 
 axis2_array_list_t *AXIS2_CALL 
 axis2_woden_soap_header_block_get_ext_attrs(
         void *header_block,
-        axis2_env_t *env);
+        const axis2_env_t *env);
 
 axis2_bool_t AXIS2_CALL 
 axis2_woden_soap_header_block_has_ext_attrs_for_namespace(
         void *header_block,
-        axis2_env_t *env,
+        const axis2_env_t *env,
         axis2_uri_t *namespc);
 
 axis2_status_t AXIS2_CALL 
 axis2_woden_soap_header_block_add_ext_element(
         void *header_block,
-        axis2_env_t *env,
+        const axis2_env_t *env,
         void *ext_el);
 
 axis2_status_t AXIS2_CALL 
 axis2_woden_soap_header_block_remove_ext_element(
         void *header_block,
-        axis2_env_t *env,
+        const axis2_env_t *env,
         void *ext_el);
 
 axis2_array_list_t *AXIS2_CALL 
 axis2_woden_soap_header_block_get_ext_elements(
         void *header_block,
-        axis2_env_t *env);
+        const axis2_env_t *env);
 
 axis2_array_list_t *AXIS2_CALL 
 axis2_woden_soap_header_block_get_ext_elements_of_type(
         void *header_block,
-        axis2_env_t *env,
+        const axis2_env_t *env,
         axis2_qname_t *ext_type); 
 
 axis2_bool_t AXIS2_CALL 
 axis2_woden_soap_header_block_has_ext_elements_for_namespace(
         void *header_block,
-        axis2_env_t *env,
+        const axis2_env_t *env,
         axis2_uri_t *namespc); 
 
 /* ************************************************************
@@ -227,13 +227,13 @@
 axis2_status_t AXIS2_CALL 
 axis2_woden_soap_header_block_set_element_decl(
         void *header_block,
-        axis2_env_t *env,
+        const axis2_env_t *env,
         void *element_decl);
 
 axis2_status_t AXIS2_CALL 
 axis2_woden_soap_header_block_set_types(
         void *header_block,
-        axis2_env_t *env,
+        const axis2_env_t *env,
         void *types);
 
 static axis2_woden_soap_header_block_t *
@@ -776,7 +776,7 @@
 void *AXIS2_CALL
 axis2_woden_soap_header_block_get_element_decl(
         void *header_block,
-        axis2_env_t *env) 
+        const axis2_env_t *env) 
 {
     axis2_woden_soap_header_block_impl_t *header_block_impl = NULL;
     axis2_hash_t *super = NULL;
@@ -792,7 +792,7 @@
 axis2_bool_t AXIS2_CALL 
 axis2_woden_soap_header_block_must_understand(
         void *header_block,
-        axis2_env_t *env) 
+        const axis2_env_t *env) 
 {
     axis2_woden_soap_header_block_impl_t *header_block_impl = NULL;
     axis2_hash_t *super = NULL;
@@ -808,7 +808,7 @@
 axis2_bool_t AXIS2_CALL 
 axis2_woden_soap_header_block_is_required(
         void *header_block,
-        axis2_env_t *env) 
+        const axis2_env_t *env) 
 {
     axis2_woden_soap_header_block_impl_t *header_block_impl = NULL;
     axis2_hash_t *super = NULL;
@@ -824,7 +824,7 @@
 void *AXIS2_CALL
 axis2_woden_soap_header_block_get_parent(
         void *header_block,
-        axis2_env_t *env) 
+        const axis2_env_t *env) 
 {
     axis2_woden_soap_header_block_impl_t *header_block_impl = NULL;
     axis2_hash_t *super = NULL;
@@ -840,7 +840,7 @@
 void *AXIS2_CALL
 axis2_woden_soap_header_block_to_element(
         void *header_block,
-        axis2_env_t *env) 
+        const axis2_env_t *env) 
 {
     axis2_woden_soap_header_block_impl_t *header_block_impl = NULL;
     axis2_hash_t *super = NULL;
@@ -861,7 +861,7 @@
 axis2_status_t AXIS2_CALL 
 axis2_woden_soap_header_block_set_element_qname(
         void *header_block,
-        axis2_env_t *env,
+        const axis2_env_t *env,
         axis2_qname_t *qname) 
 {
     axis2_woden_soap_header_block_impl_t *header_block_impl = NULL;
@@ -887,7 +887,7 @@
 axis2_qname_t *AXIS2_CALL 
 axis2_woden_soap_header_block_get_element_qname(
         void *header_block,
-        axis2_env_t *env) 
+        const axis2_env_t *env) 
 {
     axis2_woden_soap_header_block_impl_t *header_block_impl = NULL;
     axis2_hash_t *super = NULL;
@@ -903,7 +903,7 @@
 void *AXIS2_CALL
 axis2_woden_soap_header_block_get_element(
         void *header_block,
-        axis2_env_t *env) 
+        const axis2_env_t *env) 
 {
     axis2_woden_soap_header_block_impl_t *header_block_impl = NULL;
     axis2_hash_t *super = NULL;
@@ -926,7 +926,7 @@
 axis2_status_t AXIS2_CALL 
 axis2_woden_soap_header_block_set_must_understand(
         void *header_block,
-        axis2_env_t *env,
+        const axis2_env_t *env,
         axis2_bool_t understood) 
 {
     axis2_woden_soap_header_block_impl_t *header_block_impl = NULL;
@@ -946,7 +946,7 @@
 axis2_status_t AXIS2_CALL 
 axis2_woden_soap_header_block_set_parent_element(
         void *header_block,
-        axis2_env_t *env,
+        const axis2_env_t *env,
         void *wsdl_el) 
 {
     axis2_woden_soap_header_block_impl_t *header_block_impl = NULL;
@@ -970,7 +970,7 @@
 void *AXIS2_CALL
 axis2_woden_soap_header_block_get_parent_element(
         void *header_block,
-        axis2_env_t *env) 
+        const axis2_env_t *env) 
 {
     axis2_woden_soap_header_block_impl_t *header_block_impl = NULL;
     axis2_hash_t *super = NULL;
@@ -986,7 +986,7 @@
 axis2_status_t AXIS2_CALL 
 axis2_woden_soap_header_block_add_documentation_element(
         void *header_block,
-        axis2_env_t *env,
+        const axis2_env_t *env,
         void *doc_el) 
 {
     axis2_woden_soap_header_block_impl_t *header_block_impl = NULL;
@@ -1015,7 +1015,7 @@
 axis2_array_list_t *AXIS2_CALL 
 axis2_woden_soap_header_block_get_documentation_elements(
         void *header_block,
-        axis2_env_t *env) 
+        const axis2_env_t *env) 
 {
     axis2_woden_soap_header_block_impl_t *header_block_impl = NULL;
     axis2_hash_t *super = NULL;
@@ -1031,7 +1031,7 @@
 axis2_status_t AXIS2_CALL 
 axis2_woden_soap_header_block_set_extension_type(
         void *header_block,
-        axis2_env_t *env,
+        const axis2_env_t *env,
         axis2_qname_t *qname) 
 {
     axis2_woden_soap_header_block_impl_t *header_block_impl = NULL;
@@ -1056,7 +1056,7 @@
 axis2_qname_t *AXIS2_CALL 
 axis2_woden_soap_header_block_get_extension_type(
         void *header_block,
-        axis2_env_t *env) 
+        const axis2_env_t *env) 
 {
     axis2_woden_soap_header_block_impl_t *header_block_impl = NULL;
     axis2_hash_t *super = NULL;
@@ -1072,7 +1072,7 @@
 axis2_status_t AXIS2_CALL 
 axis2_woden_soap_header_block_set_required(
         void *header_block,
-        axis2_env_t *env,
+        const axis2_env_t *env,
         axis2_bool_t required) 
 {
     axis2_woden_soap_header_block_impl_t *header_block_impl = NULL;
@@ -1095,7 +1095,7 @@
 axis2_status_t AXIS2_CALL 
 axis2_woden_soap_header_block_set_ext_attr(
         void *header_block,
-        axis2_env_t *env,
+        const axis2_env_t *env,
         axis2_qname_t *attr_type, 
         void *attr) 
 {
@@ -1116,7 +1116,7 @@
 void *AXIS2_CALL
 axis2_woden_soap_header_block_get_ext_attr(
         void *header_block,
-        axis2_env_t *env,
+        const axis2_env_t *env,
         axis2_qname_t *attr_type) 
 {
     axis2_woden_soap_header_block_impl_t *header_block_impl = NULL;
@@ -1135,7 +1135,7 @@
 axis2_array_list_t *AXIS2_CALL 
 axis2_woden_soap_header_block_get_ext_attrs_for_namespace(
         void *header_block,
-        axis2_env_t *env,
+        const axis2_env_t *env,
         axis2_uri_t *namespc) 
 {
     axis2_woden_soap_header_block_impl_t *header_block_impl = NULL;
@@ -1154,7 +1154,7 @@
 axis2_array_list_t *AXIS2_CALL 
 axis2_woden_soap_header_block_get_ext_attrs(
         void *header_block,
-        axis2_env_t *env)
+        const axis2_env_t *env)
 {
     axis2_woden_soap_header_block_impl_t *header_block_impl = NULL;
     axis2_hash_t *super = NULL;
@@ -1171,7 +1171,7 @@
 axis2_bool_t AXIS2_CALL 
 axis2_woden_soap_header_block_has_ext_attrs_for_namespace(
         void *header_block,
-        axis2_env_t *env,
+        const axis2_env_t *env,
         axis2_uri_t *namespc) 
 {
     axis2_woden_soap_header_block_impl_t *header_block_impl = NULL;
@@ -1190,7 +1190,7 @@
 axis2_status_t AXIS2_CALL 
 axis2_woden_soap_header_block_add_ext_element(
         void *header_block,
-        axis2_env_t *env,
+        const axis2_env_t *env,
         void *ext_el) 
 {
     axis2_woden_soap_header_block_impl_t *header_block_impl = NULL;
@@ -1209,7 +1209,7 @@
 axis2_status_t AXIS2_CALL 
 axis2_woden_soap_header_block_remove_ext_element(
         void *header_block,
-        axis2_env_t *env,
+        const axis2_env_t *env,
         void *ext_el) 
 {
     axis2_woden_soap_header_block_impl_t *header_block_impl = NULL;
@@ -1230,7 +1230,7 @@
 axis2_array_list_t *AXIS2_CALL 
 axis2_woden_soap_header_block_get_ext_elements(
         void *header_block,
-        axis2_env_t *env)
+        const axis2_env_t *env)
 {
     axis2_woden_soap_header_block_impl_t *header_block_impl = NULL;
     axis2_hash_t *super = NULL;
@@ -1247,7 +1247,7 @@
 axis2_array_list_t *AXIS2_CALL 
 axis2_woden_soap_header_block_get_ext_elements_of_type(
         void *header_block,
-        axis2_env_t *env,
+        const axis2_env_t *env,
         axis2_qname_t *ext_type) 
 {
     axis2_woden_soap_header_block_impl_t *header_block_impl = NULL;
@@ -1266,7 +1266,7 @@
 axis2_bool_t AXIS2_CALL 
 axis2_woden_soap_header_block_has_ext_elements_for_namespace(
         void *header_block,
-        axis2_env_t *env,
+        const axis2_env_t *env,
         axis2_uri_t *namespc) 
 {
     axis2_woden_soap_header_block_impl_t *header_block_impl = NULL;
@@ -1289,7 +1289,7 @@
 axis2_status_t AXIS2_CALL 
 axis2_woden_soap_header_block_set_element_decl(
         void *header_block,
-        axis2_env_t *env,
+        const axis2_env_t *env,
         void *element_decl)
 {
     axis2_woden_soap_header_block_impl_t *header_block_impl = NULL;
@@ -1315,7 +1315,7 @@
 axis2_status_t AXIS2_CALL 
 axis2_woden_soap_header_block_set_types(
         void *header_block,
-        axis2_env_t *env,
+        const axis2_env_t *env,
         void *types) 
 {
     axis2_woden_soap_header_block_impl_t *header_block_impl = NULL;

Added: webservices/axis2/trunk/c/woden/src/wsdl20/extensions/soap/soap_header_block_deserializer.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl20/extensions/soap/soap_header_block_deserializer.c?rev=413791&view=auto
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl20/extensions/soap/soap_header_block_deserializer.c (added)
+++ webservices/axis2/trunk/c/woden/src/wsdl20/extensions/soap/soap_header_block_deserializer.c Mon Jun 12 19:41:11 2006
@@ -0,0 +1,423 @@
+/*
+ * 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/soap/axis2_woden_soap_header_block_deserializer.h>
+#include <woden/wsdl20/extensions/soap/axis2_woden_soap_header_block.h>
+#include <woden/wsdl20/extensions/soap/axis2_woden_soap_header_block_element.h>
+#include <woden/wsdl20/axis2_woden_desc.h>
+#include <woden/wsdl20/xml/axis2_woden_desc_element.h>
+#include <woden/wsdl20/axis2_woden_documentation.h>
+#include <woden/wsdl20/xml/axis2_woden_documentation_element.h>
+#include "../../woden_constants.h"
+#include "axis2_woden_soap_constants.h"
+#include <axiom_element.h>
+#include <axiom_util.h>
+
+
+typedef struct axis2_woden_soap_header_block_deserializer_impl 
+        axis2_woden_soap_header_block_deserializer_impl_t;
+
+/** 
+ * @brief Soap Header Block Deserializer Struct Impl
+ *   Axis2 Soap Header Block Deserializer  
+ */ 
+struct axis2_woden_soap_header_block_deserializer_impl
+{
+    axis2_woden_soap_header_block_deserializer_t header_deser;
+    axis2_woden_obj_types_t obj_type;
+    axis2_hash_t *super;
+    axis2_hash_t *methods;
+};
+
+#define INTF_TO_IMPL(header_deser) \
+    ((axis2_woden_soap_header_block_deserializer_impl_t *) header_deser)
+
+axis2_status_t AXIS2_CALL 
+axis2_woden_soap_header_block_deserializer_free(
+        void *header_deser,
+        const axis2_env_t *env);
+
+axis2_woden_obj_types_t AXIS2_CALL 
+axis2_woden_soap_header_block_deserializer_type(
+        void *header_deser,
+        const axis2_env_t *env);
+
+axis2_hash_t *AXIS2_CALL 
+axis2_woden_soap_header_block_deserializer_super_objs(
+        void *header_deser,
+        const axis2_env_t *env);
+
+void *AXIS2_CALL
+axis2_woden_soap_header_block_deserializer_marshall(
+        void *header_deser,
+        const axis2_env_t *env,
+        axis2_char_t *parent_type,
+        void *parent,
+        axis2_qname_t *ext_type,
+        axiom_node_t *ext_el_node,
+        void *desc,
+        axis2_woden_ext_registry_t *ext_reg);
+
+static void *
+parse_documentation(
+        void *reader,
+        const axis2_env_t *env,
+        axiom_node_t *doc_el_node,
+        void *desc);
+
+static axis2_woden_soap_header_block_deserializer_t *
+create(const axis2_env_t *env);
+
+static axis2_status_t
+axis2_woden_soap_header_block_deserializer_free_ops(
+        void *header_deser,
+        const axis2_env_t *env);
+
+/************************Woden C Internal Methods******************************/
+
+AXIS2_EXTERN axis2_woden_soap_header_block_deserializer_t * AXIS2_CALL
+axis2_woden_soap_header_block_deserializer_to_ext_deserializer(
+        void *header_deser,
+        const axis2_env_t *env)
+{
+    axis2_woden_soap_header_block_deserializer_impl_t *header_deser_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    if(!header_deser)
+    {
+        header_deser_impl = (axis2_woden_soap_header_block_deserializer_impl_t *) 
+            create(env);
+    }
+    else
+        header_deser_impl = (axis2_woden_soap_header_block_deserializer_impl_t *) 
+            header_deser;
+
+    axis2_woden_soap_header_block_deserializer_free_ops(header_deser, env);
+
+    header_deser_impl->header_deser.ext_deserializer.ops = 
+        AXIS2_MALLOC(env->allocator, 
+                sizeof(axis2_woden_ext_deserializer_ops_t));
+    axis2_woden_ext_deserializer_resolve_methods(&(header_deser_impl->header_deser.
+            ext_deserializer), env, header_deser_impl->methods);
+    return header_deser;
+}
+
+/************************End of Woden C Internal Methods***********************/
+static axis2_woden_soap_header_block_deserializer_t *
+create(const axis2_env_t *env)
+{
+    axis2_woden_soap_header_block_deserializer_impl_t *header_deser_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    header_deser_impl = AXIS2_MALLOC(env->allocator, 
+                    sizeof(axis2_woden_soap_header_block_deserializer_impl_t));
+
+    header_deser_impl->obj_type= AXIS2_WODEN_SOAP_HEADER_BLOCK_DESERIALIZER;
+    header_deser_impl->super = NULL;
+    header_deser_impl->methods = NULL;
+    
+    header_deser_impl->header_deser.ext_deserializer.ops = NULL;
+    
+    header_deser_impl->header_deser.ops = AXIS2_MALLOC(env->allocator, 
+            sizeof(axis2_woden_soap_header_block_deserializer_ops_t));
+
+    header_deser_impl->header_deser.ops->free = 
+        axis2_woden_soap_header_block_deserializer_free;
+    header_deser_impl->header_deser.ops->super_objs = 
+        axis2_woden_soap_header_block_deserializer_super_objs;
+    header_deser_impl->header_deser.ops->type = 
+        axis2_woden_soap_header_block_deserializer_type;
+    
+    header_deser_impl->header_deser.ops->marshall = 
+        axis2_woden_soap_header_block_deserializer_marshall;
+ 
+    header_deser_impl->methods = axis2_hash_make(env);
+    if(!header_deser_impl->methods) 
+    {
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        return NULL;
+    }
+    axis2_hash_set(header_deser_impl->methods, "free", AXIS2_HASH_KEY_STRING, 
+            axis2_woden_soap_header_block_deserializer_free);
+    axis2_hash_set(header_deser_impl->methods, "super_objs", AXIS2_HASH_KEY_STRING, 
+            axis2_woden_soap_header_block_deserializer_super_objs);
+    axis2_hash_set(header_deser_impl->methods, "type", 
+            AXIS2_HASH_KEY_STRING, axis2_woden_soap_header_block_deserializer_type);
+
+    axis2_hash_set(header_deser_impl->methods, "marshall", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_soap_header_block_deserializer_marshall);
+
+    return &(header_deser_impl->header_deser);
+}
+
+AXIS2_EXTERN axis2_woden_soap_header_block_deserializer_t * AXIS2_CALL
+axis2_woden_soap_header_block_deserializer_create(const axis2_env_t *env)
+{
+    axis2_woden_soap_header_block_deserializer_impl_t *header_deser_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    header_deser_impl = (axis2_woden_soap_header_block_deserializer_impl_t *) create(env);
+
+    header_deser_impl->super = axis2_hash_make(env);
+    if(!header_deser_impl->super) 
+    {
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        return NULL;
+    }
+    axis2_hash_set(header_deser_impl->super, "AXIS2_WODEN_SOAP_HEADER_BLOCK_DESERIALIZER", 
+            AXIS2_HASH_KEY_STRING, &(header_deser_impl->header_deser));
+ 
+    return &(header_deser_impl->header_deser);
+}
+
+static axis2_status_t
+axis2_woden_soap_header_block_deserializer_free_ops(
+        void *header_deser,
+        const axis2_env_t *env)
+{
+    axis2_woden_soap_header_block_deserializer_impl_t *header_deser_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    header_deser_impl = INTF_TO_IMPL(header_deser);
+
+    if(header_deser_impl->header_deser.ext_deserializer.ops)
+    {
+        AXIS2_FREE(env->allocator, header_deser_impl->header_deser.
+                ext_deserializer.ops);
+        header_deser_impl->header_deser.ext_deserializer.ops = 
+            NULL;
+    }
+
+    return AXIS2_SUCCESS;
+}
+
+
+axis2_status_t AXIS2_CALL
+axis2_woden_soap_header_block_deserializer_free(
+        void *header_deser,
+        const axis2_env_t *env)
+{
+    axis2_woden_soap_header_block_deserializer_impl_t *header_deser_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    header_deser_impl = INTF_TO_IMPL(header_deser);
+
+    if(header_deser_impl->super)
+    {
+        axis2_hash_free(header_deser_impl->super, env);
+        header_deser_impl->super = NULL;
+    }
+    
+    if(header_deser_impl->methods)
+    {
+        axis2_hash_free(header_deser_impl->methods, env);
+        header_deser_impl->methods = NULL;
+    }
+
+    axis2_woden_soap_header_block_deserializer_free_ops(header_deser, env);
+
+    if((&(header_deser_impl->header_deser))->ops)
+    {
+        AXIS2_FREE(env->allocator, (&(header_deser_impl->header_deser))->ops);
+        (&(header_deser_impl->header_deser))->ops = NULL;
+    }
+    
+    if(header_deser_impl)
+    {
+        AXIS2_FREE(env->allocator, header_deser_impl);
+        header_deser_impl = NULL;
+    }
+    return AXIS2_SUCCESS;
+}
+
+axis2_hash_t *AXIS2_CALL
+axis2_woden_soap_header_block_deserializer_super_objs(
+        void *header_deser,
+        const axis2_env_t *env)
+{
+    axis2_woden_soap_header_block_deserializer_impl_t *header_deser_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    header_deser_impl = INTF_TO_IMPL(header_deser);
+
+    return header_deser_impl->super;
+}
+
+axis2_woden_obj_types_t AXIS2_CALL
+axis2_woden_soap_header_block_deserializer_type(
+        void *header_deser,
+        const axis2_env_t *env)
+{
+    axis2_woden_soap_header_block_deserializer_impl_t *header_deser_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    header_deser_impl = INTF_TO_IMPL(header_deser);
+
+    return header_deser_impl->obj_type;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_soap_header_block_deserializer_resolve_methods(
+        axis2_woden_soap_header_block_deserializer_t *header_deser,
+        const axis2_env_t *env,
+        axis2_woden_soap_header_block_deserializer_t *header_deser_impl,
+        axis2_hash_t *methods)
+{
+    axis2_woden_soap_header_block_deserializer_impl_t *header_deser_impl_l = NULL;
+    
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, methods, AXIS2_FAILURE);
+    header_deser_impl_l = INTF_TO_IMPL(header_deser_impl);
+    
+    header_deser->ops->free = axis2_hash_get(methods, "free", 
+            AXIS2_HASH_KEY_STRING);
+    header_deser->ops->super_objs = axis2_hash_get(methods, "super_objs", 
+            AXIS2_HASH_KEY_STRING);
+    header_deser->ops->type = axis2_hash_get(methods, "type", 
+            AXIS2_HASH_KEY_STRING);
+    
+    header_deser->ops->marshall = axis2_hash_get(methods, 
+            "marshall", AXIS2_HASH_KEY_STRING);
+    if(!header_deser->ops->marshall && header_deser_impl_l)
+            header_deser->ops->marshall = 
+            header_deser_impl_l->header_deser.ops->marshall;
+    
+    return AXIS2_SUCCESS;
+}
+
+void *AXIS2_CALL
+axis2_woden_soap_header_block_deserializer_marshall(
+        void *header_deser,
+        const axis2_env_t *env,
+        axis2_char_t *parent_type,
+        void *parent,
+        axis2_qname_t *ext_type,
+        axiom_node_t *ext_el_node,
+        void *desc,
+        axis2_woden_ext_registry_t *ext_reg)
+{
+    axis2_woden_soap_header_block_deserializer_impl_t *header_deser_impl = NULL;
+    axis2_hash_t *super = NULL;
+    void *soap_hdr = NULL;
+    axis2_char_t *element_decl_qn = NULL;
+    axis2_char_t *must_understand = NULL;
+    axis2_char_t *req = NULL;
+    axiom_element_t *ext_el = NULL;
+    axiom_element_t *temp_el = NULL;
+    axiom_node_t *temp_el_node = NULL;
+    axis2_bool_t understood = AXIS2_FALSE;
+    axis2_bool_t required = AXIS2_FALSE;
+    void *types = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = AXIS2_WODEN_SOAP_HEADER_BLOCK_DESERIALIZER_SUPER_OBJS(header_deser, env);
+    header_deser_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_SOAP_HEADER_BLOCK_DESERIALIZER", AXIS2_HASH_KEY_STRING));
+   
+    soap_hdr = AXIS2_WODEN_EXT_REGISTRY_QUERY_EXT_ELEMENT_TYPE(ext_reg, env, 
+            parent_type, ext_type);
+
+    soap_hdr = axis2_woden_soap_header_block_to_ext_element(soap_hdr, env);
+    AXIS2_WODEN_EXT_ELEMENT_SET_EXT_TYPE(soap_hdr, env, ext_type);
+    soap_hdr = axis2_woden_soap_header_block_to_soap_header_block_element(soap_hdr, env);
+    AXIS2_WODEN_SOAP_HEADER_BLOCK_ELEMENT_SET_PARENT_ELEMENT(soap_hdr, env, parent);
+
+    element_decl_qn = AXIOM_ELEMENT_GET_ATTRIBUTE_VALUE_BY_NAME(ext_el, env, 
+            WODEN_ATTR_ELEMENT); 
+    if(NULL != element_decl_qn)
+    {
+        axis2_uri_t *uri = axis2_uri_parse_string(env, element_decl_qn);
+        
+        soap_hdr = axis2_woden_soap_header_block_to_soap_header_block_element(soap_hdr, env);
+        AXIS2_WODEN_SOAP_HEADER_BLOCK_ELEMENT_SET_REF(soap_hdr, env, uri);
+    }
+    must_understand = AXIOM_ELEMENT_GET_ATTRIBUTE_VALUE_BY_NAME(ext_el, env, 
+            WODEN_ATTR_MUSTUNDERSTAND);
+    if(NULL != must_understand && 0 == AXIS2_STRCMP(WODEN_VALUE_TRUE, must_understand))
+            understood = AXIS2_TRUE;
+    else
+            understood = AXIS2_FALSE;
+    soap_hdr = axis2_woden_soap_header_block_to_soap_header_block_element(soap_hdr, env);
+    AXIS2_WODEN_EXT_ELEMENT_SET_MUST_UNDERSTAND(soap_hdr, env, understood);
+
+    req = AXIOM_ELEMENT_GET_ATTRIBUTE_VALUE_BY_NAME(ext_el, env, 
+            WODEN_ATTR_REQUIRED);
+    if(NULL != req && 0 == AXIS2_STRCMP(WODEN_VALUE_TRUE, req))
+            required = AXIS2_TRUE;
+    else
+            required = AXIS2_FALSE;
+    soap_hdr = axis2_woden_soap_header_block_to_ext_element(soap_hdr, env);
+    AXIS2_WODEN_EXT_ELEMENT_SET_REQUIRED(soap_hdr, env, required);
+    
+    desc = axis2_woden_desc_to_desc_element(desc, env);
+    types = AXIS2_WODEN_DESC_ELEMENT_GET_TYPES_ELEMENT(desc, env);
+    AXIS2_WODEN_SOAP_HEADER_BLOCK_SET_TYPES(soap_hdr, env, types);
+
+    ext_el = AXIOM_NODE_GET_DATA_ELEMENT(ext_el_node, env);
+    temp_el = axiom_util_get_first_child_element(ext_el, env, ext_el_node, 
+            &temp_el_node);
+
+    while (NULL != temp_el && NULL != temp_el_node)
+    {
+        axis2_qname_t *q_elem_documentation = NULL;
+
+        q_elem_documentation = axis2_qname_create_from_string(env, 
+                WODEN_Q_ELEM_DOCUMENTATION);
+
+        if(AXIS2_TRUE == axis2_qname_util_matches(env, 
+                    q_elem_documentation, temp_el_node))
+        {
+            void *documentation = NULL;
+
+            documentation = parse_documentation(header_deser, env, temp_el_node, desc);
+            soap_hdr = axis2_woden_soap_header_block_to_soap_header_block_element(soap_hdr, env);
+            AXIS2_WODEN_SOAP_HEADER_BLOCK_ELEMENT_ADD_DOCUMENTATION_ELEMENT(soap_hdr, env, 
+                    documentation);
+        }
+        else
+        {
+            /* TODO Parse ext elements */
+        }
+
+        temp_el = axiom_util_get_next_sibling_element(temp_el, env, 
+                temp_el_node, &temp_el_node); 
+    }
+    
+    return soap_hdr;
+}
+
+static void *
+parse_documentation(
+        void *header_deser,
+        const axis2_env_t *env,
+        axiom_node_t *doc_el_node,
+        void *desc)
+{
+    void *documentation = NULL;
+    
+    desc = axis2_woden_desc_to_desc_element(desc, env);
+    documentation = AXIS2_WODEN_DESC_ELEMENT_CREATE_DOCUMENTATION_ELEMENT(desc, 
+            env);
+    
+    documentation = axis2_woden_documentation_to_documentation_element(
+            documentation, env);
+    AXIS2_WODEN_DOCUMENTATION_ELEMENT_SET_CONTENT(documentation, env, doc_el_node);
+    
+    return documentation;
+}
+
+

Added: webservices/axis2/trunk/c/woden/src/wsdl20/extensions/soap/soap_module_deserializer.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl20/extensions/soap/soap_module_deserializer.c?rev=413791&view=auto
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl20/extensions/soap/soap_module_deserializer.c (added)
+++ webservices/axis2/trunk/c/woden/src/wsdl20/extensions/soap/soap_module_deserializer.c Mon Jun 12 19:41:11 2006
@@ -0,0 +1,406 @@
+/*
+ * 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/soap/axis2_woden_soap_module_deserializer.h>
+#include <woden/wsdl20/extensions/soap/axis2_woden_soap_module.h>
+#include <woden/wsdl20/extensions/soap/axis2_woden_soap_module_element.h>
+#include <woden/wsdl20/axis2_woden_desc.h>
+#include <woden/wsdl20/xml/axis2_woden_desc_element.h>
+#include <woden/wsdl20/axis2_woden_documentation.h>
+#include <woden/wsdl20/xml/axis2_woden_documentation_element.h>
+#include "../../woden_constants.h"
+#include <axiom_element.h>
+#include <axiom_util.h>
+
+
+typedef struct axis2_woden_soap_module_deserializer_impl 
+        axis2_woden_soap_module_deserializer_impl_t;
+
+/** 
+ * @brief Soap Module Deserializer Struct Impl
+ *   Axis2 Soap Module Deserializer  
+ */ 
+struct axis2_woden_soap_module_deserializer_impl
+{
+    axis2_woden_soap_module_deserializer_t mod_deser;
+    axis2_woden_obj_types_t obj_type;
+    axis2_hash_t *super;
+    axis2_hash_t *methods;
+};
+
+#define INTF_TO_IMPL(mod_deser) \
+    ((axis2_woden_soap_module_deserializer_impl_t *) mod_deser)
+
+axis2_status_t AXIS2_CALL 
+axis2_woden_soap_module_deserializer_free(
+        void *mod_deser,
+        const axis2_env_t *env);
+
+axis2_woden_obj_types_t AXIS2_CALL 
+axis2_woden_soap_module_deserializer_type(
+        void *mod_deser,
+        const axis2_env_t *env);
+
+axis2_hash_t *AXIS2_CALL 
+axis2_woden_soap_module_deserializer_super_objs(
+        void *mod_deser,
+        const axis2_env_t *env);
+
+void *AXIS2_CALL
+axis2_woden_soap_module_deserializer_marshall(
+        void *mod_deser,
+        const axis2_env_t *env,
+        axis2_char_t *parent_type,
+        void *parent,
+        axis2_qname_t *element_type,
+        axiom_node_t *el_node,
+        void *desc,
+        axis2_woden_ext_registry_t *ext_reg);
+
+static void *
+parse_documentation(
+        void *reader,
+        const axis2_env_t *env,
+        axiom_node_t *doc_el_node,
+        void *desc);
+
+static axis2_woden_soap_module_deserializer_t *
+create(const axis2_env_t *env);
+
+static axis2_status_t
+axis2_woden_soap_module_deserializer_free_ops(
+        void *mod_deser,
+        const axis2_env_t *env);
+
+/************************Woden C Internal Methods******************************/
+
+AXIS2_EXTERN axis2_woden_soap_module_deserializer_t * AXIS2_CALL
+axis2_woden_soap_module_deserializer_to_ext_deserializer(
+        void *mod_deser,
+        const axis2_env_t *env)
+{
+    axis2_woden_soap_module_deserializer_impl_t *mod_deser_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    if(!mod_deser)
+    {
+        mod_deser_impl = (axis2_woden_soap_module_deserializer_impl_t *) 
+            create(env);
+    }
+    else
+        mod_deser_impl = (axis2_woden_soap_module_deserializer_impl_t *) 
+            mod_deser;
+
+    axis2_woden_soap_module_deserializer_free_ops(mod_deser, env);
+
+    mod_deser_impl->mod_deser.ext_deserializer.ops = 
+        AXIS2_MALLOC(env->allocator, 
+                sizeof(axis2_woden_ext_deserializer_ops_t));
+    axis2_woden_ext_deserializer_resolve_methods(&(mod_deser_impl->mod_deser.
+            ext_deserializer), env, mod_deser_impl->methods);
+    return mod_deser;
+}
+
+/************************End of Woden C Internal Methods***********************/
+static axis2_woden_soap_module_deserializer_t *
+create(const axis2_env_t *env)
+{
+    axis2_woden_soap_module_deserializer_impl_t *mod_deser_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    mod_deser_impl = AXIS2_MALLOC(env->allocator, 
+                    sizeof(axis2_woden_soap_module_deserializer_impl_t));
+
+    mod_deser_impl->obj_type= AXIS2_WODEN_SOAP_MODULE_DESERIALIZER;
+    mod_deser_impl->super = NULL;
+    mod_deser_impl->methods = NULL;
+    
+    mod_deser_impl->mod_deser.ext_deserializer.ops = NULL;
+    
+    mod_deser_impl->mod_deser.ops = AXIS2_MALLOC(env->allocator, 
+            sizeof(axis2_woden_soap_module_deserializer_ops_t));
+
+    mod_deser_impl->mod_deser.ops->free = 
+        axis2_woden_soap_module_deserializer_free;
+    mod_deser_impl->mod_deser.ops->super_objs = 
+        axis2_woden_soap_module_deserializer_super_objs;
+    mod_deser_impl->mod_deser.ops->type = 
+        axis2_woden_soap_module_deserializer_type;
+    
+    mod_deser_impl->mod_deser.ops->marshall = 
+        axis2_woden_soap_module_deserializer_marshall;
+ 
+    mod_deser_impl->methods = axis2_hash_make(env);
+    if(!mod_deser_impl->methods) 
+    {
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        return NULL;
+    }
+    axis2_hash_set(mod_deser_impl->methods, "free", AXIS2_HASH_KEY_STRING, 
+            axis2_woden_soap_module_deserializer_free);
+    axis2_hash_set(mod_deser_impl->methods, "super_objs", AXIS2_HASH_KEY_STRING, 
+            axis2_woden_soap_module_deserializer_super_objs);
+    axis2_hash_set(mod_deser_impl->methods, "type", 
+            AXIS2_HASH_KEY_STRING, axis2_woden_soap_module_deserializer_type);
+
+    axis2_hash_set(mod_deser_impl->methods, "marshall", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_soap_module_deserializer_marshall);
+
+    return &(mod_deser_impl->mod_deser);
+}
+
+AXIS2_EXTERN axis2_woden_soap_module_deserializer_t * AXIS2_CALL
+axis2_woden_soap_module_deserializer_create(const axis2_env_t *env)
+{
+    axis2_woden_soap_module_deserializer_impl_t *mod_deser_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    mod_deser_impl = (axis2_woden_soap_module_deserializer_impl_t *) create(env);
+
+    mod_deser_impl->super = axis2_hash_make(env);
+    if(!mod_deser_impl->super) 
+    {
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        return NULL;
+    }
+    axis2_hash_set(mod_deser_impl->super, "AXIS2_WODEN_SOAP_MODULE_DESERIALIZER", 
+            AXIS2_HASH_KEY_STRING, &(mod_deser_impl->mod_deser));
+ 
+    return &(mod_deser_impl->mod_deser);
+}
+
+static axis2_status_t
+axis2_woden_soap_module_deserializer_free_ops(
+        void *mod_deser,
+        const axis2_env_t *env)
+{
+    axis2_woden_soap_module_deserializer_impl_t *mod_deser_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    mod_deser_impl = INTF_TO_IMPL(mod_deser);
+
+    if(mod_deser_impl->mod_deser.ext_deserializer.ops)
+    {
+        AXIS2_FREE(env->allocator, mod_deser_impl->mod_deser.
+                ext_deserializer.ops);
+        mod_deser_impl->mod_deser.ext_deserializer.ops = 
+            NULL;
+    }
+
+    return AXIS2_SUCCESS;
+}
+
+
+axis2_status_t AXIS2_CALL
+axis2_woden_soap_module_deserializer_free(
+        void *mod_deser,
+        const axis2_env_t *env)
+{
+    axis2_woden_soap_module_deserializer_impl_t *mod_deser_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    mod_deser_impl = INTF_TO_IMPL(mod_deser);
+
+    if(mod_deser_impl->super)
+    {
+        axis2_hash_free(mod_deser_impl->super, env);
+        mod_deser_impl->super = NULL;
+    }
+    
+    if(mod_deser_impl->methods)
+    {
+        axis2_hash_free(mod_deser_impl->methods, env);
+        mod_deser_impl->methods = NULL;
+    }
+
+    axis2_woden_soap_module_deserializer_free_ops(mod_deser, env);
+
+    if((&(mod_deser_impl->mod_deser))->ops)
+    {
+        AXIS2_FREE(env->allocator, (&(mod_deser_impl->mod_deser))->ops);
+        (&(mod_deser_impl->mod_deser))->ops = NULL;
+    }
+    
+    if(mod_deser_impl)
+    {
+        AXIS2_FREE(env->allocator, mod_deser_impl);
+        mod_deser_impl = NULL;
+    }
+    return AXIS2_SUCCESS;
+}
+
+axis2_hash_t *AXIS2_CALL
+axis2_woden_soap_module_deserializer_super_objs(
+        void *mod_deser,
+        const axis2_env_t *env)
+{
+    axis2_woden_soap_module_deserializer_impl_t *mod_deser_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    mod_deser_impl = INTF_TO_IMPL(mod_deser);
+
+    return mod_deser_impl->super;
+}
+
+axis2_woden_obj_types_t AXIS2_CALL
+axis2_woden_soap_module_deserializer_type(
+        void *mod_deser,
+        const axis2_env_t *env)
+{
+    axis2_woden_soap_module_deserializer_impl_t *mod_deser_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    mod_deser_impl = INTF_TO_IMPL(mod_deser);
+
+    return mod_deser_impl->obj_type;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_soap_module_deserializer_resolve_methods(
+        axis2_woden_soap_module_deserializer_t *mod_deser,
+        const axis2_env_t *env,
+        axis2_woden_soap_module_deserializer_t *mod_deser_impl,
+        axis2_hash_t *methods)
+{
+    axis2_woden_soap_module_deserializer_impl_t *mod_deser_impl_l = NULL;
+    
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, methods, AXIS2_FAILURE);
+    mod_deser_impl_l = INTF_TO_IMPL(mod_deser_impl);
+    
+    mod_deser->ops->free = axis2_hash_get(methods, "free", 
+            AXIS2_HASH_KEY_STRING);
+    mod_deser->ops->super_objs = axis2_hash_get(methods, "super_objs", 
+            AXIS2_HASH_KEY_STRING);
+    mod_deser->ops->type = axis2_hash_get(methods, "type", 
+            AXIS2_HASH_KEY_STRING);
+    
+    mod_deser->ops->marshall = axis2_hash_get(methods, 
+            "marshall", AXIS2_HASH_KEY_STRING);
+    if(!mod_deser->ops->marshall && mod_deser_impl_l)
+            mod_deser->ops->marshall = 
+            mod_deser_impl_l->mod_deser.ops->marshall;
+    
+    return AXIS2_SUCCESS;
+}
+
+void *AXIS2_CALL
+axis2_woden_soap_module_deserializer_marshall(
+        void *mod_deser,
+        const axis2_env_t *env,
+        axis2_char_t *parent_type,
+        void *parent,
+        axis2_qname_t *element_type,
+        axiom_node_t *el_node,
+        void *desc,
+        axis2_woden_ext_registry_t *ext_reg)
+{
+    axis2_woden_soap_module_deserializer_impl_t *mod_deser_impl = NULL;
+    axis2_hash_t *super = NULL;
+    void *soap_mod = NULL;
+    axis2_char_t *ref = NULL;
+    axis2_char_t *req = NULL;
+    axiom_element_t *el = NULL;
+    axiom_element_t *temp_el = NULL;
+    axiom_node_t *temp_el_node = NULL;
+    axis2_bool_t required = AXIS2_FALSE;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = AXIS2_WODEN_SOAP_MODULE_DESERIALIZER_SUPER_OBJS(mod_deser, env);
+    mod_deser_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_SOAP_MODULE_DESERIALIZER", AXIS2_HASH_KEY_STRING));
+   
+    soap_mod = AXIS2_WODEN_EXT_REGISTRY_QUERY_EXT_ELEMENT_TYPE(ext_reg, env, 
+            parent_type, element_type);
+
+    soap_mod = axis2_woden_soap_module_to_ext_element(soap_mod, env);
+    AXIS2_WODEN_EXT_ELEMENT_SET_EXT_TYPE(soap_mod, env, element_type);
+    soap_mod = axis2_woden_soap_module_to_soap_module_element(soap_mod, env);
+    AXIS2_WODEN_SOAP_MODULE_ELEMENT_SET_PARENT_ELEMENT(soap_mod, env, parent);
+
+    ref = AXIOM_ELEMENT_GET_ATTRIBUTE_VALUE_BY_NAME(el, env, 
+            WODEN_ATTR_REF); 
+    if(NULL != ref)
+    {
+        axis2_uri_t *uri = axis2_uri_parse_string(env, ref);
+        
+        soap_mod = axis2_woden_soap_module_to_soap_module_element(soap_mod, env);
+        AXIS2_WODEN_SOAP_MODULE_ELEMENT_SET_REF(soap_mod, env, uri);
+    }
+    req = AXIOM_ELEMENT_GET_ATTRIBUTE_VALUE_BY_NAME(el, env, 
+            WODEN_ATTR_REQUIRED);
+    if(NULL != req && 0 == AXIS2_STRCMP(WODEN_VALUE_TRUE, req))
+            required = AXIS2_TRUE;
+    else
+            required = AXIS2_FALSE;
+    soap_mod = axis2_woden_soap_module_to_ext_element(soap_mod, env);
+    AXIS2_WODEN_EXT_ELEMENT_SET_REQUIRED(soap_mod, env, required);
+
+    el = AXIOM_NODE_GET_DATA_ELEMENT(el_node, env);
+    temp_el = axiom_util_get_first_child_element(el, env, el_node, 
+            &temp_el_node);
+
+    while (NULL != temp_el && NULL != temp_el_node)
+    {
+        axis2_qname_t *q_elem_documentation = NULL;
+
+        q_elem_documentation = axis2_qname_create_from_string(env, 
+                WODEN_Q_ELEM_DOCUMENTATION);
+
+        if(AXIS2_TRUE == axis2_qname_util_matches(env, 
+                    q_elem_documentation, temp_el_node))
+        {
+            void *documentation = NULL;
+
+            documentation = parse_documentation(mod_deser, env, temp_el_node, desc);
+            soap_mod = axis2_woden_soap_module_to_soap_module_element(soap_mod, env);
+            AXIS2_WODEN_SOAP_MODULE_ELEMENT_ADD_DOCUMENTATION_ELEMENT(soap_mod, env, 
+                    documentation);
+        }
+        else
+        {
+            /* TODO Parse ext elements */
+        }
+
+        temp_el = axiom_util_get_next_sibling_element(temp_el, env, 
+                temp_el_node, &temp_el_node); 
+    }
+    
+    return soap_mod;
+}
+
+static void *
+parse_documentation(
+        void *mod_deser,
+        const axis2_env_t *env,
+        axiom_node_t *doc_el_node,
+        void *desc)
+{
+    void *documentation = NULL;
+    
+    desc = axis2_woden_desc_to_desc_element(desc, env);
+    documentation = AXIS2_WODEN_DESC_ELEMENT_CREATE_DOCUMENTATION_ELEMENT(desc, 
+            env);
+    
+    documentation = axis2_woden_documentation_to_documentation_element(
+            documentation, env);
+    AXIS2_WODEN_DOCUMENTATION_ELEMENT_SET_CONTENT(documentation, env, doc_el_node);
+    
+    return documentation;
+}
+
+



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


Mime
View raw message