ws-savan-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r552183 - /webservices/savan/trunk/c/samples/client/subscriber/subscriber.c
Date Sat, 30 Jun 2007 17:48:40 GMT
Author: samisa
Date: Sat Jun 30 10:48:40 2007
New Revision: 552183

URL: http://svn.apache.org/viewvc?view=rev&rev=552183
Log:
Fixed the output

Modified:
    webservices/savan/trunk/c/samples/client/subscriber/subscriber.c

Modified: webservices/savan/trunk/c/samples/client/subscriber/subscriber.c
URL: http://svn.apache.org/viewvc/webservices/savan/trunk/c/samples/client/subscriber/subscriber.c?view=diff&rev=552183&r1=552182&r2=552183
==============================================================================
--- webservices/savan/trunk/c/samples/client/subscriber/subscriber.c (original)
+++ webservices/savan/trunk/c/samples/client/subscriber/subscriber.c Sat Jun 30 10:48:40 2007
@@ -108,14 +108,16 @@
     printf("Renewing subscription...\n");
     /* Set end point reference for assigned subscription manager */
     address = savan_client_get_sub_url(savan_client);
-    printf("address:%s********************************\n", address); 
+    printf("address:%s\n", address); 
     endpoint_ref = axis2_options_get_to(options, env);
     axis2_endpoint_ref_set_address(endpoint_ref, env, address);
     status = savan_client_renew(savan_client, env, svc_client, savan_options);
+    expire_time = savan_client_get_status(savan_client, env, svc_client);
     if (status == AXIS2_SUCCESS)
     {
         printf("Renew successful\n");
-        printf("New expire time: %s\n", expire_time);
+        if (expire_time)
+            printf("New expire time: %s\n", expire_time);
     }
 
 
@@ -128,7 +130,7 @@
     endpoint_ref = axis2_options_get_to(options, env);
     axis2_endpoint_ref_set_address(endpoint_ref, env, address);
     expire_time = savan_client_get_status(savan_client, env, svc_client);
-    if (expire_time != NULL)
+    if (expire_time)
     {
         printf("GetStatus successful\n");
         printf("New expire time: %s\n", expire_time);



Mime
View raw message