Author Topic: ODServer.xmlParse() to perform administrative tasks  (Read 1415 times)

jyotiprakash satapathy

  • Newbie
  • *
  • Posts: 2
    • View Profile
ODServer.xmlParse() to perform administrative tasks
« on: June 17, 2021, 02:04:24 PM »
Hi , is there a way we can create Ag / Application using ODServer.xmlParse() ?
« Last Edit: June 17, 2021, 02:06:44 PM by jyotiprakash satapathy »

spond

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
Re: ODServer.xmlParse() to perform administrative tasks
« Reply #1 on: June 23, 2021, 08:35:29 AM »
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

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
Re: ODServer.xmlParse() to perform administrative tasks
« Reply #2 on: June 23, 2021, 08:49:49 AM »
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