Hello MP,
I’m sorry, but I think that I must have the wrong head on my shoulders today - I don’t quite understand what the problem is!
In the code that you posted, the calls to the performDelete method have been commented out - so no documents will be deleted (as you expected).
In the output that you posted it looks like the program has been run for the third time, because it inserts five “person” documents each time and now there are 15 person documents found by the “queryall” query.
If the program inserts 5 documents each time, and the last run displays 15 documents, I think that the documents are being correctly stored in Tamino (and not deleted).
Could you please clarify what you mean by “Why nothing changes in Tamino Server?” ?
Are you expecting to see a “person” doctype appear in the System Management Hub (inside the Data Map → Collections → ino:etc entry)?
If this is the case, I think I can explain the confusion. The ino:etc collection has a special feature: it allows the storage of any legal XML documents without the need to define a schema beforehand (ino:etc is the only collection which allows this).
Unless you explicitly define a schema (i.e. for person) into the ino:etc collection, you will not see anything listed in the Data Map.
I hope that helps,
Trevor.
#webMethods-Tamino-XML-Server-APIs#webMethods#API-Management