Monday, 12 October 2015

BizTalk Map incoming Message to Single Output field - XSLT template

BizTalk Transformation : Map Incoming XML Message  to Single output field as string

To map incoming message to single out field, we will use xstl template in map.

1. Drag and drop Custom Scripting Functoid on your Map
2.Select  Inline XSLT Call Template.
3. Copy and Paste the following xslt code in "Inline Script" Section

<xsl:template name="called-template">
  <xsl:param name="param1" />
  <xsl:element name="DestinationField" namespace="http://myschema.namespace.com/">
    <xsl:text disable-output-escaping="yes">&lt;![CDATA[</xsl:text>
    <xsl:call-template name="identity" />
    <xsl:text disable-output-escaping="yes">]]&gt;</xsl:text>
  </xsl:element>
</xsl:template>

<xsl:template name="identity" match="@*|node()">
  <xsl:copy>
    <xsl:apply-templates select="@*|node()" />
  </xsl:copy>
</xsl:template>
4. Map your root node name of source schema and destination field to this scripting Functoid.
5. Validate and Test your Map.

Friday, 17 April 2015

BizTalk : Design Patterns in Orchestrations

Design Patterns in Orchestrations : BizTalk


A good article on BizTalk design pattern can be found on msdn link @  https://msdn.microsoft.com/en-us/library/aa561967.aspx


Source code related this article can be found in your local BizTalk installation folder
C:\Program Files (x86)\Microsoft BizTalk Server 2010\SDK\Samples

Thursday, 15 January 2015

Optimizing Pipeline Performance - Biztalk Pipeline

Optimizing Pipeline Performance - Biztalk Pipeline

A really helpful artical on improving BizTalk Pipeline component performance

http://msdn.microsoft.com/en-us/library/ee377071(v=bts.70).aspx

  1. What to use inside the pipelne component 
  2. Should we use XMLDocument or XMLReader in the pipeline component.
  3. working with Virtual Stream.
  4. Using AddResourceTracker 

pContext.ResourceTracker.AddResource(messageData);

http://msdn.microsoft.com/en-us/library/ee377071(v=bts.70).aspx