Mirth:在同一通道中的目的地之间共享 SOAP 响应

发布于 2024-07-23 12:54:53 字数 564 浏览 7 评论 0原文

考虑这样一种场景:Mirth 频道具有一个或多个目的地。 在此场景中,有 4 个目的地。

该通道的源类型是 LLP Listener,传入数据类型为 HL7 v2.x。

该通道的目标如下:

  1. 文件写入器 - 将消息写入磁盘。 实际上这只是为了开发目的。
  2. Javascript Writer - 将消息写入数据库。 获取主键。 将该键放在未来目的地的 ChannelMap 上。
  3. SOAP 发送器 - 调用 Web 服务并接收响应。 通话顺利进行。
  4. Javascript 编写器 - 从上面的 SOAP 发送器获取响应,并将其写入数据库,将答案与第一个目标的主键相关联。

其中一项挑战是从 SOAP 发送方目标获取 SOAP 响应,并将其保存到第四个目标的某个位置。 SOAP 发送器允许您将 SOAP 响应发送到另一个通道,但我在下一个目的地需要它。 我必须能够在同一频道中接收它。

问题: 如何将第三个目标的 XML SOAP 结果保存/发送到第四个目标?

Consider a scenario where a Mirth channel has one or more Destinations. In this scenario, there are 4 Destinations.

The channel's Source Type is LLP Listener with incoming datatype as HL7 v2.x.

The channel's Destinations are as follows:

  1. File Writer - Write the message to disk. Really this is just for development purposes.
  2. Javascript Writer - Write the message to DB. Get a primary key. Put that key on the ChannelMap for future Destinations.
  3. SOAP Sender - Call a web service and receive a response. The call runs smoothly.
  4. Javascript Writer - Take the response from the SOAP Sender above, and write it to a DB, associating the answer with the primary key from the 1st Destination.

One challenge is getting the SOAP response from the SOAP Sender Destination, and saving it somewhere for the 4th destination. The SOAP Sender allows you to send a SOAP response to another channel, but I need it in the next destination. I have to be able to receive it in the same channel.

Question:
How can I have the XML SOAP results from the 3rd Destination be saved/sent to the 4th Destination?

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

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

发布评论

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

评论(1

毅然前行 2024-07-30 12:54:53

我假设您的通道已同步

假设您的步骤 3 SOAP 发送方目标称为 SOAPDestination,那么在步骤 4 中,您可以执行以下操作:

变量目的地=
responseMap.get('SOAPDestination');

var 响应消息 =
目的地.getMessage();

//打开数据库连接

// 写入响应消息
您存储回的主键
步骤2

//关闭数据库连接

I assume your channels are synchronized

Assume your step 3 SOAP sender destination is called SOAPDestination, then in step 4, you can do this:

var destination =
responseMap.get('SOAPDestination');

var responseMessage =
destination.getMessage();

// open db connection

// write responseMessage along with
the primary key you stored back in
step 2

// close db connection

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