08-22-2017 11:04 AM
All Aikau Tutorials are based on JSON Response which are returned from the repository, which will be rendered on the page. Is it also possible to use xml as Input for Aikau Widgets?
[...]
name: "alfresco/lists/AlfList",
config: {
loadDataPublishTopic: "ALF_CRUD_GET_ALL",
loadDataPublishPayload: {
url: "url/to/fetch/xml_data"
},
[...]
Thank you very much in advance for the answer.
Best regards
Kaffi
08-22-2017 01:40 PM
All default Aikau ReST handling has been designed with JSON in mind. There was never any intention of supporting XML in any way close to a "first class citizen". But technically, Aikau just relies on standard Ajax code provided by the Dojo framework, so anyone should be able to take the current JSON-based handling as a reference and implement XML handling...
Though to be honest, why would you want to handle XML? Only to consume some extremely old, legacy ReST endpoint. There should be no ReST endpoints in the Alfresco Repository that (only) provide XML...
08-22-2017 01:40 PM
All default Aikau ReST handling has been designed with JSON in mind. There was never any intention of supporting XML in any way close to a "first class citizen". But technically, Aikau just relies on standard Ajax code provided by the Dojo framework, so anyone should be able to take the current JSON-based handling as a reference and implement XML handling...
Though to be honest, why would you want to handle XML? Only to consume some extremely old, legacy ReST endpoint. There should be no ReST endpoints in the Alfresco Repository that (only) provide XML...
08-24-2017 01:50 AM
Thank you for your answer. I try to get data from an external service, that returns the information only in XML. Then I will convert the xml into json, for displaying in share via aikau.
Explore our Alfresco products with the links below. Use labels to filter content by product module.