How can I use Dynamic Ports using various WCF adapters

Just asthis postby "Jon Fancey" explains how to do Dynamic Routing with SOAP adapter.

Is it possible to do Dynamic Routing using various WCF Adapters shipped with BizTalk Server 2006 R2.

I am setting this in the expression box

"MyDynamicWCFPort(Microsoft.XLANGs.BaseTypes.Address)="WCF-WSHttp://localhost:1343/DynamicWCFservice.WCF/Service.svc";

I am also setting some properties.

But I am getting the following errror:

"The Messaging Engine could not send the message to the dynamic send port. The outbound transport could not be resolved because a matching transport protocol prefix could not be derived from the URL "WCF-WSHttp://localhost:1343/DynamicWCFservice.WCF/Service.svc".

"

[1652 byte] By [AmitRohilla] at [2008-1-7]
# 1

Hi Amit,

Could you check the prefix of WCF Adapters, which can be found in the "bts_adapter" table of BizTalk management database?

Thanks,

Saravana Kumar

SaravanaKumar_1977 at 2007-10-2 > top of Msdn Tech,BizTalk Server,BizTalk R2 General...
# 2

Hi Saravan,

I checked two of the tables in BizTalkMgmtDb

  1. dbo.adm_Adapter
  2. dbo.adm_AdapterAlias

There were AliasValue for almost all of the adapters except

  1. WCF-BasicHttp
  2. WCF-Custom
  3. WCF-CustomIsolated
  4. WCF-WSHttp

Also from another reply from "Karahan Celikel - MSFT in BizTalk R2 Adapters and Adapter Pack" wrote:

"

PortOut(Microsoft.XLANGs.BaseTypes.Address) = "http://localhost:1343/DynamicWCFservice.WCF/Service.svc";

PortOut(Microsoft.XLANGs.BaseTypes.TransportType) = "WCF-WSHttp";
"

But I was not able to find TransportType

Any thoughts,

Amit Rohilla

AmitRohilla at 2007-10-2 > top of Msdn Tech,BizTalk Server,BizTalk R2 General...
# 3

If you're on Beta (B2 I think) you can do this by setting:

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

On the RC (to TAP customers) and RTM builds it changed to what Karahan described, set the XLANGs.BaseTypes.TransportType on the Port itself.

Hope this helps,

David Stucki

DavidStucki[MS] at 2007-10-2 > top of Msdn Tech,BizTalk Server,BizTalk R2 General...