有什么方法可以以编程方式设置 BizTalk 消息上下文属性吗?

发布于 2024-12-21 09:14:38 字数 361 浏览 5 评论 0原文

有没有办法在消息分配形状中设置 BTS.RetryCountWCF.Action

我有一个用于动态消息发送的特殊编排,它的参数是 MessageServiceName 并且它有一个动态端口,可以使用 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 技术交流群。

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

发布评论

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

评论(2

只是我以为 2024-12-28 09:14:38

您不能修改管道组件中的这些属性吗?然后,您可以在编排内执行管道。

更新

我的意思是您可以创建一个管道组件来设置消息通过时的上下文属性。然后,您可以创建一个包含此组件的管道,并通过在其中传递消息来在编排中执行它。然后,该消息将设置这些上下文属性。

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.

如何视而不见 2024-12-28 09:14:38

您是否无法在分配形状中创建与您需要修改的消息类型相同的新消息

NewMessage = OldMessageWithTheDynamicPropertiesSet;

并复制所有属性

NewMessage(*)* = OldMessageWithTheDynamicPropertiesSet(*);

,然后设置您需要设置的属性。您还可以通过这种方式设置 WCF 操作。

NewMessage(WCF.Action)=....
NewMessage(BTS.REtryCount)= 666 

然后你发送这条新消息。

Could you not create a new message in an assignment shape, of the same type as the message you need to modify

NewMessage = OldMessageWithTheDynamicPropertiesSet;

and copy over all the properties

NewMessage(*)* = OldMessageWithTheDynamicPropertiesSet(*);

and then set the properties you need to set. You can also set the WCF action that way.

NewMessage(WCF.Action)=....
NewMessage(BTS.REtryCount)= 666 

And then you send this new message out.

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