I noticed in your code, when you declare the function you have returntype set to ReturnObject. Is this a valid returntype? I have found when calling a CFC as a webservice the return type needs to be a "standard" one, and can't be any.
Web Services can return custom datatypes... see this technote:
http://www.macromedia.com/support/coldfusion/ts/documents/cfc_datatypes_webservices.htm
Although they overcomplicate it... I can turn a struct into a CFC datatype and it works fine... but as soon as I try to include an array of such custom datatypes, it dies.
I find it unfathomable that nobody has done this before... for example, let's say you have a web service that returns a query result set. Like the Google API.
Well, you can't use returntype of "query" because that's pretty much only understood by java-based apps...
And even if you could, you'd probably also want to return some other status information, like an errorcode string, errormessage string, etc... in the Google example, they return things like estimated hits, actual hits, search query, etc.. they return it in what is "essentially" a structure, and one of the structure elements contains an array, and that array contains the actual query result set (where each row is a complex datatype called a SearchResultElement.. again, essentially an array of structures).
- Rick
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com).
An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]
