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

Http submit button calling REST API

Avatar

Avatar
Validate 1
Level 2
AEM_USER1
Level 2

Like

1 like

Total Posts

46 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back
Boost 1
View profile

Avatar
Validate 1
Level 2
AEM_USER1
Level 2

Like

1 like

Total Posts

46 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back
Boost 1
View profile
AEM_USER1
Level 2

25-01-2021

Ok so i have my REST API in iis. for testing based on @workflowuser advice was to use an HTTP submit button. so I built something simple. I hardcoded the REST API call and when i click the button I get...Capture.JPG

an http 405 error.

 

Capture1.JPG

 

@workflowuserdo you have any examples on how to actually build the call to a GET rest api? and lastly i would like the response to be into that textfield. Please help I am at a lost.

Accepted Solutions (0)

Answers (4)

Answers (4)

Avatar

Avatar
Validate 1
Level 2
AEM_USER1
Level 2

Like

1 like

Total Posts

46 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back
Boost 1
View profile

Avatar
Validate 1
Level 2
AEM_USER1
Level 2

Like

1 like

Total Posts

46 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back
Boost 1
View profile
AEM_USER1
Level 2

27-01-2021

@GirishBedekar with the response I intent to prefill my pdf. We are not using adaptive forms for this. Just pdf. 

 

So REST API cannot be use with PDFs? 

Avatar

Avatar
Ignite 1
Level 7
GirishBedekar
Level 7

Likes

162 likes

Total Posts

232 posts

Correct Reply

36 solutions
Top badges earned
Ignite 1
Give Back 5
Give Back 3
Give Back 10
Give Back
View profile

Avatar
Ignite 1
Level 7
GirishBedekar
Level 7

Likes

162 likes

Total Posts

232 posts

Correct Reply

36 solutions
Top badges earned
Ignite 1
Give Back 5
Give Back 3
Give Back 10
Give Back
View profile
GirishBedekar
Level 7

26-01-2021

Yes http post is for submitting the pdf form

What do you intend to do with the response you get from the REST call?

have you considered using adaptive forms instead of pdf form

Avatar

Avatar
Validate 1
Level 2
AEM_USER1
Level 2

Like

1 like

Total Posts

46 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back
Boost 1
View profile

Avatar
Validate 1
Level 2
AEM_USER1
Level 2

Like

1 like

Total Posts

46 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back
Boost 1
View profile
AEM_USER1
Level 2

26-01-2021

@GirishBedekar the use case is just to get a JSON String from a database. I wanted to use REST API instead of SOAP web service. I also wanted to use Workbench but I do not see a way for workbench to return a JSON string unless it is programming it with JAVA servlets.

 

So using a HTTP submit button is only for POST? not GET? please advice

 

Thanks

Avatar

Avatar
Ignite 1
Level 7
GirishBedekar
Level 7

Likes

162 likes

Total Posts

232 posts

Correct Reply

36 solutions
Top badges earned
Ignite 1
Give Back 5
Give Back 3
Give Back 10
Give Back
View profile

Avatar
Ignite 1
Level 7
GirishBedekar
Level 7

Likes

162 likes

Total Posts

232 posts

Correct Reply

36 solutions
Top badges earned
Ignite 1
Give Back 5
Give Back 3
Give Back 10
Give Back
View profile
GirishBedekar
Level 7

25-01-2021

I am not sure on how to populate fields on the form using REST endpoint response 

what is your use case?