wood burning stoves 2.0*
The moose likes Web Services and the fly likes Apache Axis pretty print Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Apache Axis pretty print" Watch "Apache Axis pretty print" New topic

Apache Axis pretty print

Carl Jenkins
Ranch Hand

Joined: Feb 19, 2006
Posts: 39
Does anyone know how to pretty print an axis reply?

I get a reply back and want to print it to the console. ToString() just prints the object reference...
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
You can use an empty transform according to the following code snippet:

This does not only apply when using Axis, but is "universal".
Best wishes!
Carl Jenkins
Ranch Hand

Joined: Feb 19, 2006
Posts: 39
Thanks I'll give that a shot!
I agree. Here's the link: http://aspose.com/file-tools
subject: Apache Axis pretty print
Similar Threads
Apache Axis and SOAP
Display SOAP request line by line
JAX-WS Authentication problem -javax.xml.ws.WebServiceException Response: '401: Unauthorized'
Can we see parsed XML
how to disable pretty printing soap messages with AXIS?