axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r377880 - in /webservices/axis2/trunk/c: INSTALL samples/client/google/README.txt samples/client/google/google_client.c
Date Tue, 14 Feb 2006 23:18:35 GMT
Author: samisa
Date: Tue Feb 14 15:18:32 2006
New Revision: 377880

URL: http://svn.apache.org/viewcvs?rev=377880&view=rev
Log:
Added some user friendly documentation

Added:
    webservices/axis2/trunk/c/samples/client/google/README.txt
Modified:
    webservices/axis2/trunk/c/INSTALL
    webservices/axis2/trunk/c/samples/client/google/google_client.c

Modified: webservices/axis2/trunk/c/INSTALL
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/INSTALL?rev=377880&r1=377879&r2=377880&view=diff
==============================================================================
--- webservices/axis2/trunk/c/INSTALL (original)
+++ webservices/axis2/trunk/c/INSTALL Tue Feb 14 15:18:32 2006
@@ -18,7 +18,7 @@
 NOTE: If you run into shared lib problems, set the LD_LIBRARY_PATH
     export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/your_path_to_axis2c/lib
 3. Run the sample clients in a new shell
-        cd /your_path_to_axis2c/deploy/bin
+        cd /your_path_to_axis2c/bin/samples
         ./echo
 This will invoke the echo service.
         ./math
@@ -66,12 +66,12 @@
         cp lib/libecho.so services/echo/
         cp lib/libmath.so services/math/
 8. Start simple axis server
-        cd deploy/bin
+        cd $AXIS2C_HOME/bin
         ./axis2_http_server
 This will start the simple axis server on port 9090. To see the posible command line options
run:
         ./axis2_http_server -h
 9. Run the sample clients in a new shell
-        cd $AXIS2C_HOME/deploy/bin
+        cd $AXIS2C_HOME/bin/samples
         ./echo
 This will invoke the echo service.
         ./math

Added: webservices/axis2/trunk/c/samples/client/google/README.txt
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/samples/client/google/README.txt?rev=377880&view=auto
==============================================================================
--- webservices/axis2/trunk/c/samples/client/google/README.txt (added)
+++ webservices/axis2/trunk/c/samples/client/google/README.txt Tue Feb 14 15:18:32 2006
@@ -0,0 +1,8 @@
+In order to run this sample, you need to get a Google license key.
+Please visit http://www.google.com/apis/ for details on how to get a license key.
+
+Use the '-h' option with the sample to get help on command line options.
+e.g.
+./google -h
+
+Samisa...

Modified: webservices/axis2/trunk/c/samples/client/google/google_client.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/samples/client/google/google_client.c?rev=377880&r1=377879&r2=377880&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/client/google/google_client.c (original)
+++ webservices/axis2/trunk/c/samples/client/google/google_client.c Tue Feb 14 15:18:32 2006
@@ -88,15 +88,16 @@
     
     address = "http://api.google.com/search/beta2";
     
-    if (AXIS2_STRCMP(operation, "-h") == 0)
+    if ( (argc > 1) && (AXIS2_STRCMP("-h", argv[1]) == 0) )
     {
-        printf("Usage : %s [google_key] [word_to_spell] \n", argv[0]);
-        printf("use -h for help\n");
-        printf("default google_key %s. Default won't work. You must use your key here.\n",
google_key);
-        printf("default word_to_spell %s\n", word_to_spell);
+        printf("\nUsage : %s [google_key] [word_to_spell] \n", argv[0]);
+        printf("\tgoogle_key Your Google license key. Default value won't work. You must
use your key here.\n");
+        printf("\tword_to_spell Word to be spelled by Google service. Default is %s\n", word_to_spell);
         printf("NOTE: command line arguments must appear in given order, with trailing ones
being optional\n");
+        printf("\tUse -h for help\n");
         return 0;
     }
+
     if (argc > 1 )
         google_key = argv[1];
     if (argc > 2 )



Mime
View raw message