Have you tried moving the CFCs into the web root? I know you said you
have a /ws directory with interface CFCs, but I *think* the other CFCs
need to be in the web root as well. There have been numerous web
services posts to this and the CFCDev list in the past, and I believe
the solution has been that all CFCs for web services need to be under
the web root.

Regards,
Dave.

On Mon, 12 Jul 2004 12:21:57 +0100, Alistair Davidson
<[EMAIL PROTECTED]> wrote:
> Hi Mike,
>
> Yes, I have a mapping set up to mycomponents.
>
> I can create an instance of the CFC in the web service method, no
> problem. If I do:
>
> <cfcomponent displayname="Person Web Service Component">
>
>             <cffunction name="viewPerson" returntype="string"
> access="remote">
>
>                         <cfargument name="intItemID" type="numeric"
> required="true" />
>
>                         <cfscript>
>
>                                     objPerson = CreateObject(
> "component", "mycomponents/person" );
>
>                                     objPerson.init();
>
>
>                                     objPerson =
> objPerson.viewPersonByID( arguments.intItemID );
>
>                                     //return objPerson;
>
>                         </cfscript>
>
>                         <cfreturn "personid #arguments.intItemID#" />
>
>             </cffunction>
>
> </cfcomponent>
>
> Then it works fine, no errors, and returns the string.
>
> But if I uncomment the return objPerson line and change the returntype
> to mycomponents.person, or mycomponents/person, or /mycomponents/person,
> or anything similar, I get the the "UnresolvedCFCDatatype" exception.
>
> ---------------------------------
>
> Do you have a CF Mapping setup pointing to mycomponents/ ?
>
> Then you can access the component in the ws by calling something like
>
> var oFoo = CreateObject("Component", "mycompents.mycfc");
>
> HTH
>
> Mike
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to