有什么方法可以以编程方式设置 BizTalk 消息上下文属性吗?
有没有办法在消息分配形状中设置 BTS.RetryCount
或 WCF.Action
?
我有一个用于动态消息发送的特殊编排,它的参数是 Message
和 ServiceName
并且它有一个动态端口,可以使用 UDDI 服务轻松配置。在该编排中我不能做的一件事是我无法为消息设置 WCF.Action
,我应该创建一个新消息,因为 BizTalk 中禁止在构造形状之外的任何位置修改消息。所以每次我想发送消息时都设置这个属性对我来说非常不方便,我以为我可以完成所有的 UDDI 和 UDDI 操作。将内容路由到一个专用的编排中,稍后我可以使用参数进行调用。
Is there any way to set BTS.RetryCount
or WCF.Action
not in a Message Assignment Shape?
I have a special orchestration for dynamic message sending, its parameters are Message
and ServiceName
and it has a dynamic port which is easily configured with UDDI service. The thing I can't do in that orchestrations is I can't set WCF.Action
for a message, I should create a new one because it's prohibited in BizTalk to modify a message anywhere outside a Construct shape. So it's very inconvenient for me to set this property every time I want to send a message, I thought I would be able to do all the UDDI & routing stuff in a one dedicated orchestration which I later can just call with parameters.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您不能修改管道组件中的这些属性吗?然后,您可以在编排内执行管道。
更新
我的意思是您可以创建一个管道组件来设置消息通过时的上下文属性。然后,您可以创建一个包含此组件的管道,并通过在其中传递消息来在编排中执行它。然后,该消息将设置这些上下文属性。
Can you not modify those properties in a pipeline component? You can then execute the pipeline inside the orchestration.
UPDATE
What I mean is you can create a pipeline component to set the context properties of the message as it passes through. Then you can create a pipeline which includes this component and execute it inside your orchestration by passing a message through it. This message will then have those context properties set.
您是否无法在分配形状中创建与您需要修改的消息类型相同的新消息
并复制所有属性
,然后设置您需要设置的属性。您还可以通过这种方式设置 WCF 操作。
然后你发送这条新消息。
Could you not create a new message in an assignment shape, of the same type as the message you need to modify
and copy over all the properties
and then set the properties you need to set. You can also set the WCF action that way.
And then you send this new message out.