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

发布于 2025-01-10 00:01:24 字数 693 浏览 4 评论 0原文

由于我是 ADF 新手,正在寻找从 API 读取/接受 XML 响应的正确方法。

使用复制活动、

休息、链接服务尝试了以下活动

  • 。链接服务连接成功但预览时出现错误, 输入图片此处描述

  • HTTP,链接服务。链接服务连接成功但预览时出现错误, 输入图片此处描述

  • OData,链接服务。无法连接到链接服务错误:无法创建到 RequestUrl 的 odata 连接。 输入图片此处描述

如果有人可以分享有关如何在 ADF 中使用 XML API 响应的文档或参考,将会很有帮助。

As I am new to ADF, looking for the right way to read/accept XML response from an API.

Tried the following activities using copy activity,

  • Rest, linked service. Linked service connection is successful but while previewing the error,
    enter image description here

  • HTTP, linked service. Linked service connection is successful but while previewing the error,
    enter image description here

  • OData, linked service. failed to connect to the linked service Error: Failed to create odata connection to RequestUrl.
    enter image description here

It would be helpful if someone could share a doc or reference on how XML API response can be consumed in the ADF.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

吻泪 2025-01-17 00:01:24

根据 官方文档,REST 连接器仅支持 JSON 格式的响应。

输入图片此处描述


编辑 -

不幸的是,不支持 XML 响应。您可以使用 ADF 自定义活动以编程方式转换 XML。

请参阅 - 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

As per official documentation, REST connector only support response in JSON.

enter image description here


EDIT -

Unfortunately XML response is not supported. You can use an ADF Custom activity to transform the XML programmatically.

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文