简体   繁体   English

BizTalk-如何订阅双向发送端口响应,但从请求访问数据

[英]BizTalk - how to subscribe to two-way send ports response, but access data from the request

I need to submit something to a web service, then I need to send something over MLLP using the HL7 MLLP adaptor and the message needs to contain something returned by the service, and something that was sent to the service, and I'd like to use a pure messaging solution if possible, not an orchestration. 我需要向Web服务提交某些内容,然后需要使用HL7 MLLP适配器通过MLLP发送一些内容,并且该消息需要包含该服务返回的内容以及已发送给该服务的内容,并且我想如果可能,请使用纯消息传递解决方案,而不是业务流程。

So basically I have two send ports. 所以基本上我有两个发送端口。 The second needs to subscribe to the response of the first, which means that it's message will the the first send ports response. 第二个需要订阅第一个的响应,这意味着它的消息将是第一个发送端口的响应。

The trick is I also need some data from the first send ports request message. 诀窍是我还需要从第一个发送端口请求消息中获取一些数据。 Is it possible to get that somehow? 有可能以某种方式得到它吗?

The correct way to do this is use an Orchestration. 正确的方法是使用业务流程。

There is nothing wrong with using an Orchestration, and Orchestrations exist exactly for this purpose. 使用业务流程没有错,业务流程正是为此目的而存在的。

If someone is telling you Orchestrations are not right or you've read that somewhere...they're wrong. 如果有人告诉您编排不正确,或者您在某处读到了……那是错误的。 That's it. 而已。 If you're having problems using Orchestrations...telling you straight up, you're doing it wrong. 如果您在使用Orchestrations时遇到问题...直接告诉您,则说明您做错了。

In an Orchestration, you can probably use a Map to merge the content into the service response. 在业务流程中,您可能可以使用Map将内容合并到服务响应中。 Exactly the use case it's meant for. 确实是用例。

Here's a started Suspend/Resume pattern: BizTalk Server: Suspend and Resume an Orchestration on Two Way Port Error 这是一个开始的挂起/继续模式: BizTalk Server:在双向端口错误上挂起并继续业务流程

You have no control of this in a Messaging only solution. 在“仅消息传递”解决方案中,您无法对此进行控制。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM