Author: damitha Date: Fri Jan 16 03:41:09 2009 New Revision: 734979 URL: http://svn.apache.org/viewvc?rev=734979&view=rev Log: Updating the samples
Modified: webservices/sandesha/trunk/c/samples/Makefile.am webservices/sandesha/trunk/c/samples/configure.ac webservices/sandesha/trunk/c/samples/rm_echo_single_1_1/rm_echo_single_1_1.c Modified: webservices/sandesha/trunk/c/samples/Makefile.am URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/samples/Makefile.am?rev=734979&r1=734978&r2=734979&view=diff ============================================================================== --- webservices/sandesha/trunk/c/samples/Makefile.am (original) +++ webservices/sandesha/trunk/c/samples/Makefile.am Fri Jan 16 03:41:09 2009 @@ -15,7 +15,8 @@ rm_ping_1_0_large_sequence \ rm_echo_single_1_0_large_sequence \ rm_echo_1_0_large_sequence \ - rm_amqp + rm_amqp \ + rm_echo_single_1_1_large_sequence samples_DATA = Makefile.am Makefile.in Modified: webservices/sandesha/trunk/c/samples/configure.ac URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/samples/configure.ac?rev=734979&r1=734978&r2=734979&view=diff ============================================================================== --- webservices/sandesha/trunk/c/samples/configure.ac (original) +++ webservices/sandesha/trunk/c/samples/configure.ac Fri Jan 16 03:41:09 2009 @@ -77,6 +77,7 @@ rm_echo_single_1_0/Makefile \ rm_echo_single_1_0_large_sequence/Makefile \ rm_echo_single_1_1/Makefile \ + rm_echo_single_1_1_large_sequence/Makefile \ rm_ping_1_0/Makefile \ rm_ping_1_0_large_sequence/Makefile \ rm_ping_1_1/Makefile \ Modified: webservices/sandesha/trunk/c/samples/rm_echo_single_1_1/rm_echo_single_1_1.c URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/samples/rm_echo_single_1_1/rm_echo_single_1_1.c?rev=734979&r1=734978&r2=734979&view=diff ============================================================================== --- webservices/sandesha/trunk/c/samples/rm_echo_single_1_1/rm_echo_single_1_1.c (original) +++ webservices/sandesha/trunk/c/samples/rm_echo_single_1_1/rm_echo_single_1_1.c Fri Jan 16 03:41:09 2009 @@ -52,7 +52,7 @@ axis2_listener_manager_t *listener_manager = NULL; axis2_char_t *offered_seq_id = NULL; axis2_char_t *seq_key = NULL; - int c; + int i, c; axis2_status_t status = AXIS2_FAILURE; axiom_node_t *result = NULL; neethi_policy_t *policy = NULL; @@ -183,81 +183,29 @@ { axis2_options_set_property(options, env, SANDESHA2_CLIENT_SEQ_KEY, property); } - - payload = build_om_payload_for_echo_svc(env, "echo1", seq_key); - /*status = axis2_svc_client_send_robust(svc_client, env, payload); - if(status) - { - printf("\necho client single channel invoke SUCCESSFUL!\n"); - } - payload = NULL;*/ - result = axis2_svc_client_send_receive(svc_client, env, payload); - if(result) - { - axis2_char_t *om_str = NULL; - om_str = axiom_node_to_string(result, env); - if (om_str) - { - printf("\nReceived OM : %s\n", om_str); - AXIS2_FREE(env->allocator, om_str); - } - printf("\necho client two way single channel invoke SUCCESSFUL!\n"); - result = NULL; - } - else - { - printf("\necho client two way single channel invoke FAILED!\n"); - } - - payload = build_om_payload_for_echo_svc(env, "echo2", seq_key); - /*status = axis2_svc_client_send_robust(svc_client, env, payload); - if(status) - { - printf("\necho client single channel invoke SUCCESSFUL!\n"); - } - payload = NULL;*/ - result = axis2_svc_client_send_receive(svc_client, env, payload); - if(result) + + for(i = 1; i < 4; i++) { - axis2_char_t *om_str = NULL; - om_str = axiom_node_to_string(result, env); - if (om_str) + 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); + result = axis2_svc_client_send_receive(svc_client, env, payload); + if(result) { - printf("\nReceived OM : %s\n", om_str); - AXIS2_FREE(env->allocator, om_str); + /*axis2_char_t *om_str = NULL; + om_str = axiom_node_to_string(result, env); + if (om_str) + { + printf("\nReceived OM : %s\n", om_str); + AXIS2_FREE(env->allocator, om_str); + }*/ + printf("\necho client two way single channel invoke SUCCESSFUL!\n"); + result = NULL; } - printf("\necho client two way single channel invoke SUCCESSFUL!\n"); - result = NULL; - } - else - { - printf("\necho client two way single channel invoke FAILED!\n"); - } - - payload = build_om_payload_for_echo_svc(env, "echo3", seq_key); - /*status = axis2_svc_client_send_robust(svc_client, env, payload); - if(status) - { - printf("\necho client single channel invoke SUCCESSFUL!\n"); - } - payload = NULL;*/ - - result = axis2_svc_client_send_receive(svc_client, env, payload); - if(result) - { - axis2_char_t *om_str = NULL; - om_str = axiom_node_to_string(result, env); - if (om_str) + else { - printf("\nReceived OM : %s\n", om_str); - AXIS2_FREE(env->allocator, om_str); + printf("\necho client two way single channel invoke FAILED!\n"); } - printf("\necho client two way single channel invoke SUCCESSFUL!\n"); - result = NULL; - } - else - { - printf("\necho client two way single channel invoke FAILED!\n"); } AXIS2_SLEEP(SANDESHA2_SLEEP); --------------------------------------------------------------------- To unsubscribe, e-mail: sandesha-dev-unsubscr...@ws.apache.org For additional commands, e-mail: sandesha-dev-h...@ws.apache.org