Help with CFML and CAPICOM Encryption/Decryption

2006-08-08 Thread asherwood
Hello,

I am in a bit of a jam here. A vendor we've been working with has told us they 
will be encrypting our XML feeds using MSFT's CAPICOM encryption, THIS WEEK!

I normally would investigate/roll my own, but time is of the essense here.

Does anyone have experience using CAPICOM encryption from within CFMX? Perhaps 
a CFC, custom tag or even some sample code?

Any help would be greatly appreciated!

Thanks.

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:249211
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Help! Error in OnSessionEnd in Application.cfc

2006-02-23 Thread asherwood
Unfortunately, this did not fix the problem. A lull in traffic led me to 
believe that it was fixed, but the same error began to occur as traffic picked 
back up.

Any other ideas?

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:233239
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Help! Error in OnSessionEnd in Application.cfc

2006-02-22 Thread asherwood
I am totally embarassed. I've been working with CF for nearly 9 years! I should 
have spotted this! The NullPointer was for the True and False which were being 
taken as variables that had not been set.

In my pathetic defence, I copied the function from the LiveDocs website, 
though..verbatim!

Thanks Cutter.


>I could be wrong, but I thought all argument attribute values had to be 
>quoted?...
>
>Cutter
>
>[EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
>
>>

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:233156
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Help! Error in OnSessionEnd in Application.cfc

2006-02-22 Thread asherwood
This one is baffling me. I have an app with session management enbabled. The 
onSessionEnd function has NO CODE in it whatsoever. It is there so I do not get 
a "method not found" error when sessions end. I am NOT calling this explicitly 
- it gets called by CF when a session expires.

Every time the OnSessionEnd function fires, I get this error:

"An exception occurred when invoking a event handler method from 
Application.cfc The method name is: onSessionEnd."

The "StackTrace" shows this: "java.lang.NullPointerException at 
coldfusion.runtime.AppEventInvoker.onSessionEnd(AppEventInvoker.java:145)"


Here is the EXACT code for the onSessionEnd function:

[cffunction name="onSessionEnd"]
   [cfargument name="SessionScope" required=True/]
   [cfargument name="ApplicationScope" required=False/]

[/cffunction]

I even added a simple [cfset x=1] in the function body thinking that an empty 
function body would cause the error - no luck.

Any ideas?

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:233091
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: How do you access XMLAttributes in order of appearance?

2005-12-09 Thread asherwood
Thanks for the ideas, Dan.

I had considered these before hand, but I wanted to try and work within the 
standard functions without having to maintain information about attribute order 
in things like lists.

The XML spec specifically states that attributes are unorderd, but I was hoping 
there was a way to do this would too much of a hack.

Thanks much,

--
Alex Sherwood
Hunter Warfield





>Alex,
>
>
>The xmlAttributes "property" is only a struct. I was hoping it might also
>return a hidden array (so that you could do
>oXml.parent.child.xmlAttributes[1], but alas that's not the case.)
>
>Anyway, here are some possible solutions. 
>
>1) If you know you attribute list is relatively fixed (meaning you have
>name, cellphone, etc) and you want them always printed in a specific manor,
>you could create a list of the attribute names in the order you want them
>processed. Then instead of looping through the xmlAttribute struct as a
>collection, you loop through the list. Example:
>
>
>
>   
>   
>   #sAttrib# = #oNode.xmlAttributes[sAttrib]#
>   
>   
>
>
>Obviously, you could use an array instead of a list if you want to include
>label friendly descriptions.
>
>2) If you have no idea what attributes are going to be present, but you need
>to dump them out in a specific order you could use the toString() function
>on the node to convert the node to it's original XML. You'll need to strip
>out the  declaration, but then you
>could parse the tag to manually build a list of the attributes. Not very
>elegant.
>
>3) Use a 3rd party Java XML DOM parser like Xerces--which using the
>Attributes interfaces should return the attributes in order.
>
>-Dan

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226668
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


How do you access XMLAttributes in order of appearance?

2005-12-09 Thread asherwood
Hello,

I am on a project that requires me to loop over the attributes on an XML 
element in the exact order that they appear. For example:

[ELEMENT name="Alex" cellphone="555-555-"/]

When you access the XMLAttributes struct when you XMLParse the string, the 
'cellphone' attribute is presented first, because the structure is sorted 
alphabetically.

I tried doing an XMLSearch(xmlDoc, "//attribute::*') to return an array of 
attributes to loop over, but they, too, are sorted alphabetically in the array 
that is returned from the XMLSearch call.

Anyone know of a way to iterate over the xml attributes in the exact order thay 
appear?

Thanks!

--
Alex Sherwood

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226663
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Good 'quick read' resources for CFMX gateways?

2005-12-09 Thread asherwood
> On 12/8/05, asherwood @ huntwar. com asherwood @ huntwar. com
> <[EMAIL PROTECTED]> wrote:
> > Any links to "quick starts" and like resources for getting up and 
> running with CFMX gateways would be helpful!
> 
> The ColdFusion Develeper's Guide manual has several chapters on event
> gateways. I suggest you start there.
> 
> http://livedocs.macromedia.com/coldfusion/7/htmldocs/part_dev.htm
> --
> Sean A Corfield -- http://corfield.org/
> Got frameworks?


Thanks Sean. I was hoping for some blogs or sites where some developers had 
posted more "trail and error", "tips n' tricks", and "gotchas" type info.

I'll check out the docs for sure.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226662
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Good 'quick read' resources for CFMX gateways?

2005-12-08 Thread asherwood
Any links to "quick starts" and like resources for getting up and running with 
CFMX gateways would be helpful!

Thanks!

--
Alex Sherwood

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226580
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Sorting Y-AXIS on CFCHART?

2005-08-19 Thread asherwood
Has anyone sorted the Y axis on CFCHART?

For example, plotting simple values between 1 and 30 will always peak 
upwards with 1 at the bottom of the y-axis and 30 at the top. Is there a way 
to reverse the Y Axis, with 0 at the top and 30 at the bottom?

Thanks!

--
Alex Sherwood

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215802
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


CFSCRIPT Equivalent of CFPARAM?

2005-08-18 Thread asherwood
My mind is failing me.

Is there a CFSCRIPT alternative to CFPARAM other than an IsDefined() block?

Thanks!

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215594
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: I have a new email address! [no more flames please.]

2004-07-13 Thread asherwood
At 08:09 AM 7/12/2004, you wrote:
>[EMAIL PROTECTED] wrote:
>
>> Hey, You know who this is, ha ha if you emailed me then you must be 
>> dumb, because i got a new email address.  Dont worry if I dont like 
>> you I already blocked your ip from my email list, blocked your address 
>> from my email address, but if you get this then I must like you.  I 
>> got a new address.
>> [EMAIL PROTECTED]
>>
>
>What a numbskull.  No wonder "Life sucks dont it, im back and im 
>staying, I got layed off my job so Im looking for another one", but 
>enough of the flames folks  Lets not reduce the list to his level, 
>no matter how hillarious he is. ;)

What a douche bag! Incorrect spelling on a business web site? Nice. This kid was born in 1979, what would you expect?

--
True
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]