<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:series="http://unfoldingneurons.com/"
	>

<channel>
	<title>Linglom&#039;s blog &#187; BizTalk</title>
	<atom:link href="http://www.linglom.com/category/windows/biztalk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linglom.com</link>
	<description>Just another IT weblog</description>
	<lastBuildDate>Thu, 27 May 2010 09:56:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>[Solved] Exception of type &#8216;System.EnterpriseServices.TransactionProxyException&#8217; was thrown</title>
		<link>http://www.linglom.com/2009/06/19/solved-exception-of-type-system-enterpriseservices-transactionproxyexception-was-thrown/</link>
		<comments>http://www.linglom.com/2009/06/19/solved-exception-of-type-system-enterpriseservices-transactionproxyexception-was-thrown/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 06:05:45 +0000</pubDate>
		<dc:creator>linglom</dc:creator>
				<category><![CDATA[BizTalk]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[MSDTC]]></category>

		<guid isPermaLink="false">http://www.linglom.com/?p=752</guid>
		<description><![CDATA[Introduction While you&#8217;re configuring Microsoft BizTalk Server 2006 which has a database server on a remote machine, you may encounter the problem below. The Group feature failed and hence the others which depend on it are also failed. If you click on a red X icon in front of the failed Group feature, you&#8217;ll see [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<div class="KonaBody"><h3>Introduction</h3>
<p>While you&#8217;re configuring Microsoft BizTalk Server 2006 which has a database server on a remote machine, you may encounter the problem below. The <strong>Group</strong> feature failed and hence the others which depend on it are also failed.<br />
<a href="http://www.linglom.com/images/Windows/Administration/BizTalk/Exception-Throw-1/1.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Administration/BizTalk/Exception-Throw-1/_1.png" width="200" height="171" alt="BizTalk Failed Configuration" title="BizTalk Failed Configuration"  /></a></p>
<p><span id="more-752"></span></p>
<p>If you click on a red X icon in front of the failed <strong>Group</strong> feature, you&#8217;ll see the error message:<br />
<strong>Exception of type &#8216;System.EnterpriseServices.TransactionProxyException&#8217; was thrown.</strong><br />
<a href="http://www.linglom.com/images/Windows/Administration/BizTalk/Exception-Throw-1/2.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Administration/BizTalk/Exception-Throw-1/_2.png" width="200" height="41" alt="Exception of type 'System.EnterpriseServices.TransactionProxyException' was thrown" title="Exception of type 'System.EnterpriseServices.TransactionProxyException' was thrown"  /></a></p>
<p>This error indicates that MSDTC isn&#8217;t properly configured on the servers so you have to check if MSDTC has enabled on both BizTalk Server and SQL Server. You should first enable DTC, followed by MSDTC.</p>
<p><!-- Start AdLogger Wrapping Code -->
<?php @include_once("/usr/local/psa/home/vhosts/linglom.com/httpdocs/adlogger/ad_check_include.php"); if ($show_ads == 'y') { ?>

<script type="text/javascript"><!--
google_ad_client = "pub-7765165459812980";
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = "300x250_as";
google_ad_type = "text_image";
//2007-02-17: SquareonBlog
google_ad_channel = "6055254908";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "ce6531";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

<?php } ?>
<!-- End AdLogger Wrapping Code --></p>
<h3>Step-by-step</h3>
<ol>
<li>First, enable network DTC access on BizTalk Server. Open Add/Remove Windows Components by click <strong>Start</strong> -> <strong>Settings</strong> -> <strong>Control Panel</strong> -> <strong>Add or Remove Programs</strong> -> <strong>Add/Remove Windows Components</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Administration/BizTalk/Exception-Throw-1/3.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Administration/BizTalk/Exception-Throw-1/_3.png" width="200" height="145" alt="Add or Remove Programs" title="Add or Remove Programs"  /></a></li>
<li>On <strong>Add/Remove Windows Components</strong> window, select <strong>Application Server</strong> -> click <strong>Details</strong> -> Check <strong>Enable network DTC access</strong> -> Click <strong>OK</strong>. Now DTC has been enabled.<br />
<em><strong>Note:</strong></em> This step may requires Windows Installtion CD.<br />
<a href="http://www.linglom.com/images/Windows/Administration/BizTalk/Exception-Throw-1/4.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Administration/BizTalk/Exception-Throw-1/_4.png" width="200" height="145" alt="Enable network DTC access" title="Enable network DTC access"  /></a></li>
<li>Next, enable MSDTC. Open Component Services by <strong>Start</strong> -> <strong>Setttings</strong> -> <strong>Control Panel</strong> -> <strong>Administrative Tools</strong> -> <strong>Component Services</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Administration/BizTalk/Exception-Throw-1/5.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Administration/BizTalk/Exception-Throw-1/_5.png" width="200" height="168" alt="Open Component Services" title="Open Component Services"  /></a></li>
<li>On <strong>Component Services</strong> window, expand <strong>Component Services</strong> -> <strong>Computers</strong>. You&#8217;ll see <strong>My Computer</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Administration/BizTalk/Exception-Throw-1/6.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Administration/BizTalk/Exception-Throw-1/_6.png" width="200" height="95" alt="My Computer in Component Services" title="My Computer in Component Services"  /></a></li>
<li>Right-click on <strong>My Computers</strong> and select <strong>Properties</strong>.<br />
<a href="http://www.linglom.com/images/Windows/Administration/BizTalk/Exception-Throw-1/7.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Administration/BizTalk/Exception-Throw-1/_7.png" width="200" height="140" alt="Open My Computer Properties in Component Services" title="Open My Computer Properties in Component Services"  /></a></li>
<li>On <strong>My Computer Properties</strong> window, select <strong>MSDTC</strong> tab and click on <strong>Security Configuration</strong> button in <strong>Transaction Configuration</strong> section.<br />
<a href="http://www.linglom.com/images/Windows/Administration/BizTalk/Exception-Throw-1/8.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Administration/BizTalk/Exception-Throw-1/_8.png" width="200" height="231" alt="Open Security Configuration" title="Open Security Configuration"  /></a></li>
<li>On <strong>Security Configuration</strong> window, verify that check boxes are checked as the figure below. Then, click <strong>OK</strong>.
<ul>
<li>In <strong>Security Settings</strong> section, check <strong>network DTC Access</strong>.</li>
</ul>
<ul>
<li>In <strong>Client and Administration</strong> section, check <strong>Allow Remote Clients</strong> and <strong>Allow Remote Administration</strong>.</li>
<li>In <strong>Transaction Manager Communication</strong> section, check <strong>Allow Inbound</strong>, <strong>Allow Outbound</strong> and select <strong>No Authentication Required</strong>.</li>
</ul>
</li>
<li>Check <strong>XA Transactions</strong>.</li>
<p><a href="http://www.linglom.com/images/Windows/Administration/BizTalk/Exception-Throw-1/9.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Administration/BizTalk/Exception-Throw-1/_9.png" width="200" height="195" alt="Enable MSDTC Configurations" title="Enable MSDTC Configurations"  /></a></p>
<li>Click <strong>OK</strong> to restart the MSDTC service.<br />
<a href="http://www.linglom.com/images/Windows/Administration/BizTalk/Exception-Throw-1/10.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Administration/BizTalk/Exception-Throw-1/_10.png" width="200" height="42" alt="Restart MSDTC" title="Restart MSDTC"  /></a></li>
<li>When the service is restarted, click <strong>OK</strong> again. Now you&#8217;ve finished on the BizTalk Server.<br />
<a href="http://www.linglom.com/images/Windows/Administration/BizTalk/Exception-Throw-1/11.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Administration/BizTalk/Exception-Throw-1/_11.png" width="200" height="97" alt="MSDTC is restarted" title="MSDTC is restarted"  /></a></li>
<li>Next, enable MSDTC on the SQL Server by repeat step 3-10 on the SQL Server.</li>
<li>Then, try to re-configure on the BizTalk Server again. Now, it&#8217;s should be success.<br />
<a href="http://www.linglom.com/images/Windows/Administration/BizTalk/Exception-Throw-1/12.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Administration/BizTalk/Exception-Throw-1/_12.png" width="200" height="171" alt="Success Configure BizTalk" title="Success Configure BizTalk"  /></a></li>
</ol>
<h3>Reference</h3>
<ul>
<li><a href="http://msdn.microsoft.com/en-us/library/aa544733.aspx" target="_blank" rel="nofollow">How to Enable MSDTC on the BizTalk Server</a> on Microsoft.com</li>
</ul>
</div>

<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.linglom.com/2009/06/19/solved-exception-of-type-system-enterpriseservices-transactionproxyexception-was-thrown/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Solved] Failed to Create SQL Login for Group On Database Server</title>
		<link>http://www.linglom.com/2009/06/13/solved-failed-to-create-sql-login-for-group-on-database-server/</link>
		<comments>http://www.linglom.com/2009/06/13/solved-failed-to-create-sql-login-for-group-on-database-server/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 14:18:27 +0000</pubDate>
		<dc:creator>linglom</dc:creator>
				<category><![CDATA[BizTalk]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.linglom.com/?p=747</guid>
		<description><![CDATA[Problem You&#8217;re configuring BizTalk Server 2006 which BizTalk databases are located on a remotely server. You may encounter the problem below. On BizTalk Configuration Wizard, Group feature is failed so others that depend on Group will failed, too. And if you double-click on the red X icon in front of the failed Group feature, you&#8217;ll [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<div class="KonaBody"><h3>Problem</h3>
<p>You&#8217;re configuring BizTalk Server 2006 which BizTalk databases are located on a remotely server. You may encounter the problem below.</p>
<p><span id="more-747"></span></p>
<p>On BizTalk Configuration Wizard, <strong>Group</strong> feature is failed so others that depend on Group will failed, too.<br />
<a href="http://www.linglom.com/images/Windows/Administration/BizTalk/Failed-to-Create-SQL-Login/1.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Administration/BizTalk/Failed-to-Create-SQL-Login/_1.png" width="200" height="171" alt="BizTalk Configuration Failed" title="BizTalk Configuration Failed"  /></a></p>
<p>And if you double-click on the red X icon in front of the failed <strong>Group</strong> feature, you&#8217;ll see the error message similar as:<br />
<strong>Failed to create SQL login for BizTalk Administrators Group on database server &#8220;<em>Database Server Name</em>&#8220;.<br />
The DEFAULT_SCHEMA clause cannot be used with a Windows group or with principals mapped to certificates or asymmetric keys.</strong><br />
<a href="http://www.linglom.com/images/Windows/Administration/BizTalk/Failed-to-Create-SQL-Login/2.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Administration/BizTalk/Failed-to-Create-SQL-Login/_2.png" width="200" height="49" alt="Failed to create SQL login for BizTalk Administrators Group" title="Failed to create SQL login for BizTalk Administrators Group"  /></a></p>
<p><!-- Start AdLogger Wrapping Code -->
<?php @include_once("/usr/local/psa/home/vhosts/linglom.com/httpdocs/adlogger/ad_check_include.php"); if ($show_ads == 'y') { ?>

<script type="text/javascript"><!--
google_ad_client = "pub-7765165459812980";
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = "300x250_as";
google_ad_type = "text_image";
//2007-02-17: SquareonBlog
google_ad_channel = "6055254908";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "ce6531";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

<?php } ?>
<!-- End AdLogger Wrapping Code --></p>
<h3>Solution</h3>
<p>The solution is to create local groups on the database server manually, see the step-by-step below.</p>
<ol>
<li>Open Local Users and Groups on the database server. Right-click on <strong>My Computer</strong> -> <strong>Manage</strong> -> expand <strong>System Tools</strong> -> <strong>Local Users and Groups</strong> -> select <strong>Groups</strong>. You&#8217;ll see a list of groups on the server as the figure below.<br />
<a href="http://www.linglom.com/images/Windows/Administration/BizTalk/Failed-to-Create-SQL-Login/3.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Administration/BizTalk/Failed-to-Create-SQL-Login/_3.png" width="200" height="158" alt="Local Groups" title="Local Groups"  /></a></li>
<li>Create the following groups as figure below. Right-click on <strong>Groups</strong> -> select <strong>New Group</strong> -> type the group name.
<ul>
<li>BizTalk Application Users</li>
<li>BizTalk Isolated Host Users</li>
<li>BizTalk Server Administrators</li>
<li>BizTalk Server Operators</li>
<li>SSO Administrators</li>
<li>SSO Affiliate Administrators</li>
</ul>
<p><a href="http://www.linglom.com/images/Windows/Administration/BizTalk/Failed-to-Create-SQL-Login/4.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Administration/BizTalk/Failed-to-Create-SQL-Login/_4.png" width="200" height="181" alt="Create BizTalk Groups" title="Create BizTalk Groups"  /></a></li>
<li>Re-configure Microsoft BizTalk again and the error is gone.<br />
<a href="http://www.linglom.com/images/Windows/Administration/BizTalk/Failed-to-Create-SQL-Login/5.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Administration/BizTalk/Failed-to-Create-SQL-Login/_5.png" width="200" height="171" alt="BizTalk Configuration Success" title="BizTalk Configuration Success"  /></a></li>
</ol>
</div>

<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.linglom.com/2009/06/13/solved-failed-to-create-sql-login-for-group-on-database-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Biztalk Macros on FILE Send Adapter</title>
		<link>http://www.linglom.com/2008/06/08/biztalk-macros-on-file-send-adapter/</link>
		<comments>http://www.linglom.com/2008/06/08/biztalk-macros-on-file-send-adapter/#comments</comments>
		<pubDate>Sun, 08 Jun 2008 15:38:36 +0000</pubDate>
		<dc:creator>linglom</dc:creator>
				<category><![CDATA[BizTalk]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.linglom.com/?p=93</guid>
		<description><![CDATA[Microsoft BizTalk server provides a predefined set of macros to help in create output filenames on File send handler. If you working with sending output as a file, you&#8217;ll find these macros are really useful that you don&#8217;t have to coding any statement to get these value. These macros can be found on MSDN library [...]


Related posts:<ol><li><a href='http://www.linglom.com/2008/01/22/biztalk-training-5-using-ftp-adapter/' rel='bookmark' title='Permanent Link: BizTalk Training 5 &#8211; using FTP Adapter'>BizTalk Training 5 &#8211; using FTP Adapter</a></li>
<li><a href='http://www.linglom.com/2007/10/30/biztalk-training-1-basic-sendreceive-xml-message/' rel='bookmark' title='Permanent Link: BizTalk Training 1 &#8211; basic send/receive xml message'>BizTalk Training 1 &#8211; basic send/receive xml message</a></li>
<li><a href='http://www.linglom.com/2007/11/07/biztalk-training-2-receivesend-plain-text/' rel='bookmark' title='Permanent Link: BizTalk Training 2 &#8211; receive/send plain text'>BizTalk Training 2 &#8211; receive/send plain text</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="KonaBody"><p>Microsoft BizTalk server provides a predefined set of macros to help in create output filenames on File send handler. If you working with sending output as a file, you&#8217;ll find these macros are really useful that you don&#8217;t have to coding any statement to get these value. These macros can be found on MSDN library but I sometimes find it&#8217;s time consuming to search on MSDN every time I forget the macro. Therefore, I decide to quote the table from MSDN to this post instead.</p>
<p><span id="more-93"></span></p>
<p><!--adsense#Square--></p>
<p>The useful macro is %SourceFileName% which I use most of the time. It returns filename with extension as the same name as when it received. Also, this macro allows me to customized the value dynamically,too. You can see the tutorial at BizTalkTraining3 &#8211; customize filename dynamically. Remember, this macro, it is case-sentitive.</p>
<p>To use macros, simply type macro in File name box.<br />
<em><strong>Note:</strong></em> you can use more than 1 macro in the box.<br />
<a href="http://www.linglom.com/images/Windows/Programming/BizTalkMacros/1.png" target="_blank"><img src="http://www.linglom.com/images/Windows/Programming/BizTalkMacros/_1.png" width="250" height="277" alt="Macro %SourceFileName%" title="Macro %SourceFileName%"  /></a></p>
<h3>Quoting Macros from MSDN</h3>
<blockquote><p>
The following table lists the supported macros and describes how the File send handler substitutes them.</p>
<table width='100%' cellspacing='1px' cellpadding='1px' border='1px'>
<tr>
<th>Macro name</th>
<th>Substitute value</th>
</tr>
<tr>
<td width='50%'>%datetime%</td>
<td width='50%'>Coordinated Universal Time (UTC) date time in the format YYYY-MM-DDThhmmss (for example, 1997-07-12T103508).</td>
</tr>
<tr>
<td width='50%'>%datetime_bts2000%</td>
<td width='50%'>UTC date time in the format YYYYMMDDhhmmsss, where sss means seconds and milliseconds (for example, 199707121035234 means 1997/07/12, 10:35:23 and 400 milliseconds).</td>
</tr>
<tr>
<td width='50%'>%datetime.tz%</td>
<td width='50%'>Local date time plus time zone from GMT in the format YYYY-MM-DDThhmmssTZD, (for example, 1997-07-12T103508+800).</td>
</tr>
<tr>
<td width='50%'>%DestinationParty%</td>
<td width='50%'>Name of the destination party. The value comes from the message context property BTS.DestinationParty.</td>
</tr>
<tr>
<td width='50%'>%DestinationPartyQualifier%</td>
<td width='50%'>Qualifier of the destination party. The value comes from the message context property BTS.DestinationPartyQualifier.</td>
</tr>
<tr>
<td width='50%'>%MessageID%</td>
<td width='50%'>Globally unique identifier (GUID) of the message in BizTalk Server. The value comes directly from the message context property BTS.MessageID.</td>
</tr>
<tr>
<td width='50%'>%SourceFileName%</td>
<td width='50%'>Name of the file from where the File adapter read the message. The file name includes the extension and excludes the file path, for example, Sample.xml. When substituting this property, the File adapter extracts the file name from the absolute file path stored in the FILE.ReceivedFileName context property. If the context property does not have a value, for example, if a message was received on an adapter other than the File adapter, the macro will not be substituted and will remain in the file name as is (for example, C:\Drop\%SourceFileName%).</td>
</tr>
<tr>
<td width='50%'>%SourceParty%</td>
<td width='50%'>Name of the source party from which the File adapter received the message.</td>
</tr>
<tr>
<td width='50%'>%SourcePartyQualifier%</td>
<td width='50%'>Qualifier of the source party from which the File adapter received the message.</td>
</tr>
<tr>
<td width='50%'>%time%</td>
<td width='50%'>UTC time in the format hhmmss.</td>
</tr>
<tr>
<td width='50%'>%time.tz%</td>
<td width='50%'>Local time plus time zone from GMT in the format hhmmssTZD (for example, 124525+530).
</td>
</tr>
</table>
<p>Reference: <a href="http://msdn.microsoft.com/en-us/library/ms962172.aspx" rel="nofollow"  target="_blank">Restrictions on Using Macros in File Names</a>
</p></blockquote>
</div>

<p>Related posts:<ol><li><a href='http://www.linglom.com/2008/01/22/biztalk-training-5-using-ftp-adapter/' rel='bookmark' title='Permanent Link: BizTalk Training 5 &#8211; using FTP Adapter'>BizTalk Training 5 &#8211; using FTP Adapter</a></li>
<li><a href='http://www.linglom.com/2007/10/30/biztalk-training-1-basic-sendreceive-xml-message/' rel='bookmark' title='Permanent Link: BizTalk Training 1 &#8211; basic send/receive xml message'>BizTalk Training 1 &#8211; basic send/receive xml message</a></li>
<li><a href='http://www.linglom.com/2007/11/07/biztalk-training-2-receivesend-plain-text/' rel='bookmark' title='Permanent Link: BizTalk Training 2 &#8211; receive/send plain text'>BizTalk Training 2 &#8211; receive/send plain text</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.linglom.com/2008/06/08/biztalk-macros-on-file-send-adapter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BizTalk Training 5 &#8211; using FTP Adapter</title>
		<link>http://www.linglom.com/2008/01/22/biztalk-training-5-using-ftp-adapter/</link>
		<comments>http://www.linglom.com/2008/01/22/biztalk-training-5-using-ftp-adapter/#comments</comments>
		<pubDate>Tue, 22 Jan 2008 14:02:28 +0000</pubDate>
		<dc:creator>linglom</dc:creator>
				<category><![CDATA[BizTalk]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[training]]></category>

		<guid isPermaLink="false">http://www.linglom.com/2008/01/22/biztalk-training-5-using-ftp-adapter/</guid>
		<description><![CDATA[There are 9 tutorials in this topic. Introduction This topic will show how to use FTP Adapter to read and write files to FTP server. There are 9 tutorials in this training. BizTalk Training 1 &#8211; basic send/receive xml message BizTalk Training 2 &#8211; receive/send plain text BizTalk Training 3 &#8211; customize filename dynamically BizTalk [...]


Related posts:<ol><li><a href='http://www.linglom.com/2007/11/24/biztalk-training-3-customize-filename-dynamically/' rel='bookmark' title='Permanent Link: BizTalk Training 3 &#8211; customize filename dynamically'>BizTalk Training 3 &#8211; customize filename dynamically</a></li>
<li><a href='http://www.linglom.com/2007/11/07/biztalk-training-2-receivesend-plain-text/' rel='bookmark' title='Permanent Link: BizTalk Training 2 &#8211; receive/send plain text'>BizTalk Training 2 &#8211; receive/send plain text</a></li>
<li><a href='http://www.linglom.com/2007/10/30/biztalk-training-1-basic-sendreceive-xml-message/' rel='bookmark' title='Permanent Link: BizTalk Training 1 &#8211; basic send/receive xml message'>BizTalk Training 1 &#8211; basic send/receive xml message</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="KonaBody"><p>There are 9 tutorials in this topic.</p>
<h3>Introduction</h3>
<p>This topic will show how to use FTP Adapter to read and write files to FTP server.</p>
<p><span id="more-70"></span></p>
<p>There are 9 tutorials in this training.</p>
<ol>
<li><a href="http://www.linglom.com/2007/10/30/biztalk-training-1-basic-sendreceive-xml-message/">BizTalk Training 1 &#8211; basic send/receive xml message</a></li>
<li><a href="http://www.linglom.com/2007/11/07/biztalk-training-2-receivesend-plain-text/">BizTalk Training 2 &#8211; receive/send plain text</a></li>
<li><a href="http://www.linglom.com/2007/11/24/biztalk-training-3-customize-filename-dynamically/">BizTalk Training 3 &#8211; customize filename dynamically</a></li>
<li><a href="http://www.linglom.com/2007/12/26/biztalk-training-4-using-functiods-in-map/">BizTalk Training 4 – using Functiods in Map</a></li>
<li>BizTalk Training 5 &#8211; using FTP Adapter</li>
</ol>
<h3>Objective</h3>
<ul>
<li>Learn how to use FTP adapter.</li>
</ul>
<h3>Prerequisites</h3>
<ul>
<li>BizTalkTraining 4 project.</li>
<li>Configuration on BizTalk Administration for BizTalkTraining application.</li>
</ul>
<h3>Topics</h3>
<ol>
<li>Run FTP server using IIS.</li>
<li>Configure to receive files from FTP server using FTP Adapter.</li>
</ol>
<p><!--adsense#Square--></p>
<h3>Step-by-step</h3>
<ol>
<li>Run FTP server using IIS.
<ul>
<li>Ensure that your FTP server is running.<br />
<a href="http://www.linglom.com/images/training/BizTalk/5/1.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/5/_1.png" width="320" height="123" alt="Check FTP service is running" title="Check FTP service is running"  /></a></li>
<li>Ensure that you have account to access FTP server with read/write permissions.<br />
<a href="http://www.linglom.com/images/training/BizTalk/5/2.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/5/_2.png" width="320" height="167" alt="Check account privilege" title="Check account privilege" /></a></li>
</ul>
</li>
<li>Configure to receive files from FTP server using FTP Adapter.
<ul>
<li>Open BizTalk Administration and double click a port in Receive Locations.<br />
<a href="http://www.linglom.com/images/training/BizTalk/5/3.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/5/_3.png" width="320" height="162" alt="Open port properties" title="Open port properties"  /></a></li>
<li>Change Type to FTP and click Configure.<br />
<a href="http://www.linglom.com/images/training/BizTalk/5/4.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/5/_4.png" width="320" height="259" alt="Change type to FTP" title="Change type to FTP"  /></a></li>
<li>Enter FTP information such as server name, account name and password, file mask, etc.
<p><strong><em>Note: </em></strong>The account must have permission to delete the file if it’s a receive port and write file if it’s a send port.<br />
<a href="http://www.linglom.com/images/training/BizTalk/5/5.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/5/_5.png" width="320" height="360" alt="Enter FTP information" title="Enter FTP information" /></a></li>
<li>You can also change the polling time in Polling section.<br />
<a href="http://www.linglom.com/images/training/BizTalk/5/6.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/5/_6.png" width="320" height="361" alt="Change polling interval's time" title="Change polling interval's time" /></a></li>
<li>Click OK. Click OK. Restart server host instance, refresh the application.
</li>
</ul>
</li>
</ol>
<h3>Resources</h3>
<p>You can download the configuration file (XML file) at <a href="http://www.linglom.com/downloads/BizTalkTraining/binding5.xml" target="_blank">here</a>.<br />
If you need source code of BizTalk project, you can download at the previous post on BizTalk Training 4.</p>
</div>

<p>Related posts:<ol><li><a href='http://www.linglom.com/2007/11/24/biztalk-training-3-customize-filename-dynamically/' rel='bookmark' title='Permanent Link: BizTalk Training 3 &#8211; customize filename dynamically'>BizTalk Training 3 &#8211; customize filename dynamically</a></li>
<li><a href='http://www.linglom.com/2007/11/07/biztalk-training-2-receivesend-plain-text/' rel='bookmark' title='Permanent Link: BizTalk Training 2 &#8211; receive/send plain text'>BizTalk Training 2 &#8211; receive/send plain text</a></li>
<li><a href='http://www.linglom.com/2007/10/30/biztalk-training-1-basic-sendreceive-xml-message/' rel='bookmark' title='Permanent Link: BizTalk Training 1 &#8211; basic send/receive xml message'>BizTalk Training 1 &#8211; basic send/receive xml message</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.linglom.com/2008/01/22/biztalk-training-5-using-ftp-adapter/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>BizTalk Training 4 – using Functiods in Map</title>
		<link>http://www.linglom.com/2007/12/26/biztalk-training-4-using-functiods-in-map/</link>
		<comments>http://www.linglom.com/2007/12/26/biztalk-training-4-using-functiods-in-map/#comments</comments>
		<pubDate>Wed, 26 Dec 2007 14:29:02 +0000</pubDate>
		<dc:creator>linglom</dc:creator>
				<category><![CDATA[BizTalk]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[training]]></category>

		<guid isPermaLink="false">http://www.linglom.com/2007/12/26/biztalk-training-4-%e2%80%93-using-functiods-in-map/</guid>
		<description><![CDATA[Introduction This topic will show how to use Functiods in BizTalk. Functiods are like functions, they are objects in Map Orchestration. The purpose of Map is to mapping values from source message to destination message. For instance, you can use concatenate functiod to concat two elements from source message and assign to destination message. There [...]


Related posts:<ol><li><a href='http://www.linglom.com/2007/10/30/biztalk-training-1-basic-sendreceive-xml-message/' rel='bookmark' title='Permanent Link: BizTalk Training 1 &#8211; basic send/receive xml message'>BizTalk Training 1 &#8211; basic send/receive xml message</a></li>
<li><a href='http://www.linglom.com/2007/11/07/biztalk-training-2-receivesend-plain-text/' rel='bookmark' title='Permanent Link: BizTalk Training 2 &#8211; receive/send plain text'>BizTalk Training 2 &#8211; receive/send plain text</a></li>
<li><a href='http://www.linglom.com/2007/11/24/biztalk-training-3-customize-filename-dynamically/' rel='bookmark' title='Permanent Link: BizTalk Training 3 &#8211; customize filename dynamically'>BizTalk Training 3 &#8211; customize filename dynamically</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="KonaBody"><h3>Introduction</h3>
<p>This topic will show how to use Functiods in BizTalk. Functiods are like functions, they are objects in Map Orchestration. The purpose of Map is to mapping values from source message to destination message. For instance, you can use concatenate functiod to concat two elements from source message and assign to destination message. </p>
<p><span id="more-57"></span></p>
<p><!--adsense#Square--></p>
<p>There are 9 tutorials in this training.</p>
<ol>
<li><a href="http://www.linglom.com/2007/10/30/biztalk-training-1-basic-sendreceive-xml-message/">BizTalk Training 1 &#8211; basic send/receive xml message</a></li>
<li><a href="http://www.linglom.com/2007/11/07/biztalk-training-2-receivesend-plain-text/">BizTalk Training 2 &#8211; receive/send plain text</a></li>
<li><a href="http://www.linglom.com/2007/11/24/biztalk-training-3-customize-filename-dynamically/">BizTalk Training 3 &#8211; customize filename dynamically</a></li>
<li>BizTalk Training 4 – using Functiods in Map</li>
<li><a href="http://www.linglom.com/2008/01/22/biztalk-training-5-using-ftp-adapter/">BizTalk Training 5 &#8211; using FTP Adapter</a></li>
<li>Working on&#8230;</li>
</ol>
<h3>Objectives</h3>
<ul>
<li>Learn how to use functiod to get current date time.</li>
<li>Learn how to use functiod to concat two fields.</li>
<li>Learn how to use functiod to add customize code.</li>
</ul>
<h3>Prerequisites</h3>
<ul>
<li>BizTalkTraining 3 project.</li>
<li>Configuration on BizTalk Administration for BizTalkTraining application.</li>
</ul>
<h3>Topics</h3>
<ol>
<li>Create new person schema and message.</li>
<li>Create simple map.</li>
<li>Assign datetime functiod to map.</li>
<li>Assign concatenate functiod to map.</li>
<li>Assign scripting functiod to map.</li>
<li>Modify the orchestration.</li>
<li>Deploy the project and test result.</li>
</ol>
<h3>Step-by-step</h3>
<ol>
<li>Create new person schema and message.
<ul>
<li>Open BizTalkTraining project. And open Orchestration1.<br />
<a href="http://www.linglom.com/images/training/BizTalk/4/1.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/4/_1.png" width="550" height="408" alt="Open BizTalkTraining project, Orchestration1" title="Open BizTalkTraining project, Orchestration1"  /></a></li>
<li>Add new schema to the project name as “NewPersonSchema.xsd�?.<br />
<a href="http://www.linglom.com/images/training/BizTalk/4/3.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/4/_3.png" width="550" height="337" alt="Create new schema" title="Create new schema"  /></a></li>
<li>Alter the new schema as the following detail:<br />
Root name: NewPerson<br />
	Element: Name		Type: String<br />
	Element: Position		Type: String<br />
	Element: Salary		Type: Double<br />
	Element: HiredDateTime	Type: String<br />
	Element: HiredYear		Type: String<br />
	Element: NameandSalary	Type: String<br />
<a href="http://www.linglom.com/images/training/BizTalk/4/4.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/4/_4.png" width="550" height="275" alt="Add elements on the schema" title="Add elements on the schema"  /></a></li>
<li>Click save button.<br />
<a href="http://www.linglom.com/images/training/BizTalk/4/9.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/4/_9.png" width="550" height="260" alt="Save" title="Save"  /></a></li>
<li>Create new Message “msgNewPerson�? and assign message type to be “NewPersonSchema.xsd�?.<br />
<img src="http://www.linglom.com/images/training/BizTalk/4/5.png" width="325" height="495" alt="Create new message" title="Create new message" /></li>
</ul>
</li>
<li>Create simple map.
<ul>
<li>Add new Map item to Orchestration1 name as “MapNewPerson.btm�?.<br />
<a href="http://www.linglom.com/images/training/BizTalk/4/6.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/4/_6.png" width="550" height="338" alt="Create new map" title="Create new map"  /></a></li>
<li>New Map window appears, set source schema for mapping.
<ol>
<li>Click on Open Source Schema.</li>
<li>Expand Schemas.</li>
<li>Select “BizTalkTraining.Person1�? schema.</li>
<p><a href="http://www.linglom.com/images/training/BizTalk/4/7.png" target="_<br />
blank"><img src="http://www.linglom.com/images/training/BizTalk/4/_7.png" width="550" height="523" alt="Set Source schema" title="Set Source schema"  /></a>
</ol>
</li>
<li>Set destination schema for mapping. Select “BizTalkTraining.NewPersonSchema�?.<br />
<a href="http://www.linglom.com/images/training/BizTalk/4/8.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/4/_8.png" width="550" height="525" alt="Set Destination schema" title="Set Destination schema"  /></a></li>
<li>Drag Name element in Source Schema to Name element in Destination Schema. Do these on Position and Salary elements, too.
<p>Or you can click on Person root in Source Schema and hold shift button and drag to NewPerson root in Destination schema to get the same result. </p>
<p><a href="http://www.linglom.com/images/training/BizTalk/4/10.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/4/_10.png" width="550" height="226" alt="Map source elements to destination elements" title="Map source elements to destination elements"  /></a></li>
</ul>
</li>
<li>Assign functiod datetime to map.
<ul>
<li>On MapNewPerson map, you’ll see many functiods in Toolbox panel.<br />
<a href="http://www.linglom.com/images/training/BizTalk/4/11.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/4/_11.png" width="550" height="496" alt="List of Functiods" title="List of Functiods"  /></a></li>
<li>Now I’ll use datetime functiod to generate current date and time to HiredDate element on Destination Schema.</li>
<li>Scroll down to Date/Time Functiods, select Date and Time. Drag it to map between the Source Schema and Destination Schema area.<br />
<a href="http://www.linglom.com/images/training/BizTalk/4/12.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/4/_12.png" width="550" height="497" alt="Drag Date/Time Functiod to Map area" title="Drag Date/Time Functiod to Map area"  /></a></li>
<li>Double click on the functiod Date and Time, you’ll see Configure Functiod Inputs window. Fuctiod Data and Time doesn’t get any input, it’ll will generate current date and time in CCYY-MM-DDThh:mm:ss format.<br />
<img src="http://www.linglom.com/images/training/BizTalk/4/14.png" width="345" height="446" alt="Date/Time Functiod description" title="Date/Time Functiod description" /></li>
<li>Drag the functiod to HiredDate on Destination Schema to generate current date and time to HiredDate element.<br />
<img src="http://www.linglom.com/images/training/BizTalk/4/13.png" width="497" height="286" alt="Set the functiod output to HiredDate element" title="Set the functiod output to HiredDate element" /></li>
</ul>
</li>
<li>Assign concatenate functiod to map.
<ul>
<li>Now I’ll concatenate Name and Salary element in Source to NameandSalary in Destination.</li>
<li>On MapNewPerson map, drag String Concatenate functiod to map area.<br />
<a href="http://www.linglom.com/images/training/BizTalk/4/15.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/4/_15.png" width="550" height="200" alt="Drag String Concatenate functiod to map area" title="Drag String Concatenate functiod to map area"  /></a></li>
<li>Drag Name and Salary element on Source Schema to concatenate functiod and drag concatenate functiod to NameandSalary element on Destination Schema.<br />
Notice that the inputs will be on left side of the functiod and output will be on right side.<br />
<a href="http://www.linglom.com/images/training/BizTalk/4/16.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/4/_16.png" width="550" height="293" alt="Set inputs and output for concatenate functiod " title="Set inputs and output for concatenate functiod "  /></a></li>
</ul>
</li>
<li>Assign scripting functiod to map.
<ul>
<li>Scripting functiod allow you to customize your code. Now I want only year from datetime functiod to HiredYear element on Destination Schema.</li>
<li>Again, drag Scripting functiod in Advanced functiods to map area.<br />
<a href="http://www.linglom.com/images/training/BizTalk/4/17.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/4/_17.png" width="550" height="496" alt="Drag Scripting functiod to map area" title="Drag Scripting functiod to map area"  /></a></li>
<li>Click on Scripting functiod. On Properties, click on the rightmost button in Script to configure script.<br />
<a href="http://www.linglom.com/images/training/BizTalk/4/18.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/4/_18.png" width="550" height="330" alt="Click to configure script" title="Click to configure script"  /></a></li>
<li>Configure Functiod Script window appear, click on drop-down in Script type and you’ll see that there are many type of script you can use but now I’ll use Inline Visual Basic.NET.<br />
<img src="http://www.linglom.com/images/training/BizTalk/4/19.png" width="512" height="463" alt="Select script type to Inline Visual Basic.NET" title="Select script type to Inline Visual Basic.NET" /></li>
<li>Notice that when you click on Inline Visual Basic.NET, the comment code appear below in Inline script buffer. This is a simple script that does the concatenation of 2 inputs.<br />
<img src="http://www.linglom.com/images/training/BizTalk/4/20.png" width="484" height="169" alt="Example VB.NET code" title="Example VB.NET code" /></li>
<li>Replace all the code with the code below.<br />
Public Function GetYear(ByVal datetime As String) As String<br />
	Return datetime.SubString(0,4)<br />
End Function<br />
<img src="http://www.linglom.com/images/training/BizTalk/4/21.png" width="492" height="178" alt="VB.NET's getYear Function" title="VB.NET's getYear Function" /></li>
<li>Drag the datetime functiod to the scripting functiod and also drag the scripting functiod to HiredYear element on Destination Schema.<br />
<img src="http://www.linglom.com/images/training/BizTalk/4/22.png" width="458" height="411" alt="Set input and output for scripting functiod" title="Set input and output for scripting functiod" /></li>
<li>Note that if you want one functiod to be input of another you must place it on left side on the functiod. For instance, you can’t place datetime functiod on the red area in the figure below if you want it to be input of the scripting functiod.<br />
<a href="http://www.linglom.com/images/training/BizTalk/4/23.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/4/_23.png" width="550" height="319" alt="Determine input and output by position of the functiod" title="Determine input and output by position of the functiod"  /></a></li>
<li>Save MapNewPerson map.</li>
</ul>
</li>
<li>Modify the orchestration.
<ul>
<li>Create transform object.
<ol>
<li>Drag Transform from Toolbox in “Construct msgPerson2�? upper the “Assign filename�? Message Assignment.<br />
<a href="http://www.linglom.com/images/training/BizTalk/4/24.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/4/_24.png" width="550" height="392" alt="Add Transform to the orchestration" title="Add Transform to the orchestration"  /></a></li>
<li>Double click the transform object that you’ve just added. Transform Configuration window appears, select Existing Map and on Fully Qualified Map Name drop-down to select “BizTalkTraining.MapNewPerson�?.<br />
<img src="http://www.linglom.com/images/training/BizTalk/4/25.png" width="552" height="472" alt="Select existing map file" title="Select existing map file" /></li>
<li>On Source, select &#8220;msgPerson&#8221;.<br />
<img src="http://www.linglom.com/images/training/BizTalk/4/26.png" width="552" height="472" alt="Set source message" title="Set source message" /></li>
<li>On Destination, select &#8220;msgNewPerson&#8221;.<br />
<img src="http://www.linglom.com/images/training/BizTalk/4/27.png" width="552" height="472" alt="Set destination message" title="Set destination message" /></li>
<li>Click on Source again to refresh the Destination and click OK.</li>
</ol>
</li>
<li>Change Construct Message Properties and “Assign fileName�? Message Assignment.
<ol>
<li>Click on “Construct msgPerson2�? Construct Message. On properties, uncheck the msgPerson2 out from Message Constructed since we don’t need msgPerson2 any more. And ensure that &#8220;msgNewPerson&#8221; is checked instead. Also, change Name to “Construct msgNewPerson�?.<br />
<a href="http://www.linglom.com/images/training/BizTalk/4/28.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/4/_28.png" width="550" height="342" alt="Change constructed message" title="Change constructed message"  /></a></li>
<li>Double click on “Assign fileName�? Message Assignment to alter the code. Replace the entire code with code below.
<p>fileName = msgPerson(FILE.ReceivedFileName);<br />
fileName = fileName.Replace(&#8220;.txt&#8221;,&#8221;.xml&#8221;);</p>
<p>msgNewPerson(FILE.ReceivedFileName) = &#8220;output_&#8221; + fileName;<br />
<img src="http://www.linglom.com/images/training/BizTalk/4/29.png" width="566" height="265" alt="Alter the code on Message Assignment" title="Alter the code on Message Assignment" /></li>
</ol>
</li>
<li>Change message on Send_2 Port to &#8220;msgNewPerson&#8221;.
<ol>
<li>Break the green line between Send_2 and Send XMLPersonPort.</li>
<li>On Send_2 properties, change Message to msgNewPerson.<br />
<img src="http://www.linglom.com/images/training/BizTalk/4/30.png" width="421" height="271" alt="Change message on Send_2 Port" title="Change message on Send_2 Port" /></li>
</ol>
</li>
<li>Change message type on send logical port.
<ol>
<li>Click on Request on SendXMLPersonPort.</li>
<li>On properties, change Message Type to “BizTalkTraining.NewPersonSchema�?.<br />
<a href="http://www.linglom.com/images/training/BizTalk/4/31.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/4/_31.png" width="550" height="232" alt="Change message type" title="Change message type"  /></a></li>
</ol>
</li>
<li>Reconnect the green line between Send_2 and SendXMLPersonPort.<br />
<a href="http://www.linglom.com/images/training/BizTalk/4/32.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/4/_32.png" width="550" height="534" alt="The completed orchestration" title="The completed orchestration"  /></a></li>
</ul>
</li>
<li>Deploy the project and test result.
<ul>
<li>Deploy the project<br />
 <a href="http://www.linglom.com/images/training/BizTalk/4/33.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/4/_33.png" width="550" height="143" alt="Deploy successes" title="Deploy successes"  /></a></li>
<li>Open BizTalk Administration, restart the server host if it is running and refresh the application.</li>
<li>Test the result by copy person1.txt from C:\FILE2 to C:\FILE2\IN, you’ll see the result in C:\FILE2\OUT\person.xml
<p>Person1.xml<br />
<img src="http://www.linglom.com/images/training/BizTalk/4/34.png" width="565" height="341" alt="Result: Person1.xml" title="Result: Person1.xml" />			 </p>
<p>Note: Again, ensure that you delete all files in C:\FILE2\OUT before.</li>
</ul>
</li>
</ol>
<h3>Resources</h3>
<p>You can download the example source code (zip file) at <a href="http://www.linglom.com/downloads/BizTalkTraining/BizTalkTraining4.zip" target="_blank">here</a>.<br />
The zip file contains </p>
<ul>
<li>BizTalkTraining folder which is the example project on Visual Studio 2005.</li>
<li>FILE2 folder which contains IN and OUT empty sub folders for test receive and send message and person1.txt which is an example text message.</li>
<li>binding.xml file which is a configuration file for import in BizTalk Administration.</li>
</ul>
</div>

<p>Related posts:<ol><li><a href='http://www.linglom.com/2007/10/30/biztalk-training-1-basic-sendreceive-xml-message/' rel='bookmark' title='Permanent Link: BizTalk Training 1 &#8211; basic send/receive xml message'>BizTalk Training 1 &#8211; basic send/receive xml message</a></li>
<li><a href='http://www.linglom.com/2007/11/07/biztalk-training-2-receivesend-plain-text/' rel='bookmark' title='Permanent Link: BizTalk Training 2 &#8211; receive/send plain text'>BizTalk Training 2 &#8211; receive/send plain text</a></li>
<li><a href='http://www.linglom.com/2007/11/24/biztalk-training-3-customize-filename-dynamically/' rel='bookmark' title='Permanent Link: BizTalk Training 3 &#8211; customize filename dynamically'>BizTalk Training 3 &#8211; customize filename dynamically</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.linglom.com/2007/12/26/biztalk-training-4-using-functiods-in-map/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BizTalk Training 3 &#8211; customize filename dynamically</title>
		<link>http://www.linglom.com/2007/11/24/biztalk-training-3-customize-filename-dynamically/</link>
		<comments>http://www.linglom.com/2007/11/24/biztalk-training-3-customize-filename-dynamically/#comments</comments>
		<pubDate>Sat, 24 Nov 2007 06:40:04 +0000</pubDate>
		<dc:creator>linglom</dc:creator>
				<category><![CDATA[BizTalk]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[training]]></category>

		<guid isPermaLink="false">http://www.linglom.com/2007/11/24/biztalk-training-3-%e2%80%93-customize-filename-dynamically/</guid>
		<description><![CDATA[Overview This tutorial shows how to customize output filename inside orchestration. There are 9 tutorials in this training. BizTalk Training 1 &#8211; basic send/receive xml message BizTalk Training 2 &#8211; receive/send plain text BizTalk Training 3 &#8211; customize filename dynamically BizTalk Training 4 – using Functiods in Map BizTalk Training 5 &#8211; using FTP Adapter [...]


Related posts:<ol><li><a href='http://www.linglom.com/2007/12/26/biztalk-training-4-using-functiods-in-map/' rel='bookmark' title='Permanent Link: BizTalk Training 4 – using Functiods in Map'>BizTalk Training 4 – using Functiods in Map</a></li>
<li><a href='http://www.linglom.com/2007/11/07/biztalk-training-2-receivesend-plain-text/' rel='bookmark' title='Permanent Link: BizTalk Training 2 &#8211; receive/send plain text'>BizTalk Training 2 &#8211; receive/send plain text</a></li>
<li><a href='http://www.linglom.com/2008/01/22/biztalk-training-5-using-ftp-adapter/' rel='bookmark' title='Permanent Link: BizTalk Training 5 &#8211; using FTP Adapter'>BizTalk Training 5 &#8211; using FTP Adapter</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="KonaBody"><h3>Overview</h3>
<p>This tutorial shows how to customize output filename inside orchestration. </p>
<p>There are 9 tutorials in this training.<span id="more-56"></span></p>
<ol>
<li><a href="http://www.linglom.com/2007/10/30/biztalk-training-1-basic-sendreceive-xml-message/">BizTalk Training 1 &#8211; basic send/receive xml message</a></li>
<li><a href="http://www.linglom.com/2007/11/07/biztalk-training-2-receivesend-plain-text/">BizTalk Training 2 &#8211; receive/send plain text</a></li>
<li>BizTalk Training 3 &#8211; customize filename dynamically</li>
<li><a href="http://www.linglom.com/2007/12/26/biztalk-training-4-using-functiods-in-map/">BizTalk Training 4 – using Functiods in Map</a></li>
<li><a href="http://www.linglom.com/2008/01/22/biztalk-training-5-using-ftp-adapter/">BizTalk Training 5 &#8211; using FTP Adapter</a></li>
</ol>
<h3>Objectives</h3>
<ul>
<li>Learn how to change filename of the output file.</li>
</ul>
<h3>Prerequisites</h3>
<ul>
<li>BizTalkTraining 2 project.</li>
<li>Configuration on BizTalk Administration for BizTalkTraining application.</li>
</ul>
<h3>Topics</h3>
<ol>
<li>Add variable in the orchestration.</li>
<li>Add msgPerson2.</li>
<li>Add Message Assignment to the orchestration.</li>
<li>Test application.</li>
</ol>
<p><!--adsense#Square--></p>
<h3>Step-by-step</h3>
<p>	Suppose that I want to change name of outgoing file. As in training 2, the input filename is *.txt format but I want the outgoing message type as xml format and also add “output_�? text before. E.g. incoming filename is “person1.txt�?, outgoing filename will be “output_person1.xml�?.</p>
<ol>
<li>Add variable in the orchestration.
<ul>
<li>Open Orchestration1 in BizTalkTraining. (Project from BizTalk Training 2).<br />
<a href="http://www.linglom.com/images/training/BizTalk/3/1.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/3/_1.png" width="550" height="247" alt="BizTalkTraining2 project" title="BizTalkTraining2 project"  /></a></li>
<li>Switch to Orchestration View, right click on Variables and select New Variable.<br />
<img src="http://www.linglom.com/images/training/BizTalk/3/2.png" width="304" height="345" alt="Add new variable" title="Add new variable" /></li>
<li>Click on the variable.
<ol>
<li>On Variable Property, change Identifier to “fileName�?.</li>
<li>Change Type to “string�?.<br />
<img src="http://www.linglom.com/images/training/BizTalk/3/3.png" width="304" height="289" alt="Change variable's type" title="Change variable's type" /></li>
</ol>
</li>
<li>Now you’ve add variable name “fileName�? as string to the Orchestration1.</li>
</ul>
</li>
<li>Add msgPerson2.
<ul>
<li>Create new Message on the orchestration name “msgPerson2�? and set Message Type as the same as msgPerson (BizTalkTraining.FlatFilePersonSchema).<br />
<img src="http://www.linglom.com/images/training/BizTalk/3/13.png" width="325" height="486" alt="Change Message Type" title="Change Message Type" /></li>
</ul>
</li>
<li>Add Message Assignment to the orchestration.
<ul>
<li>Drag Message Assignment from Toolbox to bottom of the Orchestration1.<br />
<a href="http://www.linglom.com/images/training/BizTalk/3/4.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/3/_4.png" width="550" height="368" alt="Create Message Assignment" title="Create Message Assignment"  /></a></li>
<li>Click on ConstructMessage_1 object. Notice that you highlights entire Construct Message object. </li>
<li>On Construct Message Properties, check msgPerson2 in Message Constructed and change Name to “Construct msgPerson2�?.<br />
<a href="http://www.linglom.com/images/training/BizTalk/3/5.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/3/_5.png" width="550" height="310" alt="Set Message Assignment's properties" title="Set Message Assignment's properties"  /></a></li>
<li>Click on Message Assignment (the object inside Construct Message) and change Name to “Assign fileName�? in Message Assignment Properties.<br />
<a href="http://www.linglom.com/images/training/BizTalk/3/6.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/3/_6.png" width="550" height="314" alt="Change Message Assignment's name" title="Change Message Assignment's name"  /></a></li>
<li>Double click on Message Assignment and fill in the code below and click OK.

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">msgPerson2 = msgPerson;
&nbsp;
fileName = msgPerson2(FILE.ReceivedFileName);
fileName = System.IO.Path.GetFileName(fileName.Replace(&quot;.txt&quot;,&quot;.xml&quot;));
&nbsp;
msgPerson2(FILE.ReceivedFileName) = &quot;output_&quot; + fileName;</pre></div></div>

<p>The code above assigns msgPerson to msgPerson2 and assigns incoming filename to &#8220;filename�&#8221; variable, modify string and assign back to &#8220;msgPerson2�&#8221;.<br />
<img src="http://www.linglom.com/images/training/BizTalk/3/7.png" width="617" height="336" alt="Write custom code on Message Assignment" title="Write custom code on Message Assignment" /></li>
<li>Add new send component to the bottom of the orchestration and change Message to “msgPerson�?.<br />
<a href="http://www.linglom.com/images/training/BizTalk/3/8.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/3/_8.png" width="550" height="370" alt="Add new Send component from Toolbox" title="Add new Send component from Toolbox"  /></a></li>
<li>Create new send logical port.
<ol>
<li>Right click on Port Surface area, select New Configured Port.<br />
<a href="http://www.linglom.com/images/training/BizTalk/3/10.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/3/_10.png" width="550" height="405" alt="Create New Port" title="Create New Port"  /></a></li>
<li>Set name to “SendXMLPersonPort�?.</li>
<li>Set Port Type as following configurations.<br />
Port Type: Create a new Port Type<br />
Port Type Name: SendXMLPersonPortPortType<br />
Communication Pattern: One-Way<br />
Access Restrictions: Internal<br />
<a href="http://www.linglom.com/images/training/BizTalk/3/9.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/3/_9.png" width="550" height="431" alt="Configure Port Type" title="Configure Port Type"  /></a></li>
<li>Set Port Binding as below.<br />
Port direction: I’ll always be sending messages on this port.<br />
Port binding: Specify Now.<br />
Transport: FILE<br />
URI: C:\FILE2\OUT\%SourceFileName%<br />
Send pipeline: XMLTransmit<br />
<a href="http://www.linglom.com/images/training/BizTalk/3/11.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/3/_11.png" width="550" height="431" alt="Configure Port Binding" title="Configure Port Binding"  /></a></li>
</ol>
</li>
<li>Connect green button from Send component to SendXMLPersonPort.<br />
<a href="http://www.linglom.com/images/training/BizTalk/3/12.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/3/_12.png" width="550" height="350" alt="Connect line between ports" title="Connect line between ports"  /></a></li>
<li>Deploy the project.<br />
<a href="http://www.linglom.com/images/training/BizTalk/3/14.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/3/_14.png" width="550" height="182" alt="Deploy the project" title="Deploy the project"  /></a></li>
</ul>
</li>
<li>Test the application.
<ul>
<li>Open BizTalk Administration and restart BizTalk host.<br />
<a href="http://www.linglom.com/images/training/BizTalk/3/15.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/3/_15.png" width="550" height="247" alt="Restart the host server" title="Restart the host server"  /></a></li>
<li>Refresh BizTalkTraining application.<br />
<img src="http://www.linglom.com/images/training/BizTalk/3/16.png" width="220" height="207" alt="Refresh the application" title="Refresh the application" /></li>
<li>Test application by copy person1.txt from C:\FILE2\person2.txt to C:\FILE2\IN.<br />
Note: You must any delete files in C:\FILE2\OUT before.</li>
<li>You’ll see output in C:\FILE2\OUT.<br />
<img src="http://www.linglom.com/images/training/BizTalk/3/17.png" width="617" height="315" alt="Result files" title="Result files" /></li>
<li>Person1.txt<br />
<img src="http://www.linglom.com/images/training/BizTalk/3/18.png" width="181" height="114" alt="Person1.txt" title="Person1.txt" /></li>
<li>Output_person1.xml<br />
<img src="http://www.linglom.com/images/training/BizTalk/3/19.png" width="563" height="259" alt="Person1.xml" title="Person1.xml" /></li>
</ul>
</li>
</ol>
<h3>Resources</h3>
<p>You can download the example source code (zip file) at <a href="http://www.linglom.com/downloads/BizTalkTraining/BizTalkTraining3.zip" target="_blank">here</a>.<br />
The zip file contains </p>
<ul>
<li>BizTalkTraining folder which is the example project on Visual Studio 2005.</li>
<li>FILE2 folder which contains IN and OUT empty sub folders for test receive and send message and person1.txt which is an example text message.</li>
<li>binding.xml file which is a configuration file for import in BizTalk Administration.</li>
</ul>
</div>

<p>Related posts:<ol><li><a href='http://www.linglom.com/2007/12/26/biztalk-training-4-using-functiods-in-map/' rel='bookmark' title='Permanent Link: BizTalk Training 4 – using Functiods in Map'>BizTalk Training 4 – using Functiods in Map</a></li>
<li><a href='http://www.linglom.com/2007/11/07/biztalk-training-2-receivesend-plain-text/' rel='bookmark' title='Permanent Link: BizTalk Training 2 &#8211; receive/send plain text'>BizTalk Training 2 &#8211; receive/send plain text</a></li>
<li><a href='http://www.linglom.com/2008/01/22/biztalk-training-5-using-ftp-adapter/' rel='bookmark' title='Permanent Link: BizTalk Training 5 &#8211; using FTP Adapter'>BizTalk Training 5 &#8211; using FTP Adapter</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.linglom.com/2007/11/24/biztalk-training-3-customize-filename-dynamically/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>BizTalk Training 2 &#8211; receive/send plain text</title>
		<link>http://www.linglom.com/2007/11/07/biztalk-training-2-receivesend-plain-text/</link>
		<comments>http://www.linglom.com/2007/11/07/biztalk-training-2-receivesend-plain-text/#comments</comments>
		<pubDate>Wed, 07 Nov 2007 14:00:17 +0000</pubDate>
		<dc:creator>linglom</dc:creator>
				<category><![CDATA[BizTalk]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[training]]></category>

		<guid isPermaLink="false">http://www.linglom.com/2007/11/07/biztalk-training-2-%e2%80%93-receivesend-plain-text/</guid>
		<description><![CDATA[Overview This tutorial shows how to receive plain text using FILE Adapter and map to xml message while in orchestration and finally send out using FILE Adapter as plain text. There are 9 tutorials in this training. BizTalk Training 1 &#8211; basic send/receive xml message BizTalk Training 2 &#8211; receive/send plain text BizTalk Training 3 [...]


Related posts:<ol><li><a href='http://www.linglom.com/2007/10/30/biztalk-training-1-basic-sendreceive-xml-message/' rel='bookmark' title='Permanent Link: BizTalk Training 1 &#8211; basic send/receive xml message'>BizTalk Training 1 &#8211; basic send/receive xml message</a></li>
<li><a href='http://www.linglom.com/2007/11/24/biztalk-training-3-customize-filename-dynamically/' rel='bookmark' title='Permanent Link: BizTalk Training 3 &#8211; customize filename dynamically'>BizTalk Training 3 &#8211; customize filename dynamically</a></li>
<li><a href='http://www.linglom.com/2007/12/26/biztalk-training-4-using-functiods-in-map/' rel='bookmark' title='Permanent Link: BizTalk Training 4 – using Functiods in Map'>BizTalk Training 4 – using Functiods in Map</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="KonaBody"><h3>Overview</h3>
<p>	This tutorial shows how to receive plain text using FILE Adapter and map to xml message while in orchestration and finally send out using FILE Adapter as plain text. </p>
<p><span id="more-54"></span></p>
<p>There are 9 tutorials in this training.</p>
<ol>
<li><a href="http://www.linglom.com/2007/10/30/biztalk-training-1-basic-sendreceive-xml-message/">BizTalk Training 1 &#8211; basic send/receive xml message</a></li>
<li>BizTalk Training 2 &#8211; receive/send plain text</li>
<li><a href="http://www.linglom.com/2007/11/24/biztalk-training-3-customize-filename-dynamically/">BizTalk Training 3 &#8211; customize filename dynamically</a></li>
<li><a href="http://www.linglom.com/2007/12/26/biztalk-training-4-using-functiods-in-map/">BizTalk Training 4 – using Functiods in Map</a></li>
<li><a href="http://www.linglom.com/2008/01/22/biztalk-training-5-using-ftp-adapter/">BizTalk Training 5 &#8211; using FTP Adapter</a></li>
</ol>
<h3>Objectives</h3>
<ul>
<li>Learn to create schema using Flat File Schema Wizard.</li>
<li>Learn to receive file which is plain text to BizTalk.</li>
<li>Learn to send file from BizTalk to plain text.</li>
</ul>
<p><!--adsense#Square--></p>
<h3>Prerequisites</h3>
<ul>
<li>BizTalkTraining 1 project.</li>
<li>Configuration on BizTalk Administration for BizTalkTraining application.</li>
</ul>
<h3>Topics</h3>
<ol>
<li>Create schema from plain text using Flat File Schema Wizard.</li>
<li>Add receive and send pipeline for receive/send plain text.</li>
<li>Modify orchestration.</li>
<li>Deploy the project.</li>
</ol>
<h3>Step-by-step</h3>
<p>	As from training 1, I have sample file which is an xml message. Now what if I want a plain text as an input, BizTalk can receive any file format which you can determine the schema in pipeline.<br />
	Suppose, I have the same data as in training 1 but it’s a plain text instead of xml in C:\FILE2\person1.txt.<br />
<img src="http://www.linglom.com/images/training/BizTalk/2/1.png" width="183" height="128" alt="Example plain text" title="Example plain text" /></p>
<ol>
<li>Create schema from plain text using Flat File Schema Wizard.</li>
<ul>
<li>Open existing BizTalkTraining project, Add New Item to the project.<br />
<img src="http://www.linglom.com/images/training/BizTalk/2/2.png" width="351" height="364" alt="Add new Item" title="Add new Item" /></li>
<li>Select Schema Files -> Flat File Schema Wizard and name the schema as “FlatFilePersonSchema.xsd�?.<br />
<a href="http://www.linglom.com/images/training/BizTalk/2/3.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/2/_3.png" width="550" height="338" alt="Flat File Schema Wizard" title="Flat File Schema Wizard"  /></a></li>
<li>BizTalk Flat File Schema Wizard appears, click Next.</li>
<li>On Instance file, click Browse and select the sample text file that you want to create schema from. Change Record name to ‘Person’ and click Next.<br />
<a href="http://www.linglom.com/images/training/BizTalk/2/4.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/2/_4.png" width="550" height="468" alt="Flat File Schema Information" title="Flat File Schema Information"  /></a></li>
<li>On Select Document Data, leave the data highlight and click Next.<br />
<img src="http://www.linglom.com/images/training/BizTalk/2/5.png" width="502" height="397" alt="Select Document Data" title="Select Document Data" /></li>
<li>Click Next.<br />
<img src="http://www.linglom.com/images/training/BizTalk/2/6.png" width="502" height="397" alt="Select Record Format" title="Select Record Format" /></li>
<li>Ensure that Child delimiter is {CR}{LF} which means split data with new line characters. Click Next.<br />
<img src="http://www.linglom.com/images/training/BizTalk/2/7.png" width="502" height="397" alt="Delimited Record" title="Delimited Record" /></li>
<li>Change Element Names and Data Types as in figure below.<br />
<img src="http://www.linglom.com/images/training/BizTalk/2/8.png" width="504" height="390" alt="Child Elements" title="Child Elements" /></li>
<li>Click Finish.<br />
<img src="http://www.linglom.com/images/training/BizTalk/2/9.png" width="504" height="390" alt="Schema View" title="Schema View" /></li>
<li>Now that you have created a schema file from plain text.<br />
<a href="http://www.linglom.com/images/training/BizTalk/2/10.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/2/_10.png" width="550" height="491" alt="FlatFilePersonSchema.xsd" title="FlatFilePersonSchema.xsd"  /></a></li>
</ul>
<li>Add receive and send pipeline for receive/send plain text.
<ul>
<li>Add New Receive Pipeline.<br />
Right click on the project -> Add New Item -> select Pipeline Files -> Receive Pipeline -> name as ReceivePersonPipeline.btp.<br />
<a href="http://www.linglom.com/images/training/BizTalk/2/11.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/2/_11.png" width="550" height="338" alt="Add new Item" title="Add new Item"  /></a></li>
<li>New receive pipeline appears.<br />
<a href="http://www.linglom.com/images/training/BizTalk/2/12.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/2/_12.png" width="550" height="518" alt="ReceivePersonPipeline.btp" title="ReceivePersonPipeline.btp"  /></a></li>
<li>Drag Flat File disassembler to Disassemble stage.<br />
<a href="http://www.linglom.com/images/training/BizTalk/2/13.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/2/_13.png" width="550" height="261" alt="Flat File disassembler" title="Flat File disassembler"  /></a></li>
<li>Click on Flat file disassembler object that you’ve just dropped.<br />
On Properties, change Document schema to “BizTalkTraining.FlatFilePersonSchema�? which is the schema that we’ve created previously.<br />
<a href="http://www.linglom.com/images/training/BizTalk/2/14.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/2/_14.png" width="550" height="359" alt="Change Document schema" title="Change Document schema"  /></a></li>
<li>Now add new Send Pipeline.<br />
Right click on the project -> Add New Item -> select Pipeline Files -> Send Pipeline -> name as SendPersonPipeline.btp.<br />
<a href="http://www.linglom.com/images/training/BizTalk/2/15.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/2/_15.png" width="550" height="338" alt="Add new Item" title="Add new Item"  /></a></li>
<li>Drag Flat file assembler to Assemble stage.<br />
<a href="http://www.linglom.com/images/training/BizTalk/2/16.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/2/_16.png" width="550" height="425" alt="SendPersonPipeline.btp" title="SendPersonPipeline.btp"  /></a></li>
<li>Click on Flat file assembler object that you’ve just dropped.<br />
On Properties, change Document schema to “BizTalkTraining.FlatFilePersonSchema�? which is the schema that we’ve created previously.<br />
<a href="http://www.linglom.com/images/training/BizTalk/2/17.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/2/_17.png" width="550" height="376" alt="Change Document Schema" title="Change Document Schema"  /></a></li>
<li>Now you’ve configured receive pipeline for receive plain text and send pipeline for send to plain text.</li>
</ul>
</li>
<li>Modify orchestration.</li>
<ul>
<li>Back to Orchestration1.<br />
<img src="http://www.linglom.com/images/training/BizTalk/2/18.png" width="548" height="262" alt="Orchestration1" title="Orchestration1" /></li>
<li>Change the schema from person1.xsd to FlatFilePersonSchema.xsd on ports and receive/send components.
<ol>
<li>Break the green link between ports and receive/send components by right click on the line and select Delete.<br />
<img src="http://www.linglom.com/images/training/BizTalk/2/25.png" width="546" height="263" alt="Delete link" title="Delete link" /></li>
<li>Now orchestration will look similar below.<br />
<img src="http://www.linglom.com/images/training/BizTalk/2/26.png" width="546" height="272" alt="Delete link" title="Delete link" /></li>
<li>Change message type for msgPerson.
<ul>
<li>On orchestration1, switch to Orchestration View.</li>
<li>Select msgPerson.</li>
<li>On Properties, change message type to “BizTalkTraining.FlatFilePersonSchema�? which is the schema that we’ve created recently.<br />
<img src="http://www.linglom.com/images/training/BizTalk/2/27.png" width="347" height="722" alt="Change message type on msgPerson" title="Change message type on msgPerson" /></li>
</ul>
</li>
<li>Change message type on both ports.
<ul>
<li>Click Request on RecvPersonPort. Be sure that you click on Request which inside the port, you’ll notice the highlight only around in Request not entire port. </li>
<li>On Properties, change message type to “BizTalkTraining.FlatFilePersonSchema�? which is the schema that we’ve created recently.<br />
<a href="http://www.linglom.com/images/training/BizTalk/2/28.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/2/_28.png" width="550" height="201" alt="Change message type on ports" title="Change message type on ports"  /></a></li>
<li>Repeat change message type on SendPersonPort, too.</li>
</ul>
</li>
<li>Connect ports and receive/send components back.<br />
<a href="http://www.linglom.com/images/training/BizTalk/2/29.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/2/_29.png" width="550" height="262" alt="Connect ports back" title="Connect ports back"  /></a></li>
</ol>
</li>
<li>Modify RecvPersonPort.
<ul>
<li>Click on RecvPersonPort and move to Properties window.</li>
<li>Change the Receive pipeline to “BizTalkTraining.RecvPersonPipeline�? which is the receive pipeline that we’ve created.</li>
<li>Change the URI (Receive location) to “C:\FILE2\IN\*.txt�?.<br />
<a href="http://www.linglom.com/images/training/BizTalk/2/19.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/2/_19.png" width="550" height="265" alt="Change pipeline and receive location" title="Change pipeline and receive location"  /></a></li>
</ul>
</li>
<li>Modify SendPersonPort.
<ul>
<li>Click on SendPersonPort and move to Properties window.</li>
<li>Change the Send pipeline to “BizTalkTraining.SendPersonPipeline�? which is the send pipeline that we’ve created. </li>
<li>Change the URI (Receive location) to “C:\FILE2\OUT\%SourceFileName%�?.<br />
<a href="http://www.linglom.com/images/training/BizTalk/2/20.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/2/_20.png" width="550" height="256" alt="Change pipeline and receive location" title="Change pipeline and receive location"  /></a></li>
</ul>
</li>
<li>You’ve just configured to receive plain text (*.txt) from a folder to send to another folder as plain text.</li>
</ul>
<li>Deploy the project.</li>
<ul>
<li>Right click on Solution ‘BizTalkTraining’ and select Deploy Solution.<br />
<img src="http://www.linglom.com/images/training/BizTalk/2/21.png" width="342" height="281" alt="Deploy the project" title="Deploy the project" /></li>
<li>The output window will show status of the deployment.<br />
<a href="http://www.linglom.com/images/training/BizTalk/2/22.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/2/_22.png" width="550" height="178" alt="Deployment status" title="Deployment status"  /></a></li>
<li>If you have deployed this project before (in Training 1), you need to restart BizTalkServerApplication and refresh the application.
<ol>
<li>Expand BizTalk Server 2006 Administration -> BizTalk Group -> Platform Settings -> Host Instances.</li>
<li>Right click on the host which runs BizTalkTraining application (Host type as In-Process) and click Restart.<br />
<a href="http://www.linglom.com/images/training/BizTalk/2/23.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/2/_23.png" width="550" height="228" alt="Restart the server host instance" title="Restart the server host instance"  /></a></li>
<li>Next, refresh the application by right click on BizTalk Training and select Refresh. Now your application on BizTalk is up-to-date.<br />
<img src="http://www.linglom.com/images/training/BizTalk/2/24.png" width="446" height="483" alt="Refresh the application" title="Refresh the application" /></li>
</ol>
</li>
<li>If you haven’t deployed this application before, go back to Training 1 for further detail.</li>
<li>Now you can test by drop person1.txt to C:\FILE2\IN and wait for result come out in C:\FILE2\OUT.</li>
</ul>
</ol>
<h3>Resources</h3>
<p>You can download the example source code (zip file) at <a href="http://www.linglom.com/downloads/BizTalkTraining/BizTalkTraining2.zip" target="_blank">here</a>.<br />
The zip file contains </p>
<ul>
<li>BizTalkTraining folder which is the example project on Visual Studio 2005.</li>
<li>FILE2 folder which contains IN and OUT empty sub folders for test receive and send message and person1.txt which is an example text message.</li>
<li>binding.xml file which is a configuration file for import in BizTalk Administration.</li>
</ul>
</div>

<p>Related posts:<ol><li><a href='http://www.linglom.com/2007/10/30/biztalk-training-1-basic-sendreceive-xml-message/' rel='bookmark' title='Permanent Link: BizTalk Training 1 &#8211; basic send/receive xml message'>BizTalk Training 1 &#8211; basic send/receive xml message</a></li>
<li><a href='http://www.linglom.com/2007/11/24/biztalk-training-3-customize-filename-dynamically/' rel='bookmark' title='Permanent Link: BizTalk Training 3 &#8211; customize filename dynamically'>BizTalk Training 3 &#8211; customize filename dynamically</a></li>
<li><a href='http://www.linglom.com/2007/12/26/biztalk-training-4-using-functiods-in-map/' rel='bookmark' title='Permanent Link: BizTalk Training 4 – using Functiods in Map'>BizTalk Training 4 – using Functiods in Map</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.linglom.com/2007/11/07/biztalk-training-2-receivesend-plain-text/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>BizTalk Training 1 &#8211; basic send/receive xml message</title>
		<link>http://www.linglom.com/2007/10/30/biztalk-training-1-basic-sendreceive-xml-message/</link>
		<comments>http://www.linglom.com/2007/10/30/biztalk-training-1-basic-sendreceive-xml-message/#comments</comments>
		<pubDate>Tue, 30 Oct 2007 16:35:59 +0000</pubDate>
		<dc:creator>linglom</dc:creator>
				<category><![CDATA[BizTalk]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[training]]></category>

		<guid isPermaLink="false">http://www.linglom.com/2007/10/30/biztalk-training-1-basic-sendreceive-xml-message/</guid>
		<description><![CDATA[Overview This tutorial shows how to create simple orchestration to send/receive xml messages using FILE Adapter. There are 9 tutorials in this training. BizTalk Training 1 &#8211; basic send/receive xml message BizTalk Training 2 &#8211; receive/send plain text BizTalk Training 3 &#8211; customize filename dynamically BizTalk Training 4 – using Functiods in Map BizTalk Training [...]


Related posts:<ol><li><a href='http://www.linglom.com/2007/11/07/biztalk-training-2-receivesend-plain-text/' rel='bookmark' title='Permanent Link: BizTalk Training 2 &#8211; receive/send plain text'>BizTalk Training 2 &#8211; receive/send plain text</a></li>
<li><a href='http://www.linglom.com/2008/01/22/biztalk-training-5-using-ftp-adapter/' rel='bookmark' title='Permanent Link: BizTalk Training 5 &#8211; using FTP Adapter'>BizTalk Training 5 &#8211; using FTP Adapter</a></li>
<li><a href='http://www.linglom.com/2007/12/26/biztalk-training-4-using-functiods-in-map/' rel='bookmark' title='Permanent Link: BizTalk Training 4 – using Functiods in Map'>BizTalk Training 4 – using Functiods in Map</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="KonaBody"><h3>Overview</h3>
<p>This tutorial shows how to create simple orchestration to send/receive xml messages using FILE Adapter.</p>
<p><span id="more-53"></span></p>
<p>There are 9 tutorials in this training.</p>
<ol>
<li>BizTalk Training 1 &#8211; basic send/receive xml message</li>
<li><a href="http://www.linglom.com/2007/11/07/biztalk-training-2-receivesend-plain-text/">BizTalk Training 2 &#8211; receive/send plain text</a></li>
<li><a href="http://www.linglom.com/2007/11/24/biztalk-training-3-customize-filename-dynamically/">BizTalk Training 3 &#8211; customize filename dynamically</a></li>
<li><a href="http://www.linglom.com/2007/12/26/biztalk-training-4-using-functiods-in-map/">BizTalk Training 4 – using Functiods in Map</a></li>
<li><a href="http://www.linglom.com/2008/01/22/biztalk-training-5-using-ftp-adapter/">BizTalk Training 5 &#8211; using FTP Adapter</a></li>
</ol>
<h3>Objectives</h3>
<ul>
<li>Learn how to create schema from sample xml file.</li>
<li>Learn how to send/receive xml message using FILE adapter.</li>
<li>Learn how to deploy BizTalk project to BizTalk Administration.</li>
</ul>
<h3>Topics</h3>
<ol>
<li>Add new orchestration.</li>
<li>Create schema.</li>
<li>Create new Message.</li>
<li>Create logical ports.</li>
<li>Deploy the project.</li>
<li>Configure BizTalk Administration.</li>
</ol>
<p><!--adsense#Square--></p>
<h3>Step-by-step</h3>
<p> Suppose that I want BizTalk to process xml message from folder A (C:\FILE1\IN\*.xml) to folder B (C:\FILE1\OUT\%SourceFileName%). The sample data of xml message is in C:\FILE1\person1.xml.</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;">  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;person<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
     <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Mr. A<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;position<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Sales Manager<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/position<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
     <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;salary<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>10000<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/salary<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
   <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/person<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<ol>
<li>Add new orchestration.
<ul>
<li>New BizTalk Project named ‘BizTalkTraining&#8217;.<br />
<a href="http://www.linglom.com/images/training/BizTalk/1/1.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/1/_1.png" width="550" height="378" alt="New BizTalk Project" title="New BizTalk Project"  /></a>
</li>
<li>Add New Item.<br />
<img src="http://www.linglom.com/images/training/BizTalk/1/2.png" width="342" height="364" alt="Add new Item" title="Add new Item" />
</li>
<li>Select new orchestration to the project named as ‘Orchestration1.odx&#8217;.<br />
<a href="http://www.linglom.com/images/training/BizTalk/1/3.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/1/_3.png" width="550" height="338" alt="Add new Orchestration" title="Add new Orchestration"  /></a>
</li>
<li>On Orchestration1, drag Receive <img src="http://www.linglom.com/images/training/BizTalk/1/4.png" width="194" height="20" alt="Receive component" title="Receive component" /> and Send <img src="http://www.linglom.com/images/training/BizTalk/1/5.png" width="194" height="20" alt="Send component" title="Send component" /> components to the orchestration.<br />
<a href="http://www.linglom.com/images/training/BizTalk/1/6.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/1/_6.png" width="550" height="260" alt="Orchestration1" title="Orchestration1"  /></a>
</li>
</ul>
</li>
<li>Create schema</li>
<ul>
<li>Now I need to create schema for receive and send component. If you don&#8217;t have schema file (.xsd file) that corresponds with xml message, you need either to create schema by using wizard to generate from xml message or create by yourself. By using wizard, it&#8217;s fast but it doesn&#8217;t work well if your xml message is too complex.</li>
<li>Solution 1: using BizTalk Schema Generator</li>
<ol>
<li>To use this wizard, you need to enable it before use once by execute VBScript file that is in BizTalk SDK Utilities directory. If you installed BizTalk on default directory, the files should be in C:\Program Files\Microsoft BizTalk Server 2006\SDK\Utilities\Schema Generator\. If your document type is DTD, execute InstallDTD.vbs. If your document type is standard XML (Well-formed XML), execute InstallWFX.vbs. Or you can execute both files.<br />
<a href="http://www.linglom.com/images/training/BizTalk/1/7.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/1/_7.png" width="550" height="223" alt="Install the scripts" title="Install the scripts"  /></a></li>
<li>Back to the orchestration, in solution explorer. Select Add Generated Items.<br />
<img src="http://www.linglom.com/images/training/BizTalk/1/8.png" width="427" height="380" alt="Add generated item" title="Add generated item" /></li>
<li>Select Generate Schemas on left side and select Generate Schemas on right side. Click Add.<br />
<a href="http://www.linglom.com/images/training/BizTalk/1/9.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/1/_9.png" width="550" height="317" alt="Select generate schemas" title="Select generate schemas"  /></a></li>
<li>On document type, select Well-Formed XML and select input file from sample xml message. Click OK.<br />
<img src="http://www.linglom.com/images/training/BizTalk/1/10.png" width="482" height="376" alt="Select Well-Formed XML" title="Select Well-Formed XML" /></li>
<li>Wait for a while and you will see your schema has been created.<br />
<a href="http://www.linglom.com/images/training/BizTalk/1/11.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/1/_11.png" width="550" height="210" alt="The created schema" title="The created schema"  /></a></li>
<li>You&#8217;ll need to clear target namespace because the sample file doesn&#8217;t have any target namespace by click on &#8220;Schema&#8221; and clear Target Namespace in Properties.<br />
<img src="http://www.linglom.com/images/training/BizTalk/1/39.png" width="498" height="344" alt="Clear target namespace" title="Clear target namespace" />
</li>
</ol>
<li>Solution 2: create the schema manually</li>
<ol>
<li>In solution explorer, select Add New Items.<br />
<img src="http://www.linglom.com/images/training/BizTalk/1/12.png" width="438" height="383" alt="Add new Item" title="Add new Item" /></li>
<li>Select Schema Files on left side and select Schema on right side. Also, named the schema as person1.xsd. Click Add.<br />
<a href="http://www.linglom.com/images/training/BizTalk/1/13.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/1/_13.png" width="550" height="339" alt="Create a new empty schema" title="Create a new empty schema"  /></a></li>
<li>Now you&#8217;ll see empty schema file. You can add new element by right click on root node -> select Insert Schema Node -> Child Field Element.<br />
<a href="http://www.linglom.com/images/training/BizTalk/1/14.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/1/_14.png" width="550" height="351" alt="Insert a new element" title="Insert a new element"  /></a></li>
<li>Try to create element as the same in sample xml message. Also, you can change data type in properties window.<br />
<a href="http://www.linglom.com/images/training/BizTalk/1/15.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/1/_15.png" width="550" height="384" alt="Change type of the element" title="Change type of the element"  /></a></li>
<li>You&#8217;ll need to clear target namespace because the sample file doesn&#8217;t have any target namespace by click on &#8220;Schema&#8221; and clear Target Namespace in Properties.<br />
<img src="http://www.linglom.com/images/training/BizTalk/1/39.png" width="498" height="344" alt="Clear target namespace" title="Clear target namespace" />
</li>
<li>Change name of the root to Person and now you&#8217;ll get the schema for incoming message.<br />
<a href="http://www.linglom.com/images/training/BizTalk/1/16.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/1/_16.png" width="550" height="248" alt="Change root name" title="Change root name"  /></a>
</li>
</ol>
</ul>
<li>Create new Message</li>
<ul>
<li>On orchestration1, move to Orchestration View. Right click on Messages and select New Message.<br />
<img src="http://www.linglom.com/images/training/BizTalk/1/17.png" width="313" height="500" alt="Change root name" title="Change root name" />
</li>
<li>Highlight on Message_1, change Identifier to msgPerson and select Message Type as schema that you&#8217;ve created in 5). (Schema -> BizTalkTraining.person1)<br />
<img src="http://www.linglom.com/images/training/BizTalk/1/18.png" width="314" height="476" alt="Change message type" title="Change message type" />
</li>
<li>Change Message on receive and send components in the orchestration1 to msgPerson.<br />
<a href="http://www.linglom.com/images/training/BizTalk/1/19.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/1/_19.png" width="550" height="328" alt="Change message type on send and receive components" title="Change message type on send and receive components"  /></a></li>
</ul>
<li>Create logical ports</li>
<ul>
<li>You have configured to receive msgPerson and send out msgPerson. Next you need to create logical ports to receive and send these messages from/to.</li>
<li>Create receive port.
<ol>
<li>Right click on Port Surface area (red rectangular) and select New Configured Port.<br />
<a href="http://www.linglom.com/images/training/BizTalk/1/20.png" target="blank"><img src="http://www.linglom.com/images/training/BizTalk/1/_20.png" width="550" height="319" alt="New Configured port" title="New Configured port"  /></a></li>
<li>Click Next. Named the port as RecvPersonPort. Click Next.<br />
<a href="http://www.linglom.com/images/training/BizTalk/1/21.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/1/_21.png" width="550" height="431" alt="Port Properties" title="Port Properties"  /></a></li>
<li>Configure Port Type.<br />
Name Port Type Name as ‘RecvPersonPortType&#8217;. Leave Create a new Port Type, Communication Pattern as One-Way and Access Restrictions as Internal selected. Click Next.<br />
<a href="http://www.linglom.com/images/training/BizTalk/1/22.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/1/_22.png" width="550" height="431" alt="Select a port type" title="Select a port type"  /></a>
 </li>
<li>Configure Port Binding.
<ul>
<li>Ensure that &#8220;I&#8217;ll always be receiving messages on this port.&#8221; is selected.</li>
<li>Select Port binding as &#8220;Specify now&#8221;.</li>
<li>Select Transport as &#8220;FILE&#8221;.</li>
<li>Type URI: as path with file mask that you want to receive. In this sample, it is &#8220;C:\FILE1\IN\*.xml&#8221;. That means to read any .xml file in C:\FILE1\IN.</li>
<li>Select Receive pipeline as XMLReceive.</li>
<li>Click Next and Finish.</li>
</ul>
<p><a href="http://www.linglom.com/images/training/BizTalk/1/23.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/1/_23.png" width="550" height="431" alt="Configure Port Binding" title="Configure Port Binding"  /></a>
</li>
</ol>
</li>
<li>Create send port.</li>
<ol>
<li>Right click on Port Surface area (red rectangular) and select New Configured Port.<br />
<a href="http://www.linglom.com/images/training/BizTalk/1/24.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/1/_24.png" width="550" height="313" alt="" title=""  /></a></li>
<li>Click Next. Named the port as SendPersonPort. Click Next.<br />
<a href="http://www.linglom.com/images/training/BizTalk/1/25.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/1/_25.png" width="550" height="430" alt="Port Properties" title="Port Properties"  /></a></li>
<li>Configure Port Type.<br />
Name Port Type Name as ‘SendPersonPortType&#8217;. Leave Create a new Port Type, Communication Pattern as One-Way and Access Restrictions as Internal selected. Click Next.<br />
<a href="http://www.linglom.com/images/training/BizTalk/1/26.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/1/_26.png" width="550" height="431" alt="Select a port type" title="Select a port type"  /></a></li>
<li>Configure Port Binding.
<ul>
<li>Ensure that &#8220;I&#8217;ll always be sending messages on this port.&#8221; is selected.</li>
<li>Select Port binding as &#8220;Specify now&#8221;.</li>
<li>Select Transport as &#8220;FILE&#8221;.</li>
<li>Type URI: as path to destination file that you want to send. In this sample, it is &#8220;C:\FILE1\OUT\%SourceFileName%&#8221;.<br />
Note: %SourceFileName% is the mask that means using file name as it was receive.</li>
<li>Select Send pipeline as XMLTransmit.</li>
<li>Click Next and Finish.</li>
</ul>
<p><a href="http://www.linglom.com/images/training/BizTalk/1/27.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/1/_27.png" width="550" height="431" alt="Configure Port Binding" title="Configure Port Binding"  /></a>
</li>
</ol>
<li>Now you have configured logical ports to map with physical paths. Next is to connect logical ports to receive and send components that you have created previously. Drag green button on RecvPersonPort (1) to green button on Receive_1 component (2). Also, repeat this on send port.<br />
<a href="http://www.linglom.com/images/training/BizTalk/1/28.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/1/_28.png" width="550" height="254" alt="Connect receive and send ports" title=""  /></a></li>
</ul>
<li>Deploy the project</li>
<ul>
<li>Click on Receive_1 component and change Activate to &#8220;True&#8221; in the properties.<br />
<a href="http://www.linglom.com/images/training/BizTalk/1/29.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/1/_29.png" width="550" height="204" alt="Set Activate to 'True'" title="Set Activate to 'True'"  /></a></li>
<li>We have finished on the orchestration. Next, we are going to deploy the project on BizTalk Administration. On the solution explorer, right click on Solution ‘BizTalkTraining&#8217; and select Properties.<br />
<img src="http://www.linglom.com/images/training/BizTalk/1/30.png" width="366" height="290" alt="Open Solution Property page" title="Open Solution Property page" /></li>
<li>On Solution Property Pages
<ol>
<li>Select Configuration in Configuration Properties.</li>
<li>Change Configuration to Deployment.</li>
<li>Ensure that Deploy has been checked.</li>
<li>Click OK.</li>
</ol>
<p><a href="http://www.linglom.com/images/training/BizTalk/1/31.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/1/_31.png" width="550" height="343" alt="Set to deployment" title="Set to deployment"  /></a>
</li>
<li>Next create strong name key and assign to the project
<ol>
<li>Open Visual Studio 2005 Command Prompt by select on Programs.<br />
<a href="http://www.linglom.com/images/training/BizTalk/1/32.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/1/_32.png" width="550" height="293" alt="Open Visual Studio 2005 Command Prompt" title="Open Visual Studio 2005 Command Prompt "  /></a></li>
<li>Type in the command prompt ‘sn -k c:\FILE1\BizTalkTraining.snk&#8217;. Then the key will be created in c:\FILE1.<br />
<a href="http://www.linglom.com/images/training/BizTalk/1/33.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/1/_33.png" width="550" height="163" alt="Create a strong name key file" title="Create a strong name key file"  /></a></li>
<li>Back to the BizTalkTraining project, right click on BizTalkTraining and select Properties.<br />
<img src="http://www.linglom.com/images/training/BizTalk/1/34.png" width="303" height="373" alt="Open project's Properties" title="Open project's Properties" /></li>
<li>On Property Pages
<ul>
<li>Select Assembly in Common Properties.</li>
<li>Find Assembly Key File. Click &#8230; to browse.</li>
<li>Select file that you have just created &#8220;BizTalkTraining.snk&#8221;.</li>
<li>Click Open and OK.<br />
<a href="http://www.linglom.com/images/training/BizTalk/1/35.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/1/_35.png" width="550" height="468" alt="Assign the strong name key to the project" title="Assign the strong name key to the project"  /></a>
</li>
<li>To change name of the application when deployed, select Deployment in Configuration Properties.</li>
<li>On Application Name, change to &#8220;BizTalkTraining&#8221;.</li>
<li>Click OK.<br />
<a href="http://www.linglom.com/images/training/BizTalk/1/36.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/1/_36.png" width="550" height="359" alt="Change application name when deployed to BizTalk host" title="Change application name when deployed to BizTalk host"  /></a></li>
</ul>
</li>
</ol>
</li>
<li>Now you&#8217;re ready to deploy the project to BizTalk Administration. Right click on Solution ‘BizTalkTraining&#8217; and select Deploy Solution.<br />
<img src="http://www.linglom.com/images/training/BizTalk/1/37.png" width="259" height="283" alt="Deploy the project" title="Deploy the project" /></li>
<li>You&#8217;ll see in output window if the deploy was succeeded.<br />
<a href="http://www.linglom.com/images/training/BizTalk/1/38.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/1/_38.png" width="550" height="184" alt="Deploy succeeded" title="Deploy succeeded"  /></a></li>
</ul>
<li>Configure BizTalk Administration</li>
<ul>
<li>Open BizTalk Administration; expand BizTalk Server 2006 Administration -> BizTalk Group -> Applications. You&#8217;ll see BizTalk Training was deployed to here. Right click on BizTalkTraining and click configure.<br />
<img src="http://www.linglom.com/images/training/BizTalk/1/40.png" width="430" height="505" alt="Open Configure Application window" title="Open Configure Application window" /></li>
<li>On Configure Application window, select Host to BizTalkServerApplication. Click OK.<br />
<a href="http://www.linglom.com/images/training/BizTalk/1/41.png" target="_blank"><img src="http://www.linglom.com/images/training/BizTalk/1/_41.png" width="550" height="384" alt="Configure host for the application" title="Configure host for the application"  /></a></li>
<li>Now you can start your application, but you need to create folder as you have already configured in Visual Studio. For receive folder, C:\FILE1\IN. For send folder, C:\FILE1\OUT.
</li>
<li>Right click BizTalkTraining again; click start to start BizTalk application.<br />
<img src="http://www.linglom.com/images/training/BizTalk/1/42.png" width="254" height="487" alt="Start the application" title="Start the application" /></li>
<li>Click Start again.<br />
<img src="http://www.linglom.com/images/training/BizTalk/1/43.png" width="465" height="144" alt="Start the application" title="Start the application" /></li>
<li>Now BizTalkTraining application is running, you can test your application by copy person1.xml (sample xml file) to receive folder (C:\FILE1\IN). If the application is configured correctly, the file will be moved to send folder (C:\FILE1\OUT) with the same name as in receive folder.
</li>
<li>Result in C:\FILE1\OUT\Person1.xml.<br />
<img src="http://www.linglom.com/images/training/BizTalk/1/44.png" width="351" height="294" alt="Result window" title="Result window" /></li>
</ul>
</ol>
<h3>Resources</h3>
<p>You can download the example source code (zip file) at <a href="http://www.linglom.com/downloads/BizTalkTraining/BizTalkTraining1.zip" target="_blank">here</a>.<br />
The zip file contains </p>
<ul>
<li>BizTalkTraining folder which is the example project on Visual Studio 2005.</li>
<li>FILE1 folder which contains IN and OUT empty sub folders for test receive and send message, BizTalkTraining.snk which is a strong name key file used in the example project and person1.xml which is an example xml message.</li>
<li>binding.xml file which is a configuration file for import in BizTalk Administration.</li>
</ul>
</div>

<p>Related posts:<ol><li><a href='http://www.linglom.com/2007/11/07/biztalk-training-2-receivesend-plain-text/' rel='bookmark' title='Permanent Link: BizTalk Training 2 &#8211; receive/send plain text'>BizTalk Training 2 &#8211; receive/send plain text</a></li>
<li><a href='http://www.linglom.com/2008/01/22/biztalk-training-5-using-ftp-adapter/' rel='bookmark' title='Permanent Link: BizTalk Training 5 &#8211; using FTP Adapter'>BizTalk Training 5 &#8211; using FTP Adapter</a></li>
<li><a href='http://www.linglom.com/2007/12/26/biztalk-training-4-using-functiods-in-map/' rel='bookmark' title='Permanent Link: BizTalk Training 4 – using Functiods in Map'>BizTalk Training 4 – using Functiods in Map</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.linglom.com/2007/10/30/biztalk-training-1-basic-sendreceive-xml-message/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>
