axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pobzeb Armerding <>
Subject Re: converting stubs to XML
Date Sat, 12 Nov 2005 00:19:26 GMT
This is how I have done it:

SOAPInterface service = new SOAPInterfaceLocator().getSOAPInterface(new URL("Web Service URL"));
to file"));

This will save the contents of the response message to a file.  If you only wanted to view
the contents, you could do this instead:

ByteArrayOutputStream baos = new ByteArrayOutputStream();
String XMLContents = new String(baos.toByteArray(), "UTF-8");

I hope that this help at least a little.

Pobzeb Armerding
Vann's Inc.
Software Engineer

On Fri, 11 Nov 2005 18:10:38 -0500, Andy Foster wrote:
| Hi all,
| I'm at my last chance now, so if someone can help that would be
| great else I'm going to have to hand code XML output.
| If you use WSDL2JAVA to generate stubs and call them you get a java
| response object back that represents the XML response
| I need to get that response back into XML not the stub java
| representation.
| I know axis can re serialise for me I just do not know how to
| invoke it
| Please help as I have been searching for two days now and my boss
| is giving me the weekend and then we have to find another way to
| hand crank it which would be a very poor solution
| Andy

View raw message