简体   繁体   English

BizTalk 动态 WCF-WSHttp 发送端口恢复到 Http 适配器

[英]BizTalk Dynamic WCF-WSHttp Send Port reverting to Http Adapter

I'm trying to send a message to the WCF-WSHttp adapter with a dynamic send port from an orchestration, but BizTalk seems to always be reverting back to the HTTP Adapter.我正在尝试使用来自业务流程的动态发送端口向 WCF-WSHttp 适配器发送消息,但 BizTalk 似乎总是恢复到 HTTP 适配器。

According to the docs that I've been able to find, I should just need to set the transport type from my expression shape to get BizTalk to use the WCF-WSHttp adapter, and I AM, but it still seems to be reverting.根据我找到的文档,我应该只需要从我的表达式形状中设置传输类型,就可以让 BizTalk 使用 WCF-WSHttp 适配器,我是,但它似乎仍在恢复。 Below is an example of my expression shape that's setting the properties (as you can see, I've tried both Microsoft.XLANGs.BaseTypes.TransportType and BTS.OutboundTransportType):下面是我设置属性的表达式形状的示例(如您所见,我已尝试过 Microsoft.XLANGs.BaseTypes.TransportType 和 BTS.OutboundTransportType):

Body(BTS.OutboundTransportType) = "WCF-WSHttp";

SendMessagePort(Microsoft.XLANGs.BaseTypes.Address) =
System.String.Format("{0}/Accept{1}", "http://myserver/myservice/
myservice.svc/Accept{0}", messageInfo.MessageType);
SendMessagePort(Microsoft.XLANGs.BaseTypes.TransportType) = "WCF-
WSHttp";

I ended up resolving my issue, but am still unsure of the reasoning for the behavior I saw.我最终解决了我的问题,但仍然不确定我看到的行为的原因。

The Expression shape mentioned in the question was located inside of an Atomic Scope.问题中提到的表达式形状位于 Atomic Scope 内部。 Once the Orchestration exited the scope containing the Expression shape, the Transport Type was reset back to its original value.编排退出包含表达式形状的 scope 后,传输类型将重置回其原始值。 Moving the Expression out of the atomic scope resolved the issue, in that the TransportType was set correctly.将表达式移出原子 scope 解决了该问题,因为 TransportType 设置正确。

Probably are Craig:-)可能是克雷格:-)

When using a dynamic send port, BizTalk uses the "scheme" part of the url to decide which adapter to use.使用动态发送端口时,BizTalk 使用 url 的“方案”部分来决定使用哪个适配器。

When your url starts with "Http://" or "Https://" BizTalk would always use the HTTP adapter.当您的 url 以“Http://”或“Https://”开头时,BizTalk 将始终使用 HTTP 适配器。 Similarly url's begining with ftp:// will use the FTP adapter.同样,以 ftp:// 开头的 url 将使用 FTP 适配器。 Same works for custom adapaters as well - when you install the adapter's configuration you register the moniker to use;同样适用于自定义适配器 - 当您安装适配器的配置时,您注册要使用的名字对象; for example - the open source Scheduled Task adapter uses schedule:// (I believe).例如 - 开源计划任务适配器使用 schedule:// (我相信)。

Using dynamic send ports with WCF is slightly more involved than most other adapaters because of the various configuration that's required but you can find detailed explanation here , just scroll down to the "Dynamic Send Ports" section about half way down.由于所需的各种配置,使用 WCF 的动态发送端口比大多数其他适配器稍微多一些,但您可以在此处找到详细说明,只需向下滚动到大约一半的“动态发送端口”部分。

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

相关问题 BizTalk 2010 WCF-WSHttp配置 - BizTalk 2010 WCF-WSHttp config BizTalk WCF-WebHttp的WCF行为扩展不填充日期Http标头的发送端口 - WCF Behavior Extension to BizTalk WCF-WebHttp Send Port not populating Date Http Header 在biztalk中通过https和PUT模式从动态发送端口使用WCF服务 - Consuming WCF service from dynamic send port in biztalk over https and in PUT mode 从发送端口中的Biztalk WCF-WebHttp适配器使用“PUT”方法调用Web服务时出现错误(405)“MethodNotAllowed” - Getting Error (405) “MethodNotAllowed” when calling a web service with “PUT” method from Biztalk WCF-WebHttp adapter in send port WCF 与 HTTP 在动态端口号 - WCF with HTTP on dynamic port number WCF-自定义Biztalk SQL端口上的动态操作? - Dynamic Actions on a WCF-Custom Biztalk SQL port? Biztalk WCF-WebHttp发送端口具有多个URL参数 - Multiple URL Parameters with Biztalk WCF-WebHttp Send Port BizTalk WCF发送端口错误-无法理解标头'CoordinationContext' - BizTalk WCF Send Port error - The header 'CoordinationContext' was not understood Biztalk WCF 适配器如何从 biztalk 发送空消息正文响应 - Biztalk WCF adapter how to send empty message body response from biztalk 在Biztalk WCF适配器中启用流式传输 - Enable Streaming in Biztalk WCF Adapter
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM