You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by da...@apache.org on 2007/05/16 11:23:30 UTC

svn commit: r538496 - in /webservices/sandesha/trunk/c/samples: rm_ping_1_0/rm_ping_1_0.c rm_ping_1_1/rm_ping_1_1.c

Author: damitha
Date: Wed May 16 02:23:29 2007
New Revision: 538496

URL: http://svn.apache.org/viewvc?view=rev&rev=538496
Log:
Fixed a minor bug

Modified:
    webservices/sandesha/trunk/c/samples/rm_ping_1_0/rm_ping_1_0.c
    webservices/sandesha/trunk/c/samples/rm_ping_1_1/rm_ping_1_1.c

Modified: webservices/sandesha/trunk/c/samples/rm_ping_1_0/rm_ping_1_0.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/samples/rm_ping_1_0/rm_ping_1_0.c?view=diff&rev=538496&r1=538495&r2=538496
==============================================================================
--- webservices/sandesha/trunk/c/samples/rm_ping_1_0/rm_ping_1_0.c (original)
+++ webservices/sandesha/trunk/c/samples/rm_ping_1_0/rm_ping_1_0.c Wed May 16 02:23:29 2007
@@ -143,14 +143,14 @@
     if(status)
         printf("\nping client invoke SUCCESSFUL!\n");
     payload = NULL;
-    AXIS2_SLEEP(MAX_COUNT);
+    /*AXIS2_SLEEP(MAX_COUNT);*/
     
     payload = build_om_programatically(env, "ping2");
     status = axis2_svc_client_send_robust(svc_client, env, payload);
     if(status)
         printf("\nping client invoke SUCCESSFUL!\n");
     payload = NULL;
-    AXIS2_SLEEP(2 * MAX_COUNT);
+    /*AXIS2_SLEEP(2 * MAX_COUNT);*/
 
     property = axutil_property_create_with_args(env, 0, 0, 0, AXIS2_VALUE_TRUE);
     axis2_options_set_property(options, env, "Sandesha2LastMessage", 
@@ -163,7 +163,7 @@
      /** Wait till callback is complete. Simply keep the parent thread running
        until our on_complete or on_error is invoked */
 
-    AXIS2_SLEEP(2 * MAX_COUNT);
+    AXIS2_SLEEP(10 * MAX_COUNT);
    
     if (svc_client)
     {

Modified: webservices/sandesha/trunk/c/samples/rm_ping_1_1/rm_ping_1_1.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/samples/rm_ping_1_1/rm_ping_1_1.c?view=diff&rev=538496&r1=538495&r2=538496
==============================================================================
--- webservices/sandesha/trunk/c/samples/rm_ping_1_1/rm_ping_1_1.c (original)
+++ webservices/sandesha/trunk/c/samples/rm_ping_1_1/rm_ping_1_1.c Wed May 16 02:23:29 2007
@@ -24,7 +24,7 @@
 #include <sandesha2_client.h>
 #include <ctype.h>
 
-#define MAX_COUNT 1
+#define MAX_COUNT 2
 
 axiom_node_t *
 build_om_programatically(
@@ -57,10 +57,7 @@
     env = axutil_env_create_all("rm_ping.log", AXIS2_LOG_LEVEL_CRITICAL);
 
     /* Set end point reference of echo service */
-    /*address = "http://127.0.0.1:8888/axis2/services/RMSampleService";*/
-    /*address = "http://127.0.0.1:5555/axis2/services/RMSampleService";*/
-    /*to = "http://127.0.0.1:8080/axis2/services/RMSampleService";*/
-    to = "http://127.0.0.1:5555/axis2/services/RMSampleService";
+    to = "http://127.0.0.1:8888/axis2/services/RMSampleService";
     while ((c = AXIS2_GETOPT(argc, argv, ":a:k:")) != -1)
     {
 
@@ -156,26 +153,24 @@
     if(status)
         printf("\nping client invoke SUCCESSFUL!\n");
     payload = NULL;
-    AXIS2_SLEEP(MAX_COUNT);
     
     payload = build_om_programatically(env, "ping2", seq_key);
     status = axis2_svc_client_send_robust(svc_client, env, payload);
     if(status)
         printf("\nping client invoke SUCCESSFUL!\n");
     payload = NULL;
-    AXIS2_SLEEP(MAX_COUNT);
 
     payload = build_om_programatically(env, "ping3", seq_key);
     status = axis2_svc_client_send_robust(svc_client, env, payload);
     if(status)
         printf("\nping client invoke SUCCESSFUL!\n");
-    AXIS2_SLEEP(4 * MAX_COUNT);
+    AXIS2_SLEEP(5 * MAX_COUNT);
     
     sandesha2_client_terminate_seq_with_svc_client(env, svc_client, NULL, NULL);
      /** Wait till callback is complete. Simply keep the parent thread running
        until our on_complete or on_error is invoked */
 
-    AXIS2_SLEEP(MAX_COUNT);
+    AXIS2_SLEEP(5 * MAX_COUNT);
    
     if (svc_client)
     {



---------------------------------------------------------------------
To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: sandesha-dev-help@ws.apache.org