Author: midon
Date: Fri Oct 10 13:36:33 2008
New Revision: 703570
URL: http://svn.apache.org/viewvc?rev=703570&view=rev
Log:
ODE-383: make sure the default options are applied
Modified:
ode/trunk/axis2/src/main/java/org/apache/ode/axis2/soapbinding/SoapExternalService.java
Modified:
ode/trunk/axis2/src/main/java/org/apache/ode/axis2/soapbinding/SoapExternalService.java
URL:
http://svn.apache.org/viewvc/ode/trunk/axis2/src/main/java/org/apache/ode/axis2/soapbinding/SoapExternalService.java?rev=703570&r1=703569&r2=703570&view=diff
==============================================================================
---
ode/trunk/axis2/src/main/java/org/apache/ode/axis2/soapbinding/SoapExternalService.java
(original)
+++
ode/trunk/axis2/src/main/java/org/apache/ode/axis2/soapbinding/SoapExternalService.java
Fri Oct 10 13:36:33 2008
@@ -384,6 +384,13 @@
public void init() {
options = new Options();
+ // set defaults values
+ options.setExceptionToBeThrownOnSOAPFault(false);
+
+ // this value does NOT override
Properties.PROP_HTTP_CONNECTION_TIMEOUT
+ // nor Properties.PROP_HTTP_SOCKET_TIMEOUT.
+ // it will be applied only if the laters are not set.
+ options.setTimeOutInMilliSeconds(60000);
}
public void doOnUpdate() {
@@ -392,14 +399,6 @@
// note: don't make this map an instance attribute, so we always
get the latest version
final Map<String, String> properties =
_pconf.getEndpointProperties(endpointReference);
Properties.Axis2.translate(properties, options);
-
- // set defaults values
- options.setExceptionToBeThrownOnSOAPFault(false);
-
- // this value does NOT override
Properties.PROP_HTTP_CONNECTION_TIMEOUT
- // nor Properties.PROP_HTTP_SOCKET_TIMEOUT.
- // it will be applied only if the laters are not set.
- options.setTimeOutInMilliSeconds(60000);
}
}