Author: midon
Date: Thu Oct 9 16:03:17 2008
New Revision: 703288
URL: http://svn.apache.org/viewvc?rev=703288&view=rev
Log:
ODE-383: make sure the default options are always set
Modified:
ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/SoapExternalService.java
Modified:
ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/SoapExternalService.java
URL:
http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/SoapExternalService.java?rev=703288&r1=703287&r2=703288&view=diff
==============================================================================
---
ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/SoapExternalService.java
(original)
+++
ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/SoapExternalService.java
Thu Oct 9 16:03:17 2008
@@ -455,6 +455,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() {
@@ -463,14 +470,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);
}
}