dims        02/03/19 09:48:29

  Modified:    java/src/org/apache/axis/utils resources.properties
               java/src/org/apache/axis/wsdl WSDL2Java.java
  Log:
  Let the user specify timeout in seconds (not milliseconds).
  
  Revision  Changes    Path
  1.75      +1 -1      xml-axis/java/src/org/apache/axis/utils/resources.properties
  
  Index: resources.properties
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/utils/resources.properties,v
  retrieving revision 1.74
  retrieving revision 1.75
  diff -u -r1.74 -r1.75
  --- resources.properties      19 Mar 2002 17:40:10 -0000      1.74
  +++ resources.properties      19 Mar 2002 17:48:29 -0000      1.75
  @@ -436,7 +436,7 @@
   
   optionOutput00=output directory for emitted files
   optionPackage00=override all namespace to package mappings, use this package name 
instead
  -optionTimeout00=network timeout (in millisecs or -1 to disable)
  +optionTimeout00=network timeout (in seconds or -1 to disable)
   options00=Options:
   
   # NOTE:  in optionScope00, do not translate "Application", "Request", "Session"
  
  
  
  1.17      +2 -2      xml-axis/java/src/org/apache/axis/wsdl/WSDL2Java.java
  
  Index: WSDL2Java.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/WSDL2Java.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- WSDL2Java.java    19 Mar 2002 17:40:10 -0000      1.16
  +++ WSDL2Java.java    19 Mar 2002 17:48:29 -0000      1.17
  @@ -437,7 +437,7 @@
                   wsdlThread.join();
           } catch (InterruptedException e) {
           }
  -        
  +
           if (wsdlThread.isAlive()) {
               wsdlThread.interrupt();
               throw new Exception(JavaUtils.getMessage("timedOut"));
  @@ -584,7 +584,7 @@
   
                       case NETWORK_TIMEOUT_OPT:
                           String timeoutValue = option.getArgument();
  -                        wsdl2java.setTimeout(Long.parseLong(timeoutValue));
  +                        wsdl2java.setTimeout(Long.parseLong(timeoutValue)*1000);
                           break;
                   }
               }
  
  
  


Reply via email to