Consuming SOAP API with Azure Logic Apps

salilsingh-9961 351 Reputation points
2023-07-17T06:31:58.4366667+00:00

Hi Team,

I have a SOAP API where I need to POST a SOAP request and get a SOAP response. I need to consume this API from an Azure Logic APP, can you please mention the steps involved. If possible, please provide me with a link for same.

Thanks,

Salil

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,542 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,930 questions
{count} votes

1 answer

Sort by: Most helpful
  1. navba-MSFT 27,540 Reputation points Microsoft Employee Moderator
    2023-07-17T08:55:58.39+00:00

    @salilsingh-9961 Thanks for clarifying the ask. Since you need steps to consume a SOAP API from an Azure Logic App. Here's how you can approach this query:

    1. Create a new Logic App in the Azure portal:
    • Sign in to the Azure portal and navigate to the "Logic Apps" section.
    • Click on "Add" to create a new Logic App.
    • Follow the prompts to configure the Logic App as needed.
    1. Add a "HTTP" trigger to the Logic App and configure it to receive a POST request:
    • In the Logic App designer, click on "New step".
    • Search for "HTTP" and select the "When a HTTP request is received" trigger.
    • Configure the trigger to receive a POST request and specify any required parameters.
      User's image

    User's image

    1. Add a "Compose" action to the Logic App and use it to create the SOAP request message:
    • In the Logic App designer, click on "New step".
    • Search for "Compose" and select the "Compose" action.
    • Use the "Inputs" field to create the SOAP request message as a string.
      User's image

    User's image

    1. Add a "HTTP" action to the Logic App and use it to send the SOAP request to the SOAP API endpoint:
    • In the Logic App designer, click on "New step".
    • Search for "HTTP" and select the "HTTP" action.
    • Configure the action to send a POST request to the SOAP API endpoint and include the SOAP request message in the request body.
      User's image
    1. Add a "Parse JSON" action to the Logic App and use it to parse the SOAP response message:
    • In the Logic App designer, click on "New step".
    • Search for "Parse JSON" and select

    Note: To integrate SOAP services in your Azure Logic Apps workflows, you can create and register a custom Simple Object Access Protocol (SOAP) connector by using Web Services Description Language (WSDL) that describes your SOAP service. The SOAP connectors work like prebuilt connectors, so you can use them in the same way as other connectors in your logic apps. Currently, SOAP custom connectors don't support one-way operations. More Info here.

    Hope this helps.

    **

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.