Hi Steve, yes. The WS-RM's org.apache.cxf.ws.rm.RetransmissionInterceptor does something similar, namely removing the exception from the message/exchange container when an exception occurs after the message is queued for retransmission. In this way, the exception is not thrown back the the client.
regards, aki 2011/7/12 STEVEN THEIN <[email protected]>: > Hi Dan, > I can get the exception using message.getContent(Exception.class). > > After I got the exception I would like to add some more information and I > would like to create a SoapMessage and insert it into the output stream. > After that I would like to suppress the exception or remove the exception > from the existing message object. > > Is it possible to do these? > > Thanks > steve > > On 6/8/2011 1:33 PM, Daniel Kulp wrote: >> >> On Wednesday, June 08, 2011 10:07:56 AM STEVEN THEIN wrote: >>> >>> Hi, >>> >>> I created an inbound interceptor on server side which have two override >>> methods:- >>> >>> handleMessage() and handleFault() >>> >>> When an exception is thrown while processing the message in >>> handleMessage(), it called into handleFault() method. >>> In handleFault() method, how can I retrieve the fault that was thrown >>> from handleMessage(). >> >> I think you can call message.getContent(Fault.class) or >> message.getContent(Exception.class). Likely the latter. >> >> >
