Encode AS2 messages for Azure Logic Apps with the Enterprise Integration Pack

To establish security and reliability while transmitting messages, use the Encode AS2 message connector. This connector provides digital signing, encryption, and acknowledgements through Message Disposition Notifications (MDN), which also leads to support for Non-Repudiation.

Before you start

Here's the items you need:

  • An Azure account; you can create a free account
  • An integration account that's already defined and associated with your Azure subscription. You must have an integration account to use the Encode AS2 message connector.
  • At least two partners that are already defined in your integration account
  • An AS2 agreement that's already defined in your integration account

Encode AS2 messages

  1. Create a logic app.

  2. The Encode AS2 message connector doesn't have triggers, so you must add a trigger for starting your logic app, like a Request trigger. In the Logic App Designer, add a trigger, and then add an action to your logic app.

  3. In the search box, enter "AS2" for your filter. Select AS2 - Encode AS2 message.

    Search for "AS2"

  4. If you didn't previously create any connections to your integration account, you're prompted to create that connection now. Name your connection, and select the integration account that you want to connect.

    create connection to integration account

    Properties with an asterisk are required.

    Property Details
    Connection Name * Enter any name for your connection.
    Integration Account * Enter a name for your integration account. Make sure that your integration account and logic app are in the same Azure location.
  5. When you're done, your connection details should look similar to this example. To finish creating your connection, choose Create.

    integration connection details

  6. After your connection is created, as shown in this example, provide details for AS2-From, AS2-To identifiers as configured in your agreement, and Body, which is the message payload.

    provide mandatory fields

AS2 encoder details

The Encode AS2 connector performs these tasks:

  • Applies AS2/HTTP headers
  • Signs outgoing messages (if configured)
  • Encrypts outgoing messages (if configured)
  • Compresses the message (if configured)

Try this sample

To try deploying a fully operational logic app and sample AS2 scenario, see the AS2 logic app template and scenario.

View the swagger

See the swagger details.

Next steps

Learn more about the Enterprise Integration Pack