CFMX Webservices hangup
Is there any way to check to see if a webservice exists before you call it? We have a application on a shared server, and as far as we can tell whenever the webservice can't connect to the remote server, it creates a server-crashing thread that eventually brings ColdFusion. It's on a shared box, so we're in a panic trying to get it fixed...any ideas? Tyler ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CFMX Webservices hangup
You can check it via the factory service. But this is probably unavailable to you on a shared host. Why not wrap your web service call with cftry/cfcatch Bryan F. Hogan Director of Internet Development Team Macromedia Volunteer Macromedia Certified ColdFusion MX Developer Digital Bay Media, Inc. 1-877-72DIGITAL -Original Message- From: Tyler Silcox [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 1:46 PM To: CF-Talk Subject: CFMX Webservices hangup Is there any way to check to see if a webservice exists before you call it? We have a application on a shared server, and as far as we can tell whenever the webservice can't connect to the remote server, it creates a server-crashing thread that eventually brings ColdFusion. It's on a shared box, so we're in a panic trying to get it fixed...any ideas? Tyler ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CFMX Webservices hangup
I'm assuming you've wrapped the cal in a try/catch block? You can always use CFHTTP to try to access the webservice and, on successful connect, use CFINVOKE to actually consume the service. It means making 2 hits to the web service tho... -- Mosh Teitelbaum evoch, LLC Tel: (301) 942-5378 Fax: (301) 933-3651 Email: [EMAIL PROTECTED] WWW: http://www.evoch.com/ -Original Message- From: Tyler Silcox [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 1:46 PM To: CF-Talk Subject: CFMX Webservices hangup Is there any way to check to see if a webservice exists before you call it? We have a application on a shared server, and as far as we can tell whenever the webservice can't connect to the remote server, it creates a server-crashing thread that eventually brings ColdFusion. It's on a shared box, so we're in a panic trying to get it fixed...any ideas? Tyler ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CFMX Webservices hangup
This is a complete hack, and I am sure there may be a better way to do it, but when I call a service, I go ahead and retrieve the WSDL via CFHTTP, www.thedomain.com/smoething.cfc?wsdl and if there is a connection error I will not try to consume the service. Thanks! Robert Bailey Famous for nothing -Original Message- From: Tyler Silcox [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 1:46 PM To: CF-Talk Subject: CFMX Webservices hangup Is there any way to check to see if a webservice exists before you call it? We have a application on a shared server, and as far as we can tell whenever the webservice can't connect to the remote server, it creates a server-crashing thread that eventually brings ColdFusion. It's on a shared box, so we're in a panic trying to get it fixed...any ideas? Tyler ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CFMX Webservices hangup
Tyler, perhaps if you CFHTTP to it first as a test with a timeout of 10 seconds of something of that nature? And, if an error occurs, trap it with cftry and cfcatch.. and then display a message that states, Sorry the x service is not available now. Check back in a few hours. The CFHTTP would only check if there is an issue contacting the server. If the server is up.. but the page is returning a blank html page.. you may also want to interrogate the contents of the page before you call the web-service(cfhttp.filecontent) for a line of code that stays static.. (perhaps the XML declaration?). -Zine -Original Message- From: Tyler Silcox [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 1:46 PM To: CF-Talk Subject: CFMX Webservices hangup Is there any way to check to see if a webservice exists before you call it? We have a application on a shared server, and as far as we can tell whenever the webservice can't connect to the remote server, it creates a server-crashing thread that eventually brings ColdFusion. It's on a shared box, so we're in a panic trying to get it fixed...any ideas? Tyler ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4