Can anybody show how to insert into Tamino database which has mapping to SQL? I have a schema which has been defined successfully and records from SQL which has been mapped can be retrieved out using the query method. The only problem is when I tried to insert using the normal DOM method in java… ODBC error occurred.
Anybody has any examples on this?
I used this normal DOM method in java:
==================================================
…
BasicDocument doc=new BasicDocument();
BasicElement prospect = new BasicElement(doc,“Contact”);
BasicElement c = new BasicElement(doc,“No.”);
c.appendChild(new BasicText(doc, prospectID));
prospect.appendChild(c);
c = new BasicElement(doc,“Name”);
c.appendChild(new BasicText(doc, name));
prospect.appendChild(c);
TaminoResult tr= tamino.insert(prospect);
System.out.println (tr.getReturnValue()+" "+tr.getMsgText()) ;
tamino.commit(false);
=================================================
I have posted my schema as well…
Please help!
Thanks… 
schmContact.TSD (2.31 KB)
#webMethods-Tamino-XML-Server-APIs#webMethods#API-Management