Category Archives: BizTalk Server

BizTalk XPATHReader

Code snippet for using the XPATHReader in Microsoft.BizTalk.XPATHReader.dll.  You’ll find this assembly in the GAC on any BizTalk Server installation.  XML below is compatible with the XPATH’s in the PromoteContext method. Add the below code to a pipeline component then … Continue reading

Posted in BizTalk Server | Leave a comment

Streaming Get Message Type

Code snippet for grabbing the message type from an seekable stream.  Tip use the ReadOnlySeekableStream from the Microsoft.BizTalk.Streaming.dll.

Posted in BizTalk Server | Leave a comment

ESB Toolkit Management Portal Resubmit with Itinerary

Edit the MessageViewer.ascx.cs BindGrid method grabbing the itinerary from context and store in an invisible label for later use. Edit the ResubmitMessage method of MessageViewer.ascx.cs. Things to note is reading the itinerary from the label and then just deserializing it … Continue reading

Posted in BizTalk Server | Leave a comment

BizTalk Shrink Log Script

Sample script to get a dev/test env going again if you logs chew up the disk. Set recovery mode to simple of each db to cleanup and then shrink the log and set the reco very mode back to full.

Posted in BizTalk Server | 1 Comment

WCF Service ASP.NET Authorization Manager

Below sample using the System.ServiceModel ServiceAuthorizationManager and UrlAuthorizationModule from System.Web to provide IIS allow/deny authorization to a WCF Service. Add the below class, Register the service behavior in the web.config as below,

Posted in BizTalk Server | Leave a comment

WCF ASP.NET Authorization Manager for BizTalk

ASP.NET style IIS authorizations using allow/deny users config from web.config for a BizTalk generated WCF Service. Plug this service behaviour into the receive location. References System.ServiceModel.dll System.ServiceModel.Web.dll System.Web.dll Register the WCF Behavior Extension in the Framework and Framework64 machine.config.

Posted in BizTalk Server | Leave a comment

BizTalk Tip : Number of Orchestrations Tracking Data Query

Quick query to give number of orchestration instances over the last week. Grouped by orchestration name.

Posted in BizTalk Server, SQL Server | Leave a comment