This is the Java API code to access KooKoo API. Download the Java files and include them in your project and use the classes to generate KooKoo XML.
Response resp = new Response();
CollectDtmf cd = new CollectDtmf();
cd.addPlayText("Welcome to adder. Please enter the first number. Terminate with #");