Author: milamber
Date: Fri Sep 16 00:05:40 2011
New Revision: 1171336
URL: http://svn.apache.org/viewvc?rev=1171336&view=rev
Log:
WebService(SOAP) request - add a connect timeout to get the wsdl used to
populate Web Methods when server doesn't response
Modified:
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/WSDLHelper.java
jakarta/jmeter/trunk/xdocs/changes.xml
Modified:
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/WSDLHelper.java
URL:
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/WSDLHelper.java?rev=1171336&r1=1171335&r2=1171336&view=diff
==============================================================================
---
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/WSDLHelper.java
(original)
+++
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/WSDLHelper.java
Fri Sep 16 00:05:40 2011
@@ -49,6 +49,9 @@ import org.apache.jmeter.protocol.http.c
*
*/
public class WSDLHelper {
+
+ private static int GET_WDSL_TIMEOUT = 5000; // timeout to retrieve wsdl
when server not response
+
/**
* -------------------------------------------- The members used by the
* class to do its work --------------------------------------------
@@ -173,6 +176,8 @@ public class WSDLHelper {
protected void connect() throws IOException {
try {
CONN = WSDLURL.openConnection();
+ CONN.setConnectTimeout(GET_WDSL_TIMEOUT);
+ CONN.setReadTimeout(GET_WDSL_TIMEOUT);
// in the rare case the WSDL is protected and requires
// authentication, use the AuthManager to set the
// authorization. Basic and Digest authorization are
Modified: jakarta/jmeter/trunk/xdocs/changes.xml
URL:
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/xdocs/changes.xml?rev=1171336&r1=1171335&r2=1171336&view=diff
==============================================================================
--- jakarta/jmeter/trunk/xdocs/changes.xml (original)
+++ jakarta/jmeter/trunk/xdocs/changes.xml Fri Sep 16 00:05:40 2011
@@ -87,6 +87,7 @@ This can be overridden by setting the JM
<li>Bug 50424 - Web Methods drop down list box inconsistent</li>
<li>Bug 43293 - Java Request fields not cleared when creating new sampler</li>
<li>Bug 51830 - Webservice Soap Request triggers too many popups when
Webservice WSDL URL is down</li>
+<li>WebService(SOAP) request - add a connect timeout to get the wsdl used to
populate Web Methods when server doesn't response</li>
</ul>
<h3>Controllers</h3>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]