axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject svn commit: r419525 - in /webservices/axis2/trunk/c/woden: include/woden_reader.h include/woden_wsdl10_reader.h samples/test_wsdl2.c samples/wsdl10/test_wsdl1.c src/builder/reader.c src/builder/wsdl10/wsdl10_reader.c test/woden_test.c
Date Thu, 06 Jul 2006 11:33:01 GMT
Author: damitha
Date: Thu Jul  6 04:33:01 2006
New Revision: 419525

URL: http://svn.apache.org/viewvc?rev=419525&view=rev
Log:
More refactoring work

Modified:
    webservices/axis2/trunk/c/woden/include/woden_reader.h
    webservices/axis2/trunk/c/woden/include/woden_wsdl10_reader.h
    webservices/axis2/trunk/c/woden/samples/test_wsdl2.c
    webservices/axis2/trunk/c/woden/samples/wsdl10/test_wsdl1.c
    webservices/axis2/trunk/c/woden/src/builder/reader.c
    webservices/axis2/trunk/c/woden/src/builder/wsdl10/wsdl10_reader.c
    webservices/axis2/trunk/c/woden/test/woden_test.c

Modified: webservices/axis2/trunk/c/woden/include/woden_reader.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/include/woden_reader.h?rev=419525&r1=419524&r2=419525&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/include/woden_reader.h (original)
+++ webservices/axis2/trunk/c/woden/include/woden_reader.h Thu Jul  6 04:33:01 2006
@@ -57,7 +57,7 @@
     read_wsdl) (
             void *reader,
             const axis2_env_t *env,
-            axiom_document_t *om_doc,
+            axiom_node_t *root_node,
             const axis2_char_t *uri);
 
     axis2_status_t (AXIS2_CALL *
@@ -86,9 +86,9 @@
 #define WODEN_READER_FREE(reader, env) \
       (((woden_reader_t *) reader)->ops->free(reader, env))
 
-#define WODEN_READER_READ_WSDL(reader, env, om_doc, uri) \
+#define WODEN_READER_READ_WSDL(reader, env, root_node, uri) \
       (((woden_reader_t *) reader)->ops->\
-      read_wsdl (reader, env, om_doc, uri))
+      read_wsdl (reader, env, root_node, uri))
 
 #define WODEN_READER_SET_EXT_REGISTRY(reader, env, ext_reg) \
       (((woden_reader_t *) reader)->ops->\

Modified: webservices/axis2/trunk/c/woden/include/woden_wsdl10_reader.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/include/woden_wsdl10_reader.h?rev=419525&r1=419524&r2=419525&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/include/woden_wsdl10_reader.h (original)
+++ webservices/axis2/trunk/c/woden/include/woden_wsdl10_reader.h Thu Jul  6 04:33:01 2006
@@ -57,7 +57,7 @@
     read_wsdl) (
             void *reader,
             const axis2_env_t *env,
-            axiom_document_t *om_doc,
+            axiom_node_t *root_node,
             const axis2_char_t *uri);
 
     axis2_status_t (AXIS2_CALL *
@@ -86,9 +86,9 @@
 #define WODEN_WSDL10_READER_FREE(reader, env) \
       (((woden_wsdl10_reader_t *) reader)->ops->free(reader, env))
 
-#define WODEN_WSDL10_READER_READ_WSDL(reader, env, om_doc, uri) \
+#define WODEN_WSDL10_READER_READ_WSDL(reader, env, root_node, uri) \
       (((woden_wsdl10_reader_t *) reader)->ops->\
-      read_wsdl (reader, env, om_doc, uri))
+      read_wsdl (reader, env, root_node, uri))
 
 #define WODEN_WSDL10_READER_SET_EXT_REGISTRY(reader, env, ext_reg) \
       (((woden_wsdl10_reader_t *) reader)->ops->\

Modified: webservices/axis2/trunk/c/woden/samples/test_wsdl2.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/samples/test_wsdl2.c?rev=419525&r1=419524&r2=419525&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/samples/test_wsdl2.c (original)
+++ webservices/axis2/trunk/c/woden/samples/test_wsdl2.c Thu Jul  6 04:33:01 2006
@@ -20,7 +20,7 @@
 #include <axis2_env.h>
 #include <axis2_utils.h>
 #include <platforms/axis2_platform_auto_sense.h>
-#include <woden_reader.h>
+#include <woden_resolver.h>
 #include <woden_desc.h>
 #include <woden_interface.h>
 #include <woden_svc.h>
@@ -38,7 +38,7 @@
     axiom_document_t *om_doc = NULL;
     axis2_char_t *doc_base_uri = NULL;
     axis2_char_t *axis2c_home = NULL;
-    woden_reader_t *reader = NULL;
+    woden_resolver_t *resolver = NULL;
     void *desc = NULL;
     void *intface = NULL;
     axis2_array_list_t *intfaces = NULL;
@@ -62,9 +62,9 @@
     om_doc = get_root_element_from_filename(env, filename);
     axis2c_home = AXIS2_GETENV("AXIS2C_HOME");
     doc_base_uri = AXIS2_STRACAT (axis2c_home, "/woden", env);
-    reader = woden_reader_create(env);
+    resolver = woden_resolver_create(env);
     
-    desc = (void *)WODEN_READER_READ_WSDL(reader, env, om_doc, doc_base_uri);
+    desc = WODEN_RESOLVER_READ(resolver, env, om_doc, doc_base_uri);
     intfaces = WODEN_DESC_GET_INTERFACES(desc, env);
     intface = AXIS2_ARRAY_LIST_GET(intfaces, env, 0);
     intface_qname = WODEN_INTERFACE_GET_QNAME(intface, env);

Modified: webservices/axis2/trunk/c/woden/samples/wsdl10/test_wsdl1.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/samples/wsdl10/test_wsdl1.c?rev=419525&r1=419524&r2=419525&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/samples/wsdl10/test_wsdl1.c (original)
+++ webservices/axis2/trunk/c/woden/samples/wsdl10/test_wsdl1.c Thu Jul  6 04:33:01 2006
@@ -20,7 +20,7 @@
 #include <axis2_env.h>
 #include <axis2_utils.h>
 #include <platforms/axis2_platform_auto_sense.h>
-#include <woden_wsdl10_reader.h>
+#include <woden_resolver.h>
 #include <woden_wsdl10_desc.h>
 #include <woden_interface.h>
 #include <woden_binding.h>
@@ -40,7 +40,7 @@
     axiom_document_t *om_doc = NULL;
     axis2_char_t *doc_base_uri = NULL;
     axis2_char_t *axis2c_home = NULL;
-    woden_wsdl10_reader_t *reader = NULL;
+    woden_resolver_t *resolver = NULL;
     void *desc = NULL;
     void *intface = NULL;
     axis2_array_list_t *intfaces = NULL;
@@ -68,9 +68,9 @@
     om_doc = get_root_element_from_filename(env, filename);
     axis2c_home = AXIS2_GETENV("AXIS2C_HOME");
     doc_base_uri = AXIS2_STRACAT (axis2c_home, "/woden", env);
-    reader = woden_wsdl10_reader_create(env);
+    resolver = woden_resolver_create(env);
     
-    desc = (void *)WODEN_WSDL10_READER_READ_WSDL(reader, env, om_doc, doc_base_uri);
+    desc = WODEN_RESOLVER_READ(resolver, env, om_doc, doc_base_uri);
     intfaces = WODEN_WSDL10_DESC_GET_INTERFACES(desc, env);
     intface = AXIS2_ARRAY_LIST_GET(intfaces, env, 0);
     if (intface)

Modified: webservices/axis2/trunk/c/woden/src/builder/reader.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/builder/reader.c?rev=419525&r1=419524&r2=419525&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/src/builder/reader.c (original)
+++ webservices/axis2/trunk/c/woden/src/builder/reader.c Thu Jul  6 04:33:01 2006
@@ -149,7 +149,7 @@
 woden_reader_read_wsdl(
         void *reader,
         const axis2_env_t *env,
-        axiom_document_t *om_doc,
+        axiom_node_t *root_node,
         const axis2_char_t *uri);
 
 axis2_status_t AXIS2_CALL
@@ -570,20 +570,19 @@
 woden_reader_read_wsdl(
         void *reader,
         const axis2_env_t *env,
-        axiom_document_t *om_doc,
+        axiom_node_t *root_node,
         const axis2_char_t *uri) 
 {
     woden_reader_impl_t *reader_impl = NULL;
     void *desc = NULL;
 
     AXIS2_ENV_CHECK(env, NULL);
-    AXIS2_PARAM_CHECK(env->error, om_doc, NULL);
+    AXIS2_PARAM_CHECK(env->error, root_node, NULL);
     AXIS2_PARAM_CHECK(env->error, uri, NULL);
     reader_impl = INTF_TO_IMPL(reader);
         
     /* TODO add WSDL locator for resolving URIs */
-    reader_impl->om_doc = om_doc;
-    reader_impl->root_node = AXIOM_DOCUMENT_GET_ROOT_ELEMENT(om_doc, env);           

+    reader_impl->root_node = root_node;            
     if(!reader_impl->root_node)
         return NULL;
     desc = parse_desc(reader, env, uri, reader_impl->root_node, NULL);

Modified: webservices/axis2/trunk/c/woden/src/builder/wsdl10/wsdl10_reader.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/builder/wsdl10/wsdl10_reader.c?rev=419525&r1=419524&r2=419525&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/src/builder/wsdl10/wsdl10_reader.c (original)
+++ webservices/axis2/trunk/c/woden/src/builder/wsdl10/wsdl10_reader.c Thu Jul  6 04:33:01
2006
@@ -151,7 +151,7 @@
 woden_wsdl10_reader_read_wsdl(
         void *reader,
         const axis2_env_t *env,
-        axiom_document_t *om_doc,
+        axiom_node_t *root_node,
         const axis2_char_t *uri);
 
 axis2_status_t AXIS2_CALL
@@ -570,20 +570,19 @@
 woden_wsdl10_reader_read_wsdl(
         void *reader,
         const axis2_env_t *env,
-        axiom_document_t *om_doc,
+        axiom_node_t *root_node,
         const axis2_char_t *uri) 
 {
     woden_wsdl10_reader_impl_t *reader_impl = NULL;
     void *desc = NULL;
 
     AXIS2_ENV_CHECK(env, NULL);
-    AXIS2_PARAM_CHECK(env->error, om_doc, NULL);
+    AXIS2_PARAM_CHECK(env->error, root_node, NULL);
     AXIS2_PARAM_CHECK(env->error, uri, NULL);
     reader_impl = INTF_TO_IMPL(reader);
         
     /* TODO add WSDL locator for resolving URIs */
-    reader_impl->om_doc = om_doc;
-    reader_impl->root_node = AXIOM_DOCUMENT_GET_ROOT_ELEMENT(om_doc, env);           

+    reader_impl->root_node = root_node;            
     if(!reader_impl->root_node)
         return NULL;
     desc = parse_desc(reader, env, uri, reader_impl->root_node, NULL);

Modified: webservices/axis2/trunk/c/woden/test/woden_test.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/test/woden_test.c?rev=419525&r1=419524&r2=419525&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/test/woden_test.c (original)
+++ webservices/axis2/trunk/c/woden/test/woden_test.c Thu Jul  6 04:33:01 2006
@@ -21,7 +21,7 @@
 #include <axis2_env.h>
 #include <axis2_utils.h>
 #include <platforms/axis2_platform_auto_sense.h>
-#include <woden_reader.h>
+#include <woden_resolver.h>
 #include <woden_desc.h>
 #include <woden_interface.h>
 
@@ -53,7 +53,7 @@
     axiom_document_t *om_doc = NULL;
     axis2_char_t *doc_base_uri = NULL;
     axis2_char_t *axis2c_home = NULL;
-    void *reader = NULL;
+    void *resolver = NULL;
     void *desc = NULL;
     void *intface = NULL;
     axis2_array_list_t *intfaces = NULL;
@@ -67,9 +67,9 @@
     om_doc = get_root_element_from_filename(env, filename);
     axis2c_home = AXIS2_GETENV("AXIS2C_HOME");
     doc_base_uri = AXIS2_STRACAT (axis2c_home, "/woden", env);
-    reader = (void *)woden_reader_create(env);
+    resolver = woden_resolver_create(env);
     
-    desc = (void *)WODEN_READER_READ_WSDL(reader, env, om_doc, doc_base_uri);
+    desc = WODEN_RESOLVER_READ(resolver, env, om_doc, doc_base_uri);
     CuAssertPtrNotNull(tc, desc);
     intfaces = WODEN_DESC_GET_INTERFACES(desc, env);
     CuAssertPtrNotNull(tc, intfaces);



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