1

I've built an external SOAP Web Service that takes several minutes to complete, I need to do some logic depending on the Service Response.

Should I set a large timeOut value? Is there a way to use While clause to evaluate the Service response?

Thanks in advance.

1

One what to do this is with continuations. It's a callback mechanism that is built into Visualforce. See Make Long-Running Callouts from a Visualforce Page.

enter image description here

You can also use them from Lightning - Invoking Apex Continuations from Lightning Components. Or a more official version from Summer '19 - Make Long-Running Callouts with Continuations.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.