Title: Re: [flexcoders] Re: ACcess SOAP fault code

Glad to hear it still works in 2.0.
.

Carson


____________________________________________

Carson Hager
Cynergy Systems, Inc.
http://www.cynergysystems.com

Email:  [EMAIL PROTECTED]
Office: 866-CYNERGY ext. 89
Mobile: 1.703.489.6466



-----Original Message-----
From: [email protected] <[email protected]>
To: [email protected] <[email protected]>
Sent: Wed Jul 12 01:15:55 2006
Subject: RE: [flexcoders] Re: ACcess SOAP fault code

It works!

To make real fault codes available in Flex 2.0 (RTM) from .NET web services put the following code (C#) in your Global.asax
void Application_PreSendRequestHeaders(object sender, EventArgs e)
{
    if (Response.StatusCode != 200)
    { // fix response code for flex
        string sReferrer = Request.UrlReferrer.AbsolutePath.ToLower();
        if (sReferrer.EndsWith(".swf")) Response.StatusCode = 200;
    }
}

- Kelly


________________________________

From: [email protected] [mailto:[email protected]] On Behalf Of Daniel Tuppeny
Sent: Monday, July 10, 2006 1:17 AM
To: [email protected]
Subject: RE: [flexcoders] Re: ACcess SOAP fault code



Cool, let us know how you get on. Might save me some time when I need to "fix" it :-)

________________________________

From: [email protected] [mailto:[email protected]] On Behalf Of Carson Hager
Sent: 03 July 2006 15:41
To: [email protected]
Subject: RE: [flexcoders] Re: ACcess SOAP fault code


If you swap the status code, the fault handler will still be triggered and this time you will get the full fault.  That being said, I haven't tried this in the GA version of Flex 2. I'll be trying it this week.


Carson
____________________________________________

Carson Hager
Cynergy Systems, Inc.
http://www.cynergysystems.com <http://www.cynergysystems.com/>

Email:  [EMAIL PROTECTED]
Office:  866-CYNERGY
Mobile: 1.703.489.6466



________________________________

From: [email protected] [mailto:[email protected]] On Behalf Of Daniel Tuppeny
Sent: Thursday, June 22, 2006 12:52 AM
To: [email protected]
Subject: RE: [flexcoders] Re: ACcess SOAP fault code



So if we swap the 500 status code for a 200, the fault handler won't be triggered?

This is sounding more and more useless each day! I guess the only way to do it is with try/catch and return our own object, and interrogate it after every call :-(

________________________________

From: [email protected] [mailto:[email protected]] On Behalf Of Carson Hager
Sent: 21 June 2006 13:13
To: [email protected]
Subject: RE: [flexcoders] Re: ACcess SOAP fault code


The way it should work is for the fault handler to be triggered due to the fact that a SOAP fault was returned. At this point, the 500 status code is what's triggering the fault.


Carson


____________________________________________
 
Carson Hager
Cynergy Systems, Inc.
http://www.cynergysystems.com <http://www.cynergysystems.com/
 
Email:  [EMAIL PROTECTED]
Office:  866-CYNERGY
Mobile: 1.703.489.6466
 



________________________________

From: [email protected] [mailto:[email protected]] On Behalf Of Daniel Tuppeny
Sent: Wednesday, June 21, 2006 4:05 AM
To: [email protected]
Subject: RE: [flexcoders] Re: ACcess SOAP fault code




I wasn't thinking to use the fault handler, I was just planning on every
response being an object with an error property that will usually be
null, and checking for it myself. Your idea would be much nicer, but I
doubt it's possible, since we're pretending everything worked fine.
Maybe changing the status code in a HttpHandler would be a nicer
solution after all!

-----Original Message-----
From: [email protected] <mailto:flexcoders%40yahoogroups.com>  [mailto:[email protected] <mailto:flexcoders%40yahoogroups.com> ] On
Behalf Of z l
Sent: 21 June 2006 08:24
To: [email protected] <mailto:flexcoders%40yahoogroups.com>
Subject: [flexcoders] Re: ACcess SOAP fault code

Hi,

Can someone explain to me that since you've caught the exception in your
code, then how does the fault event handler in flex gets called?

Generally speaking, what is the mechanism that triggers the fault event
in flex?

Thanks,

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com <http://mail.yahoo.com

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

[Inbound Mail Scanned by MessageLabs]

__________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email <http://www.messagelabs.com/email
__________________________________________________________



[Inbound Mail Scanned by MessageLabs]

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________



[Inbound Mail Scanned by MessageLabs]

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________



__._,_.___

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





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to