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
aggarwalaggarwal 

External Web Service - Read timeout

Hi -

 

I am calling external webservice from apex code. I am frequently getting Read timeout exception. I understand that the read connection timeout is 10 seconds. Can we increase this value - say 20 seconds ?

 

Thanks,

Rakesh

nnewbold-sfdcnnewbold-sfdc

You need to set the value (in milliseconds) on the generated apex classes or on the HttpRequest object.

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_web_services_wsdl2apex.htm#callout_timeouts