posted 18 years ago
You can use the following code to pretty print the soap message xml (code excerpted from Writer.java samples code with XercesJ 2.8.0 distribution).
The usage for above writer is:
Writing to Stream:
Writing to std out:
where, xmlDoc is of type org.w3c.dom.Document but you can pass a SOAPMessage org.w3c.dom.Node type too.
[ September 11, 2006: Message edited by: Watsh Rajneesh ]
SCJP 5.0 (90%), SCDJWS 1.4 (88%), SCWCD 1.4 (82%), SCBCD 1.3 (85%)