You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by na...@apache.org on 2008/06/27 23:14:41 UTC

svn commit: r672396 - /webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/WSDL2Ws.java

Author: nadiramra
Date: Fri Jun 27 14:14:41 2008
New Revision: 672396

URL: http://svn.apache.org/viewvc?rev=672396&view=rev
Log:
AXISCPP-458 Incremental update.

Modified:
    webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/WSDL2Ws.java

Modified: webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/WSDL2Ws.java
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/WSDL2Ws.java?rev=672396&r1=672395&r2=672396&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/WSDL2Ws.java (original)
+++ webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/WSDL2Ws.java Fri Jun 27 14:14:41 2008
@@ -155,10 +155,12 @@
             // Set verbose in WSDL parser
             wsdlParser.setVerbose(c_verbose);
             
-            // Set timeout
+            // Set timeout - if not set, we set to zero (i.e. no timeout).
+            // The setTimeout method expects the time in milliseconds.
             String timeout = cmdLineArgs.getOptionBykey("t"); 
-            if (timeout != null) 
-                wsdlParser.setTimeout(Long.parseLong(timeout)); 
+            if (timeout == null)
+                timeout = "0"; 
+            wsdlParser.setTimeout(Long.parseLong(timeout) * 1000); 
             
             // Set unwrapped if requested
             wsdlParser.setNowrap(c_wsdlWrappingStyle == false);
@@ -1272,24 +1274,11 @@
                 + "-l<c++|c>              target language (c++|c) - default is c++\n"
                 + "-s<server|client>      target side (server|client) - default is server\n"
                 + "-v, -verbose           be verbose\n"
-                + "-t<timeout>            uri resolution timeout - 0 means no timeout"
+                + "-t<timeout>            uri resolution timeout in seconds - default is 0 (no timeout)"
                 );
     }
     
     /**
-     * Usage
-     * =====
-     * java WSDL2ws <wsdlfile> -<optionChar><value>
-     * 
-     * Options and Values 
-     * ======= === ======
-     * -o target output folder
-     * -l target language(c|c++) default is c++
-     * -h print usage()
-     * -s (client|server|both)  
-     * -t timeout
-     * 
-     * Note:  PP - pull parser
      * @param args
      * @throws Exception
      */