简体   繁体   English

Azure数据工厂中如何读取XML响应

[英]In Azure Data Factory how to read XML response

As I am new to ADF, looking for the right way to read/accept XML response from an API.由于我是 ADF 的新手,正在寻找正确的方法来读取/接受来自 API 的 XML 响应。

Tried the following activities using copy activity,使用复制活动尝试了以下活动,

  • Rest, linked service. Rest,联动服务。 Linked service connection is successful but while previewing the error,链接服务连接成功但是预览时报错, 在此处输入图像描述

  • HTTP, linked service. HTTP,联动服务。 Linked service connection is successful but while previewing the error,链接服务连接成功但是预览时报错, 在此处输入图像描述

  • OData, linked service. OData,链接服务。 failed to connect to the linked service Error: Failed to create odata connection to RequestUrl.无法连接到链接服务错误:无法创建到 RequestUrl 的 odata 连接。 在此处输入图像描述

It would be helpful if someone could share a doc or reference on how XML API response can be consumed in the ADF.如果有人可以分享有关如何在 ADF 中使用 XML API 响应的文档或参考,这将很有帮助。

As per official documentation , REST connector only support response in JSON.根据官方文档,REST 连接器仅支持 JSON 中的响应。

在此处输入图像描述


EDIT -编辑 -

Unfortunately XML response is not supported.不幸的是,不支持 XML 响应。 You can use an ADF Custom activity to transform the XML programmatically.您可以使用 ADF 自定义活动以编程方式转换 XML。

Refer - https://social.msdn.microsoft.com/Forums/azure/en-US/68c41a5d-4cd3-4f61-8cbf-c9d86909ce80/adf-v2-pull-from-rest-api-that-returns-xml?forum=AzureDataFactory参考 - https://social.msdn.microsoft.com/Forums/azure/en-US/68c41a5d-4cd3-4f61-8cbf-c9d86909ce80/adf-v2-pull-from-rest-api-that-returns-xml?论坛=AzureDataFactory

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM