<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
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:series="http://unfoldingneurons.com/"
> <channel><title>Comments on: BizTalk Training 3 &#8211; customize filename dynamically</title> <atom:link href="http://www.linglom.com/2007/11/24/biztalk-training-3-customize-filename-dynamically/feed/" rel="self" type="application/rss+xml" /><link>http://www.linglom.com/2007/11/24/biztalk-training-3-customize-filename-dynamically/</link> <description>Source of IT knowledge</description> <lastBuildDate>Thu, 09 Feb 2012 17:22:01 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Poojith</title><link>http://www.linglom.com/2007/11/24/biztalk-training-3-customize-filename-dynamically/comment-page-1/#comment-6659</link> <dc:creator>Poojith</dc:creator> <pubDate>Sun, 25 Jul 2010 10:05:25 +0000</pubDate> <guid
isPermaLink="false">http://www.linglom.com/2007/11/24/biztalk-training-3-%e2%80%93-customize-filename-dynamically/#comment-6659</guid> <description>Hi,
I guess this method  works  only when we  use  FILE adapter as the receive port. My question is how  to name the file  dynamically for  WCF adapter  receive  ports?
Hope you can help me with this.
Thank you in advance.</description> <content:encoded><![CDATA[<p>Hi,</p><p>I guess this method  works  only when we  use  FILE adapter as the receive port. My question is how  to name the file  dynamically for  WCF adapter  receive  ports?</p><p>Hope you can help me with this.</p><p>Thank you in advance.</p> ]]></content:encoded> </item> <item><title>By: linglom</title><link>http://www.linglom.com/2007/11/24/biztalk-training-3-customize-filename-dynamically/comment-page-1/#comment-5164</link> <dc:creator>linglom</dc:creator> <pubDate>Thu, 21 Jan 2010 04:26:22 +0000</pubDate> <guid
isPermaLink="false">http://www.linglom.com/2007/11/24/biztalk-training-3-%e2%80%93-customize-filename-dynamically/#comment-5164</guid> <description>Hi, Foon Lam
Thanks for correcting, it was my fault.
I have fixed it already.</description> <content:encoded><![CDATA[<p>Hi, Foon Lam<br
/> Thanks for correcting, it was my fault.<br
/> I have fixed it already.</p> ]]></content:encoded> </item> <item><title>By: Foon Lam</title><link>http://www.linglom.com/2007/11/24/biztalk-training-3-customize-filename-dynamically/comment-page-1/#comment-5136</link> <dc:creator>Foon Lam</dc:creator> <pubDate>Tue, 19 Jan 2010 21:57:45 +0000</pubDate> <guid
isPermaLink="false">http://www.linglom.com/2007/11/24/biztalk-training-3-%e2%80%93-customize-filename-dynamically/#comment-5136</guid> <description>I&#039;ve tried out the example and the reason why the output filename is person1.xml and not output_person1.xml is because in the message assignment, &quot;msgPerson2(FILE.ReceivedFileName);&quot; will return you the full path and filename &quot;C:\FILE2\OUT\person1.txt&quot; and not just &quot;person1.txt&quot;, so when you append &quot;output_&quot; to the filename, you get &quot;output_C:\FILE2\OUT\person1.xml&quot;. The send port only uses what&#039;s after the last &quot;\&quot;, so it still ends up as &quot;person1.xml&quot;. To correct this you should use
filename = System.IO.Path.GetFileName(filename.Replace(&quot;.txt&quot;,&quot;.xml&quot;));
filename = &quot;output_&quot; + filename;
instead of just
filename = filename.Replace(&quot;.txt&quot;,&quot;.xml&quot;);
filename = &quot;output_&quot; + filename;
This resolution came courtesy of Thiago Almeida,MVP. If you are interested in reading some of his articles, you can get to his site at &quot;http://connectedthoughts.wordpress.com/&quot;</description> <content:encoded><![CDATA[<p>I&#8217;ve tried out the example and the reason why the output filename is person1.xml and not output_person1.xml is because in the message assignment, &#8220;msgPerson2(FILE.ReceivedFileName);&#8221; will return you the full path and filename &#8220;C:\FILE2\OUT\person1.txt&#8221; and not just &#8220;person1.txt&#8221;, so when you append &#8220;output_&#8221; to the filename, you get &#8220;output_C:\FILE2\OUT\person1.xml&#8221;. The send port only uses what&#8217;s after the last &#8220;\&#8221;, so it still ends up as &#8220;person1.xml&#8221;. To correct this you should use</p><p>filename = System.IO.Path.GetFileName(filename.Replace(&#8220;.txt&#8221;,&#8221;.xml&#8221;));<br
/> filename = &#8220;output_&#8221; + filename;</p><p>instead of just</p><p>filename = filename.Replace(&#8220;.txt&#8221;,&#8221;.xml&#8221;);<br
/> filename = &#8220;output_&#8221; + filename;</p><p>This resolution came courtesy of Thiago Almeida,MVP. If you are interested in reading some of his articles, you can get to his site at &#8220;http://connectedthoughts.wordpress.com/&#8221;</p> ]]></content:encoded> </item> <item><title>By: Nigel Bachmann</title><link>http://www.linglom.com/2007/11/24/biztalk-training-3-customize-filename-dynamically/comment-page-1/#comment-5026</link> <dc:creator>Nigel Bachmann</dc:creator> <pubDate>Thu, 07 Jan 2010 17:07:15 +0000</pubDate> <guid
isPermaLink="false">http://www.linglom.com/2007/11/24/biztalk-training-3-%e2%80%93-customize-filename-dynamically/#comment-5026</guid> <description>Excellent article, exactly what I wanted.</description> <content:encoded><![CDATA[<p>Excellent article, exactly what I wanted.</p> ]]></content:encoded> </item> <item><title>By: Priyan</title><link>http://www.linglom.com/2007/11/24/biztalk-training-3-customize-filename-dynamically/comment-page-1/#comment-4722</link> <dc:creator>Priyan</dc:creator> <pubDate>Sun, 04 Oct 2009 15:09:57 +0000</pubDate> <guid
isPermaLink="false">http://www.linglom.com/2007/11/24/biztalk-training-3-%e2%80%93-customize-filename-dynamically/#comment-4722</guid> <description>Nice Article. Thanks a lot linglom!</description> <content:encoded><![CDATA[<p>Nice Article. Thanks a lot linglom!</p> ]]></content:encoded> </item> <item><title>By: Tahir</title><link>http://www.linglom.com/2007/11/24/biztalk-training-3-customize-filename-dynamically/comment-page-1/#comment-3264</link> <dc:creator>Tahir</dc:creator> <pubDate>Tue, 16 Dec 2008 17:55:47 +0000</pubDate> <guid
isPermaLink="false">http://www.linglom.com/2007/11/24/biztalk-training-3-%e2%80%93-customize-filename-dynamically/#comment-3264</guid> <description>Very nice!  It helped me and also solved my problem too.
Thanks</description> <content:encoded><![CDATA[<p>Very nice!  It helped me and also solved my problem too.<br
/> Thanks</p> ]]></content:encoded> </item> <item><title>By: linglom</title><link>http://www.linglom.com/2007/11/24/biztalk-training-3-customize-filename-dynamically/comment-page-1/#comment-2691</link> <dc:creator>linglom</dc:creator> <pubDate>Fri, 26 Sep 2008 02:00:05 +0000</pubDate> <guid
isPermaLink="false">http://www.linglom.com/2007/11/24/biztalk-training-3-%e2%80%93-customize-filename-dynamically/#comment-2691</guid> <description>It was my mistake. The output should be output_person1.xml not person1.xml. I&#039;ll correct it soon.</description> <content:encoded><![CDATA[<p>It was my mistake. The output should be output_person1.xml not person1.xml. I&#8217;ll correct it soon.</p> ]]></content:encoded> </item> <item><title>By: John</title><link>http://www.linglom.com/2007/11/24/biztalk-training-3-customize-filename-dynamically/comment-page-1/#comment-2690</link> <dc:creator>John</dc:creator> <pubDate>Wed, 24 Sep 2008 19:13:49 +0000</pubDate> <guid
isPermaLink="false">http://www.linglom.com/2007/11/24/biztalk-training-3-%e2%80%93-customize-filename-dynamically/#comment-2690</guid> <description>So where&#039;s the output_person1.txt file?  I just see the person1.txt and person1.xml files.</description> <content:encoded><![CDATA[<p>So where&#8217;s the output_person1.txt file?  I just see the person1.txt and person1.xml files.</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: basic
Database Caching 7/18 queries in 0.068 seconds using disk: basic
Content Delivery Network via cdn.linglom.com/linglom

Served from: www.linglom.com @ 2012-02-10 10:32:17 -->
