Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

xml based rest web service consumption

Avatar

Level 4

how to consume a xml based rest web service in servlet using httpclient or jersey api

and which requires authentication

1 Reply

Avatar

Level 10

To address this use case, you have to build an AEM OSGi service that uses these given APIs that consume the WS.

It would be very similar to how we build AEM OSGi services for both SOAP based Web Services [0] and REST based web services [1]: 

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

1 - https://helpx.adobe.com/experience-manager/using/restful-services.html

Hope this helps