[EMAIL PROTECTED] wrote:
> Hi!
>
> I have a WS exposed with XFire.
>
> I would like to log the incoming soap-message.
>
> How do I do that??
Add the following snippet to the appropriate place in your code:
service.addInHandler(new org.codehaus.xfire.util.dom.DOMInHandler());
service.addInHandler(new org.codehaus.xfire.util.LoggingHandler());
And you'll see the incoming messages in the log. Add
service.addOutHandler(new org.codehaus.xfire.util.dom.DOMOutHandler());
service.addOutHandler(new org.codehaus.xfire.util.LoggingHandler());
and you'll see the messages your web service is emitting in the log.
Finally, if you add
service.addFaultHandler(new org.codehaus.xfire.util.dom.DOMOutHandler());
service.addFaultHandler(new org.codehaus.xfire.util.LoggingHandler());
then you'll see any fault that is generated in your web service in the log.
Please note that you should add the appropriate logging configuration to
your service.
Cheers,
Michel
--
Michel <dot> Drescher <at> uk <dot> fujitsu <dot> com
Fujitsu Laboratories of Europe
+44 20 8606 4834
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email