You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by da...@apache.org on 2006/07/21 11:49:29 UTC
svn commit: r424247 - /webservices/axis2/trunk/c/woden/samples/test_wsdl2.c
Author: damitha
Date: Fri Jul 21 02:49:29 2006
New Revision: 424247
URL: http://svn.apache.org/viewvc?rev=424247&view=rev
Log:
Improving wsdl2 sample
Modified:
webservices/axis2/trunk/c/woden/samples/test_wsdl2.c
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=424247&r1=424246&r2=424247&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/samples/test_wsdl2.c (original)
+++ webservices/axis2/trunk/c/woden/samples/test_wsdl2.c Fri Jul 21 02:49:29 2006
@@ -23,6 +23,7 @@
#include <woden_resolver.h>
#include <woden_desc.h>
#include <woden_interface.h>
+#include <woden_endpoint.h>
#include <woden_svc.h>
#include <axiom.h>
@@ -73,6 +74,9 @@
if (svc_list)
{
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)
{
@@ -80,6 +84,31 @@
if (svc_qname)
{
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_endpoint_t *endpoint = NULL;
+
+ endpoint = AXIS2_ARRAY_LIST_GET(endpoints, env, i);
+ ncname = WODEN_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);
+ }
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org