<?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/"
	>

<channel>
	<title>Ali Raza Zaidi &#187; BizTalk</title>
	<atom:link href="http://www.alirazazaidi.com/category/biztalk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.alirazazaidi.com</link>
	<description>BizTalk,.Net.T-SQL,  SSIS, SSAS, SSRS  Blog</description>
	<lastBuildDate>Tue, 07 Feb 2012 13:01:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>How to Send File to MSMQ Using C#</title>
		<link>http://www.alirazazaidi.com/how-to-send-file-to-msmq-using-c/</link>
		<comments>http://www.alirazazaidi.com/how-to-send-file-to-msmq-using-c/#comments</comments>
		<pubDate>Sun, 25 Dec 2011 17:32:58 +0000</pubDate>
		<dc:creator>Ali Raza Zaidi</dc:creator>
				<category><![CDATA[BizTalk]]></category>
		<category><![CDATA[Tips and tricks]]></category>
		<category><![CDATA[MSMQ Sending Code]]></category>

		<guid isPermaLink="false">http://www.biztalkhq.com/?p=229</guid>
		<description><![CDATA[During the testing of BizTalk application, which read data from MSMQ. I have to write small C# routine, this routine send data to MSMQ.  If you have no knowledge about MSMQ, Please read My Post on this here. http://www.biztalkhq.com/what-is-msmq-and-how-to-configure-it-on-windows-7/ &#160; To Send File on MSMQ you have to include the dll System.Messaging in your C# [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>During the testing of BizTalk application, which read data from MSMQ. I have to write small C# routine, this routine send data to MSMQ.  If you have no knowledge about MSMQ, Please read My Post on this here.<br />
<a title="http://www.biztalkhq.com/what-is-msmq-and-how-to-configure-it-on-windows-7/" href="http://www.biztalkhq.com/what-is-msmq-and-how-to-configure-it-on-windows-7/">http://www.biztalkhq.com/what-is-msmq-and-how-to-configure-it-on-windows-7/</a></p>
<p>&nbsp;</p>
<p>To Send File on MSMQ you have to include the dll System.Messaging in your C# or Vb.net application. To Simplest code is as follow.</p>
<p>&nbsp;</p>
<pre>public void FileToMSMQ(string FilePath, string MsmqName)

{

//FilePath <a href="mailto:=@”e:\test.xml">=@”e:\test.xml</a>”;

//MsmqName= @".private$testQue";

System.Messaging.MessageQueue _TheQueue = new System.Messaging.MessageQueue(MsmqName);

System.IO.FileStream _FileStream = new System.IO.FileStream(FilePath, System.IO.FileMode.Open);

Message _Message = new Message();

_Message.BodyStream = _FileStream;

_Message.Label = System.IO.Path.GetFileName(FilePath);

_Message.Priority = MessagePriority.Normal;

_TheQueue.Send(_Message);

}
You can down sample code from here</pre>
<p><iframe style="padding: 0; background-color: #fcfcfc;" title="Preview" src="https://skydrive.live.com/embed?cid=7D71631B9D634BE6&amp;resid=7D71631B9D634BE6%21145&amp;authkey=AOb6W0kH6IT68SA" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" width="98px" height="120px"></iframe></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alirazazaidi.com/how-to-send-file-to-msmq-using-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is MSMQ and How to configure it on windows 7</title>
		<link>http://www.alirazazaidi.com/what-is-msmq-and-how-to-configure-it-on-windows-7/</link>
		<comments>http://www.alirazazaidi.com/what-is-msmq-and-how-to-configure-it-on-windows-7/#comments</comments>
		<pubDate>Sun, 25 Dec 2011 15:49:10 +0000</pubDate>
		<dc:creator>Ali Raza Zaidi</dc:creator>
				<category><![CDATA[BizTalk]]></category>
		<category><![CDATA[Biztalk Tools]]></category>
		<category><![CDATA[What is MSMQ and How to configure it on windows 7]]></category>

		<guid isPermaLink="false">http://www.biztalkhq.com/?p=223</guid>
		<description><![CDATA[Microsoft Message Queue (MSMQ): MSMQ is a messaging protocol that allows applications running on separate servers/processes to communicate in a failsafe manner. A queue is a temporary storage location from which messages can be sent and received reliably, as and when conditions permit. Queues are used to receive and send the Messages. To Install MSMQ, [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><strong>Microsoft Message Queue (MSMQ):</strong><br />
MSMQ is a messaging protocol that allows applications running on separate servers/processes to communicate in a failsafe manner. A queue is a temporary storage location from which messages can be sent and received reliably, as and when conditions permit. Queues are used to receive and send the Messages.<br />
To Install MSMQ, Go to Control Panel -&gt; Add Remove Program -&gt; Add Windows Component and select “Message Queuing”<br />
<a href="http://www.alirazazaidi.com/wp-content/uploads/2011/12/MSQM-selection-Windows-.png"><img class="aligncenter size-medium wp-image-224" title="MSQM selection Windows &amp;" src="http://www.alirazazaidi.com/wp-content/uploads/2011/12/MSQM-selection-Windows--300x269.png" alt="" width="300" height="269" /></a></p>
<p>&nbsp;</p>
<p align="center">Install MSMQ &#8211; Microsoft Messaging Queue</p>
<p align="center"><span id="more-223"></span></p>
<p><strong>There are two types of Messaging Queue:</strong></p>
<p><strong>1. Public Queue:</strong></p>
<ul>
<li>Provide Message routing.</li>
<li>Public queues are accessed through “Machine nameQueue name”</li>
</ul>
<p><strong>2. Private Queue:</strong></p>
<ul>
<li>Do not Provide any routing.</li>
<li>Private queues are accessed through “Machine namePrivate$Queue name”.</li>
<li>If MSMQ is installed on the same machine as your application then you can replace the machine name with a dot, for example “.Private$testQue”</li>
</ul>
<p><strong>MSMQ is deployed in two mode:</strong><br />
<strong>1. Workgroup mode</strong></p>
<ul>
<li>only private Queue therefore no messaging routing</li>
<li>only “Common” and “Trigger” components needed.</li>
</ul>
<p><strong>2. Domain mode</strong></p>
<ul>
<li>private and public queue.</li>
<li>Machine that installed MSMQ must be the part of domain and uses Active Directory.</li>
<li>“Common”, “Trigger”, “Active Directory Integration”, “Routing Suport” components are needed.</li>
</ul>
<p><strong>MSMQ Installs two window services also:</strong></p>
<ol>
<li>Message Queueing</li>
<li>Message Queueing Triggers</li>
</ol>
<p><strong>Administrative interface:</strong><br />
To Open admin Panel , My Computer -&gt; Manage -&gt; Services and Applications -&gt; Message Queueing.</p>
<p><a href="http://www.alirazazaidi.com/wp-content/uploads/2011/12/Message-Queuing.png"><img class="aligncenter size-medium wp-image-225" title="Message Queuing" src="http://www.alirazazaidi.com/wp-content/uploads/2011/12/Message-Queuing-131x300.png" alt="" width="131" height="300" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Under each queue you will find following three items:</p>
<p><strong>1. Queue Messages</strong></p>
<ul>
<li>All the messages currently seating in Queue.</li>
<li>You can view the properties of all messages but cannot change it.</li>
<li>Cannot create new messages or cannot delete an individual existing messages.</li>
<li>You can delete all the messages by right click on “Queue messages” and select<strong> “All Tasks | Purge”</strong></li>
</ul>
<p><strong>2. Journal Messages</strong></p>
<ul>
<li>During Queue creation journal can be “enabled” means a copy of message from queue is placed into journal.</li>
<li>Means you have the copy of all messages of queue which is read or processed.</li>
<li>Purge (Delete) messages regulary from journal otherwise its size will be increased.</li>
</ul>
<p><strong>3. Triggers</strong></p>
<ul>
<li>Allows to register the Trigger when message is placed in Queue.</li>
<li>During Trigger setting you can specify COM component or external executable.</li>
</ul>
<p>Other than Public and Private Queue, one more Queue is present which is<strong>“System Queue”</strong>. Which cannot be modified or removed.</p>
<p>Under System Queue you will find following three items:<br />
<strong>1. Journal Messages:</strong></p>
<ul>
<li>During Queue creation journal can be “enabled” means a copy of message from queue is placed into journal. And if the journal is not enabled then copy of message is placed in “System queue’s journal” (condition it should be enabled at code).  Means its your choice that you want to maintain journal at system queue level or message queue level.</li>
</ul>
<p><strong>2. Dead – Letter Messages :</strong></p>
<ul>
<li>copy of all the Messages which are not delivered or expired before deliver or expired before its read / received (condition it should be enabled at code).</li>
</ul>
<p><strong>3. Transactional Dead – Letter Messages:</strong></p>
<ul>
<li>Same as “Dead – Letter Messages” but its for Transactional Messages.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.alirazazaidi.com/what-is-msmq-and-how-to-configure-it-on-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error: Unable to install the assembly into the Global Assembly Cache – BizTalk Deployment</title>
		<link>http://www.alirazazaidi.com/error-unable-to-install-the-assembly-into-the-global-assembly-cache-%e2%80%93-biztalk-deployment/</link>
		<comments>http://www.alirazazaidi.com/error-unable-to-install-the-assembly-into-the-global-assembly-cache-%e2%80%93-biztalk-deployment/#comments</comments>
		<pubDate>Wed, 23 Nov 2011 14:46:15 +0000</pubDate>
		<dc:creator>Ali Raza Zaidi</dc:creator>
				<category><![CDATA[BizTalk]]></category>
		<category><![CDATA[Deployment Errors]]></category>
		<category><![CDATA[BizTalk Deployment Issues]]></category>
		<category><![CDATA[BizTalk Errors]]></category>

		<guid isPermaLink="false">http://www.biztalkhq.com/?p=188</guid>
		<description><![CDATA[Today during testing and redeploying the BizTalk 2006 application, I got this error. Change requests failed for some resources. BizTalkAssemblyResourceManager failed to complete end type change request. Unable to install the assembly into the Global Assembly Cache. Exception: A file load exception occurred while attempting to install the assembly into the Global Assembly Cache. This [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Today during testing and redeploying the BizTalk 2006 application, I got this error.</p>
<blockquote><p>Change requests failed for some resources. BizTalkAssemblyResourceManager failed to complete end type change request. Unable to install the assembly into the Global Assembly Cache.</p>
<p>Exception: A file load exception occurred while attempting to install the assembly into the Global Assembly Cache. This error may occur if the assembly is delay signed, or if assembly was renamed after creating/signing</p></blockquote>
<p>Only solution to this problem was to close the visual studio solution and then reopen solution, this solved temporally.  Issue appears again after second or third deployment.</p>
<p>After doing google, I followed these steps to remove this error.</p>
<p>• I have to clear the temp files at machine. For this purpose I typed %temp% at run and it opened the temporary folder. Clear all directory alternatively we can get temp directory similar to following address “ X:Documents and SettingsUserNameLocal SettingsTempBT.</p>
<p>• Full stop the application at BizTalk console. And stop the BizTalk host instance on application is running. Then uninstall the previous/ current versions of dll from GAC and redeploy the application. If you got error message on uninstalling the assembly error “Cannot Uninstall as it is being used by another process”, then stop the host instance, close all applications and try again. If you still cant delete the dll, restart the PC.</p>
<p>• Check if the project is using any reference path that does not exist. ( For this, go to project properties -&gt; Select Reference Paths -&gt; Delete any References that doesn’t Exist)</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alirazazaidi.com/error-unable-to-install-the-assembly-into-the-global-assembly-cache-%e2%80%93-biztalk-deployment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Three Schema Design Approaches</title>
		<link>http://www.alirazazaidi.com/three-schema-design-approaches/</link>
		<comments>http://www.alirazazaidi.com/three-schema-design-approaches/#comments</comments>
		<pubDate>Thu, 13 Oct 2011 10:43:19 +0000</pubDate>
		<dc:creator>Ali Raza Zaidi</dc:creator>
				<category><![CDATA[BizTalk]]></category>
		<category><![CDATA[Biztalk 2010]]></category>
		<category><![CDATA[Featured Post]]></category>
		<category><![CDATA[XML Schema Design Approaches]]></category>
		<category><![CDATA[Xml Design Approaches]]></category>

		<guid isPermaLink="false">http://www.biztalkhq.com/?p=182</guid>
		<description><![CDATA[Article reference from :   http://technologyandleadership.com/three-schema-design-approaches/ &#160; In a project where multiple schemas are created it is critical to decide which namespace design approach is suitable for the project: (1)should we give each schema a different targetNamespace, (2)should we give all the schemas the same targetNamespace or (3)should some of the schemas have no targetNamespace. [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Article reference from :  <a title="http://technologyandleadership.com/three-schema-design-approaches/" href="http://technologyandleadership.com/three-schema-design-approaches/"> http://technologyandleadership.com/three-schema-design-approaches/</a></p>
<p>&nbsp;</p>
<p>In a project where multiple schemas are created it is critical to decide which namespace design approach is suitable for the project: (1)should we give each schema a different targetNamespace, (2)should we give all the schemas the same targetNamespace or (3)should some of the schemas have no targetNamespace. To make this critical design decision, let me illustrate the three schema design approaches in this article.</p>
<h2>Heterogeneous Namespace Design</h2>
<p>1. Give each schema a different targetNamespace<br />
2. If required to re-use another schema in the current schema we need to import it</p>
<p><strong>Benefits</strong><br />
1. Maximise the re-use of the types with separate namespaces<br />
2. Namespace mapped to domain specific service<br />
3. It would be easier to model all the domain-specific types in separate files with individual namespaces<br />
4. Easier to understand<br />
<strong>Drawbacks</strong><br />
1. There will be a large number of namespaces to manage<br />
2. There will be a large number of namespaces to import<br />
3. The granularity of the types in import would depend on the types defined and exposed in a particular domain-specific XSD</p>
<h2>Homogenous Namespace Design</h2>
<p>1. Give all schemas the same targetNamespace<br />
2. As the schemas have the same targetNamespace, the method of accessing components is “include”.</p>
<p><strong>Benefits</strong><br />
1. No need to either import a service or schemas<br />
<strong>Drawbacks<br />
</strong>1. Need to handle Name collisions<br />
2. Generate code in a single Java package, for a service<br />
3. chances for redundant types<br />
4. does not allow for domain-specific namespaces</p>
<h2>Chameleon Namespace Design</h2>
<p>Give the main schema a targetNamespace and give no targetNamespace to the supporting schemas. The no-namespace schemas will take-on the targetNamepspace of the main schema.</p>
<p><strong>Benefits</strong><br />
1. In this scheme, schemas are able to blend in with the main schemas that use them<br />
2. Ability to provide application-specific namespace to the schema<br />
<strong>Drawbacks</strong><br />
If the schema &lt;include&gt;s multiple no-namespace schemas then there will be a chance of name collisions. In fact, the schema may end up not being able to use some of the no-namespace schemas because their use results in name collisions with other Chameleon components</p>
<p>The most widely used schema design approach is heterogeneous schema design approach. Let me illustrate this with an example.</p>
<p><strong>Step1: </strong>Create a schema file named Books.xsd</p>
<p>&nbsp;</p>
<div>
<div>
<blockquote>
<pre>&lt;!-- to store book information with targetNamespace declared as tns:Books--&gt;
&lt;?xml version="1.0"?&gt;
&lt;xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            targetNamespace="tns:Books"
            elementFormDefault="unqualified"&gt;
    &lt;xsd:complexType name="Book"&gt;
        &lt;xsd:sequence&gt;
           &lt;xsd:element name="Author" type="xsd:string"/&gt;
           &lt;xsd:element name="Title" type="xsd:string"/&gt;
           &lt;xsd:element name="Price" type="xsd:double"/&gt;
           &lt;xsd:element name="Quantity" type="xsd:integer"/&gt;
        &lt;/xsd:sequence&gt;
    &lt;/xsd:complexType&gt;
&lt;/xsd:schema&gt;</pre>
</blockquote>
</div>
</div>
<p><strong>Step2:</strong> Create another schema file Sales.xsd</p>
<div>
<div>
<blockquote>
<pre>&lt;!-- to store the sales information with targetNamespace declared as tns:Sales--&gt;
&lt;?xml version="1.0"?&gt;
&lt;xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            targetNamespace="tns:Sales"
            elementFormDefault="unqualified"&gt;
    &lt;xsd:complexType name="Sales"&gt;
        &lt;xsd:sequence&gt;
             &lt;xsd:element name="Customer" type="xsd:string"/&gt;
             &lt;xsd:element name="Region" type="xsd:string"/&gt;
             &lt;xsd:element name="TransactionStatus" type="xsd:string"/&gt;
        &lt;/xsd:sequence&gt;
    &lt;/xsd:complexType&gt;
&lt;/xsd:schema&gt;</pre>
</blockquote>
</div>
</div>
<p><strong>Step3:</strong> Import the two schema files in Catalog.xsd file</p>
<div>
<div>
<pre>&lt;!--using the Heterogeneous namespace design approach--&gt;
&lt;?xml version="1.0"?&gt;
&lt;xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:b="tns:Books" xmlns:s="tns:Sales" xmlns:ns1="tns:Catalog" targetNamespace="tns:Catalog" elementFormDefault="unqualified"&gt;
	&lt;xsd:import namespace="tns:Books" schemaLocation="Books.xsd"/&gt;
	&lt;xsd:import namespace="tns:Sales" schemaLocation="Sales.xsd"/&gt;
	&lt;xsd:element name="Catalog"&gt;
		&lt;xsd:complexType&gt;
			&lt;xsd:sequence&gt;
				&lt;xsd:element name="Payment"&gt;
					&lt;xsd:complexType&gt;
						&lt;xsd:sequence&gt;
							&lt;xsd:element name="CustomerID" type="xsd:integer"&gt;&lt;/xsd:element&gt;
							&lt;xsd:element name="PaymentType" type="xsd:string"&gt;&lt;/xsd:element&gt;
							&lt;xsd:element name="Currency" type="xsd:string"&gt;&lt;/xsd:element&gt;
							&lt;xsd:element name="ShippingAddress" type="xsd:string"&gt;&lt;/xsd:element&gt;
						&lt;/xsd:sequence&gt;
					&lt;/xsd:complexType&gt;
				&lt;/xsd:element&gt;
				&lt;xsd:element name="Book" type="b:Book" maxOccurs="unbounded"/&gt;
				&lt;xsd:element name="Sales" type="s:Sales" maxOccurs="unbounded"/&gt;
			&lt;/xsd:sequence&gt;
		&lt;/xsd:complexType&gt;
	&lt;/xsd:element&gt;
&lt;/xsd:schema&gt;</pre>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.alirazazaidi.com/three-schema-design-approaches/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BAM Data read write from Dot net application</title>
		<link>http://www.alirazazaidi.com/bam-data-read-write-from-dot-net-application/</link>
		<comments>http://www.alirazazaidi.com/bam-data-read-write-from-dot-net-application/#comments</comments>
		<pubDate>Tue, 20 Sep 2011 11:21:50 +0000</pubDate>
		<dc:creator>Ali Raza Zaidi</dc:creator>
				<category><![CDATA[BAM]]></category>
		<category><![CDATA[BizTalk]]></category>
		<category><![CDATA[Biztalk 2010]]></category>
		<category><![CDATA[Biztalk]]></category>
		<category><![CDATA[BizTalk 2010]]></category>

		<guid isPermaLink="false">http://www.biztalkhq.com/?p=162</guid>
		<description><![CDATA[You know that BAM is used to gather statistics from your BizTalk application. What you probably don’t know is that: ·          You can collect BAM data from your non-BizTalk applications such as external .NET components that BizTalk calls into. ·          Tracking profile editor (TPE) is not the only way to collect data you can use a set [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><a href="http://www.alirazazaidi.com/wp-content/uploads/2011/09/PostIcon-copy.jpg"><img class="alignleft size-full wp-image-119" title="PostIcon copy" src="http://www.alirazazaidi.com/wp-content/uploads/2011/09/PostIcon-copy.jpg" alt="" width="150" height="150" /></a>You know that BAM is used to gather statistics from your BizTalk application. What you probably don’t know is that:</p>
<p>·          You can collect BAM data from your non-BizTalk applications such as external .NET components that BizTalk calls into.</p>
<p>·          Tracking profile editor (TPE) is not the only way to collect data you can use a set of APIs available in the Microsoft.BizTalk.Bam.EventObservation namespace to read and write directly into the BAMPrimaryImport database.</p>
<p>Check out some of the links here:</p>
<p>·          <a href="http://www.topxml.com/rbnews/BizTalk-BAM-activity/re-29195_Business-Activity-Monitoring--GenerateTypedBAMAPI-Tool.aspx" target="_blank"><span style="color: #800080;">http://www.topxml.com/rbnews/BizTalk-BAM-activity/re-29195_Business-Activity-Monitoring&#8211;GenerateTypedBAMAPI-Tool.aspx</span></a></p>
<p>·          <a href="http://www.developer.com/net/net/article.php/11087_3587296_2" target="_blank"><span style="color: #800080;">http://www.developer.com/net/net/article.php/11087_3587296_2</span></a></p>
<p>·          <a href="http://blogs.msdn.com/keithlim/archive/2006/02/02/522649.aspx" target="_blank"><span style="color: #800080;">http://blogs.msdn.com/keithlim/archive/2006/02/02/522649.aspx</span></a></p>
<p>·          <span style="color: #800080;"><a href="http://blogs.msdn.com/keithlim/archive/2006/03/08/545851.aspx" target="_blank">http://blogs.msdn.com/keithlim/archive/2006/03/08/545851.aspx</a>   r</span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Original Article : <a href="http://geekswithblogs.net/benny/archive/2007/06/14/113219.aspx">http://geekswithblogs.net/benny/archive/2007/06/14/113219.aspx</a><br />
&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alirazazaidi.com/bam-data-read-write-from-dot-net-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Generic fault message exception handling</title>
		<link>http://www.alirazazaidi.com/generic-fault-message-exception-handling/</link>
		<comments>http://www.alirazazaidi.com/generic-fault-message-exception-handling/#comments</comments>
		<pubDate>Mon, 19 Sep 2011 15:41:54 +0000</pubDate>
		<dc:creator>Ali Raza Zaidi</dc:creator>
				<category><![CDATA[BizTalk]]></category>
		<category><![CDATA[Biztalk 2010]]></category>
		<category><![CDATA[Tips and tricks]]></category>
		<category><![CDATA[Biztalk Error]]></category>

		<guid isPermaLink="false">http://www.biztalkhq.com/?p=152</guid>
		<description><![CDATA[&#160; In my current project, there are 50 operations on each port. It is very difficult and time consuming to create fault on every port operation and then add exception handler for every fault message.  This solution is not so comprehensive that if fault message is of different type what you made on each port [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>&nbsp;</p>
<p>In my current project, there are 50 operations on each port. It is very difficult and time consuming to create fault on every port operation and then add exception handler for every fault message.  This solution is not so comprehensive that if fault message is of different type what you made on each port</p>
<p>For example I selected “BTS.Soap_envelope_1__1.Fault on each operation,</p>
<p>than orchestration goes in suspended mode and process left uncompleted.</p>
<p>After too much search if found following exception type.</p>
<blockquote><p><a href="http://msdn.microsoft.com/en-us/library/microsoft.xlangs.basetypes.unexpectedmessagetypeexception(v=bts.10).aspx">Microsoft.XLANGs.BaseTypes.UnexpectedMessageTypeException</a></p></blockquote>
<p>&nbsp;</p>
<p>Its works wonder if any fault message return my orchestration process is not break.</p>
<p>&nbsp;</p>
<p><strong>Pros:</strong> Normal exception caught and Orchestration completes its process.</p>
<p><strong>Con:</strong> suspended instance of orchestration still visible at BizTalk admin with message “The instance completed without consuming all of its messages. The instance and its unconsumed messages have been suspended.”</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alirazazaidi.com/generic-fault-message-exception-handling/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exploring the BizTalk 2010 schema  Editor</title>
		<link>http://www.alirazazaidi.com/exploring-the-biztalk-2010-schema-editor/</link>
		<comments>http://www.alirazazaidi.com/exploring-the-biztalk-2010-schema-editor/#comments</comments>
		<pubDate>Wed, 14 Sep 2011 05:38:00 +0000</pubDate>
		<dc:creator>Ali Raza Zaidi</dc:creator>
				<category><![CDATA[BizTalk]]></category>
		<category><![CDATA[Biztalk 2010]]></category>
		<category><![CDATA[Schema Editor]]></category>

		<guid isPermaLink="false">http://www.biztalkhq.com/?p=139</guid>
		<description><![CDATA[Whenever you create new schema in visual studio or open the exiting one in BizTalk application  you find similar window. This screen shot is taken form  http://msdn.microsoft.com/en-us/library/aa559175%28v=bts.70%29.aspx. Schema Tree: &#160; From here you can create new node, element and records in schema. When you create new element BizTalk editor let you edit its name. You [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Whenever you create new schema in visual studio or open the exiting one in BizTalk application  you find similar window.</p>
<p><a href="http://www.alirazazaidi.com/wp-content/uploads/2011/09/IC407275.gif"><img class="aligncenter size-medium wp-image-140" title="IC407275" src="http://www.alirazazaidi.com/wp-content/uploads/2011/09/IC407275-300x210.gif" alt="" width="400" height="210" /></a></p>
<p>This screen shot is taken form  <a href="http://msdn.microsoft.com/en-us/library/aa559175%28v=bts.70%29.aspx">http://msdn.microsoft.com/en-us/library/aa559175%28v=bts.70%29.aspx</a>.</p>
<p><span id="more-426"></span></p>
<p>Schema Tree:<a href="http://www.alirazazaidi.com/wp-content/uploads/2011/09/9-14-2011-9-50-38-AM.png"><img class="alignright size-thumbnail wp-image-141" title="9-14-2011 9-50-38 AM" src="http://www.alirazazaidi.com/wp-content/uploads/2011/09/9-14-2011-9-50-38-AM-150x150.png" alt="" width="250" height="250" /></a></p>
<p>&nbsp;</p>
<p>From here you can create new node, element and records in schema. When you create new element BizTalk editor let you edit its name. You can change name by selecting element/node root and press F2 key on keyboard or rename from right click popup menu. Be default every element will create in string type, you cans select any element and change its value form property pane.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>XSD View. :<a href="http://www.alirazazaidi.com/wp-content/uploads/2011/09/Schema-Explorer.png"><img class="alignright size-thumbnail wp-image-142" title="Schema Explorer" src="http://www.alirazazaidi.com/wp-content/uploads/2011/09/Schema-Explorer-150x150.png" alt="" width="250" height="250" /></a></strong></p>
<p>&nbsp;</p>
<p>The middle area is call XSD view. Its is read only area, we can not update any thing directly form here. It shows what you create in Tree view in Schema format. If you want to change anything you have to update from Tree view or from Properties pane.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>Properties window:   <a href="http://www.alirazazaidi.com/wp-content/uploads/2011/09/Property-Schema1.png"><img class="alignright size-medium wp-image-144" title="Property Schema" src="http://www.alirazazaidi.com/wp-content/uploads/2011/09/Property-Schema1-243x300.png" alt="" width="243" height="300" /></a></strong></p>
<p>Form this panel you can update the most of properties of element or even Schema its self, It display the properties of selected element, node or record. If you select the schema  and then go to property panel you can update properties of schema itself, Usually people update the target UrI for schema in this way.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>Properties window: <a href="http://www.alirazazaidi.com/wp-content/uploads/2011/09/Solution-Explorar.png"><img class="alignright size-full wp-image-145" title="Solution Explorar" src="http://www.alirazazaidi.com/wp-content/uploads/2011/09/Solution-Explorar.png" alt="" width="247" height="219" /></a></strong></p>
<p>Form this panel you can update the most of properties of element or even Schema its self, It display the properties of selected element, node or record. If you select the schema  and then go to property panel you can update properties of schema itself, Usually people update the target UrI for schema in this way.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alirazazaidi.com/exploring-the-biztalk-2010-schema-editor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is BizTalk message Type ?</title>
		<link>http://www.alirazazaidi.com/what-is-biztalk-message-type/</link>
		<comments>http://www.alirazazaidi.com/what-is-biztalk-message-type/#comments</comments>
		<pubDate>Mon, 12 Sep 2011 15:52:31 +0000</pubDate>
		<dc:creator>Ali Raza Zaidi</dc:creator>
				<category><![CDATA[BizTalk]]></category>
		<category><![CDATA[Biztalk 2010]]></category>
		<category><![CDATA[Tips and tricks]]></category>
		<category><![CDATA[BizTalk 2010]]></category>
		<category><![CDATA[Biztalk Message Type]]></category>
		<category><![CDATA[What is biztalk message]]></category>

		<guid isPermaLink="false">http://www.biztalkhq.com/?p=135</guid>
		<description><![CDATA[All messages in BizTalk are represents in XML. One important aspect of all XML documents is its namespace. Briefly, a namespace allows you describe the Student (for example) in one way without affecting anyone else’s description, possible student can mean different things to other applications, Second important aspect of all XML document is the name [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>All messages in BizTalk are represents in XML. One important aspect of all XML documents is its namespace. Briefly, a namespace allows you describe the Student (for example) in one way without affecting anyone else’s description, possible student can mean different things to other applications, Second important aspect of all XML document is the name of document root node.</p>
<p>For example namespace of student XML is</p>
<blockquote><p>urn:schemas-BiztalkHQ-net:Student:mapcontext:1</p></blockquote>
<p>and Root Node of Schema is  </p>
<blockquote><p>Student .</p></blockquote>
<p>The combination of message namespace and name of root node are represented as:</p>
<p>&nbsp;</p>
<blockquote><p>urn:schemas-citrite-net:licensing:mapcontext:1#Student</p></blockquote>
<p>The hash symbol (#) separates the namespace from the name of the root node.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alirazazaidi.com/what-is-biztalk-message-type/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BTSNTSvc.Exe.Config</title>
		<link>http://www.alirazazaidi.com/btsntsvc-exe-config/</link>
		<comments>http://www.alirazazaidi.com/btsntsvc-exe-config/#comments</comments>
		<pubDate>Mon, 15 Aug 2011 13:44:53 +0000</pubDate>
		<dc:creator>Ali Raza Zaidi</dc:creator>
				<category><![CDATA[BizTalk]]></category>
		<category><![CDATA[Biztalk 2010]]></category>

		<guid isPermaLink="false">http://www.biztalkhq.com/?p=99</guid>
		<description><![CDATA[Just like web.config in asp.net and app.config in .net applicaiton.  BizTalk server stored configuration values in name value pair. The File Name is “BTSNTSvc.Exe.Config”. It is located at biztalk installation directory on you machines like c:program files BizTalk Server 2006BTSNTSvc.exe.config” Sample config file look like this &#60;?xml version=&#8221;1.0&#8243; ?&#62; &#60;configuration&#62; &#60;configSections&#62; &#60;section name=&#8221;xlangs&#8221; type=&#8221;Microsoft.XLANGs.BizTalk.CrossProcess.XmlSerializationConfigurationSectionHandler, Microsoft.XLANGs.BizTalk.CrossProcess&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Just like web.config in asp.net and app.config in .net applicaiton.  BizTalk server stored configuration values in name value pair.</p>
<p>The File Name is “<em>BTSNTSvc.Exe.Config</em>”.</p>
<p>It is located at biztalk installation directory on you machines like</p>
<p>c:program files <em>BizTalk Server 2006BTSNTSvc.exe.config</em>”</p>
<p>Sample config file look like this</p>
<p>&lt;?xml version=&#8221;1.0&#8243; ?&gt;<br />
&lt;configuration&gt;<br />
&lt;configSections&gt;<br />
&lt;section name=&#8221;xlangs&#8221; type=&#8221;Microsoft.XLANGs.BizTalk.CrossProcess.XmlSerializationConfigurationSectionHandler, Microsoft.XLANGs.BizTalk.CrossProcess&#8221; /&gt;<br />
&lt;/configSections&gt;</p>
<p>&lt;!&#8211; these settings are for BTS making HTTP/SOAP calls out, 2 concurrent connections is the default.<br />
This should be in EVERY system where BTS is calling WebServices &#8211;&gt;<br />
&lt;system.net&gt;<br />
&lt;connectionManagement&gt;<br />
&lt;add address=&#8221;*&#8221; maxconnection=&#8221;40&#8243;/&gt;<br />
&lt;/connectionManagement&gt;<br />
&lt;/system.net&gt;<br />
&lt;runtime&gt;<br />
&lt;assemblyBinding xmlns=&#8221;urn:schemas-microsoft-com:asm.v1&#8243;&gt;<br />
&lt;probing privatePath=&#8221;BizTalk Assemblies;Developer Tools;Tracking;Trackinginterop&#8221; /&gt;<br />
&lt;/assemblyBinding&gt;<br />
&lt;/runtime&gt;<br />
&lt;system.runtime.remoting&gt;<br />
&lt;channelSinkProviders&gt;<br />
&lt;serverProviders&gt;<br />
&lt;provider id=&#8221;sspi&#8221; type=&#8221;Microsoft.BizTalk.XLANGs.BTXEngine.SecurityServerChannelSinkProvider,Microsoft.XLANGs.BizTalk.Engine&#8221; securityPackage=&#8221;ntlm&#8221; authenticationLevel=&#8221;packetPrivacy&#8221; /&gt;<br />
&lt;/serverProviders&gt;<br />
&lt;/channelSinkProviders&gt;<br />
&lt;application&gt;<br />
&lt;channels&gt;<br />
&lt;channel ref=&#8221;tcp&#8221; port=&#8221;0&#8243; name=&#8221;"&gt;<br />
&lt;serverProviders&gt;<br />
&lt;provider ref=&#8221;sspi&#8221; /&gt;<br />
&lt;formatter ref=&#8221;binary&#8221; typeFilterLevel=&#8221;Full&#8221;/&gt;<br />
&lt;/serverProviders&gt;<br />
&lt;/channel&gt;<br />
&lt;/channels&gt;<br />
&lt;/application&gt;<br />
&lt;/system.runtime.remoting&gt;<br />
&lt;appSettings&gt;<br />
&lt;add key=&#8221;Key1&#8243; value=&#8221;Hello, World!&#8221; /&gt;<br />
&lt;/appSettings&gt;<br />
&lt;xlangs&gt;<br />
&lt;Configuration&gt;&lt;!&#8211; MaxThreshold &#8211; &#8220;Max time in memory an Orch will reside before dehydrat&#8221; MinThreshold &#8211; &#8220;Min time&#8221; &#8211;&gt;<br />
&lt;Dehydration MaxThreshold=&#8221;1800&#8243; MinThreshold=&#8221;1&#8243; ConstantThreshold=&#8221;-1&#8243;&gt;<br />
&lt;!&#8211; Currently, virtual memory can become a bottleneck on 32-bit machines due to unmanaged heap fragmentation, so you should throttle by this resource as well. &#8211;&gt;<br />
&lt;VirtualMemoryThrottlingCriteria OptimalUsage=&#8221;900&#8243;Â” MaximalUsage=&#8221;1300&#8243; IsActive=&#8221;true&#8221; /&gt;<br />
&lt;!&#8211; This is a useful criterion for throttling, but appropriate values depend on whether the box is being shared among servers. If the machine has a lot of RAM and is not being shared with other functions, then these values can be significantly increased.Optimal and maximal usage are in MB.&#8211;&gt;<br />
&lt;PrivateMemoryThrottlingCriteria OptimalUsage=&#8221;50&#8243; MaximalUsage=&#8221;350&#8243; IsActive=&#8221;true&#8221; /&gt;<br />
&lt;/Dehydration&gt;<br />
&lt;Debugging ValidateSchemas=&#8221;true&#8221; ValidateAssemblies=&#8221;true&#8221; ExtendedLogging=&#8221;true&#8221; ValidateCorrelations=&#8221;false&#8221; /&gt;<br />
&lt;AppDomains AssembliesPerDomain=&#8221;10&#8243;&gt;<br />
&lt;AppDomainSpecs&gt;<br />
&lt;AppDomainSpec Name=&#8221;DemoDomain&#8221; SecondsIdleBeforeShutdown=&#8221;-1&#8243; SecondsEmptyBeforeShutdown=&#8221;12000&#8243; /&gt;<br />
&lt;/AppDomainSpecs&gt;<br />
&lt;ExactAssignmentRules&gt;<br />
&lt;ExactAssignmentRule AssemblyName=&#8221;Configuration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=3a7d0586c62e754b&#8221; AppDomainName=&#8221;DemoDomain&#8221; /&gt;<br />
&lt;/ExactAssignmentRules&gt;<br />
&lt;/AppDomains&gt;<br />
&lt;/Configuration&gt;<br />
&lt;/xlangs&gt;<br />
&lt;/configuration&gt;</p>
<p><span id="more-420"></span></p>
<p>It is very difficult to maintain BTSNTSvc.exe.config file if there are a lot of BizTalk application are running on BizTalk server. To easily maintained the BizTalk applications. The solution is to have separate configuration files for every application. Attach/import the path of these config files in <strong>BtsNTSvc.exe.config</strong></p>
<p>1. In the “<strong>BtsNTSvc.exe.config</strong>” put an entry in the configSections</p>
<p>&lt;?xml version=”1.0″ ?&gt;<br />
&lt;configuration&gt;<br />
&lt;configSections&gt;<br />
&lt;section name=”<strong>MyAppSettings</strong>” type=”System.Configuration.NameValueFileSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089″ /&gt;<br />
&lt;/ configSections&gt;</p>
<p>…<br />
&lt;/configuration&gt;</p>
<p>2. In the “BtsNTSvc.exe.config” put an entry that associate the section with the external file</p>
<p>&lt;?xml version=”1.0″ ?&gt;<br />
&lt;configuration&gt;<br />
&lt;configSections&gt;<br />
…<br />
&lt;/configSections&gt;</p>
<p>&lt;runtime&gt;<br />
…<br />
&lt;/runtime&gt;</p>
<p>&lt;system.runtime.remoting&gt;<br />
…<br />
&lt;/system.runtime.remoting&gt;</p>
<p>&lt;<strong> MyAppSettings</strong> file=”<strong> </strong>MyApp.config” /&gt;</p>
<p>&lt;/configuration&gt;</p>
<p>Two Important points to be noted</p>
<ol>
<li><strong>1. </strong>Please take the back up of <strong>BtsNTSvc.exe.config </strong><strong>before modifying it.</strong><strong></strong></li>
<li><strong>2. </strong><strong>After medication and save. Please restart the host instances.</strong><strong></strong></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.alirazazaidi.com/btsntsvc-exe-config/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configure BAM Portal Access in BizTalk 2010</title>
		<link>http://www.alirazazaidi.com/configure-bam-portal-access-in-biztalk-2010/</link>
		<comments>http://www.alirazazaidi.com/configure-bam-portal-access-in-biztalk-2010/#comments</comments>
		<pubDate>Wed, 27 Jul 2011 13:10:58 +0000</pubDate>
		<dc:creator>Ali Raza Zaidi</dc:creator>
				<category><![CDATA[BizTalk]]></category>
		<category><![CDATA[Biztalk 2010]]></category>
		<category><![CDATA[Deployment Errors]]></category>

		<guid isPermaLink="false">http://www.biztalkhq.com/?p=90</guid>
		<description><![CDATA[Currently I deployed the BAM definition, but It was surprise for me that my view did not appear in BAM portal. I found that I did not grant access to BAM Portal. For this purpose I have to use BM.exe utility.  This tool is used for administer all things related to BAM, including deployment, permissions [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><a href="http://www.biztalkhq.com/wp-content/uploads/2011/06/PostIcon-copy.jpg"><img class="alignleft size-full wp-image-71" title="PostIcon copy" src="http://www.biztalkhq.com/wp-content/uploads/2011/06/PostIcon-copy.jpg" alt="" width="150" height="150" /></a>Currently I deployed the BAM definition, but It was surprise for me that my view did not appear in BAM portal.</p>
<p>I found that I did not grant access to BAM Portal. For this purpose I have to use BM.exe utility.  This tool is used for administer all things related to BAM, including deployment, permissions and alters.</p>
<p>The command line tool is located at the following location:</p>
<p>[BizTalk installation folder]Trackingbm.exe</p>
<p>Sample usage:<br />
bm.exe add-account -AccountName:[DomainGroupName] -View:[BAM View]<br />
or<br />
bm.exe add-account -AccountName:[DomainSamAccountName] -View:[BAM View] </p>
]]></content:encoded>
			<wfw:commentRss>http://www.alirazazaidi.com/configure-bam-portal-access-in-biztalk-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

