<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Quoc D. Bui's Blog</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/quocbui/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/quocbui/feed.xml</link>
    <description>Business Platform Division, Customer Advisory (Technology) Team</description>
    <lastBuildDate>Wed, 17 Apr 2019 03:50:39 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>BizTalk Server–distinguished field</title>
      <link>https://docs.microsoft.com/archive/blogs/quocbui/biztalk-serverdistinguished-field</link>
      <pubDate>Tue, 30 Nov 2010 04:04:52 GMT</pubDate>
      <dc:creator><![CDATA[Quoc Bui]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/quocbui/2010/11/30/biztalk-serverdistinguished-field/</guid>
      <description><![CDATA[The distinguished field is used to expose the value of a node of a message instance to BizTalk...]]></description>
      <content:encoded><![CDATA[<p>The distinguished field is used to expose the value of a node of a message instance to BizTalk Server system. However, if there is a record that has a parent node that has multiple instances, then that record won’t be able to be highlighted as distinguished. An error message of “<font color="#ff0000">The node can occur potentially multiple times in the instance. Only nodes which are guaranteed to be unique can be promoted</font>.“ will appear.</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/30/36/metablogapi/1425.image_2A9B9C65.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-30-36-metablogapi/1425.image_5F00_2A9B9C65.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/30/36/metablogapi/6215.image_thumb_5B01FB0E.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-30-36-metablogapi/6215.image_5F00_thumb_5F00_5B01FB0E.png" width="547" height="438" /></a></p>  <p>This constraint was purposely designed to remove any ambiguity in accessing the data. However, despite that, should the developer still desire to use the node, then the record’s XPath query can still be used. The article <a title="Using XPaths in Message Assignments" href="https://msdn.microsoft.com/en-us/library/aa561906.aspx" target="_blank">Using XPaths in Message Assignments</a> describes how XPath queries can be leveraged in BizTalk Server.</p>  <div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:dde41801-e950-4954-bf0d-3afcdd183925" class="wlWriterEditableSmartContent">Technorati Tags: <a href="https://technorati.com/tags/BizTalk+Server" rel="tag">BizTalk Server</a>,<a href="https://technorati.com/tags/Distinguished" rel="tag">Distinguished</a>,<a href="https://technorati.com/tags/fields" rel="tag">fields</a>,<a href="https://technorati.com/tags/XPath" rel="tag">XPath</a>,<a href="https://technorati.com/tags/queries" rel="tag">queries</a></div>]]></content:encoded>
    </item>
    <item>
      <title>BizTalk Patterns–part 2</title>
      <link>https://docs.microsoft.com/archive/blogs/quocbui/biztalk-patternspart-2</link>
      <pubDate>Thu, 25 Nov 2010 17:44:09 GMT</pubDate>
      <dc:creator><![CDATA[Quoc Bui]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/quocbui/2010/11/25/biztalk-patternspart-2/</guid>
      <description><![CDATA[I recently posted another common design pattern. It is called the Sync-Async pattern. This pattern...]]></description>
      <content:encoded><![CDATA[<p>I recently posted another common design pattern. It is called the Sync-Async pattern. This pattern consists of a client making a request to a server service for information, whereby the client will provide an endpoint for the server to send that information to, in an asynchronous response. However, the client also requires an immediate technical acknowledgement from the server service, within the same synchronous connection that the client has established, to be assured that the request has been well received. An example of this scenario is <a href="https://www.rosettanet.org/dnn_rose/DMX/tabid/2979/DMXModule/624/Command/Core_ViewDetails/Default.aspx?EntryId=5622">RosettaNet</a> – where a client initiates a PIP3A4 Managed Purchase Order request, and the server sends back a PIP3A6 order status update (Distribute Order Status) some time later.</p>  <p>The post can be found here - <a title="https://blogs.msdn.com/b/appfabriccat/archive/2010/10/16/biztalk-patterns-part-2-sync-async.aspx" href="https://blogs.msdn.com/b/appfabriccat/archive/2010/10/16/biztalk-patterns-part-2-sync-async.aspx">https://blogs.msdn.com/b/appfabriccat/archive/2010/10/16/biztalk-patterns-part-2-sync-async.aspx</a>&#160;</p>  <div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:c6db25af-a813-4e93-a16d-135d9ce99145" class="wlWriterEditableSmartContent">Technorati Tags: <a href="https://technorati.com/tags/BizTalk+Server" rel="tag">BizTalk Server</a>,<a href="https://technorati.com/tags/Asynchronous" rel="tag">Asynchronous</a>,<a href="https://technorati.com/tags/Synchronous" rel="tag">Synchronous</a>,<a href="https://technorati.com/tags/Correlation" rel="tag">Correlation</a>,<a href="https://technorati.com/tags/BizTalk" rel="tag">BizTalk</a>,<a href="https://technorati.com/tags/Best+Practices" rel="tag">Best Practices</a>,<a href="https://technorati.com/tags/WCF" rel="tag">WCF</a>,<a href="https://technorati.com/tags/Reference" rel="tag">Reference</a></div>]]></content:encoded>
    </item>
    <item>
      <title>BizTalk Patterns</title>
      <link>https://docs.microsoft.com/archive/blogs/quocbui/biztalk-patterns</link>
      <pubDate>Wed, 29 Sep 2010 19:05:26 GMT</pubDate>
      <dc:creator><![CDATA[Quoc Bui]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/quocbui/2010/09/29/biztalk-patterns/</guid>
      <description><![CDATA[I recently presented at the ACSUG September Meeting: BizTalk Solution Patterns with Quoc Bui from...]]></description>
      <content:encoded><![CDATA[<p>I recently presented at the <a href="https://connectedthoughts.wordpress.com/2010/09/06/acsug-september-meeting-biztalk-solution-patterns-with-quoc-bui-from-the-biztalk-customer-advisory-team/">ACSUG September Meeting: BizTalk Solution Patterns with Quoc Bui from the BizTalk Customer Advisory Team</a> in Auckland, New Zealand.The main thrust of the presentation was on BizTalk Patterns. These patterns, and much more, can be obtained on <a href="https://blogs.msdn.com/b/appfabriccat/">Windows Server AppFabric Customer Advisory Team</a> site, where I have entry titled <a href="https://blogs.msdn.com/b/appfabriccat/archive/2010/09/29/biztalk-patterns-part-1.aspx">BizTalk Patterns part 1 – Asynchronous Aggregation</a>&#160; that explains one of the patterns that I communicated in Auckland.</p>  <div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:876e8255-49e2-402a-9d89-3717f0f56093" class="wlWriterEditableSmartContent">Technorati Tags: <a href="https://technorati.com/tags/BizTalk+Server" rel="tag">BizTalk Server</a>,<a href="https://technorati.com/tags/Large+Message" rel="tag">Large Message</a>,<a href="https://technorati.com/tags/De-batch" rel="tag">De-batch</a>,<a href="https://technorati.com/tags/de-batching" rel="tag">de-batching</a>,<a href="https://technorati.com/tags/file+splitting" rel="tag">file splitting</a>,<a href="https://technorati.com/tags/file+split" rel="tag">file split</a>,<a href="https://technorati.com/tags/aggregate" rel="tag">aggregate</a>,<a href="https://technorati.com/tags/aggregation" rel="tag">aggregation</a></div>]]></content:encoded>
    </item>
    <item>
      <title>BizTalk patterns – the parallel shape</title>
      <link>https://docs.microsoft.com/archive/blogs/quocbui/biztalk-patterns-the-parallel-shape</link>
      <pubDate>Fri, 16 Oct 2009 03:56:00 GMT</pubDate>
      <dc:creator><![CDATA[Quoc Bui]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/quocbui/2009/10/16/biztalk-patterns-the-parallel-shape/</guid>
      <description><![CDATA[The parallel shape in BizTalk Server (v2004 to v2009) is widely misinterpreted to be...]]></description>
      <content:encoded><![CDATA[<P align=left>The parallel shape in BizTalk Server (v2004 to v2009) is widely misinterpreted to be multi-threaded.</P>
<TABLE border=0 cellSpacing=0 cellPadding=2 width=512>
<TBODY>
<TR>
<TD vAlign=top width=288><A href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/quocbui/WindowsLiveWriter/Biztalkpatterns_1310C/image_2.png" original-url="https://blogs.msdn.com/blogfiles/quocbui/WindowsLiveWriter/Biztalkpatterns_1310C/image_2.png" mce_href="https://blogs.msdn.com/blogfiles/quocbui/WindowsLiveWriter/Biztalkpatterns_1310C/image_2.png"><IMG style="BORDER-RIGHT-WIDTH: 0px; DISPLAY: inline; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title=image border=0 alt=image src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/quocbui/WindowsLiveWriter/Biztalkpatterns_1310C/image_thumb.png" original-url="https://blogs.msdn.com/blogfiles/quocbui/WindowsLiveWriter/Biztalkpatterns_1310C/image_thumb.png" width=244 height=179 mce_src="https://blogs.msdn.com/blogfiles/quocbui/WindowsLiveWriter/Biztalkpatterns_1310C/image_thumb.png"></A></TD>
<TD vAlign=top width=222>
<P align=left>What the parallel shape does well is that it ensures that all branches complete their execution before the next process takes place. The parallel shape does a context switch on a thread wait (busy waiting, such as waiting for a message to come in from a receive port) between branches.</P></TD></TR>
<TR>
<TD vAlign=top width=288><BR>The reason why the parallel shape is single-threaded, is because the orchestration workflow itself, is single-threaded. However, it is still possible to conduct “multi-threaded” execution within BizTalk Server. <BR><A href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/quocbui/WindowsLiveWriter/Biztalkpatterns_1310C/image_18.png" original-url="https://blogs.msdn.com/blogfiles/quocbui/WindowsLiveWriter/Biztalkpatterns_1310C/image_18.png" mce_href="https://blogs.msdn.com/blogfiles/quocbui/WindowsLiveWriter/Biztalkpatterns_1310C/image_18.png"><IMG style="BORDER-RIGHT-WIDTH: 0px; DISPLAY: inline; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title=image border=0 alt=image src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/quocbui/WindowsLiveWriter/Biztalkpatterns_1310C/image_thumb_8.png" original-url="https://blogs.msdn.com/blogfiles/quocbui/WindowsLiveWriter/Biztalkpatterns_1310C/image_thumb_8.png" width=269 height=311 mce_src="https://blogs.msdn.com/blogfiles/quocbui/WindowsLiveWriter/Biztalkpatterns_1310C/image_thumb_8.png"></A> <BR>&nbsp; </TD>
<TD vAlign=top width=222><A href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/quocbui/WindowsLiveWriter/Biztalkpatterns_1310C/image_6.png" original-url="https://blogs.msdn.com/blogfiles/quocbui/WindowsLiveWriter/Biztalkpatterns_1310C/image_6.png" mce_href="https://blogs.msdn.com/blogfiles/quocbui/WindowsLiveWriter/Biztalkpatterns_1310C/image_6.png"><IMG style="BORDER-RIGHT-WIDTH: 0px; DISPLAY: block; FLOAT: none; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; MARGIN-LEFT: auto; BORDER-LEFT-WIDTH: 0px; MARGIN-RIGHT: auto" title=image border=0 alt=image src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/quocbui/WindowsLiveWriter/Biztalkpatterns_1310C/image_thumb_2.png" original-url="https://blogs.msdn.com/blogfiles/quocbui/WindowsLiveWriter/Biztalkpatterns_1310C/image_thumb_2.png" width=143 height=244 mce_src="https://blogs.msdn.com/blogfiles/quocbui/WindowsLiveWriter/Biztalkpatterns_1310C/image_thumb_2.png"></A><FONT size=1>*Image courtesy of Werner Van Huffel <BR></FONT><BR>A common practice to “multi-thread” the parallel shape is to use the “<A href="https://msdn.microsoft.com/en-us/library/aa559372(BTS.10).aspx" mce_href="https://msdn.microsoft.com/en-us/library/aa559372(BTS.10).aspx">Start Orchestration</A>” shape, which will instantiate a separate orchestration workflow, with its own thread, and resources.<A href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/quocbui/WindowsLiveWriter/Biztalkpatterns_1310C/image_20.png" original-url="https://blogs.msdn.com/blogfiles/quocbui/WindowsLiveWriter/Biztalkpatterns_1310C/image_20.png" mce_href="https://blogs.msdn.com/blogfiles/quocbui/WindowsLiveWriter/Biztalkpatterns_1310C/image_20.png"><IMG style="BORDER-RIGHT-WIDTH: 0px; DISPLAY: block; FLOAT: none; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; MARGIN-LEFT: auto; BORDER-LEFT-WIDTH: 0px; MARGIN-RIGHT: auto" title=image border=0 alt=image src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/quocbui/WindowsLiveWriter/Biztalkpatterns_1310C/image_thumb_9.png" original-url="https://blogs.msdn.com/blogfiles/quocbui/WindowsLiveWriter/Biztalkpatterns_1310C/image_thumb_9.png" width=121 height=60 mce_src="https://blogs.msdn.com/blogfiles/quocbui/WindowsLiveWriter/Biztalkpatterns_1310C/image_thumb_9.png"></A> <BR>Hence, all the logic would reside in the child orchestrations that would be called from the parent orchestration.</TD></TR></TBODY></TABLE>
<P>However – suppose that the number of branches of executions are not known at design time, then the parallel shape would not be suitable to use. A different approach will be required.</P>
<P>A classic example of parallel execution is de-batching a large message file into smaller files, and then aggregating all the results into a single large result. Each subset (small file) represents an independent unit of work that does not rely or relate to other subsets, except that it belongs to the same batch (large message). Eventually each child process (the independent unit of work) will return a result message that will be collected with other results, into a collated response message to be leveraged for further processing.</P>
<P><A href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/quocbui/WindowsLiveWriter/Biztalkpatterns_1310C/image_24.png" original-url="https://blogs.msdn.com/blogfiles/quocbui/WindowsLiveWriter/Biztalkpatterns_1310C/image_24.png" mce_href="https://blogs.msdn.com/blogfiles/quocbui/WindowsLiveWriter/Biztalkpatterns_1310C/image_24.png"><IMG style="BORDER-RIGHT-WIDTH: 0px; DISPLAY: inline; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title=image border=0 alt=image src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/quocbui/WindowsLiveWriter/Biztalkpatterns_1310C/image_thumb_11.png" original-url="https://blogs.msdn.com/blogfiles/quocbui/WindowsLiveWriter/Biztalkpatterns_1310C/image_thumb_11.png" width=502 height=118 mce_src="https://blogs.msdn.com/blogfiles/quocbui/WindowsLiveWriter/Biztalkpatterns_1310C/image_thumb_11.png"></A> </P>
<TABLE border=0 cellSpacing=0 cellPadding=2 width=498>
<TBODY>
<TR>
<TD vAlign=top width=137><A href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/quocbui/WindowsLiveWriter/Biztalkpatterns_1310C/image_26.png" original-url="https://blogs.msdn.com/blogfiles/quocbui/WindowsLiveWriter/Biztalkpatterns_1310C/image_26.png" mce_href="https://blogs.msdn.com/blogfiles/quocbui/WindowsLiveWriter/Biztalkpatterns_1310C/image_26.png"><IMG style="BORDER-RIGHT-WIDTH: 0px; DISPLAY: inline; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title=image border=0 alt=image src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/quocbui/WindowsLiveWriter/Biztalkpatterns_1310C/image_thumb_12.png" original-url="https://blogs.msdn.com/blogfiles/quocbui/WindowsLiveWriter/Biztalkpatterns_1310C/image_thumb_12.png" width=122 height=188 mce_src="https://blogs.msdn.com/blogfiles/quocbui/WindowsLiveWriter/Biztalkpatterns_1310C/image_thumb_12.png"></A> <BR><FONT size=1>*Image courtesy of Werner Van Huffel</FONT>&nbsp;</TD>
<TD vAlign=top width=359>
<P>0. The initial step consists of de-batching the large message in the receive pipeline into smaller child messages. </P>
<P>1. The receive pipeline publishes the child messages to the message box database.</P>
<P>2. Child business process orchestrations (or 2-way send ports) subscribe against the child messages to accommodate business requirements. Note that individual business processing does not explicitly require orchestrations.</P>
<P>3. Responses from Line-of-Business (LOB) applications are submitted back to the child orchestrations (or to 2-way send ports).</P>
<P>4. These responses are aggregated back by an aggregator (can be accommodated by an orchestration as depicted, or by a SQL stored procedure).</P>
<P>5. The aggregator will submit the final aggregated result.</P>
<P>6. The next process (which may or may not use the final aggregated result) will proceed.</P></TD></TR></TBODY></TABLE>
<P>De-batching is conducted within the receive pipeline. To learn how to split a large file into smaller files, please refer to the <A href="https://msdn.microsoft.com/en-us/biztalk/bb608375.aspx" mce_href="https://msdn.microsoft.com/en-us/biztalk/bb608375.aspx">BizTalk Server 2006 samples</A> – <A href="https://go.microsoft.com/fwlink/?LinkId=99739" mce_href="https://go.microsoft.com/fwlink/?LinkId=99739">Split File Pipeline</A> example. Even though the sample is based on BizTalk Server 2006 (R1) – it remains relevant for BizTalk Server 2006 R2, and BizTalk Server 2009.</P>
<UL>
<LI>Note: There are several examples on how to de-batch messages, such as de-batching from SQL Server, as communicated by <A href="https://blogs.msdn.com/rgarg" mce_href="https://blogs.msdn.com/rgarg">Rahul Garg’s blog</A> on <A href="https://blogs.msdn.com/rgarg/archive/2007/11/12/biztalk-sql-receive-adapter-debatching-messages.aspx" mce_href="https://blogs.msdn.com/rgarg/archive/2007/11/12/biztalk-sql-receive-adapter-debatching-messages.aspx">de-batching</A>. </LI></UL>
<P>The next step is a bit trickier. The smaller messages need to be correlated somehow, so that their results can be aggregated into a singular large response message (for steps 4 and 5 to be successful). Correlation is typically done in orchestration, but the proposed method here avoids the use of orchestration altogether. In order to have correlation in messaging, please refer to <A href="https://blogs.msdn.com/paolos/default.aspx" mce_href="https://blogs.msdn.com/paolos/default.aspx">Paolo Salvatori’s blog</A> on <A href="https://blogs.msdn.com/paolos/archive/2008/07/21/msdn-blogs.aspx" mce_href="https://blogs.msdn.com/paolos/archive/2008/07/21/msdn-blogs.aspx">Synchronous To Asynchronous Flows Without An Orchestration</A>.</P>
<P>In it, he describes a method that requires a 2-way receive port (such as a web service) , because he leverages a couple of message context properties that are unique to a 2-way receive. These are</P>
<UL>
<LI>ReqRespTransmitPipelineID </LI>
<LI>IsRequestResponse </LI></UL>
<P>In addition to</P>
<UL>
<LI>EpmRRCorrelationToken </LI>
<LI>Correlation Token </LI></UL>
<P>It is strongly suggested to learn how correlation can be achieved in messaging (without orchestration) as described by Paolo Salvatori before proceeding to the next step.</P>
<P>Once that method has been mastered, a slight adjustment is needed. Since the de-batching method is leveraged in the pipeline, correlation in messaging can be achieved with a 1-way receive port (such as picking up the large message from a file directory), by using message context properties that are unique to the de-batch method.</P>
<P>These are</P>
<UL>
<LI>InterchangeID </LI>
<LI>InterchangeSequenceNumber </LI>
<LI>LastInterchangeMessage </LI></UL>
<P>Each child message (which is now in the messagebox database) should instantiate a business process (either with an orchestration workflow or a 2-way send port) that will eventually receive a result message.</P>
<P>Finally an aggregator is required to collect and collate the results from the child business processes. This aggregator can be an orchestration, or the preferred way would be from a SQL stored procedure.</P>
<P align=center><IMG style="BORDER-RIGHT-WIDTH: 0px; DISPLAY: block; FLOAT: none; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; MARGIN-LEFT: auto; BORDER-LEFT-WIDTH: 0px; MARGIN-RIGHT: auto" title=image border=0 alt=image src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/quocbui/WindowsLiveWriter/Biztalkpatterns_1310C/image_thumb_13.png" original-url="https://blogs.msdn.com/blogfiles/quocbui/WindowsLiveWriter/Biztalkpatterns_1310C/image_thumb_13.png" width=473 height=192 mce_src="https://blogs.msdn.com/blogfiles/quocbui/WindowsLiveWriter/Biztalkpatterns_1310C/image_thumb_13.png">&nbsp;<FONT size=1>*Image courtesy of Paolo Salvatori</FONT></P>
<UL>
<LI>A message is received by a FILE Receive Port </LI>
<LI>The message is routed to a SQL Send Port where the original message is wrapped into a sort of envelope by a map which uses a custom XSLT. The outbound message is an Updategram which calls a stored procedure to insert the message into the table. </LI>
<LI>A SQL receive port calls a stored procedure to retrieve the records of a certain type from the custom table. This operation generates a single document. </LI>
<LI>This document is routed to a File Send Port where the message is eventually transformed into another format. </LI></UL>
<P>This method was also communicated in <A href="https://geekswithblogs.net/asmith/archive/2005/06/06/42281.aspx" mce_href="https://geekswithblogs.net/asmith/archive/2005/06/06/42281.aspx">https://geekswithblogs.net/asmith/archive/2005/06/06/42281.aspx</A></P>
<P>Note that the XSLT can be eventually replaced by a custom pipeline component or directly by an envelope (in this case the send pipeline needs to contain the Xml Assembler component). </P>
<TABLE border=0 cellSpacing=0 cellPadding=2 width=564>
<TBODY>
<TR>
<TD vAlign=top width=352><BR>Sample code is provided courtesy of Ji Young Lee, of Microsoft (South) Korea. Uncompress the ZIP file with the directory structure intact on the C:\ root directory (i.e.:<STRONG> c:\QuocProj</STRONG>). </TD>
<TD vAlign=top width=210>
<P><FONT size=1></FONT>
<CENTER><IFRAME style="PADDING-BOTTOM: 0px; BACKGROUND-COLOR: #fcfcfc; PADDING-LEFT: 0px; WIDTH: 98px; PADDING-RIGHT: 0px; HEIGHT: 115px; PADDING-TOP: 0px" title=Preview marginHeight=0 src="https://cid-742ca4b5187233f7.skydrive.live.com/embedicon.aspx/BlogFiles/QuocProj.zip" frameBorder=0 marginWidth=0 scrolling=no mce_src="https://cid-742ca4b5187233f7.skydrive.live.com/embedicon.aspx/BlogFiles/QuocProj.zip"></IFRAME></CENTER>
<P mce_keep="true">&nbsp;</P></TD></TR></TBODY></TABLE>
<P>Please note the standard disclaimer that abdicates any form of responsibility: <BR></P>
<P><FONT size=1>The sample code is the property of Microsoft Corporation ®.</FONT></P>
<P><FONT size=1>THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED&nbsp; OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR&nbsp; FITNESS FOR A PARTICULAR PURPOSE.</FONT></P>
<P><FONT size=1>The sample code is not supported under any Microsoft standard support program or service. These samples are provided AS IS without warranty of any kind. Microsoft further disclaims all implied warranties including, without limitation, any implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the samples and documentation remains with you. In no event shall Microsoft, its authors, or anyone else involved in the creation, production, or delivery of the samples, code, and documentation, be liable for&nbsp; any damages whatsoever (including, without limitation, damages for loss of business profits,&nbsp; business interruption, loss of business information, or other pecuniary loss) arising out of&nbsp; the use of or inability to use the code, samples, or documentation, even if Microsoft has been advised&nbsp; of the possibility of such damages.</FONT></P>
<P>For more information concerning the parallel shape, see “<I>How to Configure the Parallel Actions Shape</I>” topic in the <A href="https://msdn.microsoft.com/en-us/library/aa559632.aspx" mce_href="https://msdn.microsoft.com/en-us/library/aa559632.aspx">BizTalk Server</A> documentation. </P>
<P>Here are some related blogs regarding the parallel shape:</P>
<UL>
<LI><A href="https://www.arquitecturadesoftware.org/blogs/joaomartins/archive/2006/06/06/352.aspx" mce_href="https://www.arquitecturadesoftware.org/blogs/joaomartins/archive/2006/06/06/352.aspx">https://www.arquitecturadesoftware.org/blogs/joaomartins/archive/2006/06/06/352.aspx</A> </LI>
<LI><A href="https://blogs.neudesic.com/blogs/daniel_sepp/archive/2007/09/21/Daniel_Sepp.aspx" mce_href="https://blogs.neudesic.com/blogs/daniel_sepp/archive/2007/09/21/Daniel_Sepp.aspx">https://blogs.neudesic.com/blogs/daniel_sepp/archive/2007/09/21/Daniel_Sepp.aspx</A> </LI>
<LI><A href="https://www.codeproject.com/KB/biztalk/BizTalkParallelBranching.aspx" mce_href="https://www.codeproject.com/KB/biztalk/BizTalkParallelBranching.aspx">https://www.codeproject.com/KB/biztalk/BizTalkParallelBranching.aspx</A> </LI>
<LI><A href="https://www.traceofthought.net/permalink,guid,e2e45c5b-e8f3-4c05-9c60-d6e5e1ec29b3.aspx" mce_href="https://www.traceofthought.net/permalink,guid,e2e45c5b-e8f3-4c05-9c60-d6e5e1ec29b3.aspx">https://www.traceofthought.net/permalink,guid,e2e45c5b-e8f3-4c05-9c60-d6e5e1ec29b3.aspx</A> </LI></UL>
<P mce_keep="true">&nbsp;</P>
<DIV style="PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; DISPLAY: inline; FLOAT: none; PADDING-TOP: 0px" id=scid:0767317B-992E-4b12-91E0-4F059A8CECA8:3fbe64ef-23d3-4608-a1c4-1356e4b07f7c class=wlWriterEditableSmartContent>Technorati Tags: <A href="https://technorati.com/tags/BizTalk+Server" rel=tag mce_href="https://technorati.com/tags/BizTalk+Server">BizTalk Server</A>,<A href="https://technorati.com/tags/parallel" rel=tag mce_href="https://technorati.com/tags/parallel">parallel</A>,<A href="https://technorati.com/tags/de-batching" rel=tag mce_href="https://technorati.com/tags/de-batching">de-batching</A>,<A href="https://technorati.com/tags/aggregate" rel=tag mce_href="https://technorati.com/tags/aggregate">aggregate</A>,<A href="https://technorati.com/tags/aggregator" rel=tag mce_href="https://technorati.com/tags/aggregator">aggregator</A>,<A href="https://technorati.com/tags/debatch" rel=tag mce_href="https://technorati.com/tags/debatch">debatch</A>,<A href="https://technorati.com/tags/large+message+processing" rel=tag mce_href="https://technorati.com/tags/large+message+processing">large message processing</A></DIV>]]></content:encoded>
    </item>
  </channel>
</rss>