I copied the component from the networked server to the calling server and 
created a mapping for it in the cfadministrator. I was then able to call 
the containing CFC using the standard <cfinvoke> syntax, and the second 
component (the one with the CF mapping) was executed properly. This also 
worked when the mapping referenced the networked server.

Calling the parent component (parent - for lack of a better word - the 2nd 
component is contained within this top level component) as a webservice, 
again resulted in a template not found error. Even with the component being 
local, but still using a mapping.

I moved the component into the same directory as the webservice component, 
removed the mapping and referenced it directly. This worked!

So, it looks like the CF Mapping directive/instructions are not available 
to web services.

On this note, I have become reliant on referencing our component 
collection(s) with CF mappings. What is the other way to reference 
components? For example, how do I reference I component one directory up. 
Or how do I reference a component that needs to use a UNC path?





At 03:16 PM 20/11/02 -0800, you wrote:
>The only thing that stands out with this component is that it is on another
>server. There is a mapping in the cfadministrator which uses a UNC path to
>the networked server. I use this mapping to call the component, where
>"lfcomponents" is a CF mapping that equals =
>"\\Lfmail\lfV2WebFiles\components\".
>
>
><cfinvoke component="lfcomponents.lfUserMenuMaster"
>                    method="DeleteUserMenu"
>                    usr_id="#CampaignStruct.usr_id#"
>                    extendedID="#CampaignStruct.extendedID#"
>                    extendedID2="#CampaignStruct.extendedID2#"
>                    fileroot="#request.ControllerSettings.fileroot#">
>
>
>The above code is found inside another component, which can be called as a
>component or a webservice. When I call it as a component, it works fine.
>When I call it as a webservice, it fails. The pertinent part of the error
>message is:
>
>Could not find the template lfcomponents.lfusermenumaster] at
>coldfusion.xml.rpc.CFComponentSkeleton.__createCFCInvocationException(Unknow
>n Source) at
>lfdistributedEmailController.lfEmailCentralController.PostDeliveryActions(lf
>EmailCentralController.java:30)
>
>Any ideas why this is? Maybe the CF Mapping is not available to the web
>service?
>
>Brook Davies
>
>
>
>
>At 09:57 AM 20/11/02 -0800, you wrote:
> >On Tuesday, Nov 19, 2002, at 22:31 US/Pacific, Brook Davies wrote:
> > > What I meant by this post, is that I have a component which in turn
> > > uses
> > > <cfinvoke> to invoke another component. This works fine when the
> > > containing
> > > component is called locally.
> > >
> > > But when I try to call it as a webservice, I get an error. If I remove
> > > the
> > > component reference within the web service component, then it works.
> >
> >We do this all the time (have a web service that calls other
> >components) so it definitely works just fine. Can you show us a simple
> >code example that fails?
> >
> >Sean A Corfield -- Director, Architecture
> >Web Technology Group -- Macromedia, Inc.
> >tel: (415) 252-2287 -- cell: (415) 717-8473
> >aim: seancorfield -- http://www.macromedia.com
> >An Architect's View -- http://www.corfield.org/blog/
> >
> >Introducing Macromedia Contribute. Web publishing for everyone.
> >Learn more at http://www.macromedia.com/contribute
> >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=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.

Reply via email to