 |
Spicefactory Forum Archive
|
View previous topic :: View next topic |
Author |
Message |
olegkon
Joined: 24 Apr 2013 Posts: 1 Location: New York, NY, USA
|
Posted: Fri Apr 26, 2013 12:02 pm Post subject: Handling 2 service calls in Parsley 2.4 |
|
|
Hi,
I am fairly new to Parsley.
We have a Flex app which needs tons of data to display (gets many different resultsets of various kinds),
so up until new were making 1 service call via REST-to-SOAP bridge,
but it is often timeout (> 1 min),
so we decided to split the call in 2 services (one is fairly light, and everybody needs that data,
second is heavy and most users don't care about it).
Results are displayed on the same tab.
Can CallResponder process 2 service call results?
Would it be done like that in Parsley:
[CommandResult (type="resultset1"]
protected handleResult1(obj1:Object) : void {,,,}
and:
[CommandResult (type="resultset2"]
protected handleResult2(obj2:Object) : void {,,,}
Can one Command handle 2 resultsets?
Any suggestions? Code samples?
Please advise.
There is nobody else around me who have done something similar.
Using Flex 4.6 & Parsley 2.4
Thank you in advance,
Oleg _________________ Oleg |
|
Back to top |
|
 |
rattkin
Joined: 10 May 2011 Posts: 154 Location: Poznan, PL
|
Posted: Thu May 09, 2013 10:48 am Post subject: |
|
|
Not sure if I understood, but AFAIK, it can't work like this.
But there are other solutions. First that comes to my mind is, if you've already split the service api, then you probably want to split your app logic too. Just make two commands. First one will initiate and tackle the first call, the second one, the second. You can chain commands if you need them to be launched in certain order (need data from previous result) - use Command Framework. _________________ Sebastian Zarzycki
Feerie Software |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|