Re: Asynchronous processes & Orbeon (AJAX push?)

Posted by Erik Bruchez on
URL: https://discuss.orbeon.com/Asynchronous-processes-Orbeon-AJAX-push-tp3015872p3016569.html

You could use the @delay attribute on xforms:dispatch to do polling.
Could that work?

-Erik

On Wed, Oct 27, 2010 at 9:50 AM, Stian Sigvartsen
<[hidden email]> wrote:

> Hi
>
> I am wondering if it is possible for an Orbeon xForm to call a webservice
> which fronts an asynchronous process.
> Basically I see two options:
>
> 1) Orbeon generates a callback URL which it gives to the webservice.  This
> URL is invoked (maybe HTTP POST) with the webservice asynchronous processing
> results.
>
> 2) Orbeon provides no callback URL, but polls another webservice method
> which checks if the webservice's asynchronous process has completed and if
> so returns the results, otherwise polls again after a specified interval.
> This of course relied on the webservice providing some conversational ID
> which can be used for the polling.
>
> If either of the above are available in Orbeon xForms, is there a way to
> send an update to the client when the results are available?  E.g. AJAX push
> / Reverse AJAX like ICEFaces uses.
>
> I found the following Wiki page, but I don't think this talks about calling
> a synchronous webservice which takes a long time to process, rather than the
> scenario I described.
>
> http://wiki.orbeon.com/forms/doc/developer-guide/asynchronous-submissions
>
> Kind regards,
> Stian
>
> --
> You receive this message as a subscriber of the [hidden email] mailing
> list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws