WCF Custom Receive Channel for BizTalk: Message Disappears

I struggled for a long time trying to construct a WCF custom channel for receiving messages into BizTalk. My channel returned a message, but the message disappeared without a trace in BizTalk. This blogpost gave me the clue I needed. The To SOAP header must be set to the same URI as specified in the receive location. Doing this is very simple:

message.Headers.To = uri;

(The local variable uri is set in the ChannelListener constructor from BindingContext.ListenUriBaseAddress and ListenUriRelativeAddress.)


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s