Tom,

OnError() in Application.cfc is ignored for webservices.  The entire
Application.cfc isn't ignored for web services, however, since you can
do things in OnRequestStart().  I used the following test component.

I didn't try the site-wide error handler, but I assume since a
webservice does not return HTML to the requestor, it would not work
either.

Jon


<cfcomponent>

<cffunction name="OnRequestStart" returntype="void" output="true"
access="public" >
  <cfargument name="TargetPage" type="string" required="true" >
  <cflog file="ws-test" text="got the request started" >
</cffunction>

<cffunction name="OnError" returntype="void" output="true" access="public" >
  <cfargument name="Exception" type="any" required="true" >
  <cfargument name="EventName" type="string" required="true" >
  <cflog file="ws-test" text="got exception" >
</cffunction>

</cfcomponent>

On 7/6/06, Tom Chiverton <[EMAIL PROTECTED]> wrote:
> On Wednesday 05 July 2006 18:28, Jon Gunnip wrote:
> > I've grep'd arround and I can't find it.  We could implement our own
> > try/catch with logging in all webservices, but I'm hoping that is not
> > necessary.
>
> There is no other exception handler swallowing it (server setting,
> Application.cfm/cfc) ?
>
> --
> Tom Chiverton
>
> ****************************************************
>
> This email is sent for and on behalf of Halliwells LLP.
>
> Halliwells LLP is a limited liability partnership registered in England and 
> Wales under registered number OC307980 whose registered office address is at 
> St James's Court Brown Street Manchester M2 2JF.  A list of members is 
> available for inspection at the registered office. Any reference to a partner 
> in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by 
> the Law Society.
>
> CONFIDENTIALITY
>
> This email is intended only for the use of the addressee named above and may 
> be confidential or legally privileged.  If you are not the addressee you must 
> not read it and must not use any information contained in nor copy it nor 
> inform any person other than Halliwells LLP or the addressee of its existence 
> or contents.  If you have received this email in error please delete it and 
> notify Halliwells LLP IT Department on 0870 365 8008.
>
> For more information about Halliwells LLP visit www.halliwells.com.
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:245568
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

Reply via email to