Roland answered my question (unfortunately for me) very well, but I appreciate the input. I have not (as yet) begun to delve into the webservices aspects of CFCs. Looks like I'll need to start soon. Anybody know where I might find a good beginning webservices tutorial?

Cutter

Gary Menzel wrote:
Firstly, CFPROPERTY (as Roland has said) has been provided to expose
object schema data to webservices.  CFPROPERTY doesn't actually do
anything (i.e. it does not create/instantiate variables inside the
object).

Secondly, because CFPROPERTY describes the PUBLIC members of the
object, to take advatange of the information your actual variables
would have to be instatiated in the "this" scope.

So - unless this is all supposed to work via webservices (or something
like FarCry that also uses information from CFPROPERTY tags), you can
lose the CFPROPERTY tags.

Now....

Where you handle the CFQUERY - it looks a little strange.

Why do you assign the return value from the instance.category.get
method back into the instance.category object?  You also do a similar
thing with sscategory.  Without seeing that the get call does, I am
guessing this is a major part of the problem.


Have you put some CFDUMP's in your init() method to see what is being created? I.E. that the objects look right and have the methods you want to use in them? Both before and after you deal with the CFQUERY results?

Also inside the method you are calling just before the line that
fails?  Once again, you can check the output to make sure the method
you want to call is in the object.

Other than that (without seeing the rest of the code), it looks like
it should work.


Regards,
Gary
----------------------------------------------------------
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]

----------------------------------------------------------
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]

Reply via email to