AEM Forms Web Service Integration

Avatar

Avatar
Validate 50
Level 4
nsvsrk
Level 4

Likes

21 likes

Total Posts

229 posts

Correct reply

5 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Ignite 5
View profile

Avatar
Validate 50
Level 4
nsvsrk
Level 4

Likes

21 likes

Total Posts

229 posts

Correct reply

5 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Ignite 5
View profile
nsvsrk
Level 4

25-03-2016

Hi,

In my system, I need to integrate with a web service to fetch values to be populated in a AEM Forms drop down.

Went through the following URL for the same and found that it discusses invokeWebService API and it is difficult for me to really perform the integration using the information presented here.

https://helpx.adobe.com/aem-forms/6-1/invoke-web-services-adaptive-forms.html .

Could you please send me a tutorial (step by step instructions) with a package to deploy and see web services integration?

Appreciate your support.

Thanks,

Rama.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 50
Level 4
nsvsrk
Level 4

Likes

21 likes

Total Posts

229 posts

Correct reply

5 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Ignite 5
View profile

Avatar
Validate 50
Level 4
nsvsrk
Level 4

Likes

21 likes

Total Posts

229 posts

Correct reply

5 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Ignite 5
View profile
nsvsrk
Level 4

04-04-2016

Hi,

The samples worked on 6.1 and 6.2.

A Million thanks for helping me.

Rama.

Answers (10)

Answers (10)

Avatar

Avatar
Ignite 5
Employee
workflowuser
Employee

Likes

143 likes

Total Posts

446 posts

Correct reply

70 solutions
Top badges earned
Ignite 5
Ignite 3
Ignite 1
Give Back 50
Give Back 5
View profile

Avatar
Ignite 5
Employee
workflowuser
Employee

Likes

143 likes

Total Posts

446 posts

Correct reply

70 solutions
Top badges earned
Ignite 5
Ignite 3
Ignite 1
Give Back 50
Give Back 5
View profile
workflowuser
Employee

30-03-2016

Please find a sample for populating drop down list based on web service result

Rename the attachment to from .pdf to .zip and then import the package into your crx

Import the package and go to

http://localhost:4502/content/forms/af/PopulateDropDownList.html?wcmmode=disabled

Avatar

Avatar
Validate 50
Level 4
nsvsrk
Level 4

Likes

21 likes

Total Posts

229 posts

Correct reply

5 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Ignite 5
View profile

Avatar
Validate 50
Level 4
nsvsrk
Level 4

Likes

21 likes

Total Posts

229 posts

Correct reply

5 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Ignite 5
View profile
nsvsrk
Level 4

26-03-2016

Hi Girish,

Once the release is done, do I have to first upgrade my AEM to 6.2 to access AEM Forms 6.2 or install a forms pack on top of AEM 6.1 itself?

Since it takes some time for AEM 6.2, do you have any such thing on AEM 6.1?

Obviously Web Services Integration is also available in 6.1.

As I remarked earlier, https://helpx.adobe.com/aem-forms/6-1/invoke-web-services-adaptive-forms.html discuses the same topic.

Appreciate your help.

Thanks,

Rama.

Avatar

Avatar
Ignite 1
Level 7
GirishBedekar
Level 7

Likes

172 likes

Total Posts

241 posts

Correct reply

38 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

172 likes

Total Posts

241 posts

Correct reply

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

26-03-2016

6.2 AEM Forms is currently in Beta stage. It is not Generally Available yet.If you are a participant in our beta program , you can download the software and test it

Once it is release you will have to upgrade your 6.1 installation to 6.2

Avatar

Avatar
Validate 50
Level 4
nsvsrk
Level 4

Likes

21 likes

Total Posts

229 posts

Correct reply

5 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Ignite 5
View profile

Avatar
Validate 50
Level 4
nsvsrk
Level 4

Likes

21 likes

Total Posts

229 posts

Correct reply

5 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Ignite 5
View profile
nsvsrk
Level 4

26-03-2016

Hi Girish,

Thanks for sending the info.

Currently, I am on AEM 6.1.

To use AEM Forms 6.2, do I need to have AEM 6.2 or I could install a Forms pack on AEM 6.1 itself?

Thanks,

Rama.

Avatar

Avatar
Ignite 1
Level 7
GirishBedekar
Level 7

Likes

172 likes

Total Posts

241 posts

Correct reply

38 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

172 likes

Total Posts

241 posts

Correct reply

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

26-03-2016

These steps are applicable to AEM Forms 6.2 release

To populate a drop down list from the results returned by the webservice, your webservice must return xml and that xml must have  repeating elements. You can then bind one of the elements inside the repeating elements to your drop down list. To do this perform the following 

I used the following web service for this example

http://wsf.cdyne.com/WeatherWS/Weather.asmx?op=GetCityForecastByZIP

AS you can see this web service returns XML which has repeating elements "Forecast" and we will use the "MorningLow" to populate our drop down list

Drag a text field on to the form. Name  it "Zip"
Drag dropdown list on to your adaptive form. Name  it "Forecast"
Select the field "Forecast"  and select the "Hammer Icon" to open the rule editor
Click Create
Click the Form Objects and Functions to bring up the Forms Objects explorer on the  left hand side of the screen
In the Rule Editor on the right hand side of the screen you should see a drop down list with a value of "when". Change that value to "Set Options Of"
what you are doing here is essentially setting the options of your drop down list.
Then  click on the "Select Option" drop down list and choose Web Service Output
paste "http://wsf.cdyne.com/WeatherWS/Weather.asmx?wsdl" in to the text box and tab out

then in the Select Operation drop down list choose "GetCityForecastByZip"
The selected web service operation requires you to provide an Zip code value
Drag the "Zip" field from the Form Object explorer which is on your left and drop into the text field which says "Drop Object or select here"

Then select the "Save Value" drop down list to choose the value that you want to populate your drop down list . I chose "MorningLow"

Preview the form and provide a valid in the zip code field and tab out

Avatar

Avatar
Validate 50
Level 4
nsvsrk
Level 4

Likes

21 likes

Total Posts

229 posts

Correct reply

5 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Ignite 5
View profile

Avatar
Validate 50
Level 4
nsvsrk
Level 4

Likes

21 likes

Total Posts

229 posts

Correct reply

5 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Ignite 5
View profile
nsvsrk
Level 4

26-03-2016

Hi Girish,

Could you please take a few minutes of your busy schedule to prepare and send me the steps to perform this integration?

I have been trying to achieve this for the last couple of weeks.

I appreciate all your time and efforts.

Thanks,

Rama.

Avatar

Avatar
Validate 50
Level 4
nsvsrk
Level 4

Likes

21 likes

Total Posts

229 posts

Correct reply

5 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Ignite 5
View profile

Avatar
Validate 50
Level 4
nsvsrk
Level 4

Likes

21 likes

Total Posts

229 posts

Correct reply

5 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Ignite 5
View profile
nsvsrk
Level 4

25-03-2016

Hi,

This is really exciting!

Kindly send me the steps to follow.

Thanks,

Rama.

Avatar

Avatar
Ignite 1
Level 7
GirishBedekar
Level 7

Likes

172 likes

Total Posts

241 posts

Correct reply

38 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

172 likes

Total Posts

241 posts

Correct reply

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

25-03-2016

I used the following WSDL to populate the drop down list. Take a look at the attached screen shot

http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL

Avatar

Avatar
Validate 50
Level 4
nsvsrk
Level 4

Likes

21 likes

Total Posts

229 posts

Correct reply

5 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Ignite 5
View profile

Avatar
Validate 50
Level 4
nsvsrk
Level 4

Likes

21 likes

Total Posts

229 posts

Correct reply

5 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Ignite 5
View profile
nsvsrk
Level 4

25-03-2016

I do not have the web service currently.

Could you please assume any public web service (repeating or not repeating - repeating better ) and suggest me the way?

Appreciate your help.

Thanks,

Rama. 

Avatar

Avatar
Ignite 1
Level 7
GirishBedekar
Level 7

Likes

172 likes

Total Posts

241 posts

Correct reply

38 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

172 likes

Total Posts

241 posts

Correct reply

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

25-03-2016

Does your web service return an xml with repeating elements?. If the webservice is publicly available, can you please post the url to the webservice

Thanks