My First ColdFusion Web Service

// Check to see if the target page is in the web services
// directory. If it is, then we want to delete the OnRequest
// event handler so the web service has access.
if (ExpandPath( GetDirectoryFromPath( ARGUMENTS.TargetPage ) ) EQ APPLICATION.ServiceFactory.GetConfig().GetFullPaths().WebServices){
 
	// Delete the on request event handler.
	StructDelete( THIS, "OnRequest" );
 
	// Delete the on request end handler.
	StructDelete( THIS, "OnRequestEnd" );
 
}

For Cut-and-Paste