April 13, 2020
Estimated Post Reading Time ~ 1 mins

Creating Adobe Experience Manager services that invoke third party Restful web services

You can create an Adobe Experience Manager service that consumes data from a third-party Restful web service and displays the data on an AEM web page. For example, assume that you have a requirement to create an AEM component that calculates the distance between two cities and displays the results in an AEM web page. In this situation, you can develop an OSGi bundle that contains Java classes located in the org.apache.http package that is able to invoke a third-party Restful service. The following illustration shows data being retrieved from a third-party Restful service and displayed on an AEM web page (JSP).
Rest
An AEM OSGi bundle invoking a third-party Restful service

The use case in this article is to calculate the distance between two cities, return the data within JSON, parse the JSON using an AEM page component (using JavaScript), and display the results in an AEM web page.
App
An AEM page that uses a Restful request to calculate the distance between two cities

To calculate the distance between two cities, the Google Distance Matrix API is used. For information about this API, see:
https://developers.google.com/maps/documentation/distancematrix/

To read this article, click http://helpx.adobe.com/experience-manager/using/restful-services.html.
aem4beginner.blogspot


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.

Ad Blocker Detected :(

Please consider supporting us by disabling your ad blocker.

Please Disable your adblocker and Refresh the page to view the site content.