简体   繁体   English

使用基于SSIS脚本任务的REST API行

[英]Consuming a REST API row based in SSIS Script Task

I am looking for a way to consume a REST API in an SSIS Script Task with C#. 我正在寻找一种方法来使用C#在SSIS脚本任务中使用REST API。 I cannot use RestSharp or the Microsoft.Aspnet.Webapi.Client because they are not in the GAC. 我不能使用RestSharp或Microsoft.Aspnet.Webapi.Client,因为它们不在GAC中。

I need to call the Rest API (POST) for each row to get a result and then write it back to an output. 我需要为每一行调用Rest API(POST)以获得结果,然后将其写回输出。

Is there a possibility to access a REST API without an assembly? 是否有可能在没有程序集的情况下访问REST API?

@l0wsk1ll3d, @ l0wsk1ll3d,

I originally asked which version because the more recent the version of SSIS you are working with the more options you have available regarding rest api services. 我最初询问的是哪个版本,因为您使用的SSIS版本越新,您提供的有关rest api服务的选项就越多。

@stuartd is pointing you to a general way in which you can tap into making requests. @stuartd指的是一种可以用来发出请求的一般方式。 This question has been addressed very well in a post by @mikeTheLiar (ironically, Mike is truthful here! :)) Here is the posted answer . 这个问题在@mikeTheLiar的帖子中得到了很好的解决(具有讽刺意味的是,Mike在这里是真实的!:))这是贴出的答案

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

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