Mirth:在同一通道中的目的地之间共享 SOAP 响应
考虑这样一种场景:Mirth 频道具有一个或多个目的地。 在此场景中,有 4 个目的地。
该通道的源类型是 LLP Listener,传入数据类型为 HL7 v2.x。
该通道的目标如下:
- 文件写入器 - 将消息写入磁盘。 实际上这只是为了开发目的。
- Javascript Writer - 将消息写入数据库。 获取主键。 将该键放在未来目的地的 ChannelMap 上。
- SOAP 发送器 - 调用 Web 服务并接收响应。 通话顺利进行。
- 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:
- File Writer - Write the message to disk. Really this is just for development purposes.
- Javascript Writer - Write the message to DB. Get a primary key. Put that key on the ChannelMap for future Destinations.
- SOAP Sender - Call a web service and receive a response. The call runs smoothly.
- 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我假设您的通道已同步
假设您的步骤 3 SOAP 发送方目标称为 SOAPDestination,那么在步骤 4 中,您可以执行以下操作:
I assume your channels are synchronized
Assume your step 3 SOAP sender destination is called SOAPDestination, then in step 4, you can do this: