Questions tagged [continuation]

Visualforce uses a Continuation callback pattern for handling asynchronous callouts to SOAP and REST web services

18 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
960 views

Safari support for iframing a visualforce page

Background: I have an API I wish to use from within my managed package which occasionally results in long running callouts. In order to ensure my users don't encounter errors with the limits to long ...
5
votes
0answers
207 views

<apex:map> doesn't render when using continuation(asynchonous callout)

It seems like there's a bug rerendering an <apex:map> from asynchronous callout. On my sample page below I have two <apex:commandbutton> one executing an asynchronous callout(action="{!...
3
votes
0answers
942 views

Callback not called on Continuation Object

I am trying to invoke SOAP service using continuation. While I am able to successfully hit the service, my callback function is not called. Please help me know if there is any issue with it. Thanks ...
2
votes
0answers
566 views

Test class for Continuation Chaining

Has anyone ever done a test class for continuation chaining (Multiple Asynchronous Callouts)?
2
votes
0answers
837 views

How to get the info on AsynCallouts made with Continuation framework(or Class)

I am using WSDL classes generated from the WSDL xml, to make the webservice callouts. I was making the callout synchronously, but later I want to change it to Asynchronous callouts. As we already know ...
1
vote
1answer
350 views

LWC Continuation SOAP API does not seem to be working

I`m trying to execute Continuation from LWC action. The thing is that I use it for SOAP API. It is a long-time running request, but I have to show a loading spinner until the response will be ...
1
vote
1answer
292 views

Apex Continuation method that call service method

We have a a service class where we use as repository/factory for specific external endpoint. One of those endpoint has a method which takes sometime and for that reason we get a timeout exception ...
1
vote
0answers
111 views

Calling Salesforce Rest Webservice url from vf controller

Hi I am trying to make a rest callout from controller and I am not been able to get response . I am using apex continution callout pattern for this to make call async. This is controller class ...
1
vote
0answers
413 views

Callback method processResponse() not called if endpoint is an invalid website

I am using Apex Continuation which has 2 functions: startRequest() - the starting function processResponse() - the callback function. Problem processResponse() is being called OK either... when I ...
1
vote
0answers
275 views

Get PageReference returned by callback of continuation, and navigate to it

I've spent many hours scouring the net and trying different coding options to get a very simple function accomplished, with no luck.  There are no examples anywhere that I can find, and SF's ...
1
vote
1answer
120 views

Chaining Continuation call forImported wsdl

I have developed a VF page which needs to do 3 call outs to external system in a sequence. The wsdl has been shared for these web services. We have implemented the continuation pattern based for wsdl ...
0
votes
1answer
33 views

Testing chained continuations

Im wondering if anyone has figured out a way to test chained continuations? I followed the documentation for how to essentially make two asynchronous callouts in a synchronous pattern. I can test the ...
0
votes
0answers
44 views

Issue rewriting @future method to using continuation class

Formerly, I built a callout using the @future(callout=true) to make asynchronous callouts. @future(callout=true) public static void exportReport(){ // create request Http http = new ...
0
votes
1answer
58 views

Getting Blank response when i return Array on continuation in Lightning component's Server side method

In my requirement, I have to make multiple callouts with the Lightning component's server-side page load method. So here I have created multiple HTTP request(i.e: 20) objects and bind each 3 in ...
0
votes
1answer
52 views

continuation method return null from the continuation method it self instead of call back method return

public with sharing class ContinuationClass { // Action method @AuraEnabled(continuation=true cacheable=true) public static Object continuationCall() { // Create continuation. ...
0
votes
0answers
158 views

Lightning continuation callout pattern does not respect user permissions

I am working on a lightning application that uses the lightning apex continuation callout pattern found at this link: https://developer.salesforce.com/blogs/2017/09/invoking-apex-continuations-...
0
votes
2answers
718 views

Continuation pattern and JavaScript Remoting - corrupted file in the response

My current solution is working with following logic: system is calling remote action from vf page in the method there is a HttpRequest, system is calling external system, is sending file which will ...
0
votes
0answers
55 views

Apex Continuations: what happens when user navigates from his session?

As Continuation only works from VisualForce, what happens when user navigates from that session? Does the users loose the process?