function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
philbophilbo 

Web service callouts from Apex - timeout value?

Hey,

Hopefully a simple question:  when you invoke a synchronous callout to an external Web service, is there any way to tune the timeout value?  It seems to be 10 seconds by default; can this be changed programatically (e.g. by tweaking the class file derived from the external WS's WSDL)? 

Thanks!

-philbo
SuperfellSuperfell
Nope, its a fixed 10 second timeout.
philbophilbo
Baked right in!  OK, thanks.

-philbo
jostmanjostman

Well, if you couldn't then, at least today you can set the timeout. Set the timeout_x on the <your web service>ImplPort value to the ms value you want it to have, e.g. 30000 = 30s.