Quick Reminder: OnRequest method and Webservices

Just a quick reminder to anyone who may run into this... When using Coldfusion and the Application.cfc - if you have an "onRequest" method in your Application.cfc file, you will NOT be able to expose CFC's as Webservices. I ran into this today while trying out something new, and for the life of me could not remember this key little fact!

Big shout out to the Coldfusion JediMaster - Ray Camden for the tip. Click here to visit his blog, it's the best way I can re-pay him for the memory jogging!

I don't really see it as that big of a deal, since the OnRequestStart() method exists, and I've always just kinda used that anyway... Can someone please explain the difference? and then also explain why the OnRequest method doesn't work in this setup? That kinda doesn't make sense to me at all.

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
BlogCFC was created by Raymond Camden. This blog is running version 5.9.2.002. Contact Blog Owner
back to my home page back to my home page my clients my resume about me navtrak - gps tracking