Author: damitha
Date: Mon Jan 22 20:07:47 2007
New Revision: 498904

URL: http://svn.apache.org/viewvc?view=rev&rev=498904
Log:
Sample modified

Added:
    webservices/sandesha/trunk/c/samples/rm_1_1_echo/rm_echo_1.1.c
      - copied, changed from r498580, 
webservices/sandesha/trunk/c/samples/rm_1_1_echo/rm_echo_client.c
Removed:
    webservices/sandesha/trunk/c/samples/rm_1_1_echo/rm_echo_client.c

Copied: webservices/sandesha/trunk/c/samples/rm_1_1_echo/rm_echo_1.1.c (from 
r498580, webservices/sandesha/trunk/c/samples/rm_1_1_echo/rm_echo_client.c)
URL: 
http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/samples/rm_1_1_echo/rm_echo_1.1.c?view=diff&rev=498904&p1=webservices/sandesha/trunk/c/samples/rm_1_1_echo/rm_echo_client.c&r1=498580&p2=webservices/sandesha/trunk/c/samples/rm_1_1_echo/rm_echo_1.1.c&r2=498904
==============================================================================
--- webservices/sandesha/trunk/c/samples/rm_1_1_echo/rm_echo_client.c (original)
+++ webservices/sandesha/trunk/c/samples/rm_1_1_echo/rm_echo_1.1.c Mon Jan 22 
20:07:47 2007
@@ -74,17 +74,12 @@
     int c;
    
     /* Set up the environment */
-    /*env = axis2_env_create_all("echo_non_blocking_dual.log", 
-            AXIS2_LOG_LEVEL_DEBUG);*/
-    /*env = axis2_env_create_all("echo_non_blocking_dual.log", 
-            AXIS2_LOG_LEVEL_ERROR);*/
     env = axis2_env_create_all("echo_non_blocking_dual.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";;
-    while ((c = AXIS2_GETOPT(argc, argv, ":a:o:m:")) != -1)
+    while ((c = AXIS2_GETOPT(argc, argv, ":a:o:")) != -1)
     {
 
         switch (c)
@@ -95,9 +90,6 @@
             case 'o': /* Sequence Offer */
                 offer = AXIS2_ATOI(optarg);
                 break;
-            case 'm': /* RM Version */
-                single_channel = AXIS2_ATOI(optarg);
-                break;
             case ':':
                 fprintf(stderr, "\nOption -%c requires an operand\n", optopt);
                 usage(argv[0]);
@@ -109,7 +101,6 @@
                 return -1;
         }
     }
-    printf("offer:%d\n", offer);
     if (AXIS2_STRCMP(address, "-h") == 0)
     {
         printf("Usage : %s [endpoint_url] [offer]\n", argv[0]);
@@ -132,11 +123,6 @@
     reply_to = axis2_endpoint_ref_create(env, 
             "http://localhost:7777/axis2/services/__ANONYMOUS_SERVICE__/"\
                 "__OPERATION_OUT_IN__");
-    if(single_channel)
-    {
-        reply_to = axis2_endpoint_ref_create(env, AXIS2_WSA_ANONYMOUS_URL);
-        offer = AXIS2_TRUE;
-    }
     AXIS2_OPTIONS_SET_REPLY_TO(options, env, reply_to);
 
     /* Set up deploy folder. It is from the deploy folder, the configuration 
is 
@@ -270,9 +256,9 @@
         if(!ret_node)
         {
             AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, 
-                    "Stub invoke FAILED: Error code:%d :: %s", 
-                    env->error->error_number, 
-                    AXIS2_ERROR_GET_MESSAGE(env->error));
+                "Stub invoke FAILED: Error code:%d :: %s", 
+                env->error->error_number, 
+                AXIS2_ERROR_GET_MESSAGE(env->error));
             printf("echo stub invoke FAILED!\n");
             status = AXIS2_FAILURE;
         }
@@ -294,10 +280,10 @@
     const axis2_env_t *env,
     int exception)
 {
-   /** take necessary action on error */
-   printf("\nEcho client invoke FAILED. Error code:%d ::%s", exception, 
-         AXIS2_ERROR_GET_MESSAGE(env->error));
-   return AXIS2_SUCCESS;
+    /** take necessary action on error */
+    printf("\nEcho client invoke FAILED. Error code:%d ::%s", exception, 
+        AXIS2_ERROR_GET_MESSAGE(env->error));
+    return AXIS2_SUCCESS;
 }
 
 void wait_on_callback(
@@ -324,10 +310,7 @@
     fprintf(stdout, "\n Usage : %s", prog_name);
     fprintf(stdout, " [-a ADDRESS]");
     fprintf(stdout, " [-o OFFER]");
-    fprintf(stdout, " [-m SINGLE CHANNEL]");
     fprintf(stdout, " Options :\n");
-    fprintf(stdout, "\t-m SINGLE CHANNEL \t single channel.. Type 0 for not to 
use single channel. The" \
-        " default behaviour is single channel(1) \n");
     fprintf(stdout, "\t-o OFFER \t seq offer value.. Type 1 for sequence 
offer" \
         "feature. The default behaviour is no offer(0). \n");
     fprintf(stdout, "\t-a ADDRESS \t endpoint address.. The" \



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

Reply via email to