Author: samisa
Date: Sun Jun 24 23:39:24 2007
New Revision: 550380

URL: http://svn.apache.org/viewvc?view=rev&rev=550380
Log:
Fixed printing address to be NULL

Modified:
    webservices/sandesha/trunk/c/samples/rm_echo_1_0/rm_echo.c
    webservices/sandesha/trunk/c/samples/rm_ping_1_0/rm_ping_1_0.c
    webservices/sandesha/trunk/c/samples/rm_ping_1_1/rm_ping_1_1.c

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?view=diff&rev=550380&r1=550379&r2=550380
==============================================================================
--- 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 Sun Jun 24 
23:39:24 2007
@@ -57,7 +57,6 @@
 {
     const axutil_env_t *env = NULL;
     const axis2_char_t *address = NULL;
-    const axis2_char_t *to = NULL;
     axis2_endpoint_ref_t* endpoint_ref = NULL;
     axis2_endpoint_ref_t* target_epr = NULL;
     axis2_endpoint_ref_t* reply_to = NULL;
@@ -79,7 +78,7 @@
             AXIS2_LOG_LEVEL_TRACE);
 
     /* Set end point reference of echo service */
-    to = "http://127.0.0.1:9090/axis2/services/RMSampleService";;
+    address = "http://127.0.0.1:9090/axis2/services/RMSampleService";;
     while ((c = AXIS2_GETOPT(argc, argv, ":a:")) != -1)
     {
 
@@ -108,10 +107,7 @@
     printf ("Using endpoint : %s\n", address);
     
     /* Create EPR with given address */
-    if(to)
-        endpoint_ref = axis2_endpoint_ref_create(env, to);
-    if(address)
-        target_epr = axis2_endpoint_ref_create(env, address);
+    target_epr = axis2_endpoint_ref_create(env, address);
 
     /* Setup options */
     options = axis2_options_create(env);

Modified: webservices/sandesha/trunk/c/samples/rm_ping_1_0/rm_ping_1_0.c
URL: 
http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/samples/rm_ping_1_0/rm_ping_1_0.c?view=diff&rev=550380&r1=550379&r2=550380
==============================================================================
--- webservices/sandesha/trunk/c/samples/rm_ping_1_0/rm_ping_1_0.c (original)
+++ webservices/sandesha/trunk/c/samples/rm_ping_1_0/rm_ping_1_0.c Sun Jun 24 
23:39:24 2007
@@ -40,7 +40,6 @@
        char *optarg;
     const axutil_env_t *env = NULL;
     const axis2_char_t *address = NULL;
-    const axis2_char_t *to = NULL;
     axis2_endpoint_ref_t* endpoint_ref = NULL;
     axis2_endpoint_ref_t* target_epr = NULL;
     axis2_options_t *options = NULL;
@@ -56,10 +55,7 @@
     env = axutil_env_create_all("rm_ping.log", AXIS2_LOG_LEVEL_DEBUG);
 
     /* Set end point reference of echo service */
-    /*address = "http://127.0.0.1:9090/axis2/services/RMSampleService";*/
-    /*address = "http://127.0.0.1:9090/axis2/services/RMSampleService";*/
-    /*to = "http://127.0.0.1:8080/axis2/services/RMSampleService";*/
-    to = "http://127.0.0.1:9090/axis2/services/RMSampleService";;
+    address = "http://127.0.0.1:9090/axis2/services/RMSampleService";;
     while ((c = AXIS2_GETOPT(argc, argv, ":a:")) != -1)
     {
 
@@ -83,10 +79,7 @@
     printf ("Using endpoint : %s\n", address);
     
     /* Create EPR with given address */
-    if(to)
-        endpoint_ref = axis2_endpoint_ref_create(env, to);
-    if(address)
-        target_epr = axis2_endpoint_ref_create(env, address);
+    target_epr = axis2_endpoint_ref_create(env, address);
 
     /* Setup options */
     options = axis2_options_create(env);

Modified: webservices/sandesha/trunk/c/samples/rm_ping_1_1/rm_ping_1_1.c
URL: 
http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/samples/rm_ping_1_1/rm_ping_1_1.c?view=diff&rev=550380&r1=550379&r2=550380
==============================================================================
--- webservices/sandesha/trunk/c/samples/rm_ping_1_1/rm_ping_1_1.c (original)
+++ webservices/sandesha/trunk/c/samples/rm_ping_1_1/rm_ping_1_1.c Sun Jun 24 
23:39:24 2007
@@ -40,7 +40,6 @@
 {
     const axutil_env_t *env = NULL;
     const axis2_char_t *address = NULL;
-    const axis2_char_t *to = NULL;
     const axis2_char_t *seq_key = NULL;
     axis2_endpoint_ref_t* endpoint_ref = NULL;
     axis2_endpoint_ref_t* target_epr = NULL;
@@ -57,7 +56,7 @@
     env = axutil_env_create_all("rm_ping.log", AXIS2_LOG_LEVEL_CRITICAL);
 
     /* Set end point reference of echo service */
-    to = "http://127.0.0.1:9090/axis2/services/RMSampleService";;
+    address = "http://127.0.0.1:9090/axis2/services/RMSampleService";;
     while ((c = AXIS2_GETOPT(argc, argv, ":a:k:")) != -1)
     {
 
@@ -84,10 +83,7 @@
     printf ("Using endpoint : %s\n", address);
     
     /* Create EPR with given address */
-    if(to)
-        endpoint_ref = axis2_endpoint_ref_create(env, to);
-    if(address)
-        target_epr = axis2_endpoint_ref_create(env, address);
+    target_epr = axis2_endpoint_ref_create(env, address);
 
     /* Setup options */
     options = axis2_options_create(env);



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

Reply via email to