You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by da...@apache.org on 2007/12/10 13:30:48 UTC

svn commit: r602885 - /webservices/axis2/trunk/c/samples/client/echo/echo.c

Author: damitha
Date: Mon Dec 10 04:30:48 2007
New Revision: 602885

URL: http://svn.apache.org/viewvc?rev=602885&view=rev
Log:
removing basic auth related code from the echo sample. see jira AXIS2C-824

Modified:
    webservices/axis2/trunk/c/samples/client/echo/echo.c

Modified: webservices/axis2/trunk/c/samples/client/echo/echo.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/client/echo/echo.c?rev=602885&r1=602884&r2=602885&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/client/echo/echo.c (original)
+++ webservices/axis2/trunk/c/samples/client/echo/echo.c Mon Dec 10 04:30:48 2007
@@ -53,33 +53,15 @@
     {
         if (axutil_strcmp(argv[1], "-h") == 0)
         {
-            printf("Usage : %s [endpoint_url] (-auth [username] [password])\n",
+            printf("Usage : %s [endpoint_url]\n",
                    argv[0]);
-            printf("use -auth option for HTTP Authentication\n");
             printf("use -h for help\n");
             return 0;
         }
-        else if (axutil_strcmp(argv[1], "-auth") == 0)
-        {
-            if (argc > 3)
-            {
-                un = argv[2];
-                pw = argv[3];
-            }
-        }
         else
         {
             address = argv[1];
         }
-
-        if (argc > 4)
-        {
-            if (axutil_strcmp(argv[2], "-auth") == 0)
-            {
-                un = argv[3];
-                pw = argv[4];
-            }
-        }
     }
     printf("Using endpoint : %s\n", address);
 
@@ -114,19 +96,6 @@
                         env->error->error_number,
                         AXIS2_ERROR_GET_MESSAGE(env->error));
         return -1;
-    }
-
-    /* Set http-auth information */
-    if (un && pw)
-    {
-        axutil_property_t *prop_pw = NULL;
-        axutil_property_t *prop_un = axutil_property_create(env);
-        axutil_property_set_value(prop_un, env, axutil_strdup(env, un));
-        axis2_options_set_property(options, env, "HTTP_AUTH_USERNAME", prop_un);
-
-        prop_pw = axutil_property_create(env);
-        axutil_property_set_value(prop_pw, env, axutil_strdup(env, pw));
-        axis2_options_set_property(options, env, "HTTP_AUTH_PASSWD", prop_pw);
     }
 
     /* Set service client options */



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org