Depends on what kind of client you are using, if its a generated stub
that you are using, you can make the change in the generated files
constructor.
One of the constructors makes changes to the ServiceClient. Add the
followng line to change th time out value,
    _serviceClient.getOptions().setTimeOutInMilliSeconds (6*60*1000); //
which is 6 mins

If its a Service client you are using,
      Options options = new Options();
      options.setTo(targetEPR);
      options.setTimeOutInMilliSeconds (6*60*1000); // which is 6 mins
       options.setTo(targetEPR);
      options.setAction(targetURN);

      ServiceClient sender = new ServiceClient();
      sender.setOptions(options);
     sender.sendReceived(payload)

I guess that should work !!!



________________________________

From: Shehan Simen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2008 11:47 AM
To: [email protected]
Subject: Axis2 client time out



Hi,

How to set up client timeout interval in axis2 client code?

In server side it takes around 1min to send reply to the client and my
client gives error as time out.

I am using tomcat with eclipse.



Thankx.






Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email. 

www.wipro.com

Reply via email to