Tom,

Your point is true. I was trying to state that many SOAP developers
build logic into SOAP Faults. Sure you can get a Boolean success/fail
but being able to interpret the fault result and call another WS method
with args is important. My login example wasn't clear and rather
simplistic but if the login response was that there was 'no user', you
could prompt the user to 'register', then 'login', then 'getUsers'. It
is the flexibility to interpret the SOAP Fault response that is a thorn
in the side of SOAP WS devs. I think Flex/Flash is missing a key lever
here and I am hell bent on getting this fixed.

It is a great point that we get a 'fault' error but that limits the
options for deep integration with web services.

My 2 cents!

Ted Patrick 
Flex Technical Evangelist 
Adobe Systems 
 
http://www.onflex.org 
http://www.linkedin.com/in/tedpatrick 
-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Wednesday, January 31, 2007 2:18 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re:Do I *REALLY* need Flex Data Services for
WebServices?

On Tuesday 30 Jan 2007, Ted Patrick wrote:
> Call GetUsers()
> 500 Fault >> User not Logged in.
> Call Login(username, password)
> 200 Success >> User logged in.
> Call GetUsers()
> 200 Success >> Users Objects

Ahh.
We do
Call Login()
If result.success
        Call GetUsers()
        if result.success
        ...
else
        display error
because you know GetUsers() will fail if the user is not logged in.

For our latest project, we're trialing a standardised way across all the

services of returning results (result:Bool,data:*).

-- 
Tom Chiverton
Helping to enormously create fourth-generation web-readiness

****************************************************

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 St James's Court Brown Street Manchester M2 2JF.  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 Law Society.

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

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.com 
Yahoo! Groups Links



Reply via email to