Re: [flexcoders] Re:Do I *REALLY* need Flex Data Services for WebServices?

2007-03-31 Thread Alex MacCaw

Dunno if this 'll help, but it lets you see
status codes.

On 31 Mar 2007 12:43:20 -0700, iilsley <[EMAIL PROTECTED]> wrote:



My requested was phrased badly , sorry ..

I'm looking for a 'work-around' to the issue with using
WebServices where the contents of a SoapFault ( because the http
status code for a soap-fault is 500 ) is not available to the flex
application. I'm specially looking for a work-around in consuming
services generated using a php-soap server.


--- In flexcoders@yahoogroups.com , "klotzw"
<[EMAIL PROTECTED]> wrote:
>
> FDS is not required to use WebServices. My application uses a J2EE 5
> EJB 3 backend and defines a JAX-WS to create a set of WebService API's
> to access my backend. I then load my J2EE 5 beans and WebService into
> the opensource Glassfish container project.
>
> My Flex application is created using Cairngorm framework and the Flex
> WebService interface.
>
> William
>
> --- In flexcoders@yahoogroups.com ,
"iilsley"  wrote:
> >
> >
> > Is there a workaround using Flex-WS with a PHP-Soap server ?
> >
> > I don't have the budget for FDS - even the free one [:)]
> >
>

 





--
http://www.eribium.org | http://juggernaut.rubyforge.org |
http://www.aireofs.com | Skype: oldmanorhouse


[flexcoders] Re:Do I *REALLY* need Flex Data Services for WebServices?

2007-03-31 Thread iilsley

My requested was phrased badly , sorry .. 

I'm looking for a 'work-around' to the issue with using 
WebServices where the contents of a SoapFault ( because the http
status code for a soap-fault is 500 ) is not available to the flex
application.  I'm specially looking for a work-around in consuming 
services generated using a php-soap server. 
 

--- In flexcoders@yahoogroups.com, "klotzw" <[EMAIL PROTECTED]> wrote:
>
> FDS is not required to use WebServices.  My application uses a J2EE 5
> EJB 3 backend and defines a JAX-WS to create a set of WebService API's
> to access my backend.  I then load my J2EE 5 beans and WebService into
> the opensource Glassfish container project.
> 
> My Flex application is created using Cairngorm framework and the Flex
> WebService interface.
> 
> William
> 
> --- In flexcoders@yahoogroups.com, "iilsley"  wrote:
> >
> > 
> > Is there a workaround  using  Flex-WS with a  PHP-Soap  server ?
> > 
> > I don't have the budget for FDS  - even the free one  [:)]
> >
>




[flexcoders] Re:Do I *REALLY* need Flex Data Services for WebServices?

2007-03-31 Thread klotzw
FDS is not required to use WebServices.  My application uses a J2EE 5
EJB 3 backend and defines a JAX-WS to create a set of WebService API's
to access my backend.  I then load my J2EE 5 beans and WebService into
the opensource Glassfish container project.

My Flex application is created using Cairngorm framework and the Flex
WebService interface.

William

--- In flexcoders@yahoogroups.com, "iilsley" <[EMAIL PROTECTED]> wrote:
>
> 
> Is there a workaround  using  Flex-WS with a  PHP-Soap  server ?
> 
> I don't have the budget for FDS  - even the free one  [:)]
>




[flexcoders] Re:Do I *REALLY* need Flex Data Services for WebServices?

2007-03-30 Thread iilsley

Is there a workaround  using  Flex-WS with a  PHP-Soap  server ?

I don't have the budget for FDS  - even the free one  [:)]





Re: [flexcoders] Re:Do I *REALLY* need Flex Data Services for WebServices?

2007-02-01 Thread Tom Chiverton
On Wednesday 31 Jan 2007, Ted Patrick wrote:
> simplistic but if the login response was that there was 'no user', you
> could prompt the user to 'register', then 'login', then 'getUsers'. It

Maybe you are just picking bad examples of what you are trying to do with 
parsing error messages, but best practice is only to ever return true/false 
from login methods to avoid leaking account details.

-- 
Tom Chiverton
Helping to dynamically integrate low-risk 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

<*> 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/
 


RE: [flexcoders] Re:Do I *REALLY* need Flex Data Services for WebServices?

2007-01-31 Thread Ted Patrick
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





Re: [flexcoders] Re:Do I *REALLY* need Flex Data Services for WebServices?

2007-01-31 Thread Tom Chiverton
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

<*> 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/
 


RE: [flexcoders] Re:Do I *REALLY* need Flex Data Services for WebServices?

2007-01-30 Thread Ted Patrick
The real issue here is that in many cases the SOAP Faults drive business
logic. If you can get the 500 Faults, the soap enclosure can be
programmed to call other SOAP methods.

Here is a sample:

Call GetUsers()
500 Fault >> User not Logged in.
Call Login(username, password)
200 Success >> User logged in.
Call GetUsers()
200 Success >> Users Objects

This is the nature of SOA where faults can route into other business
logic and subsequent calls. We do get notification that a fault occurred
but we have no idea that the user was not logged in. Being able to get
the body of a 500 SOAP fault is critically important.

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: Tuesday, January 30, 2007 9:00 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re:Do I *REALLY* need Flex Data Services for
WebServices?

On Monday 29 Jan 2007, Dima Gutzeit wrote:
> In case of webservices, you can see some generic fault, but not the
cause
> that is being sent with the web fault.

Which is fine, because your end users don't care what the error is, only
that 
it is broken.

-- 
Tom Chiverton
Helping to appropriately exploit 24/7 content



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





Re: [flexcoders] Re:Do I *REALLY* need Flex Data Services for WebServices?

2007-01-30 Thread Tom Chiverton
On Monday 29 Jan 2007, Dima Gutzeit wrote:
> In case of webservices, you can see some generic fault, but not the cause
> that is being sent with the web fault.

Which is fine, because your end users don't care what the error is, only that 
it is broken.

-- 
Tom Chiverton
Helping to appropriately exploit 24/7 content



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

<*> 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/
 


RE: [flexcoders] Re:Do I *REALLY* need Flex Data Services for WebServices?

2007-01-29 Thread Allen Riddle
Before we made the switch to use FDS, we created a Java servlet filter
that would intercept all responses and change a 500 code to a 200, after
you do that, you will have access to the entire soap fault. This can be
done in .NET pretty easily as well if you're on the .NET platform.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dima Gutzeit
Sent: Monday, January 29, 2007 10:51 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re:Do I *REALLY* need Flex Data Services for
WebServices?

 

In case of webservices, you can see some generic fault, but not the
cause that is being sent with the web fault.

 

 

- Original Message - 

From: Charles Havranek <mailto:[EMAIL PROTECTED]>  

To: flexcoders@yahoogroups.com
<mailto:flexcoders@yahoogroups.com>  

Sent: Monday, January 29, 2007 4:07 PM

    Subject: [flexcoders] Re:Do I *REALLY* need Flex Data Services
for WebServices?

 

Greg,  

Without Flex Data Services, I do get the basic error code &
message , but have to look at server logs to see stack traces.

 



Re: [flexcoders] Re:Do I *REALLY* need Flex Data Services for WebServices?

2007-01-29 Thread Dima Gutzeit
In case of webservices, you can see some generic fault, but not the cause that 
is being sent with the web fault.


  - Original Message - 
  From: Charles Havranek 
  To: flexcoders@yahoogroups.com 
  Sent: Monday, January 29, 2007 4:07 PM
  Subject: [flexcoders] Re:Do I *REALLY* need Flex Data Services for 
WebServices?


  Greg,  

  Without Flex Data Services, I do get the basic error code & message , but 
have to look at server logs to see stack traces.



   

Re: [flexcoders] Re:Do I *REALLY* need Flex Data Services for WebServices?

2007-01-29 Thread Kelly Birr
If you intercept the response from your web services and change the HTTP 
Status Code to 200 flex will receive and display the true SOAP 
Exception.  I am currently doing this in my .NET mid-tier applications. 
I'm not really sure how to do it on any other platform, but I must 
assume it's possible.

- Kelly

Charles Havranek wrote:
> Greg, 
>
> Without Flex Data Services, I do get the basic error code & message , 
> but have to look at server logs to see stack traces.
>
>  



[flexcoders] Re:Do I *REALLY* need Flex Data Services for WebServices?

2007-01-29 Thread Charles Havranek
Greg,  

Without Flex Data Services, I do get the basic error code & message , but have 
to look at server logs to see stack traces.