Deos Aikau support handling xml response?

cancel
Showing results for 
Search instead for 
Did you mean: 
kaffi
Partner

Deos Aikau support handling xml response?

Jump to solution

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 Solution

Accepted Solutions
afaust
Master

Re: Deos Aikau support handling xml response?

Jump to solution

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 solution in original post

2 Replies
afaust
Master

Re: Deos Aikau support handling xml response?

Jump to solution

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
Partner

Re: Deos Aikau support handling xml response?

Jump to solution

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.