i have the following xml in AccessList collection in Tamino
<?xml version="1.0" encoding="UTF-8"?>
sip:spdsafm@tfdt.op
my fragment of code is
if (ti.hasNext ())
{
TXMLObject objInstance = ti.next() ; Element elemInstance = (Element)objInstance.getElement () ;
Document doc = elemInstance.getOwnerDocument() ;
Element elemTitle = doc.createElement (“watcher”) ;
Text textTitle = doc.createTextNode (“sip:io@tggin.com”) ;
elemTitle.appendChild (textTitle) ;
elemInstance.appendChild (elemTitle) ;
accessor.update (objInstance) ;
}
where ti is an iterator of Tresponse of the query /AccessList/instance
So the line Element elemInstance = (Element)objInstance.getElement () ; should take the element watcher
but it doesn’t work, infact accessor.update (objInstance) ; gives me the ERROR:
/AccessList/instance
com.softwareag.tamino.db.API.accessor.TUpdateException
Access Failure:
ReturnValue:8814
Code:INOXRE8814
MessageText:Element/attribute name not found
MessageLine:Line 1, Column 1: Element name = instance
at com.softwareag.tamino.db.API.accessor.TAccessFailureVerifier.verifyUpdateResponse(TAccessFailureVerifier.java:49)
at com.softwareag.tamino.db.API.accessor.TXMLObjectAccessorImpl.update(TXMLObjectAccessorImpl.java:150)
at Database.show(Database.java:110)
at Database.main(Database.java:227)
Exception in thread “main”
Any idea?
Brgs
@nto
#API-Management#webMethods-Tamino-XML-Server-APIs#webMethods