gpt4 book ai didi

web-services - 如何将 RESTful Web 服务集成到 SSIS 中

转载 作者:行者123 更新时间:2023-12-04 05:30:58 26 4
gpt4 key购买 nike

我有一个非常简单的 RESTful 网络服务(即 www.test.com/test.xml?date1=05/252010&date2=05252010)

这将返回相当简单的 XML。客户端有兴趣通过 SSIS 使用此 Web 服务并将其导入表中。

  • 使用 SSIS 调用 RESTful Web 服务的最佳方法是什么 - 我看到的所有示例都围绕基于 WSDL 的 Web 服务?
  • 如何将参数传递给网络服务(当前日期等)?

  • 我只是不太熟悉 SSIS,并且无法找到有关与 RESTful Web 服务交互的良好文档。

    最佳答案

    我们最终没有使用此功能,但根据我发现的更多阅读内容 - 找到了这篇文章:

    http://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/913c63b0-2761-4f84-94e1-3c2e3af29309

    除了一些这样做的示例代码:

    Dim dtYest As Date = DateAdd(DateInterval.Day, -1, Now)
    Dim strDate As String = dtYest.Month.ToString
    strDate += "/"
    strDate += dtYest.Day.ToString
    strDate += "/"
    strDate += dtYest.Year.ToString

    Dts.Connections("HTTP Connection Manager").ConnectionString = "https://www.test.com/test.xml?begin_date="+strDate+"&end_date="+strDate

    我的研究到此结束。

    关于web-services - 如何将 RESTful Web 服务集成到 SSIS 中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2908445/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com