Hi Andy,
I think that the easiest way to get the result of a function is to use the method
getQueryContentAsString() of the TResponse object.
For example:
// create tquery object from xml string
TQuery query = TQuery.newInstance("max(/Document/DocID)");
// Invoke the query operation and obtain the response
response = accessor.query(query);
System.out.println("Max: " + response.getQueryContentAsString());
Cheers,
Trevor.
#API-Management#webMethods-Tamino-XML-Server-APIs#webMethods