SOAP Web Service Errors Are Handled Externally To The ColdFusion Application Framework

<cfcomponent
	output="false"
	hint="I am a test ColdFusion component.">
 
	<cffunction
		name="Test"
		access="remote"
		returntype="any"
		returnformat="plain"
		output="false"
		hint="I am a test remote method.">
 
		<!--- Throw error. --->
		<cfthrow
			type="Unauthorized"
			message="You are not authorized to access this method."
			/>
 
		<!--- Return test string. --->
		<cfreturn "I am a remote method (method: Test())." />
	</cffunction>
 
</cfcomponent>

For Cut-and-Paste