从控制台应用程序使用 WCF 服务作为 SQL 作业的一部分?

发布于 2024-08-10 02:36:45 字数 262 浏览 1 评论 0原文

我正在使用一个 WCF 服务,该服务将消耗我与另一个 WCF 服务排队的记录。服务A将从数据库查询到的包含一系列记录的对象(我猜是XML文档,还没确定格式)打包成一个对象,并将其提交给服务B进行处理。

服务 B 位于单独部门的系统上,不受我的控制,因此我使用我的服务来打包数据以符合 B 的输入。

我正在考虑通过控制台应用程序中的客户端实例化我的服务,这将作为 MS SQL 2005 上 SQL 作业的一部分进行调用。

有人可以建议替代方案和任何更好的想法吗?

I'm working with one WCF service which will be consuming records I queue up for it with another. Service A will package up an object containing a series of records (I guess an XML document, haven't nailed down the format yet) queried from a database, and submit it to Service B for processing.

Service B is on a separate department's system and is out of my control, so I'm using my service to package the data to conform to B's inputs.

I'm thinking of instantiating my service via a client in a console app, which would be called as part of a SQL job on MS SQL 2005.

Could someone please suggest alternatives and any better ideas?

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

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

发布评论

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

评论(1

等待圉鍢 2024-08-17 02:36:45

您可能需要考虑将服务 A 代码打包到 SQLCLR 中,并像另一个存储过程一样调用它。

You might want to consider packaging your service A code into SQLCLR and call it like another stored proc.

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