You are viewing a plain text version of this content. The canonical link for it is here.
Posted to sandesha-dev@ws.apache.org by da...@apache.org on 2009/06/17 10:44:49 UTC

svn commit: r785510 - in /webservices/sandesha/trunk/c/samples: rm_echo_1_0/echo_util.c rm_echo_1_0/rm_echo.c rm_echo_1_1/echo_util.c rm_echo_1_1/rm_echo_1_1.c rm_echo_1_1_large_sequence/echo_util.c rm_echo_1_1_large_sequence/rm_echo_1_1.c

Author: damitha
Date: Wed Jun 17 08:44:48 2009
New Revision: 785510

URL: http://svn.apache.org/viewvc?rev=785510&view=rev
Log:
Fixing samples

Modified:
    webservices/sandesha/trunk/c/samples/rm_echo_1_0/echo_util.c
    webservices/sandesha/trunk/c/samples/rm_echo_1_0/rm_echo.c
    webservices/sandesha/trunk/c/samples/rm_echo_1_1/echo_util.c
    webservices/sandesha/trunk/c/samples/rm_echo_1_1/rm_echo_1_1.c
    webservices/sandesha/trunk/c/samples/rm_echo_1_1_large_sequence/echo_util.c
    webservices/sandesha/trunk/c/samples/rm_echo_1_1_large_sequence/rm_echo_1_1.c

Modified: webservices/sandesha/trunk/c/samples/rm_echo_1_0/echo_util.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/samples/rm_echo_1_0/echo_util.c?rev=785510&r1=785509&r2=785510&view=diff
==============================================================================
--- webservices/sandesha/trunk/c/samples/rm_echo_1_0/echo_util.c (original)
+++ webservices/sandesha/trunk/c/samples/rm_echo_1_0/echo_util.c Wed Jun 17 08:44:48 2009
@@ -30,7 +30,6 @@
     axiom_node_t* seq_om_node = NULL;
     axiom_element_t * seq_om_ele = NULL;
     axiom_namespace_t *ns1 = NULL;
-    axis2_char_t *om_str = NULL;
     axis2_char_t *ns = NULL;
 
     ns = "http://tempuri.org/";
@@ -42,9 +41,5 @@
     axiom_element_set_text(text_om_ele, env, text, text_om_node);
     axiom_element_set_text(text_om_ele, env, seq, seq_om_node);
     
-    om_str = axiom_node_to_string(echo_om_node, env);
-    if (om_str)
-        printf("\nSending OM : %s\n", om_str);
-
     return echo_om_node;
 }

Modified: webservices/sandesha/trunk/c/samples/rm_echo_1_0/rm_echo.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/samples/rm_echo_1_0/rm_echo.c?rev=785510&r1=785509&r2=785510&view=diff
==============================================================================
--- webservices/sandesha/trunk/c/samples/rm_echo_1_0/rm_echo.c (original)
+++ webservices/sandesha/trunk/c/samples/rm_echo_1_0/rm_echo.c Wed Jun 17 08:44:48 2009
@@ -31,7 +31,7 @@
 #include <neethi_policy.h>
 #include <neethi_util.h>
 
-#define SANDESHA2_MAX_COUNT 2
+#define SANDESHA2_MAX_COUNT 4
 
 /* on_complete callback function */
 axis2_status_t AXIS2_CALL
@@ -271,7 +271,9 @@
             axis2_char_t *om_str = NULL;
             om_str = axiom_node_to_string(ret_node, env);
             if (om_str)
-                printf("\nReceived OM : %s\n", om_str);
+            {
+                /*printf("\nReceived OM : %s\n", om_str);*/
+            }
             printf("\necho client invoke SUCCESSFUL!\n");
         }
     }    

Modified: webservices/sandesha/trunk/c/samples/rm_echo_1_1/echo_util.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/samples/rm_echo_1_1/echo_util.c?rev=785510&r1=785509&r2=785510&view=diff
==============================================================================
--- webservices/sandesha/trunk/c/samples/rm_echo_1_1/echo_util.c (original)
+++ webservices/sandesha/trunk/c/samples/rm_echo_1_1/echo_util.c Wed Jun 17 08:44:48 2009
@@ -30,7 +30,6 @@
     axiom_node_t* seq_om_node = NULL;
     axiom_element_t * seq_om_ele = NULL;
     axiom_namespace_t *ns1 = NULL;
-    axis2_char_t *om_str = NULL;
     axis2_char_t *ns = NULL;
 
     ns = "http://tempuri.org/";
@@ -42,9 +41,5 @@
     axiom_element_set_text(text_om_ele, env, text, text_om_node);
     axiom_element_set_text(text_om_ele, env, seq, seq_om_node);
     
-    om_str = axiom_node_to_string(echo_om_node, env);
-    if (om_str)
-        printf("\nSending OM : %s\n", om_str);
-
     return echo_om_node;
 }

Modified: webservices/sandesha/trunk/c/samples/rm_echo_1_1/rm_echo_1_1.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/samples/rm_echo_1_1/rm_echo_1_1.c?rev=785510&r1=785509&r2=785510&view=diff
==============================================================================
--- webservices/sandesha/trunk/c/samples/rm_echo_1_1/rm_echo_1_1.c (original)
+++ webservices/sandesha/trunk/c/samples/rm_echo_1_1/rm_echo_1_1.c Wed Jun 17 08:44:48 2009
@@ -300,15 +300,14 @@
 {
     /** Wait till callback is complete. Simply keep the parent thread running
        until our on_complete or on_error is invoked */
-    int count = 30;
-    while(count-- > 0)
+    while(1)
     {
         if (axis2_callback_get_complete(callback, env))
         {
             /* We are done with the callback */
-            return;
+            break;
         }
-        AXIS2_SLEEP(1);
+        /*AXIS2_SLEEP(1);*/
     }
     return;
 }

Modified: webservices/sandesha/trunk/c/samples/rm_echo_1_1_large_sequence/echo_util.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/samples/rm_echo_1_1_large_sequence/echo_util.c?rev=785510&r1=785509&r2=785510&view=diff
==============================================================================
--- webservices/sandesha/trunk/c/samples/rm_echo_1_1_large_sequence/echo_util.c (original)
+++ webservices/sandesha/trunk/c/samples/rm_echo_1_1_large_sequence/echo_util.c Wed Jun 17 08:44:48 2009
@@ -30,7 +30,6 @@
     axiom_node_t* seq_om_node = NULL;
     axiom_element_t * seq_om_ele = NULL;
     axiom_namespace_t *ns1 = NULL;
-    axis2_char_t *om_str = NULL;
     axis2_char_t *ns = NULL;
 
     ns = "http://tempuri.org/";
@@ -42,9 +41,5 @@
     axiom_element_set_text(text_om_ele, env, text, text_om_node);
     axiom_element_set_text(text_om_ele, env, seq, seq_om_node);
     
-    om_str = axiom_node_to_string(echo_om_node, env);
-    if (om_str)
-        printf("\nSending OM : %s\n", om_str);
-
     return echo_om_node;
 }

Modified: webservices/sandesha/trunk/c/samples/rm_echo_1_1_large_sequence/rm_echo_1_1.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/samples/rm_echo_1_1_large_sequence/rm_echo_1_1.c?rev=785510&r1=785509&r2=785510&view=diff
==============================================================================
--- webservices/sandesha/trunk/c/samples/rm_echo_1_1_large_sequence/rm_echo_1_1.c (original)
+++ webservices/sandesha/trunk/c/samples/rm_echo_1_1_large_sequence/rm_echo_1_1.c Wed Jun 17 08:44:48 2009
@@ -300,15 +300,14 @@
 {
     /** Wait till callback is complete. Simply keep the parent thread running
        until our on_complete or on_error is invoked */
-    int count = 30;
-    while(count-- > 0)
+    while(1)
     {
         if (axis2_callback_get_complete(callback, env))
         {
             /* We are done with the callback */
-            return;
+            break;
         }
-        AXIS2_USLEEP(100000);
+        /*AXIS2_SLEEP(1);*/
     }
     return;
 }



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