Expand my Community achievements bar.

SOLVED

CXF Restful webservice returns JSON object wiht aem 6.0

Avatar

Level 3

Hi All,

Hope all are doing well.....

Need small help...i have got requirement like below

CXF RestFull Webservice and return with JSON object with AEM 6.0,

Share me code if some already implemented,it would be great help to me.

 

Thanks in advance.

Thanks,
venkatesham G

1 Accepted Solution

Avatar

Correct answer by
Level 10

We have an article on using CFX web services and AEM. 

https://helpx.adobe.com/experience-manager/using/creating-cxf-bundles-consume-web.html

Now for this example - the 3rd party web service returns XML. 

However - the procedure to create a CFX Java proxy classes would be the same. Your custom implementation would have to be coded to handle JSON return value (if that is what the web service returns).  You can parse the JSON on the server side using Java or pass JSON to the client where it can be parsed using JS logic. 

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

We have an article on using CFX web services and AEM. 

https://helpx.adobe.com/experience-manager/using/creating-cxf-bundles-consume-web.html

Now for this example - the 3rd party web service returns XML. 

However - the procedure to create a CFX Java proxy classes would be the same. Your custom implementation would have to be coded to handle JSON return value (if that is what the web service returns).  You can parse the JSON on the server side using Java or pass JSON to the client where it can be parsed using JS logic.