Did you click that URL? Because I got a "can't find component" error. Maybe that's the issue?
I stand by my "no inheritance" statement. I'd put utility functions like that in an application.utilities CFC instance, and use them from there. Web service objects don't have any internal state, so there's no need for local methods. Again, composition rather than inheritance. On 8/9/05, Jim Davis <[EMAIL PROTECTED]> wrote: > > -----Original Message----- > > From: Barney Boisvert [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, August 09, 2005 4:01 PM > > To: CF-Talk > > Subject: Re: Web Service Can't Extend non-web service? > > > > I can't say that I know what the problem is, but I will say that your > > web service objects almost certainly should be completely flat, with > > no inheritance anywhere. The only place I could see inheritance being > > useful is if you're decorating an existing service object with some > > additional functionality (perhaps a public service and an admin > > service that includes all the operations of the public service). > > Inheritance for decoration generally isn't a good course of action, of > > course, but web service objects a bit of a different beast than "real" > > objects. > > > > You certainly shouldn't be extending non-service objects with your > > service objects. Composition is definitely the way to go in that > > scenario. > > In this case the extension is a "root component" that provides some basic > services to all CFCs. It's documented here if you care: > > http://www.depressedpress.com/depressedpress/Content/Development/ColdFusion/ > DPLibraries/Documentation/DocViewer.cfm?Component=cfc_DepressedPress.DP_Comp > onent > > It has things like dump and error management methods, generic getter/setter > methods and so forth - nothing application specific at all. > > I'm not sure if this is the right way to do things... but it does work fine > for me (at least until now!) ;^) > > Jim Davis > -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 50 invites. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214246 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

