CXF Restful webservice returns JSON object wiht aem 6.0 | Community
Skip to main content
New Participant
October 16, 2015
Solved

CXF Restful webservice returns JSON object wiht aem 6.0

  • October 16, 2015
  • 1 reply
  • 612 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

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. 

1 reply

smacdonald2008
smacdonald2008Accepted solution
New Participant
October 16, 2015

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.