Thread "Adding Non-Course Objects via SOAP"
Tabs
-
Deleted | 17. Feb 2019, 20:59
Select
Adding Non-Course Objects via SOAPHello,
I'm trying to create category objects via SOAP. Unfortunately the documentation on addObject is rather, hmm, 'thin'. According to the WSDL file the third parameter to 'addObject' is supposed to be `"object_xml" type="xsd:string" ' but there seems to be no documentation on how that xml document needs to be structured. I tied to (ab)use ilias/xml/ilias_cat_*.dtd but that didn't work and, from glancing over the PHP code it rather looks like that method expects something similar to the xml generated during object export. But, without further documentation all my trials so far failed. BTW: most failed requests didn't even produce any traces in the log file (which my admin-soul consider a bug. I want to see when and why things fail). -
Evan Jackson | evan.jackson | 20. Feb 2019, 12:44
Select
Edited on: 20. Feb 2019, 12:45 - by Evan Jackson | evan.jacksonAdding Non-Course Objects via SOAPIf you checkout the ilias Github you can see a list of allowed object types to be added.
EG:
I've added an example of the xml used to add a category to the system.
https://gist.github.com/CrawdadWarden/32182c7a17ef8f2ddccab894e0358d72
Any questions let me know.