ESBT – Creating Custom Resolvers

The other day I had the new to create a custom resolver for an ESBT orchestration itinerary service.  It proved to be a pretty straight forward bit of work.

Create a new class library project then add references to the following,

  • Microsoft.BizTalk.Pipeline
  • Microsoft.Practices.ESB.Resolver
  • Microsoft.XLANGs.BaseTypes

Now implement the IResolver interface as below.

Note the call to the ResolveEnrich method in the highlighted code above.  As seen below the ResolveEnrich method is going to parse our custom resolver.

The EnrichProperties object you see in the above code block is just a property class.

From the ResolveEnrich method the last thing we do is to populate the resolver dictionary.

Now we need to register our new resolver in either the esb.config file or database.

<resolver name=ENRICH type=<assembly name>.ResolveProvider, <assembly name>, Version=, Culture=neutral, PublicKeyToken=6e80c3651f84a8b2/> 

Your itinerary should have resolvers formatted something like this,

<Resolvers serviceId=”<itinerarySeviceName>0″><![CDATA[ENRICH:\\RequestTransformName=RequestMap.xsl;ResponseTransformName=Enrich.xsl;]]…

From an orchestration expression shape we interact with the resolver

That’s it, too easy…

This entry was posted in BizTalk Server. Bookmark the permalink.

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 )

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