Expand my Community achievements bar.

WebService Call in Rules Editor

Avatar

Level 10

Hi,

Pl refer to WebService Call in Rules Editor in URL : https://helpx.adobe.com/aem-forms/6-2/rule-editor.html

This exemplifies calling a WebService with ZIP code to retrieve address.

Is there a tutorial that covers a WebService Call, with authentication? (A WebService that required user name and password).

Thanks,

Rama.

4 Replies

Avatar

Level 10

Hi,

Thanks for replying.

If we have such a requirement, do we have to write custom JS code to invoke WS in Code Editor section of Rules Editor?

Is there any tutorial in this direction?

Thanks,

Rama.

Avatar

Level 2

Hi,

I don't think there is any tutorial in this direction. Although the closest thing out there is Tutorial for custom Function in rule editor.

Drawback: Function returns only 1 output.

If you want you can look it here:https://helpx.adobe.com/aem-forms/6-2/rule-editor.html#custom_functions

Avatar

Employee Advisor

If you have to call web service that requires authentication, you will have to write Java code.  I once wrote OSGI bundle and used SAAJ API to construct the WSDL request