In this use case, the HTL component contains a class that extends WCMUsePojo. This class uses Java application logic to send a HTTP Request to a third-party Restful web service. The web service returns the following data in JSON format.
"Dallas, TX, USA"
"Ottawa, ON, Canada"
"text":"1 day 1 hour",
The HTL component uses the Java library GSON to parse the JSON data and then displays the data in the client so it appears in the AEM web page.
- To read this development article, click https://helpx.adobe.com/experience-manager/using/restful_htl.html.
- To watch the video, click:
Adobe Digital Marketing Community
Join the Adobe Digital Marketing Community. Start by clicking this banner