ino:messageline

How can I get value from node “ino:messageline”?

Thanks in advance!

best regards,
Dariusz Baumann

TaminoResult has the getMsgLine() method to return the ino:messageline content. Also the TaminoResult object has a getDocument() method to allow access to the whole response document.


Stuart Fyffe-Collins
Software AG (UK) Ltd.

Here is my code:

--------------------------------------
import java.util.;
import org.w3c.dom.
;
import com.softwareag.tamino.api.dom.*;

public class sample {
public static final void main(String arg[]) throws Exception
{
String myQuery = “doc[id_client<‘12345’] sortby(id_client desc)”;
String myURL = “http://localhost/tamino/mydb/col”;
int intPageSize = 1;
TaminoClient tc = new TaminoClient(myURL);
tc.setPageSize(intPageSize);
tc.startSession();
try {
TaminoResult tr = tc.query(myQuery);
System.out.println(“myURL=” +myURL);
System.out.println(“myQuery=” +myQuery);

Document dc = tr.getDocument();
Element el = dc.getDocumentElement();
tc.printTree(el);
String inoFirst = el.getElementsByTagName(“ino:messageline”).item(0).getChildNodes().item(0).getNodeValue();
System.out.println("ino:messageline1 = " +inoFirst);

String inoSecond = tr.getMsgLine();
System.out.println("ino:messageline2 = " +inoSecond);

tc.endSession();
}
catch(Throwable th) {
th.printStackTrace(System.out);
}
}
}
--------------------------------------

I got:

ino:messageline1 = XQL Request processed, no object returned
ino:messageline2 = null

So unfortunately, method “getMsgLine()” doesn’t work. How should I use this method in properly way?

thanks in advance!

best regards,
Dariusz Baumann