在给定时间通过 biztalk 发送(推送)Soap WS 消息

发布于 2024-10-26 06:20:06 字数 451 浏览 1 评论 0原文

我想知道是否有人可以提供一些教程的示例或链接,这些教程将展示如何使用肥皂作为工作(在给定时间)通过 biztalk 发送消息。我有在 java 环境中使用 JMS 执行此操作的经验,但我是第一次在 .net 及其技术中执行此操作。

我需要做的事情可以分成几个步骤。

  1. 创建 WCF SOAP 服务,该服务将具有一种通过 BizTalk 将数据集合从我们的系统发送到供应商系统的方法。
  2. 在给定时间执行此操作 - 创建一个每天执行一次的作业(计时器)。最好的方法是什么?我应该自己编写这个作业,还是通常在服务器上使用一些 Windows 调度程序?

非常感谢任何建议。

编辑:通信概念:app1-client(这里是定时作业)->发送数据->biztalk-server(WS)->发送数据->app2-server(WS )

I would like to know if someone could provide example or a link on some tutorial which would show how to send messages using soap as a job (at given time) trough biztalk. I have expirience doing this with in java enviroment with JMS, but Im doing it for the first time in .net and its technologies.

What I need to do could be broken into steps.

  1. Create WCF SOAP service that would have one method for sending collection of data from our system to a vendors system trough BizTalk.
  2. Do this at given time - create a job(timer) that would do this once a day. What is the best way? Should I program this job by myself or is it common to use some windows scheduler on server?

Thanx a lot for any suggestions.

Edit: Concept of comunication: app1-client(here is the timing job)->sends data->biztalk-server(WS)->sends data ->app2-server(WS)

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

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

发布评论

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

评论(2

往日 2024-11-02 06:20:06

通常,让拥有数据的系统也拥有发送数据的调度是有意义的。例如,如果数据来自 SQL Server,请使用 SQL Server 的内置调度功能(SQL 作业)作为触发器来启动整个过程。然后,让 SQL 作业将数据转储到文件中,该文件位于由使用文件适配器的 BizTalk 接收位置监视的文件夹中。 BizTalk 吸收文件和发送端口,该端口订阅从拉入文件的接收端口传入的消息,使用 WCF 或 SOAP 适配器将数据发送到外部服务器上的 Web 服务。

如果您不想或不能这样做,我见过人们使用:

  • CodePlex 上的计划任务适配器(如 @tomasr 引用)
  • Windows 计划任务(更难以管理,尤其是在 Windows Server 2008 之前) )
  • 第三方作业调度软件(特别是已经在使用的情况下)

如果触发机制无法访问需要流经 BizTalk 的数据,BizTalk 当然可以在发送之前获取数据(例如,从 SQL Server)它到服务器的网络服务。在这种情况下,计划作业可能会在 BizTalk 监视的文件夹中删除一个文件,其中包含 BizTalk 不关心的某些内容 - 只需确保文件中有某些内容,因为 BizTalk 喜欢丢弃空的 0 字节文件。

BizTalk 不是作业调度程序。因此,尽管您可以使用计划任务适配器之类的东西,但 BizTalk 的最佳点实际上是消息的转换、路由和/或业务流程编排,以及可插入架构(使用适配器)。通常,您希望让 BizTalk 处理所有这些功能并使用其他一些系统(如果可用)进行调度。

Typically it make sense to have the system that owns the data also own the scheduling of sending out the data. For example, if the data is coming out of SQL Server, use SQL Server's built-in functionality for scheduling (SQL Jobs) as your trigger to kick off the whole process. Then, have the SQL Job dump the data to a file, in a folder monitored by a BizTalk receive location using the file adapter. BizTalk sucks in the file and a send port, which subscribes to the messages coming in from the receive port that pulled in the file, uses a WCF or SOAP adapter to send the data to your web service on the external server.

If you don't want to or can't do things that way, I have seen people use:

  • The Scheduled Task Adapter on CodePlex (as @tomasr referenced)
  • A Windows Scheduled Task (more difficult to manage, especially prior to Windows Server 2008)
  • Third-party job scheduling software (particularly if already in use)

If the triggering mechanism does not have access to the data that needs to flow through BizTalk, BizTalk can certainly go and get the data (e.g., from SQL Server), before sending it to the server's web service. In that case the scheduled job could drop a file in the folder monitored by BizTalk with some content in it that BizTalk doesn't care about - just make sure that there is something in the file, because BizTalk likes to discard empty, 0 byte files.

BizTalk is not a job scheduler. So, though you can use something like the scheduled task adapter, BizTalk's sweet spot is really the transformation, routing, and/or business process orchestration of messages, along with a pluggable architecture (using adapters). Typically you want to let BizTalk handle all of those functions and use some other system (if available) for scheduling.

蓝眼睛不忧郁 2024-11-02 06:20:06
  1. 不知道你在问什么。您是否想要将 BizTalk 中的 WS 公开给其他系统,或者从 BizTalk 中调用其他系统公开的 WS? BizTalk 文档应该可以帮助您入门两者之一。

  2. BizTalk 没有任何内置的调度功能。但是,最常见的解决方法是使用 BizTalk 计划任务适配器,您可以从其 codeplex 站点.

  3. 不知道你说的是什么意思。您能澄清一下吗?

  1. Not sure what you're asking. Are you wanting to expose a WS from BizTalk to the other system, or call a WS exposed by the other system from BizTalk? The BizTalk docs should get you started in either one.

  2. BizTalk doesn't have anything built-in for scheduling. However, the most common workaround for this is to use the BizTalk Scheduled Task Adapter, which you can get from its codeplex site.

  3. Not sure what you mean by this. Can you clarify?

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