dims        02/03/19 09:52:09

  Modified:    java/src/org/apache/axis/wsdl WSDL2Java.java
  Log:
  What was i thinking....Should not mess if the user has specified -1.
  
  Revision  Changes    Path
  1.18      +5 -1      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.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- WSDL2Java.java    19 Mar 2002 17:48:29 -0000      1.17
  +++ WSDL2Java.java    19 Mar 2002 17:52:09 -0000      1.18
  @@ -584,7 +584,11 @@
   
                       case NETWORK_TIMEOUT_OPT:
                           String timeoutValue = option.getArgument();
  -                        wsdl2java.setTimeout(Long.parseLong(timeoutValue)*1000);
  +                        long timeout = Long.parseLong(timeoutValue);
  +                        // Convert seconds to milliseconds.
  +                        if(timeout > 0)
  +                            timeout = timeout * 1000;
  +                        wsdl2java.setTimeout(timeout);
                           break;
                   }
               }
  
  
  


Reply via email to