Adding Message Part dynamically in Receive Pipeline
Posted
by Sean
on Stack Overflow
See other posts from Stack Overflow
or by Sean
Published on 2010-06-10T23:20:18Z
Indexed on
2010/06/10
23:22 UTC
Read the original article
Hit count: 280
BizTalk
|custom-pipeline-component
Hello, I tried to create a custom pipeline component that takes a message and attaches additional another part dynamically (during Disassemble stage). I haven't set up a send port, so that I can see what BizTalk is trying to process. I can see only the body part, the additional part doesn't show up. This is the code I used:
var part = pc.GetMessageFactory().CreateMessagePart();
part.Data = new MemoryStream(new byte[] {1, 2, 3, 4, 5});
inmsg.AddPart("another_part", part, false);
Thank you.
© Stack Overflow or respective owner