Mombu the Microsoft Forum sponsored links

Go Back   Mombu the Microsoft Forum > Microsoft > BIZTALKSERVER (TECHNET) > Receive Pipeline Component Stream
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 21st July 03:31
jgaska httpwwwioniasolutionscom
External User
 
Posts: 1
Default Receive Pipeline Component Stream



I was forced to consume the stream within a receive pipeline component to
access a promoted field, that being said what is the easiest and most
effecient way to return the stream pointer to where it was when it came in.
I am not changing any data or fields within the message, I simply want to
return what was sent in.

I am using the pipeline component after a flatfile disassemblingthen
accessing the promoted field, which I specify in the component properties.
Pretty straight foward but wanted to get people's oppinion with resetting a
non seekable stream hopefully without cloning the whole object.

Sample:
XmlTextReader xr = new XmlTextReader(inmsg.BodyPart.Data);
IBaseMessageContext context = inmsg.Context;
object obj = context.Read(_PromotedPropertyName, _PromotedNamespaceName);
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666