/** * Provides access to the XML answer of the call. * * @return the XML result of the call * @throws IOException in case of an IO error while receiving the result */ public XMLStructuredInput getInput() throws IOException { return new XMLStructuredInput(outcall.getInput(), true); } }
/** * Returns the result of the call as String. * * @return a String containing the complete result of the call * @throws IOException in case of any IO error */ public String getData() throws IOException { StringWriter writer = new StringWriter(); InputStreamReader reader = new InputStreamReader(getInput(), getContentEncoding()); CharStreams.copy(reader, writer); reader.close(); return writer.toString(); }