Use the static method setProperty on the AxisProperties class
org.apache.axis.AxisProperties.setProperty ( name, value ) ;
==============================================================
AxisDefault.properties
#
# axis.ClientConfigFile=axis-client-config.xml
# axis.ServerConfigFile=axis-server-config.xml
#
# axis.http.client.maximum.total.connections
# axis.http.client.maximum.connections.per.host
# axis.http.client.connection.pool.timeout
# axis.http.client.connection.default.so.timeout
# axis.http.client.connection.default.connection.timeout
# axis.socketFactory
# axis.socketSecureFactory
# axis.ServerFactory
# http.proxyHost
# http.proxyPort
# http.proxyUser
# http.proxyPassword
# http.nonProxyHosts
# https.proxyHost
# https.proxyPort
# https.proxyUser
# https.proxyPassword
# https.nonProxyHosts
==============================================================
private final static void setAxisProperties () throws IOException
{
File file = new File ( "AxisDefault.properties" ) ;
if ( !file.exists () )
{
return ;
}
Properties properties = new Properties () ;
FileInputStream inputStream = new FileInputStream ( file ) ;
properties.load ( inputStream ) ;
inputStream.close () ;
Enumeration enumeration = properties.propertyNames () ;
while ( enumeration.hasMoreElements () )
{
String name = (String)enumeration.nextElement () ;
String value = properties.getProperty ( name ) ;
org.apache.axis.AxisProperties.setProperty ( name, value ) ;
}
}
==============================================================
-----Original Message-----
From: Narendran Sivakumar [mailto:[EMAIL PROTECTED]
Sent: Sunday, 11 March 2007 1:03 PM
To: [email protected]
Subject: Configuring connection properties axis 1.4 -
Hi
I have written a webservice client which makes call to the webservices and
gets the response back.In that process we have to make multiple calls to get
all the data.
We are using Https connection.
We want set the following properties
disablePrettyXML,
socket.timeout
connection.timeout
connection.stalecheck
connection-manager.timeout
How do I do that.We are using axis 1.4 and commons-httpclient-3.0.1.
I have tried that using org.apache.commons.httpclient.HttpClient but it is
of no use.
socket.timeout can be set in the stub properties also but we are trying to
find alternate place where we can set this also.
Your resolution will be really helpful for us.
Thank You
Naren
<http://adworks.rediff.com/cgi-bin/AdWorks/click.cgi/www.rediff.com/signatur
e-home.htm/[EMAIL PROTECTED]/1103692_1098031/1102907/1?PARTNER=3&OAS_QUERY=
null target=new> Sig_5million_6march07