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 Russell Butek <bu...@us.ibm.com> on 2002/03/19 20:27:36 UTC

timeout documentation (was: cvs commit: xml-axis/java/src/org/apache/axis/wsdl WSDL2Java.java)

dims, could you please update the user's guide with the timeout flag for
WSDL2Java?  Thanks.

Also, the usage statement should probably indicate that the default is 45
seconds.

I assume no-one has written a test case for the timeout?

Russell Butek
butek@us.ibm.com
---------------------- Forwarded by Russell Butek/Austin/IBM on 03/19/2002
01:26 PM ---------------------------





dims@apache.org on 03/19/2002 11:52:09 AM

Please respond to axis-dev@xml.apache.org

To:    xml-axis-cvs@apache.org
cc:

Subject:    cvs commit: xml-axis/java/src/org/apache/axis/wsdl
       WSDL2Java.java




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;
                   }
               }