You need to sign in to do that
Don't have an account?

Increase callout timeout
Hi,
I have a problem with a web service callout that continuously gets a timeout. The web service is called through a WSDL generated class. I read in the forums about the timeout_x variable and that we could assign up to 60 sec to this variable. The problem is the behaviour is the same whatever value I assign this variable to (from 1 ms to the max 60000 ms). The timeout still occurs after about 10 seconds.
Did you already experience that? And how can I change the value of this variable? Thanks.
I have a problem with a web service callout that continuously gets a timeout. The web service is called through a WSDL generated class. I read in the forums about the timeout_x variable and that we could assign up to 60 sec to this variable. The problem is the behaviour is the same whatever value I assign this variable to (from 1 ms to the max 60000 ms). The timeout still occurs after about 10 seconds.
Did you already experience that? And how can I change the value of this variable? Thanks.
As per your requirment TIme out for Webservice callout will be 1,20,000 MS ,i.e.like 2Sec.For Clearance You can refer Governer Limits
provided link,http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_gov_limits.htm
If your clear with your requirment,Hit Kudos if this provides you with useful information and if this is what you where looking for then please mark it as a solution for other benefits.
Thank You,
Srinivas
SFDC Certified Developer
SampleClass.BasicHttpBinding_IService1 s = new SampleClass.BasicHttpBinding_IService1();
s.timeout_x = 120000;
Is the way we usually do it. you can also harcode the value in the generated apex class.