带有 Enterprise Integration Pack 的 Azure 逻辑应用中的 XML 消息和平面文件XML messages and flat files in Azure Logic Apps with Enterprise Integration Pack

Azure 逻辑应用中,你可以使用 Enterprise Integration Pack 处理你发送和接收的 XML 消息。In Azure Logic Apps, you can process XML messages that you send and receive by using the Enterprise Integration Pack. 如果你使用过 BizTalk Server,你会看到 Enterprise Integration Pack 提供了类似的功能来转换和验证消息、使用平面文件,甚至可以使用 XPath 扩展或提取消息中的特定属性。If you've used BizTalk Server, the Enterprise Integration Pack provides similar capabilities to transform and validate messages, work with flat files, and even use XPath to enrich or extract specific properties from a message. 如果你不熟悉此空间,这些功能扩展了你在逻辑应用的工作流中处理消息的方式。If you're new to this space, these features expand how you process messages in your logic app's workflow. 例如,如果你采用了企业到企业 (B2B) 方案和特定的 XML 架构,则可使用 Enterprise Integration Pack 来增强公司处理这些消息的能力。For example, if you have a business-to-business (B2B) scenario and work with specific XML schemas, you can use the Enterprise Integration Pack to enhance how your company processes these messages.

例如,Enterprise Integration Pack 包括以下功能:For example, the Enterprise Integration Pack includes these capabilities:

  • XML 验证:针对特定架构验证传入或传出 XML 消息。XML validation: Validate an incoming or outgoing XML message against a specific schema.

  • XML 转换:使用映射根据你的要求或合作伙伴的要求转换或自定义 XML 消息。XML transform: Convert or customize an XML message based on your requirements or the requirements of a partner by using maps.

  • 平面文件编码和平面文件解码:对平面文件进行编码或解码。Flat file encoding and flat file decoding: Encode or decode a flat file.

    例如,SAP 接受和发送平面文件格式的 IDOC 文件。For example, SAP accepts and sends IDOC files in flat file format. 许多集成平台(包括逻辑应用)创建 XML 消息。Many integration platforms create XML messages, including Logic Apps. 因此,可以创建一个逻辑应用,以便使用平面文件编码器将 XML 文件“转换”成平面文件。So, you can create a logic app that uses the flat file encoder to "convert" XML files to flat files.

  • XPath:扩充消息以及从消息中提取特定属性。XPath: Enrich a message and extract specific properties from the message. 然后,可以使用提取的属性将消息路由到目标或中间终结点。You can then use the extracted properties to route the message to a destination, or an intermediary endpoint.

示例Sample

使用 Azure 逻辑应用中的 XML 功能部署完全正常运行的逻辑应用(GitHub 示例)。Deploy a fully operational logic app (GitHub sample) by using the XML features in Azure Logic Apps.

后续步骤Next steps

详细了解 Enterprise Integration PackLearn more about the Enterprise Integration Pack