Asynchronous processes & Orbeon (AJAX push?)

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Asynchronous processes & Orbeon (AJAX push?)

Stian Sigvartsen
Asynchronous processes & Orbeon (AJAX push?)

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
Reply | Threaded
Open this post in threaded view
|

Re: Asynchronous processes & Orbeon (AJAX push?)

Erik Bruchez
Administrator
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
Reply | Threaded
Open this post in threaded view
|

RE: Re: Asynchronous processes & Orbeon (AJAX push?)

Stian Sigvartsen
In reply to this post by Stian Sigvartsen
Hi Erik

It looks like it might cater for the requirements of achieving option 2.
I'll do a bit of investigating and see how I get on!

Many thanks!

-Stian


-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Erik
Bruchez
Sent: 28 October 2010 03:40
To: [hidden email]
Subject: [ops-users] Re: Asynchronous processes & Orbeon (AJAX push?)


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

-Erik


--
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