Author: damitha
Date: Mon Jan 22 22:45:37 2007
New Revision: 498934

URL: http://svn.apache.org/viewvc?view=rev&rev=498934
Log:
folder renamed

Added:
    webservices/sandesha/trunk/c/samples/rm_ping_1_1/
      - copied from r498578, webservices/sandesha/trunk/c/samples/rm_ping/
    webservices/sandesha/trunk/c/samples/rm_ping_1_1/rm_ping_client.c
      - copied, changed from r498580, 
webservices/sandesha/trunk/c/samples/rm_ping/rm_ping_client.c
Modified:
    webservices/sandesha/trunk/c/samples/rm_ping_1_1/Makefile.am

Modified: webservices/sandesha/trunk/c/samples/rm_ping_1_1/Makefile.am
URL: 
http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/samples/rm_ping_1_1/Makefile.am?view=diff&rev=498934&r1=498578&r2=498934
==============================================================================
--- webservices/sandesha/trunk/c/samples/rm_ping_1_1/Makefile.am (original)
+++ webservices/sandesha/trunk/c/samples/rm_ping_1_1/Makefile.am Mon Jan 22 
22:45:37 2007
@@ -16,6 +16,9 @@
                     -laxis2_http_receiver \
                                        -lwoden \
                                        -laxis2_xml_schema \
+                    -L$(AXIS2C_HOME)/modules/sandesha2 \
+                                       -lsandesha2_client \
+                                       -lsandesha2 \
                                        -lsqlite3 \
                     $(GUTHTHILA_LIBS) \
                     $(LIBXML2_LIBS)

Copied: webservices/sandesha/trunk/c/samples/rm_ping_1_1/rm_ping_client.c (from 
r498580, webservices/sandesha/trunk/c/samples/rm_ping/rm_ping_client.c)
URL: 
http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/samples/rm_ping_1_1/rm_ping_client.c?view=diff&rev=498934&p1=webservices/sandesha/trunk/c/samples/rm_ping/rm_ping_client.c&r1=498580&p2=webservices/sandesha/trunk/c/samples/rm_ping_1_1/rm_ping_client.c&r2=498934
==============================================================================
--- webservices/sandesha/trunk/c/samples/rm_ping/rm_ping_client.c (original)
+++ webservices/sandesha/trunk/c/samples/rm_ping_1_1/rm_ping_client.c Mon Jan 
22 22:45:37 2007
@@ -21,13 +21,15 @@
 #include <axis2_client.h>
 #include <sandesha2_client_constants.h>
 #include <sandesha2_constants.h>
+#include <sandesha2_client.h>
 
 #define MAX_COUNT  60
 
 axiom_node_t *
 build_om_programatically(
     const axis2_env_t *env,
-    axis2_char_t *text);
+    axis2_char_t *text,
+    axis2_char_t *seq);
 
 static void 
 usage(
@@ -142,26 +144,37 @@
                 SANDESHA2_CLIENT_RM_SPEC_VERSION, property);
         }
     }
+    property = axis2_property_create_with_args(env, 3, 0, 0, "sequence1");
+    if(property)
+    {
+        AXIS2_OPTIONS_SET_PROPERTY(options, env, SANDESHA2_CLIENT_SEQ_KEY, 
+            property);
+    }
     /* Send request */
-    payload = build_om_programatically(env, "ping1");
+    payload = build_om_programatically(env, "ping1", "seqeuence1");
     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, "ping2");
+    /*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(MAX_COUNT);
 
     property = axis2_property_create_with_args(env, 0, 0, 0, AXIS2_VALUE_TRUE);
     AXIS2_OPTIONS_SET_PROPERTY(options, env, "Sandesha2LastMessage", 
-            property);
+        property);
     payload = build_om_programatically(env, "ping3");
     status = AXIS2_SVC_CLIENT_SEND_ROBUST(svc_client, env, payload);
     if(status)
         printf("\nping client invoke SUCCESSFUL!\n");
+    AXIS2_SLEEP(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 */
 
@@ -180,19 +193,24 @@
 axiom_node_t *
 build_om_programatically(
     const axis2_env_t *env,
-    axis2_char_t *text)
+    axis2_char_t *text,
+    axis2_char_t *seq)
 {
     axiom_node_t *ping_om_node = NULL;
     axiom_element_t* ping_om_ele = NULL;
     axiom_node_t *text_om_node = NULL;
     axiom_element_t* text_om_ele = NULL;
+    axiom_node_t* seq_om_node = NULL;
+    axiom_element_t * seq_om_ele = NULL;
     axiom_namespace_t *ns1 = NULL;
     axis2_char_t *buffer = NULL;
     
     ns1 = axiom_namespace_create (env, "http://tempuri.org/";, "ns1");
     ping_om_ele = axiom_element_create(env, NULL, "ping", ns1, &ping_om_node);
     text_om_ele = axiom_element_create(env, ping_om_node, "Text", ns1, 
&text_om_node);
+    seq_om_ele = axiom_element_create(env, ping_om_node, "Sequence", ns1, 
&seq_om_node);
     AXIOM_ELEMENT_SET_TEXT(text_om_ele, env, text, text_om_node);
+    AXIOM_ELEMENT_SET_TEXT(text_om_ele, env, seq, seq_om_node);
     
     buffer = AXIOM_NODE_TO_STRING(ping_om_node, env);
     printf("\nSending OM node in XML : %s \n",  buffer); 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to