Hello Stuart Fyffe-Collins!

Yes, you are right!
Now it works well.
thanks a lot for support!
best regards,
Dariusz Baumann
PS.
Here is my code:
---------------------------------------
import java.util.;
import org.w3c.dom.;
import com.softwareag.tamino.API.dom.*;
public class ino {
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();
//ino:sessionkey
Element responseKey = (Element)dc.getElementsByTagName(“ino:response”).item(0) ;
String sessionkey = responseKey.getAttributeNode(“ino:sessionkey”).getFirstChild().getNodeValue().toString();
System.out.println(“ino:sessionkey=” +sessionkey);
//ino:sessionid
Element responseId = (Element)dc.getElementsByTagName(“ino:response”).item(0);
String sessionid = responseId.getAttributeNode(“ino:sessionid”).getFirstChild().getNodeValue().toString();
System.out.println(“ino:sessionid=” +sessionid);
//ino:returnvalue
Element responseValue = (Element)dc.getElementsByTagName(“ino:message”).item(0);
String returnValue = responseValue.getAttributeNode(“ino:returnvalue”).getFirstChild().getNodeValue().toString();
System.out.println(“ino:returnvalue=” +returnValue);
tc.endSession();
}
catch (com.softwareag.tamino.API.dom.TaminoError er) {
System.out.println(“TAMINO ERROR CODE=” +er.responseCode+“\n”+
“TAMINO ERROR TEXT=” +er.errorText);
}
}
}
---------------------------------------
#webMethods#API-Management#webMethods-Tamino-XML-Server-APIs