BRE Pipeline Framework Example – Promote Distinguished Properties

Great find from Mark Brimble.

Connected Pawns

While exposing a REST service from BizTalk I wanted to quickly change some distinguished properties to promoted properties . Rather than roll my own pipeline component I decided to to try out the BRE Pipeline Component Framework that has been released on Codeplex by one of my mates,  Johann Cooper. Johann has written has own walkthrough but i wanted to record of my experience of using this framework.

The Problem

URL parameters only appear as distinguished properties on the message that arrives in the message box for further processing if you expose a REST service from BizTalk. For example consider the following HTTP methods on a WCF-WebHTTP receive location;

<Operation Name=”CreateAnimal” Method =”POST” Url=”/Animals” />
<Operation Name=”GetAllAnimals” Method =”GET” Url=”/Animals/?limit={limit}&amp;history={history}&amp;fromRecords={fromRecords}&amp;toRecords={toRecords}&amp;sessionId={sessionID}&amp;count={count}” />
<Operation Name=”GetAnAnimal” Method =”GET” Url=”/Animals/{idType}/{id}?limit={limit}&amp;history={history}&amp;fromRecords={fromRecords}&amp;toRecords={toRecords}&amp;sessionId={sessionID}&amp;count={count}” /></BtsHttpUrlMapping>

The URL mapping required for the GET methods is;

image             image

The Rcv_AnimalData contained a custom pipeline component that adds a XML…

View original post 747 more words


Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s