I have generated stubs as well ... you can get to Options via:
stub._getServiceClient().getOptions().setTimeOutInMilliSeconds
(60*1000);
I'm not sure if you need to getOptions(), update them, then setOptions
() or not ... see also:
http://www.mail-archive.com/[email protected]/msg13830.html
Finally, I think you can also set the timeout via the configuration
file 'axis2.xml'.
ConfigurationContext config =
ConfigurationContextFactory.createConfigurationFromFileSystem(
"lib/repository",
"etc/axis2.xml"
);
MyStub stub = new MyStub(config, "https://somewhere/someservice");
...
Where etc/axis2.xml is configured as per:
http://ws.apache.org/axis2/1_0/http-transport.html#timeout_config
Disclaimer: I haven't tried the above yet; I'm new to Axis2.
On 19-Apr-07, at 3:23 PM, Vibhor_Sharma wrote:
thanks Ryan
I have geneated the stubs out of the wsdl file.
and then my client consumes the stub to send the request to the web
service
i tried searching the time out parameter in the stub but could not
find it.
Thanks
Vibhor
________________________________
From: Ryan Nelsestuen [mailto:[EMAIL PROTECTED]
Sent: Thu 4/19/2007 3:03 PM
To: [email protected]
Subject: RE: How to increase the time out of the Axis2 client
If you are using ServiceClient, try calling
org.apache.axis2.client.Options.setTimeOutInMilliSeconds <http://
ws.apache.org/axis2/1_1/api/org/apache/axis2/client/
Options.html#setTimeOutInMilliSeconds(long)> (...) on the Options
you pass to it.
________________________________
From: Vibhor_Sharma [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 19, 2007 12:59 PM
To: [email protected]
Subject: How to increase the time out of the Axis2 client
Importance: High
Hi
I have a web service created using Axis2 and now i try to
perform the load test by sending approximately 40000 records in a
single request.
I observe that i get a Axis2 client time out error!!
How can we set the time out parameter of the axis client?
Thanks
Vibhor
<winmail.dat>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________
Aaron Aston | Twisted Pair | 905.852.0950