How to aggregate 2 instances for a submission

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

How to aggregate 2 instances for a submission

Olivier Thery
I have a xforms calling 2 web services and the results of these calls have to be mixed to generate an excel file.
Each web service has a model with an instance for login, an instance for logout, an instance for request and an instance for response recieved.
For each web service, there are 3 triggers to send submission for login, for requesting and for logout

I don't know how to aggregate the responses of these 2 web services requests and send the result to a submission for creatong the excel file.

xforms-web-services.xhtml
Reply | Threaded
Open this post in threaded view
|

Re: How to aggregate 2 instances for a submission

Alessandro Vernet
Administrator
Olivier,

On Feb 25, 2009, at 2:43 PM, Olivier Thery wrote:

> I have a xforms calling 2 web services and the results of these  
> calls have to
> be mixed to generate an excel file.
> Each web service has a model with an instance for login, an instance  
> for
> logout, an instance for request and an instance for response recieved.
> For each web service, there are 3 triggers to send submission for  
> login, for
> requesting and for logout
>
> I don't know how to aggregate the responses of these 2 web services  
> requests
> and send the result to a submission for creatong the excel file.
How is the Excel generation done? By calling a service? And you need  
to aggregate the result from 2 instances into a 3rd one before you do  
that call? If that is the case, then you should be able to use  
<xforms:insert context="instance('3rd')" origin="instance('1st')"/>  
and <xforms:insert context="instance('3rd')" origin="instance('2nd')"/
 > to do this. This assumes that the 3rd instance initially just  
contains a root element.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet



--
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: How to aggregate 2 instances for a submission

Olivier Thery
Thank Alex,
That works fine, but by this way instance('1st') and instance('2nd') are copied in the 3rd one before calling the service to generate Excel file. What about fingerprint in memory on the server ?

Olivier.
Alessandro Vernet wrote
Olivier,

On Feb 25, 2009, at 2:43 PM, Olivier Thery wrote:

> I have a xforms calling 2 web services and the results of these  
> calls have to
> be mixed to generate an excel file.
> Each web service has a model with an instance for login, an instance  
> for
> logout, an instance for request and an instance for response recieved.
> For each web service, there are 3 triggers to send submission for  
> login, for
> requesting and for logout
>
> I don't know how to aggregate the responses of these 2 web services  
> requests
> and send the result to a submission for creatong the excel file.

How is the Excel generation done? By calling a service? And you need  
to aggregate the result from 2 instances into a 3rd one before you do  
that call? If that is the case, then you should be able to use  
<xforms:insert context="instance('3rd')" origin="instance('1st')"/> 
and <xforms:insert context="instance('3rd')" origin="instance('2nd')"/
 > to do this. This assumes that the 3rd instance initially just  
contains a root element.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet



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


-----
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet
Reply | Threaded
Open this post in threaded view
|

Re: Re: How to aggregate 2 instances for a submission

Alessandro Vernet
Administrator
Olivier,

On Feb 26, 2009, at 2:16 PM, Olivier Thery wrote:

> That works fine, but by this way instance('1st') and instance('2nd')  
> are
> copied in the 3rd one before calling the service to generate Excel  
> file.
> What about fingerprint in memory on the server ?

While the operation is performed, those instances will be stored in  
memory. But unless you have humongous instances, this is not something  
I would worry about.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet



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