Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Need to consume the restful webservice

Avatar

Avatar
Validate 25
Level 3
manikanthar1295
Level 3

Likes

7 likes

Total Posts

66 posts

Correct Reply

0 solutions
Top badges earned
Validate 25
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile

Avatar
Validate 25
Level 3
manikanthar1295
Level 3

Likes

7 likes

Total Posts

66 posts

Correct Reply

0 solutions
Top badges earned
Validate 25
Give Back 10
Give Back 5
Give Back 3
Give Back
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
Give back 300
MVP
Gaurav-Behl
MVP

Likes

243 likes

Total Posts

1,145 posts

Correct Reply

281 solutions
Top badges earned
Give back 300
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Give back 300
MVP
Gaurav-Behl
MVP

Likes

243 likes

Total Posts

1,145 posts

Correct Reply

281 solutions
Top badges earned
Give back 300
Give Back 50
Give Back 5
Give Back 3
Give Back 25
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,406 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,406 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