[flexcoders] Re: HTTPService Synchronization

2008-09-08 Thread rupal_2381
I have a app which has multiple HTTPService calls where the service
calls are dependent on the result of previous service calls. Is it
possible that I can check the result of first service call before
invoking the second one.

Regards,

--- In flexcoders@yahoogroups.com, Igor Costa [EMAIL PROTECTED] wrote:

 Rupal
 The Flex CookBook could help you at here.

http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetailsproductId=2postId=7184
 
 
 Regards
 Igor Costa
 www.igorcosta.org
 
 On Fri, Sep 5, 2008 at 7:02 PM, rupal_2381 [EMAIL PROTECTED] wrote:
 
Hi All,
 
  Is there any framework in place to make multiple HTTPService requests
  synchronous. Also, does making concurrency=last helps?
 
  Regards,
 
   
 
 
 
 
 -- 
 
 Igor Costa
 www.igorcosta.com
 www.igorcosta.org





Re: [flexcoders] Re: HTTPService Synchronization

2008-09-08 Thread Tomas Lin
you can chain your calls in your result functions in either your
httpservice calls or using a framework like MATE

On Mon, Sep 8, 2008 at 1:29 PM, rupal_2381 [EMAIL PROTECTED] wrote:
 I have a app which has multiple HTTPService calls where the service
 calls are dependent on the result of previous service calls. Is it
 possible that I can check the result of first service call before
 invoking the second one.

 Regards,

 --- In flexcoders@yahoogroups.com, Igor Costa [EMAIL PROTECTED] wrote:

 Rupal
 The Flex CookBook could help you at here.

 http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetailsproductId=2postId=7184


 Regards
 Igor Costa
 www.igorcosta.org

 On Fri, Sep 5, 2008 at 7:02 PM, rupal_2381 [EMAIL PROTECTED] wrote:

  Hi All,
 
  Is there any framework in place to make multiple HTTPService requests
  synchronous. Also, does making concurrency=last helps?
 
  Regards,
 
 
 



 --
 
 Igor Costa
 www.igorcosta.com
 www.igorcosta.org


 


RE: [flexcoders] Re: HTTPService Synchronization

2008-09-08 Thread Tracy Spratt
I use a single HTTPService instance, and a single result handler.

 

The send() method returns an AsyncToken, which is a dynamic object to
which you add most any kind of property you want.  The result handler
function can access this AsyncToken and read those proerties.

 

I typically set a callId, which is a string that identifies the call,
and sometimes a nextaction property when I invoke a dataservice call.
In the result handler, I use a switch statement to conditionally work
with those properties to determine the next appropriate processing step,
which obviously can include another dataservice call.

 

The switch statement can get pretty long, but is easy to understand,
debug and modify. With a single breakpoint, I can monitor every result.

 

Tracy

 

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tomas Lin
Sent: Monday, September 08, 2008 2:12 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: HTTPService Synchronization

 

you can chain your calls in your result functions in either your
httpservice calls or using a framework like MATE

On Mon, Sep 8, 2008 at 1:29 PM, rupal_2381 [EMAIL PROTECTED]
mailto:rupal_2381%40yahoo.com  wrote:
 I have a app which has multiple HTTPService calls where the service
 calls are dependent on the result of previous service calls. Is it
 possible that I can check the result of first service call before
 invoking the second one.

 Regards,

 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , Igor Costa [EMAIL PROTECTED]
wrote:

 Rupal
 The Flex CookBook could help you at here.


http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails
productId=2postId=7184
http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetail
sproductId=2postId=7184 


 Regards
 Igor Costa
 www.igorcosta.org

 On Fri, Sep 5, 2008 at 7:02 PM, rupal_2381 [EMAIL PROTECTED] wrote:

  Hi All,
 
  Is there any framework in place to make multiple HTTPService
requests
  synchronous. Also, does making concurrency=last helps?
 
  Regards,
 
 
 



 --
 
 Igor Costa
 www.igorcosta.com
 www.igorcosta.org