cancel
Showing results for 
Search instead for 
Did you mean: 

Deos Aikau support handling xml response?

kaffi
Confirmed Champ
Confirmed Champ

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

1 ACCEPTED ANSWER

afaust
Legendary Innovator
Legendary Innovator

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...

View answer in original post

2 REPLIES 2

afaust
Legendary Innovator
Legendary Innovator

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...

kaffi
Confirmed Champ
Confirmed Champ

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.