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

Popular Salesforce Videos