I am using the WebService classes and the folks handling the .NET services are telling me to edit the mx.services.WebService class here:
class mx.services.WebService { ... _timeout = -1; ... >From -1 to 10. I usually do not make it a habit to go in and edit the built in classes provided by Adobe/MM but I guess if it will work... Any thoughts??? -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tom Lee Sent: Tuesday, May 02, 2006 10:51 AM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Web Service Call Timing Out Within Flash (Any WayToSet A Timeout Var???) Are you using the WebServiceConnector component, the WebService classes, or something else? -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Forums Sent: Tuesday, May 02, 2006 11:17 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Web Service Call Timing Out Within Flash (Any Way ToSet A Timeout Var???) I have a simple Web Service method setup which I have used many many times and never had any issues with, however... I have recently used it on an online shopping application which calls a "process" service to process a user's purchase (authenticate CC data, etc). Sometimes this call can take a bit of time (a minute or two) and because of this my "onResult" within Flash never gets called so the entire app just hangs. The developers setup a dummy service with a 2 minute delay so all the service does is wait and return some dummy data after 2 minutes, this of course causes the app to hang just like the process transaction. Is there anyway to know what the Timeout is for the service classes within Flash or better yet is there a way to set these props? I have posted my method below: public function fetch (methodCallName:String):Void { trace("fetch --> " + methodCallName); // arguments.shift (); // this.$callBackObj = this.$webService[methodCallName].apply(this.$webService, arguments); // this.$callBackObj._self = this; // this.$callBackObj.onResult = function (result) { this._self.$resultObj = result; // this._self.broadcastMessage("onWebServiceResult", this._self, methodCallName); // trace ("WSDL loaded -- " + result); // this._self.destroyCallBack (); }; // this.$callBackObj.onFault = function (fault) { this._self.$resultObj = false; // this._self.broadcastMessage("onWebServiceResult", this._self, methodCallName); // trace ("WSDL fault -- " + fault.faultstring); // this._self.destroyCallBack (); }; } Thank you in advance! _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com