[flexcoders] Re: Access SOAP fault code
Hello Daniel, did you find any solution for this problem? Excepting the idea to add an error-property to all data types ;-) Im using an ASP.NET Webservice as producer, like you. Thx, BR Nils --- In flexcoders@yahoogroups.com, Daniel Tuppeny [EMAIL PROTECTED] wrote: Cool, I thought it just copied the one from IE! In any case, I guess the WinForms one would be different. Thanks :-) From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson Hager Sent: 20 June 2006 15:01 To: flexcoders@yahoogroups.com; flexcoders@yahoogroups.com Subject: RE: [flexcoders] Access SOAP fault code You can definitely do this so that only the flex app gets the affected response. The FP has a unique user agent name that you can look at to determine if you need to change the http status code or not. That's how we've done this. Carson From: flexcoders@yahoogroups.com on behalf of Daniel Tuppeny Sent: Tue 6/20/2006 9:50 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Access SOAP fault code We've not got many implementations so far, so there's not a great deal to change, it's the fact that it's messy that I don't like, rather than there's more work involved. Having real exceptions sent back to the client is way more convenient than try/catch'ing everything and returning a custom error object. Maybe we can add some HttpHandlers that catch our web services and change the response header, but it's a little nasty, especially given those services may be called by other apps (like ClickOnce WinForms), which we'd want to server the real response to. We'll play around when we get that far, and see what works best. Thanks for the info! From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson Hager Sent: 20 June 2006 14:22 To: flexcoders@yahoogroups.com; flexcoders@yahoogroups.com Subject: RE: [flexcoders] Access SOAP fault code Sorry. I got you mixed up with the original poster. I'd be really surprised if you couldn't do this in .NET more generically than that. I'd hate to see you have to change all of your implementations. We made this very clear to Adobe that this was not acceptable but that didn't seem to matter. It was made pretty clear to us that the player would not be changing. Personally, I'd rather the product was delayed in order to get this right from the beginning. Once more people who have significant experience come to Flex, they are all going to find this as apalling as you have. I'd hate to see Flex get a bad rap over this. Carson From: flexcoders@yahoogroups.com on behalf of Daniel Tuppeny Sent: Tue 6/20/2006 9:21 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Access SOAP fault code We're using .NET web services, no cold fusion. Looks like we'll have to wrap all responses in try/catch, and return an object with an error property, and the actual data as another property. Disgusting :-( From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson Hager Sent: 20 June 2006 14:11 To: flexcoders@yahoogroups.com; flexcoders@yahoogroups.com Subject: RE: [flexcoders] Access SOAP fault code Preaching to the choir. :) Believe me...we feel the same way. From everything we have heard from Adobe, this will not be addressed within the player within this release. That being said, does CF support anything like filters in J2EE that allow you to do things like alter the contents of all responses before they leave the server? If so, you can simply change that HTTP status code to 200 for all CFC requests that have resulted in SOAP faults. Just to clarify, Adobe told us informally that they would be coming up with various server side solutions that would take care of this for you. You would have to check with them to see if they are doing this for Cold Fusion. Carson From: flexcoders@yahoogroups.com on behalf of Daniel Tuppeny Sent: Tue 6/20/2006 9:06 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Access SOAP fault code This sounds pretty worrying. We're using SOAP without any server/proxy. So we won't be able to get the SOAP exceptions at all? That sounds like rather a fundamental flaw. It means we're unable to give the user any sensible messages, because we don't have the exception type. Is this not being fixed for the final release? :-( From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson Hager Sent: 20 June 2006 13:29 To: flexcoders@yahoogroups.com; flexcoders@yahoogroups.com Subject: RE: [flexcoders] Access SOAP fault code This is currently a limitation in the Flash Player (
RE: [flexcoders] Re: Access SOAP fault code
Someone posted the solution for IIS some time ago. I would search the archive. 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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of nilsgildo Sent: Friday, February 16, 2007 6:06 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Access SOAP fault code Hello Daniel, did you find any solution for this problem? Excepting the idea to add an error-property to all data types ;-) Im using an ASP.NET Webservice as producer, like you. Thx, BR Nils --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Daniel Tuppeny [EMAIL PROTECTED] wrote: Cool, I thought it just copied the one from IE! In any case, I guess the WinForms one would be different. Thanks :-) From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Carson Hager Sent: 20 June 2006 15:01 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ; flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: RE: [flexcoders] Access SOAP fault code You can definitely do this so that only the flex app gets the affected response. The FP has a unique user agent name that you can look at to determine if you need to change the http status code or not. That's how we've done this. Carson From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com on behalf of Daniel Tuppeny Sent: Tue 6/20/2006 9:50 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: RE: [flexcoders] Access SOAP fault code We've not got many implementations so far, so there's not a great deal to change, it's the fact that it's messy that I don't like, rather than there's more work involved. Having real exceptions sent back to the client is way more convenient than try/catch'ing everything and returning a custom error object. Maybe we can add some HttpHandlers that catch our web services and change the response header, but it's a little nasty, especially given those services may be called by other apps (like ClickOnce WinForms), which we'd want to server the real response to. We'll play around when we get that far, and see what works best. Thanks for the info! From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Carson Hager Sent: 20 June 2006 14:22 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ; flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: RE: [flexcoders] Access SOAP fault code Sorry. I got you mixed up with the original poster. I'd be really surprised if you couldn't do this in .NET more generically than that. I'd hate to see you have to change all of your implementations. We made this very clear to Adobe that this was not acceptable but that didn't seem to matter. It was made pretty clear to us that the player would not be changing. Personally, I'd rather the product was delayed in order to get this right from the beginning. Once more people who have significant experience come to Flex, they are all going to find this as apalling as you have. I'd hate to see Flex get a bad rap over this. Carson From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com on behalf of Daniel Tuppeny Sent: Tue 6/20/2006 9:21 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: RE: [flexcoders] Access SOAP fault code We're using .NET web services, no cold fusion. Looks like we'll have to wrap all responses in try/catch, and return an object with an error property, and the actual data as another property. Disgusting :-( From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Carson Hager Sent: 20 June 2006 14:11 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ; flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: RE: [flexcoders] Access SOAP fault code Preaching to the choir. :) Believe me...we feel the same way. From everything we have heard from Adobe, this will not be addressed within the player within this release. That being said, does CF support anything like filters in J2EE that allow you to do things like alter the contents of all responses before they leave the server? If so, you can simply change that HTTP status code to 200
[flexcoders] Re: ACcess SOAP fault code
It is working in Flex 2, JBoss/tomcat Thanks! --- In flexcoders@yahoogroups.com, Carson Hager [EMAIL PROTECTED] wrote: It's a little more work than a simple filter. It requires a filter and an HttpServletResponseWrapper. I've included a simple version here along with the web.xml file config you will need in order to use it. You might want to consider changing the scope of the filter. I'll leave that up to you. As always, no warranties...use at your own risk, etc. filter filter-nameFlashHttpStatusCodeFilter/filter-name description/description filter- classcom.cynergysystems.filter.FlashHttpStatusCodeFilter/filte r-class init-param param-namedebug/param-name param-valuefalse/param-value /init-param /filter filter-mapping filter-nameFlashHttpStatusCodeFilter/filter-name url-pattern/*/url-pattern /filter-mapping This should work on any J2EE server. I have only tested it on Tomcat. 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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson Hager Sent: Saturday, July 15, 2006 10:15 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: ACcess SOAP fault code The easiest way to do this is to create a simple filter and change the status only when the requester is the Flash Player. 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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ting_first Sent: Saturday, July 15, 2006 7:20 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: ACcess SOAP fault code Does somebody know how to swap HTTP error code (from 500 to 200) in JBoss/Tomcat? Thanks in advance Ting Yahoo! Groups Sponsor ~-- Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM ~- -- 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/ * 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: ACcess SOAP fault code
Glad to hear it. I'm going to package those classes up in a JAR file so that they're using to use and people don't have to compile them manually. Carson Carson HagerCynergy Systems, Inc.http://www.cynergysystems.comEmail: [EMAIL PROTECTED]Office: 866-CYNERGYMobile: 1.703.489.6466 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ting_firstSent: Thursday, July 20, 2006 12:02 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Re: ACcess SOAP fault code It is working in Flex 2, JBoss/tomcatThanks!--- In [EMAIL PROTECTED]ups.com, "Carson Hager" carson.hager@... wrote: It's a little more work than a simple filter. It requires a filter and an HttpServletResponseWrapper. I've included a simple version here along with the web.xml file config you will need in order to use it. You might want to consider changing the scope of the filter. I'll leave that up to you. As always, no warranties...use at your own risk, etc. filter filter-nameFlashHttpStatusCodeFilter/filter-name description/description filter-classcom.cynergysystems.filter.FlashHttpStatusCodeFilter/filte r-class init-param param-namedebug/param-name param-valuefalse/param-value /init-param /filter filter-mapping filter-nameFlashHttpStatusCodeFilter/filter-name url-pattern/*/url-pattern /filter-mapping This should work on any J2EE server. I have only tested it on Tomcat. Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com http://www.cynergysystems.com/ Email: carson.hager@... Office: 866-CYNERGY Mobile: 1.703.489.6466 From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of Carson Hager Sent: Saturday, July 15, 2006 10:15 AM To: [EMAIL PROTECTED]ups.com Subject: RE: [flexcoders] Re: ACcess SOAP fault code The easiest way to do this is to create a simple filter and change the status only when the requester is the Flash Player. Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com http://www.cynergysystems.com/ Email: carson.hager@... Office: 866-CYNERGY Mobile: 1.703.489.6466 From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of ting_first Sent: Saturday, July 15, 2006 7:20 AM To: [EMAIL PROTECTED]ups.com Subject: [flexcoders] Re: ACcess SOAP fault code Does somebody know how to swap HTTP error code (from 500 to 200) in JBoss/Tomcat? Thanks in advance Ting __._,_.___ -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Re: ACcess SOAP fault code
Does somebody know how to swap HTTP error code (from 500 to 200) in JBoss/Tomcat? Thanks in advance Ting Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM ~- -- 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/ * 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: ACcess SOAP fault code
The easiest way to do this is to create a simple filter and change the status only when the requester is the Flash Player. Carson Carson HagerCynergy Systems, Inc.http://www.cynergysystems.comEmail: [EMAIL PROTECTED]Office: 866-CYNERGYMobile: 1.703.489.6466 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ting_firstSent: Saturday, July 15, 2006 7:20 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Re: ACcess SOAP fault code Does somebody know how to swap HTTP error code (from 500 to 200) inJBoss/Tomcat?Thanks in advanceTing __._,_.___ -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Re: ACcess SOAP fault code
It's a little more work than a simple filter. It requires a filter andan HttpServletResponseWrapper. I've included a simple version here along with the web.xml file config you will need in order to use it. You might want to consider changing the scope of the filter. I'll leave that up to you. As always, no warranties...use at your own risk, etc. filterfilter-nameFlashHttpStatusCodeFilter/filter-namedescription/descriptionfilter-classcom.cynergysystems.filter.FlashHttpStatusCodeFilter/filter-classinit-paramparam-namedebug/param-nameparam-valuefalse/param-value/init-param/filter filter-mappingfilter-nameFlashHttpStatusCodeFilter/filter-nameurl-pattern/*/url-pattern/filter-mapping This should work on any J2EE server. I have only tested it on Tomcat. Carson Carson HagerCynergy Systems, Inc.http://www.cynergysystems.comEmail: [EMAIL PROTECTED]Office: 866-CYNERGYMobile: 1.703.489.6466 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson HagerSent: Saturday, July 15, 2006 10:15 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: ACcess SOAP fault code The easiest way to do this is to create a simple filter and change the status only when the requester is the Flash Player. Carson Carson HagerCynergy Systems, Inc.http://www.cynergysystems.comEmail: [EMAIL PROTECTED]Office: 866-CYNERGYMobile: 1.703.489.6466 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ting_firstSent: Saturday, July 15, 2006 7:20 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Re: ACcess SOAP fault code Does somebody know how to swap HTTP error code (from 500 to 200) inJBoss/Tomcat?Thanks in advanceTing __._,_.___ -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___ HttpServletResponseWrapper.java Description: HttpServletResponseWrapper.java FlashHttpStatusCodeFilter.java Description: FlashHttpStatusCodeFilter.java
RE: [flexcoders] Re: ACcess SOAP fault code
Excellent! And thanks for providing code! I didn't realise there was a PreSendRequestHeaders method, and probably would've come up with a crazy OTT solution! :-) From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kelly BirrSent: 12 July 2006 06:16To: flexcoders@yahoogroups.comSubject: 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 voidApplication_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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel TuppenySent: Monday, July 10, 2006 1:17 AMTo: flexcoders@yahoogroups.comSubject: 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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson HagerSent: 03 July 2006 15:41To: flexcoders@yahoogroups.comSubject: 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 HagerCynergy Systems, Inc.http://www.cynergysystems.comEmail: [EMAIL PROTECTED]Office: 866-CYNERGYMobile: 1.703.489.6466 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel TuppenySent: Thursday, June 22, 2006 12:52 AMTo: flexcoders@yahoogroups.comSubject: 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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson HagerSent: 21 June 2006 13:13To: flexcoders@yahoogroups.comSubject: 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 Email: [EMAIL PROTECTED] Office: 866-CYNERGY Mobile: 1.703.489.6466 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel TuppenySent: Wednesday, June 21, 2006 4:05 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: ACcess SOAP fault code I wasn't thinking to use the fault handler, I was just planning on everyresponse being an object with an error property that will usually benull, and checking for it myself. Your idea would be much nicer, but Idoubt it's possible, since we're pretending everything worked fine.Maybe changing the status code in a HttpHandler would be a nicersolution after all! -Original Message-From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] OnBehalf Of z lSent: 21 June 2006 08:24To: [EMAIL PROTECTED]ups.comSubject: [flexcoders] Re: ACcess SOAP fault codeHi,Can someone explain to me that since you've caught the exception in yourcode, then how does the fault event handler in flex gets called?Generally speaking, what is the mechanism that triggers the fault eventin flex?Thanks,__Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection aroundhttp://mail.yahoo.com --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: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 __[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.m
RE: [flexcoders] Re: ACcess SOAP fault code
I should specify that this is ASP.NET 2.0, I'm not sure if this would work in ASP.NET 1.0/1.1 - Kelly From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kelly BirrSent: Tuesday, July 11, 2006 10:16 PMTo: flexcoders@yahoogroups.comSubject: 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 voidApplication_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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel TuppenySent: Monday, July 10, 2006 1:17 AMTo: flexcoders@yahoogroups.comSubject: 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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson HagerSent: 03 July 2006 15:41To: flexcoders@yahoogroups.comSubject: 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 HagerCynergy Systems, Inc.http://www.cynergysystems.comEmail: [EMAIL PROTECTED]Office: 866-CYNERGYMobile: 1.703.489.6466 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel TuppenySent: Thursday, June 22, 2006 12:52 AMTo: flexcoders@yahoogroups.comSubject: 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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson HagerSent: 21 June 2006 13:13To: flexcoders@yahoogroups.comSubject: 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 Email: [EMAIL PROTECTED] Office: 866-CYNERGY Mobile: 1.703.489.6466 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel TuppenySent: Wednesday, June 21, 2006 4:05 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: ACcess SOAP fault code I wasn't thinking to use the fault handler, I was just planning on everyresponse being an object with an error property that will usually benull, and checking for it myself. Your idea would be much nicer, but Idoubt it's possible, since we're pretending everything worked fine.Maybe changing the status code in a HttpHandler would be a nicersolution after all! -Original Message-From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] OnBehalf Of z lSent: 21 June 2006 08:24To: [EMAIL PROTECTED]ups.comSubject: [flexcoders] Re: ACcess SOAP fault codeHi,Can someone explain to me that since you've caught the exception in yourcode, then how does the fault event handler in flex gets called?Generally speaking, what is the mechanism that triggers the fault eventin flex?Thanks,__Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection aroundhttp://mail.yahoo.com --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: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 __[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 __ __._,_.___ -- Flexcod
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 voidApplication_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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel TuppenySent: Monday, July 10, 2006 1:17 AMTo: flexcoders@yahoogroups.comSubject: 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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson HagerSent: 03 July 2006 15:41To: flexcoders@yahoogroups.comSubject: 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 HagerCynergy Systems, Inc.http://www.cynergysystems.comEmail: [EMAIL PROTECTED]Office: 866-CYNERGYMobile: 1.703.489.6466 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel TuppenySent: Thursday, June 22, 2006 12:52 AMTo: flexcoders@yahoogroups.comSubject: 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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson HagerSent: 21 June 2006 13:13To: flexcoders@yahoogroups.comSubject: 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 Email: [EMAIL PROTECTED] Office: 866-CYNERGY Mobile: 1.703.489.6466 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel TuppenySent: Wednesday, June 21, 2006 4:05 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: ACcess SOAP fault code I wasn't thinking to use the fault handler, I was just planning on everyresponse being an object with an error property that will usually benull, and checking for it myself. Your idea would be much nicer, but Idoubt it's possible, since we're pretending everything worked fine.Maybe changing the status code in a HttpHandler would be a nicersolution after all! -Original Message-From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] OnBehalf Of z lSent: 21 June 2006 08:24To: [EMAIL PROTECTED]ups.comSubject: [flexcoders] Re: ACcess SOAP fault codeHi,Can someone explain to me that since you've caught the exception in yourcode, then how does the fault event handler in flex gets called?Generally speaking, what is the mechanism that triggers the fault eventin flex?Thanks,__Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection aroundhttp://mail.yahoo.com --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: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 __[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 sit
Re: [flexcoders] Re: ACcess SOAP fault code
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: flexcoders@yahoogroups.com flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com 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: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Daniel Tuppeny Sent: Monday, July 10, 2006 1:17 AM To: flexcoders@yahoogroups.com 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: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Carson Hager Sent: 03 July 2006 15:41 To: flexcoders@yahoogroups.com 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: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Daniel Tuppeny Sent: Thursday, June 22, 2006 12:52 AM To: flexcoders@yahoogroups.com 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: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Carson Hager Sent: 21 June 2006 13:13 To: flexcoders@yahoogroups.com 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: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Daniel Tuppeny Sent: Wednesday, June 21, 2006 4:05 AM To: flexcoders@yahoogroups.com 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: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of z l Sent: 21 June 2006 08:24 To: flexcoders@yahoogroups.com 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
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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson HagerSent: 03 July 2006 15:41To: flexcoders@yahoogroups.comSubject: 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 HagerCynergy Systems, Inc.http://www.cynergysystems.comEmail: [EMAIL PROTECTED]Office: 866-CYNERGYMobile: 1.703.489.6466 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel TuppenySent: Thursday, June 22, 2006 12:52 AMTo: flexcoders@yahoogroups.comSubject: 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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson HagerSent: 21 June 2006 13:13To: flexcoders@yahoogroups.comSubject: 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 Email: [EMAIL PROTECTED] Office: 866-CYNERGY Mobile: 1.703.489.6466 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel TuppenySent: Wednesday, June 21, 2006 4:05 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: ACcess SOAP fault code I wasn't thinking to use the fault handler, I was just planning on everyresponse being an object with an error property that will usually benull, and checking for it myself. Your idea would be much nicer, but Idoubt it's possible, since we're pretending everything worked fine.Maybe changing the status code in a HttpHandler would be a nicersolution after all! -Original Message-From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] OnBehalf Of z lSent: 21 June 2006 08:24To: [EMAIL PROTECTED]ups.comSubject: [flexcoders] Re: ACcess SOAP fault codeHi,Can someone explain to me that since you've caught the exception in yourcode, then how does the fault event handler in flex gets called?Generally speaking, what is the mechanism that triggers the fault eventin flex?Thanks,__Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection aroundhttp://mail.yahoo.com --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: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 __[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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson HagerSent: 21 June 2006 13:13To: flexcoders@yahoogroups.comSubject: 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 Email: [EMAIL PROTECTED] Office: 866-CYNERGY Mobile: 1.703.489.6466 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel TuppenySent: Wednesday, June 21, 2006 4:05 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: ACcess SOAP fault code I wasn't thinking to use the fault handler, I was just planning on everyresponse being an object with an error property that will usually benull, and checking for it myself. Your idea would be much nicer, but Idoubt it's possible, since we're pretending everything worked fine.Maybe changing the status code in a HttpHandler would be a nicersolution after all! -Original Message-From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] OnBehalf Of z lSent: 21 June 2006 08:24To: [EMAIL PROTECTED]ups.comSubject: [flexcoders] Re: ACcess SOAP fault codeHi,Can someone explain to me that since you've caught the exception in yourcode, then how does the fault event handler in flex gets called?Generally speaking, what is the mechanism that triggers the fault eventin flex?Thanks,__Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection aroundhttp://mail.yahoo.com --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: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 __ [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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
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 HagerCynergy Systems, Inc.http://www.cynergysystems.comEmail: [EMAIL PROTECTED]Office: 866-CYNERGYMobile: 1.703.489.6466 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel TuppenySent: Thursday, June 22, 2006 12:52 AMTo: flexcoders@yahoogroups.comSubject: 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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson HagerSent: 21 June 2006 13:13To: flexcoders@yahoogroups.comSubject: 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 Email: [EMAIL PROTECTED] Office: 866-CYNERGY Mobile: 1.703.489.6466 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel TuppenySent: Wednesday, June 21, 2006 4:05 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: ACcess SOAP fault code I wasn't thinking to use the fault handler, I was just planning on everyresponse being an object with an error property that will usually benull, and checking for it myself. Your idea would be much nicer, but Idoubt it's possible, since we're pretending everything worked fine.Maybe changing the status code in a HttpHandler would be a nicersolution after all! -Original Message-From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] OnBehalf Of z lSent: 21 June 2006 08:24To: [EMAIL PROTECTED]ups.comSubject: [flexcoders] Re: ACcess SOAP fault codeHi,Can someone explain to me that since you've caught the exception in yourcode, then how does the fault event handler in flex gets called?Generally speaking, what is the mechanism that triggers the fault eventin flex?Thanks,__Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection aroundhttp://mail.yahoo.com --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: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 __[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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[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 Yahoo! Groups Sponsor ~-- Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM ~- -- 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/ * 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: 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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of z l Sent: 21 June 2006 08:24 To: flexcoders@yahoogroups.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 -- 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 [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 __ Yahoo! Groups Sponsor ~-- See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM ~- -- 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/ * 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: 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 Email: [EMAIL PROTECTED] Office: 866-CYNERGY Mobile: 1.703.489.6466 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel TuppenySent: Wednesday, June 21, 2006 4:05 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: ACcess SOAP fault code I wasn't thinking to use the fault handler, I was just planning on everyresponse being an object with an error property that will usually benull, and checking for it myself. Your idea would be much nicer, but Idoubt it's possible, since we're pretending everything worked fine.Maybe changing the status code in a HttpHandler would be a nicersolution after all! -Original Message-From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] OnBehalf Of z lSent: 21 June 2006 08:24To: [EMAIL PROTECTED]ups.comSubject: [flexcoders] Re: ACcess SOAP fault codeHi,Can someone explain to me that since you've caught the exception in yourcode, then how does the fault event handler in flex gets called?Generally speaking, what is the mechanism that triggers the fault eventin flex?Thanks,__Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection aroundhttp://mail.yahoo.com --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: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 __ __._,_.___ -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Re: Access SOAP fault code
I'm using .NET 2.0 WebService from Flex 2.0. If my web service throws an exception I do receive the exception message in the FaultEvent.fault.faultString in Flex. - Kelly --- In flexcoders@yahoogroups.com, Daniel Tuppeny [EMAIL PROTECTED] wrote: Cool, I thought it just copied the one from IE! In any case, I guess the WinForms one would be different. Thanks :-) From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson Hager Sent: 20 June 2006 15:01 To: flexcoders@yahoogroups.com; flexcoders@yahoogroups.com Subject: RE: [flexcoders] Access SOAP fault code You can definitely do this so that only the flex app gets the affected response. The FP has a unique user agent name that you can look at to determine if you need to change the http status code or not. That's how we've done this. Carson From: flexcoders@yahoogroups.com on behalf of Daniel Tuppeny Sent: Tue 6/20/2006 9:50 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Access SOAP fault code We've not got many implementations so far, so there's not a great deal to change, it's the fact that it's messy that I don't like, rather than there's more work involved. Having real exceptions sent back to the client is way more convenient than try/catch'ing everything and returning a custom error object. Maybe we can add some HttpHandlers that catch our web services and change the response header, but it's a little nasty, especially given those services may be called by other apps (like ClickOnce WinForms), which we'd want to server the real response to. We'll play around when we get that far, and see what works best. Thanks for the info! From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson Hager Sent: 20 June 2006 14:22 To: flexcoders@yahoogroups.com; flexcoders@yahoogroups.com Subject: RE: [flexcoders] Access SOAP fault code Sorry. I got you mixed up with the original poster. I'd be really surprised if you couldn't do this in .NET more generically than that. I'd hate to see you have to change all of your implementations. We made this very clear to Adobe that this was not acceptable but that didn't seem to matter. It was made pretty clear to us that the player would not be changing. Personally, I'd rather the product was delayed in order to get this right from the beginning. Once more people who have significant experience come to Flex, they are all going to find this as apalling as you have. I'd hate to see Flex get a bad rap over this. Carson From: flexcoders@yahoogroups.com on behalf of Daniel Tuppeny Sent: Tue 6/20/2006 9:21 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Access SOAP fault code We're using .NET web services, no cold fusion. Looks like we'll have to wrap all responses in try/catch, and return an object with an error property, and the actual data as another property. Disgusting :-( From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson Hager Sent: 20 June 2006 14:11 To: flexcoders@yahoogroups.com; flexcoders@yahoogroups.com Subject: RE: [flexcoders] Access SOAP fault code Preaching to the choir. :) Believe me...we feel the same way. From everything we have heard from Adobe, this will not be addressed within the player within this release. That being said, does CF support anything like filters in J2EE that allow you to do things like alter the contents of all responses before they leave the server? If so, you can simply change that HTTP status code to 200 for all CFC requests that have resulted in SOAP faults. Just to clarify, Adobe told us informally that they would be coming up with various server side solutions that would take care of this for you. You would have to check with them to see if they are doing this for Cold Fusion. Carson From: flexcoders@yahoogroups.com on behalf of Daniel Tuppeny Sent: Tue 6/20/2006 9:06 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Access SOAP fault code This sounds pretty worrying. We're using SOAP without any server/proxy. So we won't be able to get the SOAP exceptions at all? That sounds like rather a fundamental flaw. It means we're unable to give the user any sensible messages, because we don't have the exception type. Is this not being fixed for the final release? :-( From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson Hager Sent: 20 June 2006 13:29 To: flexcoders@yahoogroups.com; flexcoders@yahoogroups.com Subject: RE: [flexcoders] Access SOAP fault code This is currently a limitation in the Flash Player ( all versions ). SOAP
RE: [flexcoders] Re: Access SOAP fault code
That is very surprising. That really should not happen. Are your web services not sending back an HTTP 500? Per the spec, they are required to. Carson From: flexcoders@yahoogroups.com on behalf of kellyb723Sent: Tue 6/20/2006 1:44 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Re: Access SOAP fault code I'm using .NET 2.0 WebService from Flex 2.0. If my web service throwsan exception I do receive the exception message in theFaultEvent.fault.faultString in Flex.- Kelly--- In [EMAIL PROTECTED]ups.com, "Daniel Tuppeny" [EMAIL PROTECTED].. wrote: Cool, I thought it just copied the one from IE! In any case, I guess the WinForms one would be different. Thanks :-) From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of Carson Hager Sent: 20 June 2006 15:01 To: [EMAIL PROTECTED]ups.com; [EMAIL PROTECTED]ups.com Subject: RE: [flexcoders] Access SOAP fault code You can definitely do this so that only the flex app gets the affected response. The FP has a unique user agent name that you can look at to determine if you need to change the http status code or not. That's how we've done this. Carson From: [EMAIL PROTECTED]ups.com on behalf of Daniel Tuppeny Sent: Tue 6/20/2006 9:50 AM To: [EMAIL PROTECTED]ups.com Subject: RE: [flexcoders] Access SOAP fault code We've not got many implementations so far, so there's not a great deal to change, it's the fact that it's messy that I don't like, rather than there's more work involved. Having real exceptions sent back to the client is way more convenient than try/catch'ing everything and returning a custom error object. Maybe we can add some HttpHandlers that catch our web services and change the response header, but it's a little nasty, especially given those services may be called by other apps (like ClickOnce WinForms), which we'd want to server the real response to. We'll play around when we get that far, and see what works best. Thanks for the info! From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of Carson Hager Sent: 20 June 2006 14:22 To: [EMAIL PROTECTED]ups.com; [EMAIL PROTECTED]ups.com Subject: RE: [flexcoders] Access SOAP fault code Sorry. I got you mixed up with the original poster. I'd be really surprised if you couldn't do this in .NET more generically than that. I'd hate to see you have to change all of your implementations. We made this very clear to Adobe that this was not acceptable but that didn't seem to matter. It was made pretty clear to us that the player would not be changing. Personally, I'd rather the product was delayed in order to get this right from the beginning. Once more people who have significant experience come to Flex, they are all going to find this as apalling as you have. I'd hate to see Flex get a bad rap over this. Carson From: [EMAIL PROTECTED]ups.com on behalf of Daniel Tuppeny Sent: Tue 6/20/2006 9:21 AM To: [EMAIL PROTECTED]ups.com Subject: RE: [flexcoders] Access SOAP fault code We're using .NET web services, no cold fusion. Looks like we'll have to wrap all responses in try/catch, and return an object with an error property, and the actual data as another property. Disgusting :-( From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of Carson Hager Sent: 20 June 2006 14:11 To: [EMAIL PROTECTED]ups.com; [EMAIL PROTECTED]ups.com Subject: RE: [flexcoders] Access SOAP fault code Preaching to the choir. :) Believe me...we feel the same way. From everything we have heard from Adobe, this will not be addressed within the player within this release. That being said, does CF support anything like filters in J2EE that allow you to do things like alter the contents of all responses before they leave the server? If so, you can simply change that HTTP status code to 200 for all CFC requests that have resulted in SOAP faults. Just to clarify, Adobe told us informally that they would be coming up with various server side solutions that would take care of this for you. You would have to check with them to see if they are doing this for Cold Fusion. Carson From: [EMAIL PROTECTED]ups.com on behalf of Daniel Tuppeny Sent: Tue 6/20/2006 9:06 AM To: [EMAIL PROTECTED]ups.com Subject: RE: [flexcoders] Access SOAP fault code This sounds pretty worrying. We're using SOAP without any server/proxy. So we won't be able to get the SOAP exceptions at all? That sounds like rather a fundamental flaw. It means we're unable to give the user any sensible messages, because we don't have the exception type. Is this not being fixed for the final release? :-( From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL
[flexcoders] Re: Access SOAP fault code
I have to appologize for my own stupidity. I'm actaully wrapping my WebServices in a try/catch that return a failure status. The fault event only tell me an HTTP Error occured. - Kelly --- In flexcoders@yahoogroups.com, kellyb723 [EMAIL PROTECTED] wrote: I'm using .NET 2.0 WebService from Flex 2.0. If my web service throws an exception I do receive the exception message in the FaultEvent.fault.faultString in Flex. - Kelly --- In flexcoders@yahoogroups.com, Daniel Tuppeny d.tuppeny@ wrote: Cool, I thought it just copied the one from IE! In any case, I guess the WinForms one would be different. Thanks :-) From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson Hager Sent: 20 June 2006 15:01 To: flexcoders@yahoogroups.com; flexcoders@yahoogroups.com Subject: RE: [flexcoders] Access SOAP fault code You can definitely do this so that only the flex app gets the affected response. The FP has a unique user agent name that you can look at to determine if you need to change the http status code or not. That's how we've done this. Carson From: flexcoders@yahoogroups.com on behalf of Daniel Tuppeny Sent: Tue 6/20/2006 9:50 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Access SOAP fault code We've not got many implementations so far, so there's not a great deal to change, it's the fact that it's messy that I don't like, rather than there's more work involved. Having real exceptions sent back to the client is way more convenient than try/catch'ing everything and returning a custom error object. Maybe we can add some HttpHandlers that catch our web services and change the response header, but it's a little nasty, especially given those services may be called by other apps (like ClickOnce WinForms), which we'd want to server the real response to. We'll play around when we get that far, and see what works best. Thanks for the info! From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson Hager Sent: 20 June 2006 14:22 To: flexcoders@yahoogroups.com; flexcoders@yahoogroups.com Subject: RE: [flexcoders] Access SOAP fault code Sorry. I got you mixed up with the original poster. I'd be really surprised if you couldn't do this in .NET more generically than that. I'd hate to see you have to change all of your implementations. We made this very clear to Adobe that this was not acceptable but that didn't seem to matter. It was made pretty clear to us that the player would not be changing. Personally, I'd rather the product was delayed in order to get this right from the beginning. Once more people who have significant experience come to Flex, they are all going to find this as apalling as you have. I'd hate to see Flex get a bad rap over this. Carson From: flexcoders@yahoogroups.com on behalf of Daniel Tuppeny Sent: Tue 6/20/2006 9:21 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Access SOAP fault code We're using .NET web services, no cold fusion. Looks like we'll have to wrap all responses in try/catch, and return an object with an error property, and the actual data as another property. Disgusting :-( From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson Hager Sent: 20 June 2006 14:11 To: flexcoders@yahoogroups.com; flexcoders@yahoogroups.com Subject: RE: [flexcoders] Access SOAP fault code Preaching to the choir. :) Believe me...we feel the same way. From everything we have heard from Adobe, this will not be addressed within the player within this release. That being said, does CF support anything like filters in J2EE that allow you to do things like alter the contents of all responses before they leave the server? If so, you can simply change that HTTP status code to 200 for all CFC requests that have resulted in SOAP faults. Just to clarify, Adobe told us informally that they would be coming up with various server side solutions that would take care of this for you. You would have to check with them to see if they are doing this for Cold Fusion. Carson From: flexcoders@yahoogroups.com on behalf of Daniel Tuppeny Sent: Tue 6/20/2006 9:06 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Access SOAP fault code This sounds pretty worrying. We're using SOAP without any server/proxy. So we won't be able to get the SOAP exceptions at all? That sounds like rather a fundamental flaw. It means we're unable to give the user any sensible messages, because we don't have the exception type. Is this