In fact, ignore me, it's not a webservice calling, it's another remote
CFC call from the same server.
On Mon, 10 Jan 2005 16:15:41 +0000, Neil Middleton
<[EMAIL PROTECTED]> wrote:
> I'm trying to write an application that is consumable by webservices,
> and for re-use, it doesn't know where on the server it might exist,
> only that the first folder inside the webroot is called "projects".
>
> I am trying desperately to write some code that can tell me the
> component path for all the components within the application
>
> e.g projects.folder.folder.myApplication
>
> Trouble is when I use code such as:
>
> <cffunction name="getComponentPath" access="public" returntype="string">
> <cfset directory = Replace(GetCurrentTemplatePath(),".cfc",
> "", "ALL")>
> <cfreturn Replace(Right(directory, Len(directory)+1 -
> FindNoCase("projects\", directory)),"\",".","ALL") & "." />
> </cffunction>
>
> I always end up with the path to calling application, which happens to
> also be a CFC. Is there a way to do this?
> --
> Neil
> http://www.theservicefactory.com
>
> Get Firefox - http://www.getfirefox.com
>
--
Neil
http://www.joandneil.co.uk
Get Firefox - http://www.getfirefox.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:189811
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54