Taminoclient delete method

I can’t get a couple of the delete methods of Taminoclient to work.

delete(java.lang.String id)
delete(java.lang.String id, java.lang.String collection, java.lang.String doctype)

My problem with the first method is, as the delete asks only for ino:id, where do i specify doctype? I’ve tried it on the basURL for the taminoclient unsuccessfully. The Teminoresult returns a response code 200, but the document is not deleted.

The second one obviously allows me to specify the collection and doctype. The documentation of the method says “If the collection is set be sure that the baseURL does not contain the collection name. Otherwise you receive an error. Note: From Tamino Version 2.1 onwards it’s necessary to add the collection to the baseURL.” I’ve tried it with the collection on the baseURL and without and it still does not work.

With the collection on the URL I get HTTP 404 error, withou I don’t get an error, but the delete does not happen.

Sample code

import java.util.;
import org.w3c.dom.
import com.softwareag.tamino.api.dom.;

public class CallResolveTam {
public static final void main(String arg[]) throws Exception {

Create a new instance of Tamino Client /
TaminoClient tamino = new TaminoClient(“http://pcrpn/tamino/Testing” );


start the Session /



close the session*/

/* print StackTrace in case of an error */
catch(TaminoError th) {


The way I have successfully used delete is as:

TaminoResult res =
tamino.delete(id, null, “JTest-Doc”);