Lest anyone "just drop that code into the application.cfm", do be careful as Joel says at the end (and as later notes indicate how time-consuming this can be). Note that he suggests it for reloading the apps "on first launch". While the new application.cfc has a method where you can put this code to ensure it's only done once, if you do drop it into application.cfm, it's critical that you add code to do it only once per application launch (test for an app var, and if it doesn't exist, set it and THEN do this code.)
You do NOT want to mistakenly run this webservice refresh code on every page request! :-) /charlie http://www.carehart.org/blog/ -----Original Message----- From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Joel Cass Sent: Wednesday, August 23, 2006 1:39 AM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Web Service Stub Wierdness You could try putting this in your application.cfc/cfm to reload the apps on first launch: <!--- flush web services ---> <cftry> <cfscript> factory = CreateObject('JAVA', "coldfusion.server.ServiceFactory"); RpcService = factory.XmlRpcService; Mappings = RpcService.getMappings(); for (m in Mappings) { RpcService.refreshWebService(Mappings[m]); } </cfscript> <cfcatch><!-- [error flushing web service cache] --></cfcatch> </cftry> <!--- end flush web services ---> That fixes most niggling AXIS issues for me :) Though it does reload all services on the server so be careful.. -----Original Message----- From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] Behalf Of Scott Arbeitman Sent: Wednesday, 23 August 2006 2:50 PM To: cfaussie Subject: [cfaussie] Web Service Stub Wierdness I have some named web services in my ColdFusion administrator (CF 6.1). I have templates which invoke the web services. These invocations have a low timeout. If I load a template which calls a web service after adding or refreshing a web service in the administrator, it runs without problems. When I restart ColdFusion, however, I can no longer invoke these web services because of socket timeout errors. These are resolved after refreshing the web services in the administrator. Now I know ColdFusion is going to use Axis to generate stubs when adding/refreshing web services. Therefore, these stubs must be deleted by CF when restarting ColdFusion even though "Save Class Files" setting is enabled (I'm assuming, then, that this setting only applies to compiled ColdFusion pages, not Axis stubs). Needless to say, the generate of stubs and their invocation exceeds 5 the timeout threshhold. Anyone know I can tell CF not to delete these stubs? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~----------~----~----~----~------~----~------~--~---