axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject svn commit: r424246 - in /webservices/axis2/trunk/c/woden: samples/wsdl10/test_wsdl1.c src/wsdl10/endpoint.c src/wsdl10/extensions/ext_registry.c src/wsdl10/woden_wsdl10_constants.h
Date Fri, 21 Jul 2006 09:44:49 GMT
Author: damitha
Date: Fri Jul 21 02:44:49 2006
New Revision: 424246

URL: http://svn.apache.org/viewvc?rev=424246&view=rev
Log:
When endpoints are requested from service it returns
NULL. Fixed this bug

Modified:
    webservices/axis2/trunk/c/woden/samples/wsdl10/test_wsdl1.c
    webservices/axis2/trunk/c/woden/src/wsdl10/endpoint.c
    webservices/axis2/trunk/c/woden/src/wsdl10/extensions/ext_registry.c
    webservices/axis2/trunk/c/woden/src/wsdl10/woden_wsdl10_constants.h

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=424246&r1=424245&r2=424246&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/samples/wsdl10/test_wsdl1.c (original)
+++ webservices/axis2/trunk/c/woden/samples/wsdl10/test_wsdl1.c Fri Jul 21 02:44:49 2006
@@ -22,6 +22,7 @@
 #include <platforms/axis2_platform_auto_sense.h>
 #include <woden_resolver.h>
 #include <woden_wsdl10_desc.h>
+#include <woden_wsdl10_endpoint.h>
 #include <woden_interface.h>
 #include <woden_binding.h>
 #include <woden_element_decl.h>
@@ -84,6 +85,7 @@
     {
         void *svc = NULL;
         axis2_array_list_t *endpoints = NULL;
+        int i = 0, no_of_endpoints = -1;
         svc = AXIS2_ARRAY_LIST_GET(svc_list, env, 0);
         if (svc)
         {
@@ -93,6 +95,30 @@
                 printf("First service qname is %s\n", AXIS2_QNAME_TO_STRING(svc_qname, env));
             }
             endpoints = WODEN_SVC_GET_ENDPOINTS(svc, env);
+            if(endpoints)
+            {
+                no_of_endpoints = AXIS2_ARRAY_LIST_SIZE(endpoints, env);
+            }
+            else
+            {
+                printf("Endpoints is NULL\n");
+                return 1;
+            }
+            for(i = 0; i < no_of_endpoints; i++)
+            {
+                woden_nc_name_t *ncname = NULL;
+                axis2_char_t *ep_ncname = NULL;
+                woden_wsdl10_endpoint_t *endpoint = NULL;
+
+                endpoint = AXIS2_ARRAY_LIST_GET(endpoints, env, i);
+                ncname = WODEN_WSDL10_ENDPOINT_GET_NAME(endpoint, env);
+                if(ncname)
+                    ep_ncname = WODEN_NC_NAME_TO_STRING(ncname, env);
+                if(ep_ncname)
+                {
+                    printf("ep_ncname:%s\n", ep_ncname); 
+                }
+            }
         }
     }
     binding_list = WODEN_WSDL10_DESC_ELEMENT_GET_BINDING_ELEMENTS(desc, env);

Modified: webservices/axis2/trunk/c/woden/src/wsdl10/endpoint.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl10/endpoint.c?rev=424246&r1=424245&r2=424246&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl10/endpoint.c (original)
+++ webservices/axis2/trunk/c/woden/src/wsdl10/endpoint.c Fri Jul 21 02:44:49 2006
@@ -496,6 +496,8 @@
     endpoint_impl->endpoint.ops->get_binding = woden_wsdl10_endpoint_get_binding;
     endpoint_impl->endpoint.ops->get_address = 
         woden_wsdl10_endpoint_get_address;
+    endpoint_impl->endpoint.ops->set_binding_element = 
+        woden_wsdl10_endpoint_set_binding_element;
  
     endpoint_impl->methods = axis2_hash_make(env);
     if(!endpoint_impl->methods) 

Modified: webservices/axis2/trunk/c/woden/src/wsdl10/extensions/ext_registry.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl10/extensions/ext_registry.c?rev=424246&r1=424245&r2=424246&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl10/extensions/ext_registry.c (original)
+++ webservices/axis2/trunk/c/woden/src/wsdl10/extensions/ext_registry.c Fri Jul 21 02:44:49
2006
@@ -388,7 +388,8 @@
         ed = axis2_hash_get(inner_deserializer_reg, elem_name, 
                 AXIS2_HASH_KEY_STRING);
     }
-    ed = woden_wsdl10_soap_module_deserializer_to_ext_deserializer(ed, env);
+    if(ed)
+        ed = woden_wsdl10_soap_module_deserializer_to_ext_deserializer(ed, env);
     return ed;
 }
 

Modified: webservices/axis2/trunk/c/woden/src/wsdl10/woden_wsdl10_constants.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl10/woden_wsdl10_constants.h?rev=424246&r1=424245&r2=424246&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl10/woden_wsdl10_constants.h (original)
+++ webservices/axis2/trunk/c/woden/src/wsdl10/woden_wsdl10_constants.h Fri Jul 21 02:44:49
2006
@@ -61,7 +61,7 @@
 #define WODEN_WSDL10_ELEM_PROPERTY "property"
 #define WODEN_WSDL10_ELEM_VALUE "value"
 #define WODEN_WSDL10_ELEM_CONSTRAINT "constraint"
-#define WODEN_WSDL10_ELEM_ENDPOINT "endpoint"
+#define WODEN_WSDL10_ELEM_ENDPOINT "port"
 #define WODEN_WSDL10_ELEM_PART "part"
 
 /* Top-level WSDL 2.0 qualified element names. */
@@ -87,7 +87,7 @@
 #define WODEN_WSDL10_Q_ELEM_PROPERTY "property|http://schemas.xmlsoap.org/wsdl"
 #define WODEN_WSDL10_Q_ELEM_VALUE "value|http://schemas.xmlsoap.org/wsdl"
 #define WODEN_WSDL10_Q_ELEM_CONSTRAINT "constraint|http://schemas.xmlsoap.org/wsdl"
-#define WODEN_WSDL10_Q_ELEM_ENDPOINT "endpoint|http://schemas.xmlsoap.org/wsdl"
+#define WODEN_WSDL10_Q_ELEM_ENDPOINT "port|http://schemas.xmlsoap.org/wsdl"
 
 /* Attribute names. */
 #define WODEN_WSDL10_ATTR_ID "id"



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