DOMUtils should help. Maybe DOMUtils. getContent or writeXML will be useful.

On 10/25/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Thanx! :)
Looks nice...

Can I grab it as a string somehow?
I would like to store the logs in a database.

/fredde


> [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
>
>



---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email




--
-----
When one of our products stops working, we'll blame another vendor
within 24 hours.

---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to