ODServer.xmlParse() to perform administrative tasks

Previous topic - Next topic

jyotiprakash satapathy

Hi , is there a way we can create Ag / Application using ODServer.xmlParse() ?

spond

Yes! you can use the xmlParse() method to perform any administrative tasks that you can perform using arsxml. The 'xml' parameter allows you to specify the xml you want to process - this is the same xml that would be contained in the input file that is passed to arsxml (-i) only it is passed as a String object rather than in a file, the continueOnError parameter is the same as the 'error handling' flag that is passed to arsxml (-e), and the action parameter allows you to specify which type of action (add, update, delete, export, validate). Check the ODConstants for the action constants - for example OD_ARSXML_ACTION_ADD.


spond