Re: [flexcoders] Synchronous web service calls

2008-04-30 Thread Tom Chiverton
On Tuesday 29 Apr 2008, byte.sensei wrote:
 Because of the way the order is handled, it is split into multiple
 (smaller) orders and then each order is submitted/saved via a web
 service call. 

Could you wrap this complexity up in your own single server-side method ?

-- 
Tom Chiverton
Helping to continually introduce B2C interfaces
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



[flexcoders] Synchronous web service calls

2008-04-29 Thread byte.sensei
OK, so I understand that Flex web service calls are asynchronous, and I 
understand the many cases where this makes sense since you don't have 
to hold up the UI experience while waiting for a web service or remote 
procedure to return a result.

However, I keep running into instances where this makes my life hell. 
One example is the submission of an order on a Flex site I have.  
Because of the way the order is handled, it is split into multiple 
(smaller) orders and then each order is submitted/saved via a web 
service call.  This means that one order could have 10+ web service 
calls.  I have a Print Receipt button which then uses the saved order 
data to produce a PDF receipt.  The problem is, if a user clicks Print 
Receipt before all the save order web services have finished, then 
they only get a partial receipt.  There's also not an easy way to 
determine if all the web service calls are finished, so I can't 
disable/enable the button based on that.

Is there any easy way to implement synchronous web service calls in 
Flex?  Man, if I had the option of specifying with a property whether 
or not a web service should be synchronous or asynchronous, it would 
make my life *so* much easier!




RE: [flexcoders] Synchronous web service calls

2008-04-29 Thread Glenn Williams
why exactly cant you tell if all services have returned and been successful?

 

I think synchronous is  a real problem - what if the service never returns?

you must have a fault/result methods of the call, you must know the number
of calls per order?

 

be interested to know more info to see if there are other solutions we could
think of for you

 

cheer mate

 

glenn

tinylion development UK

www.flex-ria.com

www.tinylion.co.uk

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of byte.sensei
Sent: Tuesday, April 29, 2008 2:49 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Synchronous web service calls

 

OK, so I understand that Flex web service calls are asynchronous, and I 
understand the many cases where this makes sense since you don't have 
to hold up the UI experience while waiting for a web service or remote 
procedure to return a result.

However, I keep running into instances where this makes my life hell. 
One example is the submission of an order on a Flex site I have. 
Because of the way the order is handled, it is split into multiple 
(smaller) orders and then each order is submitted/saved via a web 
service call. This means that one order could have 10+ web service 
calls. I have a Print Receipt button which then uses the saved order 
data to produce a PDF receipt. The problem is, if a user clicks Print 
Receipt before all the save order web services have finished, then 
they only get a partial receipt. There's also not an easy way to 
determine if all the web service calls are finished, so I can't 
disable/enable the button based on that.

Is there any easy way to implement synchronous web service calls in 
Flex? Man, if I had the option of specifying with a property whether 
or not a web service should be synchronous or asynchronous, it would 
make my life *so* much easier!

 



Glenn Williams.vcf
Description: Binary data