Greetings,

I am trying to port the AmazonSNS.cfc from riaforge to something that
will work on openbd. The trick is that it is all cfscript, using
"component accessors="true" ", which apparently means there are some
getters/setters automatically created for the cfc properties. This is
very deep water for me...

I feel like I'm almost there, but I've run into something I really
don't understand. My error is:

" variables[getsignaturemethod()] doesn't exist."

The code it is choking on is this:

                var signingFunction = variables[getSignatureMethod()];

                var signature = 
signingFunction(stringToSign=trim(stringToSign));

                return signature;


I am not sure what this is doing, but it looks like it is trying to
take an existing function and assign it a new name. So, assuming
openbd doesn't like this syntax I change the one line to this by
removing the variables struct:

var signingFunction = getSignatureMethod();

Now my error is this:

"No such function exists - signingfunction."

Note that I created my own getSignatureMethod() function. It is not in
the original CFC, but it is one of those automatically created
functions.

My method looks like this:

private string function getSignatureMethod(){
        return variables.signatureMethod;
        }

Does this make sense to anyone else?

Thanks so much!

=Don

-- 
online documentation: http://openbd.org/manual/
   google+ hints/tips: https://plus.google.com/115990347459711259462
     http://groups.google.com/group/openbd?hl=en

     Join us @ http://www.OpenCFsummit.org/ Dallas, Feb 2012

Reply via email to