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.

cheers,
barneyb

On 8/9/05, Jim Davis <[EMAIL PROTECTED]> wrote:
> Just dipping my toes into Web Services (I'm actually trying to build
> client-side consumers for Java Services, but I'm building some test services
> in CF).  So I don't know much...
> 
> Anyways.
> 
> I was planning on just using my current application framework but I get an
> error if I extend the web service CFC with another (non-web service) CFC.
> 
> I get an AXIS error which says (amongst other things) "Could not resolve CFC
> datatype: cfc_DepressedPress.DP_Component"
> 
> My code at this point is just:
> 
> <cfcomponent displayname="Test" extends = "cfc_DepressedPress.DP_Component">
>   <cffunction name="sayHi" returntype="string" access="remote">
>     <cfreturn "Howdy Do!">
>   </cffunction>
> </cfcomponent>
> 
> If I take out the "extends" it all works.  If I leave it in and access the
> CFC non-remotely (just as a CFC) it works just fine as well so all the
> mappings seem to be correct.
> 
> Any ideas?  What moronically stupid thing am I doing?
> 
> Thanks,
> 
> Jim Davis
> 
> 

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214241
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

Reply via email to