OnDemand User Group
Support Forums => OD/WEK & JAVA API => Topic started by: jyotiprakash satapathy on June 17, 2021, 02:04:24 PM
-
Hi , is there a way we can create Ag / Application using ODServer.xmlParse() ?
-
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.
-
Also, forgot to mention ... if you want to create the input xml programmatically - here is some sample code
https://www.ibm.com/support/pages/sites/default/files/inline-files/xmlParse_2020-04-27.pdf