从控制台应用程序使用 WCF 服务作为 SQL 作业的一部分?
我正在使用一个 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能需要考虑将服务 A 代码打包到 SQLCLR 中,并像另一个存储过程一样调用它。
You might want to consider packaging your service A code into SQLCLR and call it like another stored proc.