You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-commits@axis.apache.org by da...@apache.org on 2010/03/08 20:01:22 UTC

svn commit: r920457 - in /axis/axis2/c/sandesha/trunk/samples/rm_amqp/rm_echo_dual_1_0: echo_util.c echo_util.h rm_echo.c

Author: damitha
Date: Mon Mar  8 19:01:22 2010
New Revision: 920457

URL: http://svn.apache.org/viewvc?rev=920457&view=rev
Log: (empty)

Modified:
    axis/axis2/c/sandesha/trunk/samples/rm_amqp/rm_echo_dual_1_0/echo_util.c
    axis/axis2/c/sandesha/trunk/samples/rm_amqp/rm_echo_dual_1_0/echo_util.h
    axis/axis2/c/sandesha/trunk/samples/rm_amqp/rm_echo_dual_1_0/rm_echo.c

Modified: axis/axis2/c/sandesha/trunk/samples/rm_amqp/rm_echo_dual_1_0/echo_util.c
URL: http://svn.apache.org/viewvc/axis/axis2/c/sandesha/trunk/samples/rm_amqp/rm_echo_dual_1_0/echo_util.c?rev=920457&r1=920456&r2=920457&view=diff
==============================================================================
--- axis/axis2/c/sandesha/trunk/samples/rm_amqp/rm_echo_dual_1_0/echo_util.c (original)
+++ axis/axis2/c/sandesha/trunk/samples/rm_amqp/rm_echo_dual_1_0/echo_util.c Mon Mar  8 19:01:22 2010
@@ -20,15 +20,12 @@
 axiom_node_t *
 build_om_payload_for_echo_svc(
    const axutil_env_t *env,
-   axis2_char_t *text,
-   axis2_char_t *seq)
+   axis2_char_t *text)
 {
     axiom_node_t *echo_om_node = NULL;
     axiom_element_t* echo_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 *om_str = NULL;
     axis2_char_t *ns = NULL;
@@ -38,9 +35,7 @@
     ns1 = axiom_namespace_create (env, ns, "ns1");
     echo_om_ele = axiom_element_create(env, NULL, "echoString", ns1, &echo_om_node);
     text_om_ele = axiom_element_create(env, echo_om_node, "Text", ns1, &text_om_node);
-    seq_om_ele = axiom_element_create(env, echo_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);
     
     om_str = axiom_node_to_string(echo_om_node, env);
     if (om_str)

Modified: axis/axis2/c/sandesha/trunk/samples/rm_amqp/rm_echo_dual_1_0/echo_util.h
URL: http://svn.apache.org/viewvc/axis/axis2/c/sandesha/trunk/samples/rm_amqp/rm_echo_dual_1_0/echo_util.h?rev=920457&r1=920456&r2=920457&view=diff
==============================================================================
--- axis/axis2/c/sandesha/trunk/samples/rm_amqp/rm_echo_dual_1_0/echo_util.h (original)
+++ axis/axis2/c/sandesha/trunk/samples/rm_amqp/rm_echo_dual_1_0/echo_util.h Mon Mar  8 19:01:22 2010
@@ -23,7 +23,6 @@
 axiom_node_t *
 build_om_payload_for_echo_svc(
    const axutil_env_t *env,
-   axis2_char_t *text,
-   axis2_char_t *seq);
+   axis2_char_t *text);
 
 #endif

Modified: axis/axis2/c/sandesha/trunk/samples/rm_amqp/rm_echo_dual_1_0/rm_echo.c
URL: http://svn.apache.org/viewvc/axis/axis2/c/sandesha/trunk/samples/rm_amqp/rm_echo_dual_1_0/rm_echo.c?rev=920457&r1=920456&r2=920457&view=diff
==============================================================================
--- axis/axis2/c/sandesha/trunk/samples/rm_amqp/rm_echo_dual_1_0/rm_echo.c (original)
+++ axis/axis2/c/sandesha/trunk/samples/rm_amqp/rm_echo_dual_1_0/rm_echo.c Mon Mar  8 19:01:22 2010
@@ -63,13 +63,10 @@
     axis2_callback_t *callback1 = NULL;
     axutil_property_t *property = NULL;
     axutil_string_t *soap_action = NULL;
-    axis2_char_t *seq_key = NULL;
     axis2_char_t *offered_seq_id = NULL;
     int i = 0;
     neethi_policy_t *policy = NULL;
     axis2_status_t status = AXIS2_FAILURE;
-    extern char *optarg;
-    extern int optopt;
    
     /* Set up the environment */
     env = axutil_env_create_all("rm_echo_1_0_amqp.log", 
@@ -179,20 +176,12 @@
     axis2_svc_client_engage_module(svc_client, env, AXIS2_MODULE_ADDRESSING);  
     axis2_svc_client_engage_module(svc_client, env, "sandesha2");
 
-    seq_key = axutil_uuid_gen(env);
-    property = axutil_property_create_with_args(env, 0, 0, 0, seq_key);
-    if(property)
-    {
-        axis2_options_set_property(options, env, SANDESHA2_CLIENT_SEQ_KEY, 
-            property);
-    }
-
     for(i = 1; i < 4; i++)
     {
         axis2_char_t echo_str[7];
 
         sprintf(echo_str, "%s%d", "echo", i);
-        payload = build_om_payload_for_echo_svc(env, echo_str, seq_key);
+        payload = build_om_payload_for_echo_svc(env, echo_str);
         callback1 = axis2_callback_create(env);
         axis2_callback_set_on_complete(callback1, rm_echo_callback_on_complete);
         axis2_callback_set_on_error(callback1, rm_echo_callback_on_error);
@@ -209,7 +198,6 @@
     axis2_svc_client_send_robust(svc_client, env, NULL);
 
     AXIS2_SLEEP(SANDESHA2_MAX_COUNT);
-    AXIS2_FREE(env->allocator, seq_key);
     if (svc_client)
     {
         axis2_svc_client_free(svc_client, env);