gpt4 book ai didi

c# - 寻找通过 SSIS 从安全 Web 服务使用数据的示例

转载 作者:太空宇宙 更新时间:2023-11-03 15:52:21 25 4
gpt4 key购买 nike

<分区>

我正在尝试通过 SSIS 2012 企业版使用我们的 SaaS 提供商之一 ( Ultimate Software ) 的数据。

我很清楚 Web 服务任务除了最简单的 Web 服务外对任何东西都没有用,并且已经完全放弃尝试将它用于这个项目。

为了访问我需要的数据,我实际上必须调用两个单独的 Web 服务,一个用于登录并获取身份验证 token ,另一个用于实际请求我正在寻找的数据。

我已经使用供应商的示例代码整理了一个脚本组件源。一旦我尝试通过以下代码实例化一个新的 loginClient:

LoginService.LoginServiceClient loginClient = new LoginService.LoginServiceClient("WSHttpBinding_ILoginService");

我收到以下错误:

Could not find endpoint element with name 'WSHttpBinding_ILoginService' and contract 'LoginService.ILoginService' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this name could be found in the client element.

我已经能够让供应商的代码像 visual studio 中的控制台应用程序一样工作,但是当我试图让它作为脚本组件工作时,它就会分崩离析。谢谢!

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