Activity Forums Salesforce® Discussions How to increase timeout while calling web service from Salesforce Apex?

  • Anjali

    Member
    July 30, 2018 at 1:31 PM

    Hello Prachi

    You can use HttpRequest.setTimout which is a millisecond value only for 2 minutes.

  • Parul

    Member
    September 23, 2018 at 4:25 AM

    docSample.DocSamplePort stub = new docSample.DocSamplePort();
    stub.timeout_x = 2000; // timeout in milliseconds

Log In to reply.

Popular Salesforce Blogs

A Complete Guide to the Salesforce Administrator Certification Course: What to Expect and How to Succeed

Blog in

In today’s digital era, Salesforce has become the go-to customer relationship management (CRM) platform for businesses worldwide. Whether you're managing customer data, automating workflows, or…

Popular Salesforce Videos