Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [continuation]

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

5
votes
0answers
40 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
1answer
110 views

How to create controller class instance to pass it as argument of 'Test.invokeContinuationMethod' while Callback method is Static

Background: VF remoting (@remoteAction) is being used to fetch data - this method is declared as Static (in order to make it available for @remoteAction). In this method, in order to make long ...
0
votes
1answer
25 views

call out method is not called in a continuous class, call out from VF page

I was trying to do a callout from a VF page constructor. I'm using Continuation class. As I've to show the response in the Page. Yhe problem is the callout method is not called. Below is the code, I ...
0
votes
1answer
101 views

Concurrent requests limit exceeded [duplicate]

anyone can help me to understand this limit: Number of synchronous concurrent requests for long-running requests that last longer than 5 seconds for each organization For Example, If the Apex Class - ...
0
votes
0answers
32 views

Unknown method 'continuationCallback? when invoked from ActionFunction

VF Page code: <script> $(document).ready(function() { //showing spinner here callAsyncProcess(); function fireOnComplete(){ //stopping spinner here } }); </...
0
votes
1answer
31 views

Chaining Continuations - would each continuation be executed in separate transaction/limit scope?

When we are chaining Continuation objects in Apex controller, would it be right to assume that each continuation (and apex post processing method) is executed in separate transaction scope, e.g. I ...
2
votes
1answer
87 views

Alternatives for handling a Long Running Transaction

I have logic inside an Apex Class that will be invoked from a Lightning Component. There are three sequential callouts that will be sent to an External System whenever its method is Called. As per ...
0
votes
1answer
21 views

will Continuation works in Visual Flow?

We had a existing functionality to get some information from service callout using rest. These information displayed in flow. Its pulling huge information and take little bit longer. Is that ...
0
votes
0answers
73 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 ...
0
votes
1answer
206 views

Callback fails to get HTTP response from Continuation

I have a working version of using an apex continuation in a VF page for parallel and chained callouts. Now I need to use a continuation from a Lightning Component so I implemented the Continuation ...
0
votes
1answer
174 views

Using Continuation without Visualforce

I must check url statuses in scheduled job, but their amount is too big (exceeds limit, which is 100), so I tried to use Continuation object, but I'm not really sure if is it possible to use ...
0
votes
1answer
263 views

@RemoteAction not calling Continuation Pattern response method

We have a VF page where using @RemoteAction calling the controller method. First time using Continuation pattern so not that much familiar. Here trying to call Continuation Request method from my ...
1
vote
1answer
109 views

Continuation: Constructor not defined

I would do some example with Continuation and I'm using Apex code on Apex Developer Guide. When I click to save my code I receive this error message: Constructor not defined: [Continuation].(...
5
votes
0answers
168 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="{!...
1
vote
1answer
423 views

Continuation obj null in setContinuationMethod

I'm currently working on covering code coverage for continuation pattern. However, I receive an exception while testing. I have chained 3 webservices ie., service 1,2 and 3. private static ...
2
votes
0answers
338 views

Test class for Continuation Chaining

Has anyone ever done a test class for continuation chaining (Multiple Asynchronous Callouts)?
0
votes
1answer
409 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 ...
3
votes
1answer
514 views

Asynchronous Callouts/Continuations in Embedded Visualforce

Is there any limitations or issues with using Continuations from an embedded visualforce page? I'm attempting to make an asynchronous callout to the Google Calendar API. I have the callout working ...
1
vote
0answers
153 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
91 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 ...
3
votes
1answer
527 views

Making an Asynchronous Callout from another class

I have a question regarding Making an Asynchronous Callout from an adapter class that I made in apex. Description: So i followed the Making an Asynchronous Callouts from imported WSDL guide from ...
3
votes
2answers
127 views

Code Duplication when using Continuation Framework

Continuation Framework allows us to make synchronous callout as async callout ,which allows to get rid of Concurrent Limit platform error. For making continuation work, all the logic of callout and ...
4
votes
1answer
857 views

How to write test classes for Continuation Controller (using Async WSDL class)

I have implemented Continuation concept with the Asynchronous WSDL class, in a controller of page. So, I facing difficulties while writing test classes for the same. For my requirement I have ...
2
votes
0answers
598 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 ...
3
votes
1answer
885 views

@future method vs Async callout

Some days ago I imported a WSDL into Salesforce and (different of some years ago) it created an Async class (and of course the sync class). So I decided to search on Google how to use this Async class....
6
votes
1answer
1k views

Lightning components and Continuations

I have a need to design components that are capable of performing a lot of simultaneous callouts. Platform limit is 20 per host. Continuations are great way to avoid this limit. Problem is, as per ...
3
votes
1answer
1k views

Concurrent Request Limit Exceeded - Possible Solutions

In the recent past we've replaced two very old s-control type and html mashups with visual force pages and web services. This changes along with a few other visual force pages built into our standard ...
0
votes
0answers
51 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?
1
vote
2answers
210 views

Continuation Error: StatusCode=400

I am using Continuation for a callout in a VF page. I am getting a blank response body with StatusCode=400 . When i call the same service using normal HttpRequest, i am getting the proper response. ...
2
votes
0answers
802 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 ...
1
vote
1answer
780 views

Continuation Object from Trigger

I have a requirement to invoke asynch Webservice callout whenever records is created or updated. I was planning to make a Continuation object callout form Trigger. But As I see in the documentation, ...
5
votes
1answer
1k views

Continuation Error “Apex class 'ApexPage.ContinuationController' does not exist”

I am trying to use Continuation for the first time and am hitting a strange error. Below is a simple page I created with both a Synchronous Callout and a Continuation Callout button. When, in my ...
2
votes
1answer
1k views

“Cannot execute the continuation for Web Service calls” error when using an Asynchronous Callout

Working through a quick example of using a Continuation to make an async web service callout produced the following error after pressing the apex:commandButton that called the action returning the ...
3
votes
4answers
4k views

Asynchronous Callout from an Imported WSDL

I developed VisualForce page with asynchronous callouts to web service according to link. It is working fine, my page is showing results after callback is returned. I really like pattern with ...