axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject svn commit: r419147 [2/2] - in /webservices/axis2/trunk/c/woden: include/ samples/wsdl10/ src/builder/ src/builder/wsdl10/ src/schema/ src/wsdl10/ src/wsdl10/extensions/ src/wsdl10/xml/
Date Wed, 05 Jul 2006 03:25:48 GMT
Modified: webservices/axis2/trunk/c/woden/src/wsdl10/interface_msg_ref.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl10/interface_msg_ref.c?rev=419147&r1=419146&r2=419147&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl10/interface_msg_ref.c (original)
+++ webservices/axis2/trunk/c/woden/src/wsdl10/interface_msg_ref.c Tue Jul  4 20:25:47 2006
@@ -16,6 +16,10 @@
 
 #include <woden_wsdl_obj.h>
 #include <woden_wsdl10_interface_msg_ref.h>
+#include <woden_wsdl10_msg_ref.h>
+#include <woden_wsdl10_part.h>
+#include <woden_wsdl10_msg_ref_element.h>
+#include <woden_wsdl10_part_element.h>
 #include <woden_types.h>
 #include <woden_nested_configurable.h>
 #include <woden_ext_element.h>
@@ -41,7 +45,9 @@
     axis2_hash_t *methods;
 
     void *f_direction;
+    void *f_msg_label;
     axis2_qname_t *f_msg_qname;
+    void *f_msg;
     axis2_qname_t *f_qname;
 };
 
@@ -81,6 +87,21 @@
         void *interface_msg_ref,
         const axis2_env_t *env);
 
+void *AXIS2_CALL
+woden_wsdl10_interface_msg_ref_get_msg_label(
+        void *interface_msg_ref,
+        const axis2_env_t *env);
+
+axis2_char_t *AXIS2_CALL
+woden_wsdl10_interface_msg_ref_get_msg_content_model(
+        void *interface_msg_ref,
+        const axis2_env_t *env);
+
+void *AXIS2_CALL
+woden_wsdl10_interface_msg_ref_get_element_declaration(
+        void *interface_msg_ref,
+        const axis2_env_t *env);
+
 /* ************************************************************
  *  Interface Message Reference Element methods (the XML Element model)
  * ************************************************************/
@@ -102,6 +123,16 @@
         void *interface_msg_ref,
         const axis2_env_t *env);
 
+axis2_status_t AXIS2_CALL
+woden_wsdl10_interface_msg_ref_set_msg(
+        void *interface_msg_ref,
+        const axis2_env_t *env,
+        void *msg);
+
+void *AXIS2_CALL
+woden_wsdl10_interface_msg_ref_get_msg(
+        void *interface_msg_ref,
+        const axis2_env_t *env);
 
 axis2_status_t AXIS2_CALL
 woden_wsdl10_interface_msg_ref_set_msg_qname(
@@ -114,6 +145,49 @@
         void *interface_msg_ref,
         const axis2_env_t *env);
 
+axis2_status_t AXIS2_CALL
+woden_wsdl10_interface_msg_ref_set_msg_label(
+        void *interface_msg_ref,
+        const axis2_env_t *env,
+        void *msg_label);
+
+axis2_status_t AXIS2_CALL
+woden_wsdl10_interface_msg_ref_set_msg_content_model(
+        void *interface_msg_ref,
+        const axis2_env_t *env,
+        axis2_char_t *nm_token);
+
+axis2_status_t AXIS2_CALL
+woden_wsdl10_interface_msg_ref_set_element_qname(
+        void *interface_msg_ref,
+        const axis2_env_t *env,
+        axis2_qname_t *element);
+
+axis2_qname_t *AXIS2_CALL
+woden_wsdl10_interface_msg_ref_get_element_qname(
+        void *interface_msg_ref,
+        const axis2_env_t *env);
+
+void *AXIS2_CALL
+woden_wsdl10_interface_msg_ref_get_element(
+        void *interface_msg_ref,
+        const axis2_env_t *env);
+
+/* ************************************************************
+ *  Non-API implementation methods
+ * ************************************************************/
+axis2_status_t AXIS2_CALL
+woden_wsdl10_interface_msg_ref_set_element_declaration(
+        void *interface_msg_ref,
+        const axis2_env_t *env,
+        void *element);
+
+axis2_status_t AXIS2_CALL
+woden_wsdl10_interface_msg_ref_set_types(
+        void *interface_msg_ref,
+        const axis2_env_t *env,
+        void *types);
+
 static woden_wsdl10_interface_msg_ref_t *
 create(const axis2_env_t *env);
 
@@ -375,8 +449,10 @@
     interface_msg_ref_impl->super = NULL;
     interface_msg_ref_impl->methods = NULL;
     interface_msg_ref_impl->f_direction = NULL;
+    interface_msg_ref_impl->f_msg_label = NULL;
     interface_msg_ref_impl->f_qname = NULL;
     interface_msg_ref_impl->f_msg_qname = NULL;
+    interface_msg_ref_impl->f_msg = NULL;
     
     interface_msg_ref_impl->interface_msg_ref.base.interface_msg_ref_element.ops = NULL;
     interface_msg_ref_impl->interface_msg_ref.base.nested_configurable.ops = NULL;
@@ -422,27 +498,57 @@
     axis2_hash_set(interface_msg_ref_impl->methods, "type", 
             AXIS2_HASH_KEY_STRING, woden_wsdl10_interface_msg_ref_type);
 
+    axis2_hash_set(interface_msg_ref_impl->methods, "get_msg_label", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_wsdl10_interface_msg_ref_get_msg_label);
     axis2_hash_set(interface_msg_ref_impl->methods, "get_direction", 
             AXIS2_HASH_KEY_STRING, 
             woden_wsdl10_interface_msg_ref_get_direction);
+    axis2_hash_set(interface_msg_ref_impl->methods, "get_msg_content_model", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_wsdl10_interface_msg_ref_get_msg_content_model);
+    axis2_hash_set(interface_msg_ref_impl->methods, "get_element_declaration", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_wsdl10_interface_msg_ref_get_element_declaration);
     axis2_hash_set(interface_msg_ref_impl->methods, "to_element", 
             AXIS2_HASH_KEY_STRING, 
             woden_wsdl10_interface_msg_ref_to_element);
-    axis2_hash_set(interface_msg_ref_impl->methods, "set_qname", 
+    axis2_hash_set(interface_msg_ref_impl->methods, "set_msg_label", 
             AXIS2_HASH_KEY_STRING, 
-            woden_wsdl10_interface_msg_ref_set_qname);
-    axis2_hash_set(interface_msg_ref_impl->methods, "get_qname", 
+            woden_wsdl10_interface_msg_ref_set_msg_label);
+    axis2_hash_set(interface_msg_ref_impl->methods, "set_msg_content_model", 
             AXIS2_HASH_KEY_STRING, 
-            woden_wsdl10_interface_msg_ref_get_qname);
+            woden_wsdl10_interface_msg_ref_set_msg_content_model);
     axis2_hash_set(interface_msg_ref_impl->methods, "set_msg_qname", 
             AXIS2_HASH_KEY_STRING, 
             woden_wsdl10_interface_msg_ref_set_msg_qname);
     axis2_hash_set(interface_msg_ref_impl->methods, "get_msg_qname", 
             AXIS2_HASH_KEY_STRING, 
             woden_wsdl10_interface_msg_ref_get_msg_qname);
+    axis2_hash_set(interface_msg_ref_impl->methods, "set_qname", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_wsdl10_interface_msg_ref_set_qname);
+    axis2_hash_set(interface_msg_ref_impl->methods, "get_qname", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_wsdl10_interface_msg_ref_get_qname);
+    axis2_hash_set(interface_msg_ref_impl->methods, "set_element_qname", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_wsdl10_interface_msg_ref_set_element_qname);
+    axis2_hash_set(interface_msg_ref_impl->methods, "get_element_qname", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_wsdl10_interface_msg_ref_get_element_qname);
+    axis2_hash_set(interface_msg_ref_impl->methods, "get_element", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_wsdl10_interface_msg_ref_get_element);
     axis2_hash_set(interface_msg_ref_impl->methods, "set_direction", 
             AXIS2_HASH_KEY_STRING, 
             woden_wsdl10_interface_msg_ref_set_direction);
+    axis2_hash_set(interface_msg_ref_impl->methods, "set_element_declaration", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_wsdl10_interface_msg_ref_set_element_declaration);
+    axis2_hash_set(interface_msg_ref_impl->methods, "set_types", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_wsdl10_interface_msg_ref_set_types);
 
     return &(interface_msg_ref_impl->interface_msg_ref);
 }
@@ -580,6 +686,12 @@
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     interface_msg_ref_impl = INTF_TO_IMPL(interface_msg_ref);
 
+    if(interface_msg_ref_impl->f_msg_label)
+    {
+        WODEN_DIRECTION_FREE(interface_msg_ref_impl->f_msg_label, env);
+        interface_msg_ref_impl->f_msg_label = NULL;
+    }
+
     if(interface_msg_ref_impl->f_direction)
     {
         WODEN_DIRECTION_FREE(interface_msg_ref_impl->f_direction, env);
@@ -743,6 +855,72 @@
     return &(interface_msg_ref_impl->interface_msg_ref);
 }
 
+void *AXIS2_CALL
+woden_wsdl10_interface_msg_ref_get_msg_label(
+        void *interface_msg_ref,
+        const axis2_env_t *env)
+{
+    woden_wsdl10_interface_msg_ref_impl_t *interface_msg_ref_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_WSDL10_INTERFACE_MSG_REF_SUPER_OBJS(interface_msg_ref, env);
+    interface_msg_ref_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_WSDL10_INTERFACE_MSG_REF", AXIS2_HASH_KEY_STRING));
+
+    return interface_msg_ref_impl->f_msg_label;
+}
+
+axis2_char_t *AXIS2_CALL
+woden_wsdl10_interface_msg_ref_get_msg_content_model(
+        void *interface_msg_ref,
+        const axis2_env_t *env)
+{
+    woden_wsdl10_interface_msg_ref_impl_t *interface_msg_ref_impl = NULL;
+    axis2_hash_t *super = NULL;
+    void *msg_ref = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_WSDL10_INTERFACE_MSG_REF_SUPER_OBJS(interface_msg_ref, env);
+    interface_msg_ref_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_WSDL10_INTERFACE_MSG_REF", AXIS2_HASH_KEY_STRING));
+    
+    interface_msg_ref = 
+        woden_wsdl10_interface_msg_ref_to_interface_msg_ref_element(
+                interface_msg_ref, env);
+    msg_ref = WODEN_WSDL10_INTERFACE_MSG_REF_ELEMENT_GET_MSG(interface_msg_ref, 
+            env);
+    msg_ref = woden_wsdl10_msg_ref_to_msg_ref_element(msg_ref, env);
+    return WODEN_WSDL10_MSG_REF_ELEMENT_GET_MSG_CONTENT_MODEL(msg_ref, env);
+    
+}
+
+void *AXIS2_CALL
+woden_wsdl10_interface_msg_ref_get_element_declaration(
+        void *interface_msg_ref,
+        const axis2_env_t *env)
+{
+    woden_wsdl10_interface_msg_ref_impl_t *interface_msg_ref_impl = NULL;
+    axis2_hash_t *super = NULL;
+    void *msg_ref = NULL;
+    void *part = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_WSDL10_INTERFACE_MSG_REF_SUPER_OBJS(interface_msg_ref, env);
+    interface_msg_ref_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_WSDL10_INTERFACE_MSG_REF", AXIS2_HASH_KEY_STRING));
+    
+    interface_msg_ref = 
+        woden_wsdl10_interface_msg_ref_to_interface_msg_ref_element(
+                interface_msg_ref, env);
+    msg_ref = WODEN_WSDL10_INTERFACE_MSG_REF_ELEMENT_GET_MSG(interface_msg_ref, 
+            env);
+    msg_ref = woden_wsdl10_msg_ref_to_msg_ref_element(msg_ref, env);
+    part = WODEN_WSDL10_MSG_REF_ELEMENT_GET_PART(msg_ref, env);
+    return WODEN_WSDL10_PART_GET_ELEMENT_DECLARATION(part, env);
+    
+}
+
 /* ************************************************************
  *  Interface Message Reference Element methods (the XML Element model)
  * ************************************************************/
@@ -811,6 +989,41 @@
     return interface_msg_ref_impl->f_qname;
 }
 
+axis2_status_t AXIS2_CALL
+woden_wsdl10_interface_msg_ref_set_msg(
+        void *interface_msg_ref,
+        const axis2_env_t *env,
+        void *msg)
+{
+    woden_wsdl10_interface_msg_ref_impl_t *interface_msg_ref_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, msg, AXIS2_FAILURE);
+    super = WODEN_WSDL10_INTERFACE_MSG_REF_SUPER_OBJS(interface_msg_ref, env);
+    interface_msg_ref_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_WSDL10_INTERFACE_MSG_REF", AXIS2_HASH_KEY_STRING));
+
+    interface_msg_ref_impl->f_msg = msg;
+    return AXIS2_SUCCESS;
+}
+
+void *AXIS2_CALL
+woden_wsdl10_interface_msg_ref_get_msg(
+        void *interface_msg_ref,
+        const axis2_env_t *env)
+{
+    woden_wsdl10_interface_msg_ref_impl_t *interface_msg_ref_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = WODEN_WSDL10_INTERFACE_MSG_REF_SUPER_OBJS(interface_msg_ref, env);
+    interface_msg_ref_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_WSDL10_INTERFACE_MSG_REF", AXIS2_HASH_KEY_STRING));
+
+    return interface_msg_ref_impl->f_msg;
+}
+
 
 axis2_status_t AXIS2_CALL
 woden_wsdl10_interface_msg_ref_set_msg_qname(
@@ -851,4 +1064,187 @@
     return interface_msg_ref_impl->f_msg_qname;
 }
 
+axis2_status_t AXIS2_CALL
+woden_wsdl10_interface_msg_ref_set_msg_label(
+        void *interface_msg_ref,
+        const axis2_env_t *env,
+        void *msg_label)
+{
+    woden_wsdl10_interface_msg_ref_impl_t *interface_msg_ref_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, msg_label, AXIS2_FAILURE);
+    super = WODEN_WSDL10_INTERFACE_MSG_REF_SUPER_OBJS(interface_msg_ref, env);
+    interface_msg_ref_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_WSDL10_INTERFACE_MSG_REF", AXIS2_HASH_KEY_STRING));
+
+    if(!interface_msg_ref_impl->f_msg_label)
+    {
+        /* TODO */
+    }
+    interface_msg_ref_impl->f_msg_label = msg_label;
+
+
+    return AXIS2_SUCCESS;
+}
+
+axis2_status_t AXIS2_CALL
+woden_wsdl10_interface_msg_ref_set_msg_content_model(
+        void *interface_msg_ref,
+        const axis2_env_t *env,
+        axis2_char_t *nm_token)
+{
+    woden_wsdl10_interface_msg_ref_impl_t *interface_msg_ref_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, nm_token, AXIS2_FAILURE);
+    super = WODEN_WSDL10_INTERFACE_MSG_REF_SUPER_OBJS(interface_msg_ref, env);
+    interface_msg_ref_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_WSDL10_INTERFACE_MSG_REF", AXIS2_HASH_KEY_STRING));
+
+    /* TODO complete this */
+    return AXIS2_SUCCESS;
+}
+
+axis2_status_t AXIS2_CALL
+woden_wsdl10_interface_msg_ref_set_element_qname(
+        void *interface_msg_ref,
+        const axis2_env_t *env,
+        axis2_qname_t *element)
+{
+    woden_wsdl10_interface_msg_ref_impl_t *interface_msg_ref_impl = NULL;
+    axis2_hash_t *super = NULL;
+    void *msg_ref = NULL;
+    void *part = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, element, AXIS2_FAILURE);
+    super = WODEN_WSDL10_INTERFACE_MSG_REF_SUPER_OBJS(interface_msg_ref, env);
+    interface_msg_ref_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_WSDL10_INTERFACE_MSG_REF", AXIS2_HASH_KEY_STRING));
+    
+    interface_msg_ref = 
+        woden_wsdl10_interface_msg_ref_to_interface_msg_ref_element(
+                interface_msg_ref, env);
+    msg_ref = WODEN_WSDL10_INTERFACE_MSG_REF_ELEMENT_GET_MSG(interface_msg_ref, 
+            env);
+    msg_ref = woden_wsdl10_msg_ref_to_msg_ref_element(msg_ref, env);
+    part = WODEN_WSDL10_MSG_REF_ELEMENT_GET_PART(msg_ref, env);
+    part = woden_wsdl10_part_to_part_element(part, env);
+    return WODEN_WSDL10_PART_ELEMENT_SET_ELEMENT_QNAME(part, env, element);
+
+}
+
+axis2_qname_t *AXIS2_CALL
+woden_wsdl10_interface_msg_ref_get_element_qname(
+        void *interface_msg_ref,
+        const axis2_env_t *env)
+{
+    woden_wsdl10_interface_msg_ref_impl_t *interface_msg_ref_impl = NULL;
+    axis2_hash_t *super = NULL;
+    void *msg_ref = NULL;
+    void *part = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_WSDL10_INTERFACE_MSG_REF_SUPER_OBJS(interface_msg_ref, env);
+    interface_msg_ref_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_WSDL10_INTERFACE_MSG_REF", AXIS2_HASH_KEY_STRING));
+    
+    interface_msg_ref = 
+        woden_wsdl10_interface_msg_ref_to_interface_msg_ref_element(
+                interface_msg_ref, env);
+    msg_ref = WODEN_WSDL10_INTERFACE_MSG_REF_ELEMENT_GET_MSG(interface_msg_ref, 
+            env);
+    msg_ref = woden_wsdl10_msg_ref_to_msg_ref_element(msg_ref, env);
+    part = WODEN_WSDL10_MSG_REF_ELEMENT_GET_PART(msg_ref, env);
+    part = woden_wsdl10_part_to_part_element(part, env);
+    return WODEN_WSDL10_PART_ELEMENT_GET_ELEMENT_QNAME(part, env);
+}
+
+void *AXIS2_CALL
+woden_wsdl10_interface_msg_ref_get_element(
+        void *interface_msg_ref,
+        const axis2_env_t *env)
+{
+    woden_wsdl10_interface_msg_ref_impl_t *interface_msg_ref_impl = NULL;
+    axis2_hash_t *super = NULL;
+    void *msg_ref = NULL;
+    void *part = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_WSDL10_INTERFACE_MSG_REF_SUPER_OBJS(interface_msg_ref, env);
+    interface_msg_ref_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_WSDL10_INTERFACE_MSG_REF", AXIS2_HASH_KEY_STRING));
+    
+    interface_msg_ref = 
+        woden_wsdl10_interface_msg_ref_to_interface_msg_ref_element(
+                interface_msg_ref, env);
+    msg_ref = WODEN_WSDL10_INTERFACE_MSG_REF_ELEMENT_GET_MSG(interface_msg_ref, 
+            env);
+    msg_ref = woden_wsdl10_msg_ref_to_msg_ref_element(msg_ref, env);
+    part = WODEN_WSDL10_MSG_REF_ELEMENT_GET_PART(msg_ref, env);
+    return WODEN_WSDL10_PART_GET_ELEMENT_DECLARATION(part, env);
+
+}
+
+/* ************************************************************
+ *  Non-API implementation methods
+ * ************************************************************/
+axis2_status_t AXIS2_CALL
+woden_wsdl10_interface_msg_ref_set_element_declaration(
+        void *interface_msg_ref,
+        const axis2_env_t *env,
+        void *element)
+{
+    woden_wsdl10_interface_msg_ref_impl_t *interface_msg_ref_impl = NULL;
+    axis2_hash_t *super = NULL;
+    void *msg_ref = NULL;
+    void *part = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, element, AXIS2_FAILURE);
+    super = WODEN_WSDL10_INTERFACE_MSG_REF_SUPER_OBJS(interface_msg_ref, env);
+    interface_msg_ref_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_WSDL10_INTERFACE_MSG_REF", AXIS2_HASH_KEY_STRING));
+    
+    interface_msg_ref = 
+        woden_wsdl10_interface_msg_ref_to_interface_msg_ref_element(
+                interface_msg_ref, env);
+    msg_ref = WODEN_WSDL10_INTERFACE_MSG_REF_ELEMENT_GET_MSG(interface_msg_ref, 
+            env);
+    msg_ref = woden_wsdl10_msg_ref_to_msg_ref_element(msg_ref, env);
+    part = WODEN_WSDL10_MSG_REF_ELEMENT_GET_PART(msg_ref, env);
+    return WODEN_WSDL10_PART_SET_ELEMENT_DECLARATION(part, env, element);
+    
+}
+
+axis2_status_t AXIS2_CALL
+woden_wsdl10_interface_msg_ref_set_types(
+        void *interface_msg_ref,
+        const axis2_env_t *env,
+        void *types)
+{
+    woden_wsdl10_interface_msg_ref_impl_t *interface_msg_ref_impl = NULL;
+    axis2_hash_t *super = NULL;
+    void *msg_ref = NULL;
+    void *part = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, types, AXIS2_FAILURE);
+    super = WODEN_WSDL10_INTERFACE_MSG_REF_SUPER_OBJS(interface_msg_ref, env);
+    interface_msg_ref_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_WSDL10_INTERFACE_MSG_REF", AXIS2_HASH_KEY_STRING));
+
+    interface_msg_ref = 
+        woden_wsdl10_interface_msg_ref_to_interface_msg_ref_element(
+                interface_msg_ref, env);
+    msg_ref = WODEN_WSDL10_INTERFACE_MSG_REF_ELEMENT_GET_MSG(interface_msg_ref, 
+            env);
+    msg_ref = woden_wsdl10_msg_ref_to_msg_ref_element(msg_ref, env);
+    part = WODEN_WSDL10_MSG_REF_ELEMENT_GET_PART(msg_ref, env);
+    return WODEN_WSDL10_PART_SET_TYPES(part, env, types);
+
+}
 

Copied: webservices/axis2/trunk/c/woden/src/wsdl10/woden_types.c (from r416247, webservices/axis2/trunk/c/woden/src/wsdl10/types.c)
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl10/woden_types.c?p2=webservices/axis2/trunk/c/woden/src/wsdl10/woden_types.c&p1=webservices/axis2/trunk/c/woden/src/wsdl10/types.c&r1=416247&r2=419147&rev=419147&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl10/types.c (original)
+++ webservices/axis2/trunk/c/woden/src/wsdl10/woden_types.c Tue Jul  4 20:25:47 2006
@@ -76,7 +76,7 @@
 woden_types_add_schema(
         void *types,
         const axis2_env_t *env,
-        xml_schema_t *schema);
+        void *schema);
 
 axis2_status_t AXIS2_CALL 
 woden_types_remove_schema(
@@ -760,7 +760,7 @@
 woden_types_add_schema(
         void *types,
         const axis2_env_t *env,
-        xml_schema_t *schema)
+        void *schema)
 {
     woden_types_impl_t *types_impl = NULL;
     axis2_hash_t *super = NULL;
@@ -1025,8 +1025,7 @@
     size = AXIS2_ARRAY_LIST_SIZE(types_impl->f_schemas, env);
     for(i = 0; i < size; i++)
     {
-        woden_schema_t *s = (woden_schema_t *) 
-            AXIS2_ARRAY_LIST_GET(types_impl->f_schemas, env, i);
+        void *s = AXIS2_ARRAY_LIST_GET(types_impl->f_schemas, env, i);
         xml_schema_t *schema_def = WODEN_SCHEMA_GET_SCHEMA_DEF(s, 
                 env);
         if(AXIS2_TRUE == WODEN_SCHEMA_IS_REFERENCEABLE(s, env) &&

Modified: webservices/axis2/trunk/c/woden/src/wsdl10/wsdl_element.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl10/wsdl_element.c?rev=419147&r1=419146&r2=419147&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl10/wsdl_element.c (original)
+++ webservices/axis2/trunk/c/woden/src/wsdl10/wsdl_element.c Tue Jul  4 20:25:47 2006
@@ -144,6 +144,16 @@
         const axis2_env_t *env,
         axis2_uri_t *namespc);
 
+void *AXIS2_CALL 
+woden_wsdl_element_get_element_extensible(
+        void *wsdl_element,
+        const axis2_env_t *env);
+
+void *AXIS2_CALL 
+woden_wsdl_element_get_attr_extensible(
+        void *wsdl_element,
+        const axis2_env_t *env);
+
 static woden_wsdl_element_t *
 create(
         const axis2_env_t *env);
@@ -205,7 +215,8 @@
             AXIS2_MALLOC(env->allocator, 
             sizeof(woden_element_extensible_ops_t));
     woden_element_extensible_resolve_methods(&(wsdl_element_impl->
-            wsdl_element.base.element_extensible), env, NULL, wsdl_element_impl->methods);
+            wsdl_element.base.element_extensible), env, wsdl_element_impl->f_elem_ext,

+            wsdl_element_impl->methods);
     return wsdl_element;
 
 }
@@ -236,6 +247,10 @@
     wsdl_element_impl->wsdl_element.ops->super_objs = 
         woden_wsdl_element_super_objs;
     wsdl_element_impl->wsdl_element.ops->type = woden_wsdl_element_type;
+    wsdl_element_impl->wsdl_element.ops->get_element_extensible = 
+        woden_wsdl_element_get_element_extensible;
+    wsdl_element_impl->wsdl_element.ops->get_attr_extensible = 
+        woden_wsdl_element_get_attr_extensible;
         
     wsdl_element_impl->super = axis2_hash_make(env);
     if(!wsdl_element_impl->super) 
@@ -282,6 +297,12 @@
     axis2_hash_set(wsdl_element_impl->methods, "has_ext_elements_for_namespace", 
             AXIS2_HASH_KEY_STRING, 
             woden_wsdl_element_has_ext_elements_for_namespace);
+    axis2_hash_set(wsdl_element_impl->methods, "get_element_extensible", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_wsdl_element_get_element_extensible);
+    axis2_hash_set(wsdl_element_impl->methods, "get_attr_extensible", 
+            AXIS2_HASH_KEY_STRING, 
+            woden_wsdl_element_get_attr_extensible);
     
     return &(wsdl_element_impl->wsdl_element);
 }
@@ -639,5 +660,39 @@
     return WODEN_ELEMENT_EXTENSIBLE_HAS_EXT_ELEMENTS_FOR_NAMESPACE(
             wsdl_element_impl->f_elem_ext, env, namespc);
 }
+
+void *AXIS2_CALL 
+woden_wsdl_element_get_element_extensible(
+        void *wsdl_element,
+        const axis2_env_t *env) 
+{
+    woden_wsdl_element_impl_t *wsdl_element_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_WSDL_ELEMENT_SUPER_OBJS(wsdl_element, env);
+    wsdl_element_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_WSDL_ELEMENT", AXIS2_HASH_KEY_STRING)); 
+    
+    return wsdl_element_impl->f_elem_ext;
+}
+
+void *AXIS2_CALL 
+woden_wsdl_element_get_attr_extensible(
+        void *wsdl_element,
+        const axis2_env_t *env) 
+{
+    woden_wsdl_element_impl_t *wsdl_element_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = WODEN_WSDL_ELEMENT_SUPER_OBJS(wsdl_element, env);
+    wsdl_element_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "WODEN_WSDL_ELEMENT", AXIS2_HASH_KEY_STRING)); 
+    
+    return wsdl_element_impl->f_attr_ext;
+}
+
+
 
 

Modified: webservices/axis2/trunk/c/woden/src/wsdl10/xml/interface_msg_ref_element.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl10/xml/interface_msg_ref_element.c?rev=419147&r1=419146&r2=419147&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl10/xml/interface_msg_ref_element.c (original)
+++ webservices/axis2/trunk/c/woden/src/wsdl10/xml/interface_msg_ref_element.c Tue Jul  4
20:25:47 2006
@@ -38,6 +38,14 @@
             axis2_hash_get(methods, "get_qname", 
             AXIS2_HASH_KEY_STRING);
 
+    interface_msg_ref_element->ops->set_msg = 
+            axis2_hash_get(methods, "set_msg", 
+            AXIS2_HASH_KEY_STRING);
+
+    interface_msg_ref_element->ops->get_msg = 
+            axis2_hash_get(methods, "get_msg", 
+            AXIS2_HASH_KEY_STRING);
+
     interface_msg_ref_element->ops->set_msg_qname = 
             axis2_hash_get(methods, "set_msg_qname", 
             AXIS2_HASH_KEY_STRING);



---------------------------------------------------------------------
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