> -----Original Message-----
> From: Dave Watts [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 09, 2005 9:27 PM
> To: CF-Talk
> Subject: RE: Web Service Can't Extend non-web service?
> 
> > This is actually a little ridiculous... it looks like I can't
> > even instantiate a CFC that's not available in the web root.
> >
> > I have this line in the pseudo-constructor:
> >
> > <cfset variables.Broker = CreateObject("Component",
> > "cfc_CPU.DB_Test.ReferenceData_Broker") />
> >
> > And I get the same error unless I put the CFC in a web
> > accessible path.
> >
> > This doesn't seem right to me - why does EVERYTHING have to be
> > web accessible?
> 
> I can say with complete certainty that this isn't the case. I use CFCs
> that
> aren't web-accessible all the time.

Well - I think I've figured it out...
 
The situation is this:

The folder "c:\CFC\cfc_DepressedPress" contains various core files and
libraries.  There is a ColdFusion mapping, "cfc_DepressedPress", but no IIS
mapping to this folder.

The folder "c:\CFC\cfc_CPU" contains the service files and some support
files for them.  There is a both ColdFusion mapping, "cfc_CPU".  There is
also an IIS mapping to this folder but this is called "Services".

Note that last bit.

In this configuration the line:

<cfset variables.Broker = CreateObject("Component",
"cfc_CPU.DB_Test.ReferenceData_Broker") />

Caused an error when called in a WebService saying that
"cfc_CPU.DB_Test.ReferenceData_Broker" is an unknown data type.

However if I either add an IIS mapping to "cfc_CPU" or change the "Services"
mapping to be "cfc_CPU" everything works.

For some reason the IIS mapping matters here - although I can't for the life
of me see why.

But anyway... that seems to be the reason.

Jim Davis








~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

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