Hi Sukie,

maybe this helps:
http://marc.theaimsgroup.com/?l=axis-user&m=115049348304601&w=2 
http://marc.theaimsgroup.com/?l=axis-user&m=115046828005645&w=2
http://www.wso2.net/kb/171


I'm up to do the SOAPFault-Creation and the putting it on the INcoming 
MessageContext in one method:
private void handleException(Exception e, String message){
  // Instantiate the SOAPFault and put it on the MessageContext
}
cause the mechanism is always the same. If you are not interested in the 
details and stack traces there might be an easier way.

HTH

Bille


> -----Ursprüngliche Nachricht-----
> Von: [email protected]
> Gesendet: 23.06.06 12:25:58
> An: <[email protected]>
> Betreff: Could I handler the exception in an common error handling class ?


> hi all,
> 
> I want to handle the exceptions throwed by the services in one common 
> class, and tried to extend the AxisServlet class overwriting doGet() and
> doPost() method, and catch error with code like below :
> 
>     try {
>         super.doGet(request, response);
>     } catch (Exception e) {
>         // deal the exception
>         // like :  System.out.println("---------------" + e.getMessage);
>     }
> 
> but nothing happened.
> 
> I think Axis doesn't call the service in such methods, so could anybody
> tell me how to do the error handling in common way ? Is there a class
> I can extend ?
> 
> Any help or web resources would be greatly appreciated !
> 
> Regards,
> - sukie
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000071


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to