Hi again! 
I came acrossed a problem. I am to write a java program to retrieve records from the Tamino database.
I read the documentation on “Say hello!”, Tamino API for java. The doc helped alot for establishing the connection and obtaining an accessor.
So far my program can be compiled, the problem I came acrossed was the query part:
//Instantiate an empty TXMLObject instance using the DOM object model
TXMLObject xmlObject = TXMLObject.newInstance(TDOMObjectModel.getInstance());
//Establish the Tamino connection
TConnection connection = TConnectionFactory.getInstance().newConnection(DATABASE_URI);
//Obtain a TXMLObjectAccessor with a DOM object model
TXMLObjectAccessor xmlObjectAccessor = connection.newXMLObjectAccessor(TAccessLocation.newInstance(“TCM”),TDOMObjectModel.getInstance());
//Prepare to read the instance
TQuery query = TQuery.newInstance(xmlObject.getDoctype() + “[@ino:id=” + xmlObject.getId() + “]”);
//Invoke the query operation
TResponse response = xmlObjectAccessor.query(query);
The error was, com.softwareag.tamino.db.API.accessor.TQueryException
Access Failure:
ReturnValue:8320
Code:INOXIE8320
MessageText:Error parsing the XQL query
MessageLine:Unexpected token [ found
at com.softwareag.tamino.db.API.accessor.TAccessFailureVerifier.verifyQueryResponse(TAccessFailureVerifier.java:67)
at com.softwareag.tamino.db.API.accessor.TXMLObjectAccessorImpl.query(TXMLObjectAccessorImpl.java:234)
at GetInput.(GetInput.java:35)
at GetInput.main(GetInput.java:60)
What do you think is wrong?
-KAren-
:rolleyes:
#webMethods-Tamino-XML-Server-APIs#webMethods#API-Management