You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Aleksander Grzebyta <al...@pbpolsoft.com.pl> on 2006/10/11 20:15:34 UTC

How to handle Faults with Handler ?

Hello,

I tried to use 

  <responseFlow>
   <handler type="java:my.class.ResponseHandler"/>
  </responseFlow>

configuration to use the handler when Axis provides SOAP Fault response for
wrong requets. The problem is that the handler gets invoked only when the
service is properly invoked. When some error occurs Axis provides response
on itself and does not call my handler.

I placed the responseFlow configuration within Service configuration and for
http transport and for globalConfiguration with no success. The handler is
invoker three times when everything goes well, but not invoked when error
occures.

Is there any way to configure handler that is invoked when error occurs ? I
am particulary interested in such cases when error occures before my service
is called (eg. wrong XML in request).

sincerely Olek

Polsoft, Poznan, Poland

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org