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
[EMAIL PROTECTED]
---------------------- Forwarded by Russell Butek/Austin/IBM on 03/19/2002
01:26 PM ---------------------------
[EMAIL PROTECTED] on 03/19/2002 11:52:09 AM
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
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;
}
}