Hello Lorenzo.
Good news: your code works fine for me! So I suspect that the problem is somewhere in the environment that you are using to execute the Applet.
Using this very simple HTML document in conjunction with the appletviewer.exe program I was able to insert the Telephone instance:
<HTML>
<BODY>
<APPLET CODEBASE="http://localhost/Applet" CODE="Just4Test.class" WIDTH=200 HEIGHT=300></APPLET>
</BODY>
</HTML>
</pre><BR><BR>I strongly recommend you to use the appletviewer program, as this will print any exceptions to the console. You might find that you have some of the necessary classes missing from your Applet's codebase.<BR>(I extracted the classes from taminoclient.jar, domsdk.jar, sax.jar, w3cdom1.jar and xp.jar into the Applet directory on my webserver.)<BR><BR>Here is the exact code that I used for the Applet:<BR><pre class="ip-ubbcode-code-pre">
import com.softwareag.tamino.api.dom.*;
import com.docuverse.dom.*;
import java.applet.Applet;
import java.io.*;
public class Just4Test extends Applet {
public void start() {
try {
TaminoClient tamino=new TaminoClient("http://localhost/tamino/test/xmldb");
tamino.startSession();
BasicDocument doc=new BasicDocument();
BasicElement telephone = new BasicElement(doc,"Telephone");
telephone.setAttribute("EntryID","124");
BasicElement c = new BasicElement(doc,"LoginName");
c.appendChild(new BasicText(doc,"Wehlmann125"));
telephone.appendChild(c);
TaminoResult tr= tamino.insert(telephone);
tamino.commit(false);
tamino.endSession();
} catch (com.softwareag.tamino.api.dom.TaminoError e) {
System.out.println(e.getMessage());
e.printStackTrace();
} catch (IOException e) {
System.out.println(e.getMessage());
e.printStackTrace();
}
}
}
I tried it with the appletviewer from JDK 1.3.1_04 and JDK 1.4.1
I hope that helps,
Trevor.
#webMethods-Tamino-XML-Server-APIs#API-Management#webMethods