By establish to connect to the server: http://localhost/tamino/testDB i get the following error:
Nested Exception (com.softwareag.tamino.db.API.invocation.TCommunicationException) stacktrace:
Nested Exception (com.softwareag.tamino.db.API.invocation.TCommunicationException) stacktrace:
Server not available for http://localhost/tamino/testDB because of wrong response
at com.softwareag.tamino.db.API.invocation.TAbstractInvocation.checkServerAvailabilityAndVersion(Unknown Source)
at com.softwareag.tamino.db.API.invocation.TInvocationFactory.initialize(Unknown Source)
at com.softwareag.tamino.db.API.invocation.TInvocationFactory.newInvocation(Unknown Source)
at com.softwareag.tamino.db.API.connection.TConnectionFactory.newConnection(Unknown Source)
at com.jaxfront.wipo.ui.editor.TestConnection.getConnection(TestConnection.java:41)
at com.jaxfront.wipo.ui.editor.TestConnection.connectionTest(TestConnection.java:58)
at com.jaxfront.wipo.ui.editor.TestConnection.(TestConnection.java:33)
at com.jaxfront.wipo.ui.editor.TestConnection.main(TestConnection.java:36)
Tamino: 4.1.4.1
JRE: 1.4.1_03
The following test was ok:
http://localhost/tamino/testDB/ino:collection?_xql=/xs:schema
The java code looks like this:
public class TestConnection {
private TConnection _connection;
private static final String CONNECTION_URL = “http://localhost/tamino/testDB”;
public TestConnection(){
connectionTest(“/testRoot/@Inno”);
}
public static void main(String args){
new TestConnection();
}
private TConnection getConnection() {
if (_connection == null) {
try {
_connection = TConnectionFactory.getInstance().newConnection(CONNECTION_URL);
}
catch (TConnectionException e) {
e.printStackTrace();
}
}
return _connection;
}
private void connectionTest(String xql) {
TResponse response = null;
TAccessLocation location;
TXMLObjectAccessor accessor;
TLocalTransaction cursorTransaction;
getConnection().setLockwaitMode(TLockwaitMode.YES);
try {
getConnection().setIsolationLevel(TIsolationLevel.UNPROTECTED);
cursorTransaction = getConnection().useLocalTransactionMode();
}
catch (TTransactionModeChangeException e) {
try {
getConnection().close();
}
catch (TException f) {
System.err.println("close after TException failed: " + f);
// fall through
}
}
location = TAccessLocation.newInstance(“TEST”);
accessor = getConnection().newXMLObjectAccessor(location, TDOMObjectModel.getInstance());
try {
TQuery query = TQuery.newInstance(xql);
response = accessor.query(query, 25);
}
catch (TException e) {
}
System.out.println(response.getQueryContentAsString());
}
}
#API-Management#webMethods-Tamino-XML-Server-APIs#webMethods