Validate XML with schemas in Azure Logic Apps with Enterprise Integration Pack

Schemas confirm that the XML documents you receive are valid and have the expected data in a predefined format. Schemas also help validate messages that are exchanged in a B2B scenario.

Add a schema

  1. In the Azure portal, select All services.

    Azure portal, "All services"

  2. In the filter search box, enter integration, and select Integration Accounts from the results list.

    Filter search box

  3. Select the integration account where you want to add the schema.

    List of integration accounts

  4. Choose the Schemas tile.

    Example integration account, "Schemas"

Add a schema file smaller than 2 MB

  1. In the Schemas blade that opens (from the preceding steps), choose Add.

    Schemas blade, "Add"

  2. Enter a name for your schema. Upload the schema file by selecting the folder icon next to the Schema box. After the upload process completes, select OK.

    Screenshot of "Add Schema", with "Small file" highlighted

Add a schema file larger than 2 MB (up to 8 MB maximum)

These steps differ based on the blob container access level: Public or No anonymous access.

To determine this access level

  1. Open Azure Storage Explorer.

  2. Under Blob Containers, select the blob container you want.

  3. Select Security, Access Level.

If the blob security access level is Public, follow these steps.

Azure Storage Explorer, with "Blob Containers", "Security", and "Public" highlighted

  1. Upload the schema to your storage account, and copy the URI.

    Storage account, with URI highlighted

  2. In Add Schema, select Large file, and provide the URI in the Content URI text box.

    Schemas, with "Add" button and "Large file" highlighted

If the blob security access level is No anonymous access, follow these steps.

Azure Storage Explorer, with "Blob Containers", "Security", and "No anonymous access" highlighted

  1. Upload the schema to your storage account.

    Storage account

  2. Generate a shared access signature for the schema.

    Storage account, with shared access signatures tab highlighted

  3. In Add Schema, select Large file, and provide the shared access signature URI in the Content URI text box.

    Schemas, with "Add" button and "Large file" highlighted

  4. In the Schemas blade of your integration account, your newly added schema should appear.

    Your integration account, with "Schemas" and the new schema highlighted

Edit schemas

  1. Choose the Schemas tile.

  2. After the Schemas blade opens, select the schema that you want to edit.

  3. On the Schemas blade, choose Edit.

    Schemas blade

  4. Select the schema file that you want to edit, then select Open.

    Open schema file to edit

Azure shows a message that the schema uploaded successfully.

Delete schemas

  1. Choose the Schemas tile.

  2. After the Schemas blade opens, select the schema you want to delete.

  3. On the Schemas blade, choose Delete.

    Schemas blade

  4. To confirm that you want to delete the selected schema, choose Yes.

    "Delete schema" confirmation message

    In the Schemas blade, the schema list refreshes and no longer includes the schema that you deleted.

    Your integration Account, with "Schemas" highlighted

Next steps