How to invoke SOAP web service in aem osgi forms 6.4 | Community
Skip to main content
May 15, 2020
Question

How to invoke SOAP web service in aem osgi forms 6.4

  • May 15, 2020
  • 1 reply
  • 1804 views

Guide me some steps on how to invoke soap webservice in aem forms 6.4 or 6.5 as we are not using aem cloud as of now. Give me one example for the same.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Nikhil-Kumar
Community Advisor
Community Advisor
November 22, 2024

@kirtikhatri 

Option 1: Using AEM Workflows

1. Create a Workflow with SOAP Endpoint

  • Navigate to Tools > Workflow > Models in the AEM UI.
  • Create a new workflow or modify an existing one.
  • Add the "Forms SOAP Endpoint" step to your workflow.

2. Configure the SOAP Endpoint

  • In the Workflow Editor, click the "Forms SOAP Endpoint" step and configure:
    • WSDL URL: Provide the WSDL of the SOAP service.
    • SOAP Operation: Select the operation to invoke.
    • Input Parameters: Map the required input values for the service.
    • Authentication: If required, provide credentials for the SOAP service.

3. Test the Workflow

  • Trigger the workflow and verify that the SOAP service is invoked successfully.
  • Use the Workflow console to debug any issues.






Option 2: Using Form Data Models

1. Create a Form Data Model

  • Go to AEM Forms > Data Integrations.
  • Create a new Form Data Model and select "SOAP Web Service" as the data source.

2. Configure the SOAP Service

  • Provide the WSDL URL of the SOAP service.
  • Select the desired SOAP operations to be exposed in the data model.

3. Bind the Form Data Model to an Adaptive Form

  • Create or edit an Adaptive Form in AEM.
  • Bind fields in the form to the SOAP operations exposed via the Form Data Model.

4. Submit and Test

  • When the form is submitted, the SOAP operation is invoked automatically with the mapped data.