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]
- Webservice returning CFC in a different directory Alistair Davidson
- Re: Webservice returning CFC in a different directo... JediHomer
- Re: Webservice returning CFC in a different directo... Alistair Davidson
- Re: Webservice returning CFC in a different dir... JediHomer
- Re: Webservice returning CFC in a different dir... Dave Carabetta
- RE: Webservice returning CFC in a different directo... Alistair Davidson
- RE: Webservice returning CFC in a different directo... Alistair Davidson
- Re: Webservice returning CFC in a different dir... JediHomer
- Re: Webservice returning CFC in a different dir... Dave Carabetta
- RE: Webservice returning CFC in a different directo... Burns, John D
- Re: Webservice returning CFC in a different dir... Dave Carabetta
- RE: Webservice returning CFC in a different directo... Alistair Davidson
- RE: Webservice returning CFC in a different directo... Alistair Davidson