Highlighted

can some one explain multiple ways of configuring and consuming restful web service.

aditya524

20-02-2019

hi ,

can some one explain the multiple ways of configuring and consuming in a web service in AEM.

also pls suggest examples of get and post methods for a restful service.

Replies

Highlighted

smacdonald2008

20-02-2019

AEM does not expose a web service like Adobe LiveCycle ES did. Therefore you are not configuring an OOTB web service in AEM.

If you want to consume a 3rd party web service - you need to code an AEM Service that can use HTTP Java API to invoke a service (eg - perform a GET to get back data), parse the results (usually in JSON format) and then display the results. See this article as an example:

Creating an Adobe Experience Manager 6.4 HTL Component that displays data from a Restful Web Service

Hope this helps...