axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cara <pinkgran...@gmail.com>
Subject Re: Fault logging
Date Mon, 23 Jul 2007 16:30:16 GMT
I had the same problem. My ServiceLogHandler extends the axis LogHandler. I
can pull normal messages from the MessageContext by implementing the invoke
method. To catch and log exceptions in the handler chain, I had to implement
public void onFault(msgContext).

On 7/23/07, landry soules <landry.p.soules@gmail.com> wrote:
>
> Hello,
>
> I developped a web service (server) and need to log every transaction in
> database. So i made a handler, inspired by
> org.apache.axis.handlers.LogHandler.
> I deployed it with deploy.wsdd, and it works well, for standard
> transactions. However, everytime my webservice answers with an error, the
> message isn't logged.
> For example :
>
> When mywebservice returns the message below, it isn't logged by my
> handler, nor by Axis' one.
>
>  <soapenv:Envelope>
>  <soapenv:Body>
>  <soapenv:Fault>
> <faultcode>soapenv:Server.userException</faultcode>
>  <faultstring>
> java.rmi.RemoteException: Authentification non valide
> </faultstring>
>  <detail>
> <ns1:hostname>wmar6034</ns1:hostname>
> </detail>
> </soapenv:Fault>
> </soapenv:Body>
> </soapenv:Envelope>
>
>
> Can somebody please help me ?
>

Mime
View raw message