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.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
The samples worked on 6.1 and 6.2.
A Million thanks for helping me.
Rama.
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
I used the following WSDL to populate the drop down list. Take a look at the attached screen shot
Views
Replies
Total Likes
Hi,
This is really exciting!
Kindly send me the steps to follow.
Thanks,
Rama.
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
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
Views
Replies
Total Likes
Hi,
The samples worked on 6.1 and 6.2.
A Million thanks for helping me.
Rama.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies