Hi,
Yes, It means when “I execute the same query in Java”.
I use a jsp to show the information.
I have written the query result to a file and result is a box.
The code is:
public static String consultaStringXquery(TConnection conexion,String coleccion,String XQuery) throws OperacionException
{
TXMLObjectAccessor acceso;
acceso=conexion.newXMLObjectAccessor(TAccessLocation.newInstance(coleccion),TJDOMObjectModel.getInstance());
String documento=“”;
TResponse respuesta=null;
String salida=null;
Vector v= new Vector();
try
{
respuesta=acceso.xquery(TXQuery.newInstance(XQuery));
//Creamos un iterador para movernos por los distintos resultados obtenidos
TXMLObjectIterator iterador;
iterador=respuesta.getXMLObjectIterator();
if (!iterador.hasNext()) return null;
while(iterador.hasNext())
{
TXMLObject objeto=iterador.next();
objeto.setEncoding(“ISO-8859-1”);
objeto.setId(null);
System.out.println(objeto.getEncoding());
StringWriter bufferedwriter = new StringWriter();
objeto.writeTo(bufferedwriter);
documento=bufferedwriter.toString();
v.add(documento);
}
…
thanks 
#webMethods#webMethods-Tamino-XML-Server-APIs#API-Management