Skip navigation
Currently Being Moderated

Parsley handling 2 service calls

Apr 23, 2013 8:13 PM

Tags: #flex #asynchronous #parsley

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

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points