Need to consume the restful webservice

Avatar

Avatar
Affirm 1
Level 3
manikanthar1295
Level 3

Likes

7 likes

Total Posts

85 posts

Correct reply

1 solution
Top badges earned
Affirm 1
Validate 25
Give Back 10
Give Back 5
Give Back 3
View profile

Avatar
Affirm 1
Level 3
manikanthar1295
Level 3

Likes

7 likes

Total Posts

85 posts

Correct reply

1 solution
Top badges earned
Affirm 1
Validate 25
Give Back 10
Give Back 5
Give Back 3
View profile
manikanthar1295
Level 3

23-01-2019

Hi Team,

I need to develop the component which contain drop down  and that dropdown i need to consume service from

http://services.groupkt.com/country/get/all

What are all methodology  to archive this.

Regards

Manikantha R

Replies

Avatar

Avatar
Boost 250
MVP
Gaurav-Behl
MVP

Likes

250 likes

Total Posts

1,147 posts

Correct reply

283 solutions
Top badges earned
Boost 250
Establish
Give back 300
Give Back 50
Give Back 5
View profile

Avatar
Boost 250
MVP
Gaurav-Behl
MVP

Likes

250 likes

Total Posts

1,147 posts

Correct reply

283 solutions
Top badges earned
Boost 250
Establish
Give back 300
Give Back 50
Give Back 5
View profile
Gaurav-Behl
MVP

24-01-2019

This service returns a simple json object.

What are your requirements/constraints? Do you have any security constraints? You could directly consume it in javascript/jquery using $.getjson() or server side using HTL/Sling models if you have any orchestration requirements. You could also do it in various other frameworks/libraries.

check-

Adobe Experience Manager Help | Creating Adobe Experience Manager bundles that invoke third party Re...

https://api.jquery.com/jquery.getjson/

Ajax/jQuery.getJSON Simple Example — SitePoint

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,410 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,410 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

24-01-2019

As @gauravb10066713 mentions you can write a custom AEM service that is able to use Java to consume a 3rd party RESTFul web service. In our little example - we consume a Google RESTFul service and displays the result in an AEM component.

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