tag:blogger.com,1999:blog-54964864679398484512024-02-19T04:43:37.649-05:00BizTalk GuruBizTalk is My Passion Now Its YoursAnonymoushttp://www.blogger.com/profile/15527294402156840684noreply@blogger.comBlogger199125tag:blogger.com,1999:blog-5496486467939848451.post-67131984895549930902014-07-29T16:14:00.000-04:002014-07-29T16:14:06.501-04:00Q & A : BizTalk Server 2010 Configuration Error SSODB Cannot be created, SSODB is not accessible<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Verdana, sans-serif;">Q: </span><span style="font-family: Verdana, sans-serif;">I have encountered the following error during BizTalk 2010 Configuration Error's : SSODB Cannot be created, SSODB is Not Accessible, SSODB is Used by Another service etc..,</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">Ans: </span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">There are a few known issues encountered during installation and configuration of BizTalk Server 2010, There are a few points that you need to verify before you start configuring BizTalk Server 2010</span><br />
<br />
<ol style="text-align: left;">
<li><span style="font-family: Verdana, sans-serif;">MSDTC Should be configured and Tested for ping using DTC Tester, DTC Ping for Multi-server Installation.</span></li>
<li><span style="font-family: Verdana, sans-serif;">Installing User need to have permissions to update Active Directory for If Domain Accounts are used for BizTalk Configuration</span></li>
<li><span style="font-family: Verdana, sans-serif;">BizTalk Service Account used for configuration needs to have sufficient permissions to access database It needs to be part of SSO Administrators group during configuration</span></li>
<li><span style="font-family: Verdana, sans-serif;">You need to provide full SQL server name during installation SERVER_NAME\INSTANCE_NAME (Do <u>NOT</u> provide SQL Server Alias even if you have created one it may cause problems).</span></li>
<li><span style="font-family: Verdana, sans-serif;">In case you have installed .Net 4.0 as a part of Visual Studio or something else you need to register SSOSQL.dll so that SSO is registered to point the correct version of .Net Framework and load the correct dll. REGASM the SSOSQL.dll</span></li>
</ol>
<br />
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">This must be performed in order to allow the BizTalk Server
Configuration console to access the database when performing the Enterprise
Single Sign-On initial group creation.</span><o:p></o:p></div>
<ol>
<li><span style="font-family: Verdana, sans-serif;">
<div class="MsoNormal" style="margin-bottom: 12.0pt; margin-left: .5in; margin-right: 0in; margin-top: 3.0pt; mso-list: l0 level1 lfo1; tab-stops: list .25in; text-indent: -.25in;">
<!--[if !supportLists]-->1.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span><!--[endif]-->On
servers which have .NET 4.x installed, a hotfix to repair the .NET version
control on the SSOSQL.dll must first be run. As an administrative user on
the BizTalk Server, access this hotfix:<br />
<br />
<a href="http://www.microsoft.com/en-us/download/details.aspx?id=12284">http://www.microsoft.com/en-us/download/details.aspx?id=12284</a><o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 12.0pt; margin-left: .5in; margin-right: 0in; margin-top: 3.0pt; mso-list: l0 level1 lfo1; tab-stops: list .25in; text-indent: -.25in;">
<!--[if !supportLists]-->2.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span><!--[endif]-->As
an administrative user on the BizTalk Server or using the Command Prompt being
run as an Administrator, register the SSOSQL.dll using:<br />
<br />
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\RegAsm.exe “C:\Program
Files\Common Files\Enterprise Single Sign-On\SSOSQL.dll”<o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .5in; mso-list: l0 level1 lfo1; tab-stops: list .25in; text-indent: -.25in;">
<!--[if !supportLists]-->3.<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span><!--[endif]-->Ensure you are registering the SSOSQL.dll using
the .NET 4.x version of RegAsm.exe or you’ll be wasting your time! You
can register it with an earlier .NET version RegAsm.exe but it will not work –
it will not allow your BizTalk Server Configuration to access the database to
setup the SSO Group.<o:p></o:p></div>
</span></li>
</ol>
</div>
Anonymoushttp://www.blogger.com/profile/15527294402156840684noreply@blogger.com0tag:blogger.com,1999:blog-5496486467939848451.post-91314876219073435162014-05-02T12:23:00.000-04:002014-05-02T12:23:27.939-04:00Q & A: How To: Get rid of wcf one way port communication error<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="background-color: white; color: #333333; text-align: left;">
<b><span style="font-family: Verdana, sans-serif;">Q:</span></b></div>
<div style="background-color: white; color: #333333; text-align: left;">
<b><span style="font-family: Verdana, sans-serif;"><br /></span></b></div>
<div style="background-color: white; color: #333333; text-align: left;">
<span style="font-family: Verdana, sans-serif;">Hi,</span></div>
<div style="background-color: white; color: #333333; text-align: left;">
<span style="font-family: Verdana, sans-serif;"><span lang="EN"> </span>I Consumed one wcf one way serive at send port,but it is throwing error asking for reply.</span></div>
<div style="background-color: white; color: #333333; text-align: left;">
<span style="font-family: Verdana, sans-serif;">A message sent to adapter "WCF-WSHttp" on send port "WcfCacheService" with URI "" is suspended.</span></div>
<div style="background-color: white; color: #333333; text-align: left;">
</div>
<div style="background-color: white; color: #333333; text-align: left;">
<span style="font-family: Verdana, sans-serif;">Error details: System.ServiceModel.CommunicationException: The server did not provide a meaningful reply; this might be caused by a contract mismatch, a premature session shutdown or an internal server error.</span></div>
<div style="background-color: white; color: #333333; text-align: left;">
<span style="font-family: Verdana, sans-serif;">Server stack trace:</span></div>
<div style="background-color: white; color: #333333; text-align: left;">
<span style="font-family: Verdana, sans-serif;">at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)</span></div>
<div style="background-color: white; color: #333333; text-align: left;">
<span style="font-family: Verdana, sans-serif;">at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)</span></div>
<div style="background-color: white; color: #333333; text-align: left;">
<span style="font-family: Verdana, sans-serif;">at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)</span></div>
<div style="background-color: white; color: #333333; text-align: left;">
<span style="font-family: Verdana, sans-serif;">at System.ServiceModel.Channels.ServiceChannel.EndRequest(IAsyncResult result)</span></div>
<div style="background-color: white; color: #333333; text-align: left;">
<span style="font-family: Verdana, sans-serif;">Exception rethrown at [0]:</span></div>
<div style="background-color: white; color: #333333; text-align: left;">
<span style="font-family: Verdana, sans-serif;">at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)</span></div>
<div style="background-color: white; color: #333333; text-align: left;">
<span style="font-family: Verdana, sans-serif;">at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)</span></div>
<div style="background-color: white; color: #333333; text-align: left;">
<span style="font-family: Verdana, sans-serif;">at System.ServiceModel.Channels.IRequestChannel.EndRequest(IAsyncResult result)</span></div>
<div style="background-color: white; color: #333333; text-align: left;">
<span style="font-family: Verdana, sans-serif;">at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.RequestCallback(IAsyncResult result)</span></div>
<div style="background-color: white; color: #333333; text-align: left;">
<span style="font-family: Verdana, sans-serif;">MessageId: {BE03C2AD-5888-42AA-AE1B-D25965C6446A}</span></div>
<div style="background-color: white; color: #333333; text-align: left;">
<br /></div>
<div style="background-color: white; color: #333333; text-align: left;">
<span style="font-family: Verdana, sans-serif;"><span lang="EN"> </span>Thanks,</span></div>
<div style="background-color: white; color: #333333; text-align: left;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div style="background-color: white; color: #333333; text-align: left;">
<span style="font-family: Verdana, sans-serif;"><b><br /></b></span></div>
<div style="background-color: white; color: #333333; text-align: left;">
<span style="font-family: Verdana, sans-serif;"><b>Sol:</b></span></div>
<div style="background-color: white; color: #333333; text-align: left;">
<span style="font-family: Verdana, sans-serif;"><b><br /></b></span></div>
<div style="background-color: white; color: #333333;">
<span style="font-family: Verdana, sans-serif;">Hi,</span></div>
<div style="background-color: white; color: #333333;">
<span style="font-family: Verdana, sans-serif;">Problem got solved finally....feel gr8..</span></div>
<div style="background-color: white; color: #333333;">
<span style="font-family: Verdana, sans-serif;">In Binding tab of WCF-Custom adaptor...Binding Type is customBinding</span></div>
<div style="background-color: white; color: #333333;">
<span style="font-family: Verdana, sans-serif;">in the bindings <b>rightclick on CustomBindingElement->Add Extention->select one way->and move this to up </b>other wise will get error,bcoz http transport should be last.</span></div>
<div style="background-color: white; color: #333333;">
<span style="font-family: Verdana, sans-serif;">click ok and apply..thats it..</span></div>
<div style="background-color: white; color: #333333;">
<span style="font-family: Verdana, sans-serif;">Regards,</span></div>
<div style="background-color: white; color: #333333; text-align: left;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div style="background-color: white; color: #333333; text-align: left;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div style="background-color: white; color: #333333; text-align: left;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
</div>
Anonymoushttp://www.blogger.com/profile/15527294402156840684noreply@blogger.com0tag:blogger.com,1999:blog-5496486467939848451.post-91431742633247939082014-04-25T15:15:00.003-04:002014-04-25T15:15:30.766-04:00Biz Talk Q&A : Register Correct version of ASP.NET in IIS<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="background-color: white; border: 0px; color: #5b5b5b; line-height: 24px; margin-bottom: 20px; margin-top: 7px; padding: 0px; text-align: left; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif;">Q:</span></div>
<div style="background-color: white; border: 0px; color: #5b5b5b; line-height: 24px; margin-bottom: 20px; margin-top: 7px; padding: 0px; text-align: left; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif;">Getting the below error while browsing the website running on ASP.NET 4 application pool.</span></div>
<blockquote style="background-color: white; border: 0px; color: #5b5b5b; line-height: 24px; margin: 0px; padding: 0px; quotes: none; text-align: left; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; margin-bottom: 20px; margin-top: 7px; padding: 0px; vertical-align: baseline;">
<span style="color: #666666; font-family: Verdana, sans-serif;">Server Error in '/myVDir' Application. </span></div>
<span style="font-family: Verdana, sans-serif;"><span style="color: #666666;">-------------------------------------------------------------------------------- </span><span style="color: #666666;">Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. </span><span style="color: #666666;">Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. </span><span style="color: #666666;">Exception Details: System.TypeLoadException: Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.</span></span><br />
<ol style="background-color: white; border: 0px; color: #5b5b5b; line-height: 24px; list-style: none; margin: 5px 0px; padding: 5px 0px 0px 30px; vertical-align: baseline;">
<li style="background-color: transparent; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style: decimal; margin: 0px; padding: 0px 0px 5px; vertical-align: baseline;"><span style="font-family: Verdana, sans-serif;">Re-register the .NET 4 framework of ASP.NET with IIS</span></li>
</ol>
<ol style="background-color: white; border: 0px; color: #5b5b5b; line-height: 24px; list-style: none; margin: 5px 0px; padding: 5px 0px 0px 30px; vertical-align: baseline;">
<li style="background-color: transparent; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style: decimal; margin: 0px; padding: 0px 0px 5px; vertical-align: baseline;"><span style="font-family: Verdana, sans-serif;">Force this module to be loaded only inside a 2.0 application pool by changing the configuration manually</span></li>
</ol>
<ol style="background-color: white; border: 0px; color: #5b5b5b; line-height: 24px; list-style: none; margin: 5px 0px; padding: 5px 0px 0px 30px; vertical-align: baseline;">
<li style="background-color: transparent; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style: decimal; margin: 0px; padding: 0px 0px 5px; vertical-align: baseline;"><span style="font-family: Verdana, sans-serif;">Remove this 2.0 version Module from the list of modules if you are planning to run only ASP.NET 4 application pools.</span></li>
</ol>
<br />
</blockquote>
<div style="background-color: white; border: 0px; color: #5b5b5b; line-height: 24px; margin-bottom: 20px; margin-top: 7px; padding: 0px; text-align: left; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif;">You will run into this problem only if you install the .NET 3.5.1 WCF HTTP Activation feature after the installation of .NET 4 framework on your server.</span></div>
<div style="background-color: white; border: 0px; color: #5b5b5b; line-height: 24px; margin-bottom: 20px; margin-top: 7px; padding: 0px; text-align: left; vertical-align: baseline;">
<span style="background-color: transparent; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"><span style="font-family: Verdana, sans-serif;">Cause</span></span></div>
<div style="background-color: white; border: 0px; color: #5b5b5b; line-height: 24px; margin-bottom: 20px; margin-top: 7px; padding: 0px; text-align: left; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif;">Installation of .NET 3.5.1 WCF HTTP activation feature adds a global module for the 3.0 framework’s 'System.ServiceModel’ assembly for the type 'System.ServiceModel.Activation.HttpModule'. Since the application pool’s runtime version is v4.0, this assembly is tried to be loaded from the .NET 4 assemblies folder. Since, the definition of the 'System.ServiceModel.Activation.HttpModule’ is now moved to the “System.ServiceModel.Activation” assembly, it fails.</span></div>
<div style="background-color: white; border: 0px; color: #5b5b5b; line-height: 24px; margin-bottom: 20px; margin-top: 7px; padding: 0px; text-align: left; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif;">This problem doesn’t occur if you run your application pool under classic mode. You can resolve the problem by following any of the following:</span></div>
<div style="background-color: white; border: 0px; color: #5b5b5b; line-height: 24px; margin-bottom: 20px; margin-top: 7px; padding: 0px; text-align: left; vertical-align: baseline;">
<span style="background-color: transparent; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"><span style="font-family: Verdana, sans-serif;">Answer #1</span></span></div>
<div style="background-color: white; border: 0px; color: #5b5b5b; line-height: 24px; margin-bottom: 20px; margin-top: 7px; padding: 0px; text-align: left; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif;">To re-register the ASP.NET 4 assemblies with IIS, open a command prompt (as an admin), and navigate to the .NET 4 framework folder (%windir%\Microsoft.NET\Framework\v4.0.30319). Type <span style="background-color: transparent; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">aspnet_regiis -iru</span>, and press enter. This command will re-register the ASP.NET 4 framework with IIS which will modify the ‘ServiceModel’ configuration to be loaded only inside a .NET 2.0 application pools. For some reason, you choose not to re-register the ASP.NET 4 version assemblies with IIS, you can follow the resolution #2 explained below, which will do the same configuration change, but manually.</span></div>
<div style="background-color: white; border: 0px; color: #5b5b5b; line-height: 24px; margin-bottom: 20px; margin-top: 7px; padding: 0px; text-align: left; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif;"><span style="background-color: transparent; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"></span></span></div>
<div style="background-color: white; border: 0px; color: #5b5b5b; line-height: 24px; margin-bottom: 20px; margin-top: 7px; padding: 0px; text-align: left; vertical-align: baseline;">
<span style="background-color: transparent; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"><span style="font-family: Verdana, sans-serif;">Answer</span><span style="font-family: Verdana, sans-serif;"> #2</span></span></div>
<div style="background-color: white; border: 0px; color: #5b5b5b; line-height: 24px; margin-bottom: 20px; margin-top: 7px; padding: 0px; text-align: left; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif;">The worker process tries to load the assembly since it passes the pre-condition. Its pre-condition is just “managedHandler” which doesn’t specify the runtimeVersion information. By default it is loaded inside the application pools running with any version of .NET framework.</span></div>
<div style="background-color: white; border: 0px; color: #5b5b5b; line-height: 24px; margin-bottom: 20px; margin-top: 7px; padding: 0px; text-align: left; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif;">To resolve the problem, change the configuration of the module to be loaded only if the runtime version is 2.0, so that it doesn't interfere with .NET framework 4 application pool:</span></div>
<blockquote style="background-color: white; border: 0px; color: #5b5b5b; line-height: 24px; margin: 0px; padding: 0px; quotes: none; text-align: left; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; margin-bottom: 20px; margin-top: 7px; padding: 0px; vertical-align: baseline;">
<span style="color: #666666; font-family: Verdana, sans-serif;"><add name="ServiceModel" type="System.ServiceModel.Activation.HttpModule, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" preCondition="managedHandler,runtimeVersionv2.0" /></span></div>
</blockquote>
<div style="background-color: white; border: 0px; color: #5b5b5b; line-height: 24px; margin-bottom: 20px; margin-top: 7px; padding: 0px; text-align: left; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif;">AppCmd syntax:</span></div>
<blockquote style="background-color: white; border: 0px; color: #5b5b5b; line-height: 24px; margin: 0px; padding: 0px; quotes: none; text-align: left; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; margin-bottom: 20px; margin-top: 7px; padding: 0px; vertical-align: baseline;">
<span style="color: #666666; font-family: Verdana, sans-serif;">appcmd.exe set config -section:system.webServer/modules /[name='ServiceModel'].preCondition:"managedHandler,runtimeVersionv2.0" /commit:apphost</span></div>
</blockquote>
<div style="background-color: white; border: 0px; color: #5b5b5b; line-height: 24px; margin-bottom: 20px; margin-top: 7px; padding: 0px; text-align: left; vertical-align: baseline;">
<span style="background-color: transparent; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"><span style="font-family: Verdana, sans-serif;">Answer</span><span style="font-family: Verdana, sans-serif;"> #3</span></span></div>
<div style="background-color: white; border: 0px; color: #5b5b5b; line-height: 24px; margin-bottom: 20px; margin-top: 7px; padding: 0px; text-align: left; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif;">Alternatively, you can uninstall the .NET 3.5.1 WCF HTTP activation if you are not planning to use this feature. This would simply remove the module ‘ServiceModel’ from the list of modules. Remember, this is going to affect all the application pools, so if you have any application pool which might use this module, then do not proceed with the uninstallation. Alternatively, you can remove it from the global modules list, and add it specifically to the application needing it.</span></div>
<div style="background-color: white; border: 0px; color: #5b5b5b; line-height: 24px; margin-bottom: 20px; margin-top: 7px; padding: 0px; text-align: left; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif;">You can also simply remove the module from the modules list. Below is the appcmd to remove the module from the global list.</span></div>
<div style="background-color: white; border: 0px; color: #5b5b5b; line-height: 24px; margin-bottom: 20px; margin-top: 7px; padding: 0px; text-align: left; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif;">AppCmd to remove the module:</span></div>
<blockquote style="background-color: white; border: 0px; color: #5b5b5b; line-height: 24px; margin: 0px; padding: 0px; quotes: none; text-align: left; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; margin-bottom: 20px; margin-top: 7px; padding: 0px; vertical-align: baseline;">
<span style="color: #666666; font-family: Verdana, sans-serif;">appcmd.exe set config -section:system.webServer/modules /-"[name='ServiceModel']" /commit:apphost</span></div>
</blockquote>
<div style="background-color: white; border: 0px; color: #5b5b5b; line-height: 24px; margin-bottom: 20px; margin-top: 7px; padding: 0px; text-align: left; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif;">Below is the AppCmd to add the module to the application needing it.</span></div>
<blockquote style="background-color: white; border: 0px; color: #5b5b5b; line-height: 24px; margin: 0px; padding: 0px; quotes: none; text-align: left; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; margin-bottom: 20px; margin-top: 7px; padding: 0px; vertical-align: baseline;">
<span style="color: #666666; font-family: Verdana, sans-serif;">appcmd.exe set config "Default Web Site" -section:system.webServer/modules /+"[name='ServiceModel',type='System.ServiceModel.Activation.HttpModule, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089',preCondition='managedHandler,runtimeVersionv2.0']"</span></div>
</blockquote>
</div>
Anonymoushttp://www.blogger.com/profile/15527294402156840684noreply@blogger.com0tag:blogger.com,1999:blog-5496486467939848451.post-70864608026388428602014-03-11T11:54:00.003-04:002014-03-11T11:55:32.170-04:00Creating Classes Using xsd.exe Demystified<div dir="ltr" style="text-align: left;" trbidi="on">
<h3 class="post-title entry-title" itemprop="name" style="background-color: white; color: #333333; font-family: Verdana, Arial, sans-serif; font-size: 16.363636016845703px; line-height: 1.1em; margin: 0px; padding: 0px;">
</h3>
<div class="post-header" style="background-color: white; color: #333333; font-family: Verdana, Arial, sans-serif; font-size: 12.727272033691406px; line-height: 1.3em; margin: 0px 0px 0.75em;">
<div class="post-header-line-1" style="line-height: 1.3em; margin: 0px 0px 0.75em;">
</div>
</div>
<span style="background-color: white; color: #333333; font-family: Verdana, Arial, sans-serif; font-size: 10.909090995788574px; line-height: 14.703001022338867px;">Posted by </span><span class="fn" itemprop="author" itemscope="itemscope" itemtype="http://schema.org/Person" style="background-color: white; color: #333333; font-family: Verdana, Arial, sans-serif; font-size: 10.909090995788574px; line-height: 14.703001022338867px;"><span itemprop="name" style="color: #336699;"><a class="g-profile" href="http://www.blogger.com/profile/11229612024940240358" rel="author" style="color: #336699;" title="author profile">Daryl</a></span></span><br />
<span class="fn" itemprop="author" itemscope="itemscope" itemtype="http://schema.org/Person" style="background-color: white; color: #333333; font-family: Verdana, Arial, sans-serif; font-size: 10.909090995788574px; line-height: 14.703001022338867px;"><br /></span>
<div class="post-body entry-content" id="post-body-2167836640011864440" itemprop="description articleBody" style="-webkit-text-stroke-width: 0px; background-color: white; color: #333333; font-family: Verdana, Arial, sans-serif; font-size: 12.727272033691406px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.3em; margin: 0px 0px 0.75em; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">
Not a lot of people are familiar with the xsd.exe that ships with Visual Studio. It allows you to create XML/classes from XML/classes. The following are the 4.0 xsd.exe capabilities:<br />
<blockquote style="margin: 1em 20px;">
<dl>
<dt>XDR to XSD</dt>
<dd>Generates an XML schema from an XML-Data-Reduced schema file. XDR is an early XML-based schema format.</dd></dl>
<dl>
<dt>XML to XSD</dt>
<dd>Generates an XML schema from an XML file.</dd></dl>
<dl>
<dt>XSD to DataSet</dt>
<dd>Generates common language runtime <strong>DataSet</strong> classes from an XSD schema file. The generated classes provide a rich object model for regular XML data.</dd></dl>
<dl>
<dt>XSD to Classes</dt>
<dd>Generates runtime classes from an XSD schema file. The generated classes can be used in conjunction with System.Xml.Serialization.XmlSerializer to read and write XML code that follows the schema.</dd></dl>
<dl>
<dt>Classes to XSD</dt>
<dd>Generates an XML schema from a type or types in a runtime assembly file. The generated schema defines the XML format used by<strong>System.Xml.Serialization.XmlSerializer</strong>.</dd></dl>
</blockquote>
It I’m a big fan of using xml schemas (XSDs) to generate classes that can be used to serialize and deserialize objects to and from XML (the XSD to Classes functionality listed above). If your schema changes, just rerunning xsd.exe for the correct schema updates the classes. No manually changes have to be made, including serialization code. It’s a beautiful thing. The problem has been, how do you set up your classes to automatically recompile with changes to the schema, and how do you deal with schemas that import other schemas?<br />
<h4>
</h4>
<h4>
</h4>
<h4>
XSDs Importing other XSDs</h4>
A common issue that developers of XSDs run into is violating the DRY principle repeatedly with XSD types. For example, let’s say you create a calendar meeting request service that has two XSDs, one for the request XML and one for the response XML. You’ve defined a xs:complexType “Meeting” that includes the date and location:<br />
<pre class="code"><span style="font-size: 9.090909004211426px;"><span style="color: blue;"> <</span><span style="color: maroon;">xs:complexType </span><span style="color: teal;">name</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">Meeting</span><span style="color: blue;">"</span><span style="color: blue;">></span><span style="color: blue;">
</span><span style="color: blue;"> <</span><span style="color: maroon;">xs:sequence</span><span style="color: blue;">></span><span style="color: blue;">
</span><span style="color: blue;"> <</span><span style="color: maroon;">xs:element </span><span style="color: teal;">name</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">Location</span><span style="color: blue;">" </span><span style="color: teal;">type</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">xs:string</span><span style="color: blue;">"</span><span style="color: blue;">/></span><span style="color: blue;">
</span><span style="color: blue;"> <</span><span style="color: maroon;">xs:element </span><span style="color: teal;">name</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">Date</span><span style="color: blue;">" </span><span style="color: teal;">type</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">xs:date</span><span style="color: blue;">"</span><span style="color: blue;">/></span><span style="color: blue;">
</span><span style="color: blue;"> </</span><span style="color: maroon;">xs:sequence</span><span style="color: blue;">></span><span style="color: blue;">
</span><span style="color: blue;"> </</span><span style="color: maroon;">xs:complexType</span><span style="color: blue;">></span></span></pre>
But you want to use it in both the request and the response XML. You could just copy and past it into both XSD files, and it will validate just fine, but if you use xsd.exe to generate your classes, it’s going to create two classes of type Meeting, which will cause a compiler error. You could have a separate namespace for each class, but then you’re definitely violating DRY. The answer is to place the Meeting type in a separate XSD and then reference it from both your request and your response XSD. This results in the XSDs below<br />
<div style="line-height: 1.3em; margin: 0px 0px 0.75em;">
<br /></div>
C:\Solution\Project\Types.xsd<br />
<span class="Apple-style-span" style="font-family: monospace; font-size: x-small; white-space: pre;"><span style="color: blue;"><?</span><span style="color: maroon;">xml </span><span style="color: teal;">version</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">1.0</span><span style="color: blue;">" </span><span style="color: teal;">encoding</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">utf-8</span><span style="color: blue;">"</span><span style="color: blue;">?></span></span><br />
<pre class="code"><span style="font-size: 9.090909004211426px;"><span style="color: blue;"><</span><span style="color: maroon;">xs:schema </span><span style="color: teal;">id</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">Types</span><span style="color: blue;">"</span><span style="color: black;">
</span><span style="color: teal;">targetNamespace</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">http://www.Example.com/Types</span><span style="color: blue;">"</span><span style="color: black;">
</span><span style="color: teal;">elementFormDefault</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">qualified</span><span style="color: blue;">"</span><span style="color: black;">
</span><span style="color: teal;">xmlns</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">http://www.Example.com/Types</span><span style="color: blue;">"</span><span style="color: black;">
</span><span style="color: teal;">xmlns:mstns</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">http://www.Example.com/Types</span><span style="color: blue;">"</span><span style="color: black;">
</span><span style="color: teal;">xmlns:xs</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">http://www.w3.org/2001/XMLSchema</span><span style="color: blue;">"</span><span style="color: black;">
</span><span style="color: blue;">></span><span style="color: black;">
</span><span style="color: blue;"> <</span><span style="color: maroon;">xs:complexType </span><span style="color: teal;">name</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">Meeting</span><span style="color: blue;">"</span><span style="color: blue;">></span><span style="color: black;">
</span><span style="color: blue;"> <</span><span style="color: maroon;">xs:sequence</span><span style="color: blue;">></span><span style="color: black;">
</span><span style="color: blue;"> <</span><span style="color: maroon;">xs:element </span><span style="color: teal;">name</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">Location</span><span style="color: blue;">" </span><span style="color: teal;">type</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">xs:string</span><span style="color: blue;">"</span><span style="color: blue;">/></span><span style="color: black;">
</span><span style="color: blue;"> <</span><span style="color: maroon;">xs:element </span><span style="color: teal;">name</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">Date</span><span style="color: blue;">" </span><span style="color: teal;">type</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">xs:date</span><span style="color: blue;">"</span><span style="color: blue;">/></span><span style="color: black;">
</span><span style="color: blue;"> </</span><span style="color: maroon;">xs:sequence</span><span style="color: blue;">></span><span style="color: black;">
</span><span style="color: blue;"> </</span><span style="color: maroon;">xs:complexType</span><span style="color: blue;">></span><span style="color: black;">
</span><span style="color: blue;"></</span><span style="color: maroon;">xs:schema</span><span style="color: blue;">></span><span style="color: black;">
</span><span style="color: blue;"></span></span></pre>
<div style="line-height: 1.3em; margin: 0px 0px 0.75em;">
<br /></div>
<div style="line-height: 1.3em; margin: 0px 0px 0.75em;">
<br /></div>
C:\Solution\Project\Request.xsd<br />
<span class="Apple-style-span" style="font-family: monospace; font-size: x-small; white-space: pre;"><span style="color: blue;"><?</span><span style="color: maroon;">xml </span><span style="color: teal;">version</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">1.0</span><span style="color: blue;">" </span><span style="color: teal;">encoding</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">utf-8</span><span style="color: blue;">"</span><span style="color: blue;"> ?></span></span><br />
<pre class="code"><span style="font-size: 9.090909004211426px;"><span style="color: blue;"><</span><span style="color: maroon;">xs:schema </span><span style="color: teal;">elementFormDefault</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">qualified</span><span style="color: blue;">" </span><span style="color: teal;">xmlns:xs</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">http://www.w3.org/2001/XMLSchema</span><span style="color: blue;">" </span><span style="color: teal;">xmlns:myTypes</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">http://www.Example.com/Types</span><span style="color: blue;">"</span><span style="color: blue;">></span><span style="color: black;">
</span><span style="color: blue;"> <</span><span style="color: maroon;">xs:import </span><span style="color: teal;">namespace</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">http://www.Example.com/Types</span><span style="color: blue;">" </span><span style="color: teal;">schemaLocation</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">Types.xsd</span><span style="color: blue;">"</span><span style="color: blue;"> /></span><span style="color: black;">
</span><span style="color: blue;"> <</span><span style="color: maroon;">xs:element </span><span style="color: teal;">name</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">Request</span><span style="color: blue;">"</span><span style="color: blue;">></span><span style="color: black;">
</span><span style="color: blue;"> <</span><span style="color: maroon;">xs:complexType</span><span style="color: blue;">></span><span style="color: black;">
</span><span style="color: blue;"> <</span><span style="color: maroon;">xs:sequence</span><span style="color: blue;">></span><span style="color: black;">
</span><span style="color: blue;"> <</span><span style="color: maroon;">xs:element </span><span style="color: teal;">name</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">RqstMeeting</span><span style="color: blue;">" </span><span style="color: teal;">type</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">myTypes:Meeting</span><span style="color: blue;">"</span><span style="color: blue;">/></span><span style="color: black;">
</span><span style="color: blue;"> <</span><span style="color: maroon;">xs:element </span><span style="color: teal;">name</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">RqstName</span><span style="color: blue;">" </span><span style="color: teal;">type</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">xs:string</span><span style="color: blue;">"</span><span style="color: blue;">/></span><span style="color: black;">
</span><span style="color: blue;"> </</span><span style="color: maroon;">xs:sequence</span><span style="color: blue;">></span><span style="color: black;">
</span><span style="color: blue;"> </</span><span style="color: maroon;">xs:complexType</span><span style="color: blue;">></span><span style="color: black;">
</span><span style="color: blue;"> </</span><span style="color: maroon;">xs:element</span><span style="color: blue;">></span><span style="color: black;">
</span><span style="color: blue;"></</span><span style="color: maroon;">xs:schema</span><span style="color: blue;">></span><span style="color: black;">
</span><span style="color: blue;"></span></span></pre>
<br />
C:\Solution\Project\Response.xsd<br />
<pre class="code"><span style="font-size: 9.090909004211426px;"><span style="color: blue;"><?</span><span style="color: maroon;">xml </span><span style="color: teal;">version</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">1.0</span><span style="color: blue;">" </span><span style="color: teal;">encoding</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">utf-8</span><span style="color: blue;">"</span><span style="color: blue;"> ?></span><span style="color: black;">
</span><span style="color: blue;"><</span><span style="color: maroon;">xs:schema </span><span style="color: teal;">elementFormDefault</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">qualified</span><span style="color: blue;">" </span><span style="color: teal;">xmlns:xs</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">http://www.w3.org/2001/XMLSchema</span><span style="color: blue;">" </span><span style="color: teal;">xmlns:myTypes</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">http://www.Example.com/Types</span><span style="color: blue;">"</span><span style="color: blue;">></span><span style="color: black;">
</span><span style="color: blue;"> <</span><span style="color: maroon;">xs:import </span><span style="color: teal;">namespace</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">http://www.Example.com/Types</span><span style="color: blue;">" </span><span style="color: teal;">schemaLocation</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">Types.xsd</span><span style="color: blue;">"</span><span style="color: blue;"> /></span><span style="color: black;">
</span><span style="color: blue;"> <</span><span style="color: maroon;">xs:element </span><span style="color: teal;">name</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">Response</span><span style="color: blue;">"</span><span style="color: blue;">></span><span style="color: black;">
</span><span style="color: blue;"> <</span><span style="color: maroon;">xs:complexType</span><span style="color: blue;">></span><span style="color: black;">
</span><span style="color: blue;"> <</span><span style="color: maroon;">xs:sequence</span><span style="color: blue;">></span><span style="color: black;">
</span><span style="color: blue;"> <</span><span style="color: maroon;">xs:element </span><span style="color: teal;">name</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">Accepted</span><span style="color: blue;">" </span><span style="color: teal;">type</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">xs:boolean</span><span style="color: blue;">"</span><span style="color: blue;">/></span><span style="color: black;">
</span><span style="color: blue;"> <</span><span style="color: maroon;">xs:element </span><span style="color: teal;">name</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">AlternateMeeting</span><span style="color: blue;">" </span><span style="color: teal;">type</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">myTypes:Meeting</span><span style="color: blue;">" </span><span style="color: teal;">minOccurs</span><span style="color: blue;">=</span><span style="color: blue;">"</span><span style="color: black;">0</span><span style="color: blue;">"</span><span style="color: blue;">/></span><span style="color: black;">
</span><span style="color: blue;"> </</span><span style="color: maroon;">xs:sequence</span><span style="color: blue;">></span><span style="color: black;">
</span><span style="color: blue;"> </</span><span style="color: maroon;">xs:complexType</span><span style="color: blue;">></span><span style="color: black;">
</span><span style="color: blue;"> </</span><span style="color: maroon;">xs:element</span><span style="color: blue;">></span><span style="color: black;">
</span><span style="color: blue;"></</span><span style="color: maroon;">xs:schema</span><span style="color: blue;">></span><span style="color: black;">
</span><span style="color: blue;">
</span></span></pre>
<br />
Now we’ve defined our Meeting type in one file, and reused it in both our Request.xsd and Response.xsd.<br />
<br />
<b></b><br />
<h4>
Getting xsd.exe To Import XSDs</h4>
Now that the type has been defined in another file, the xsd.exe will generate this error if you attempt to create the create the Request XML:<br />
C:\Solution\Project>xsd.exe Request.xsd /c<br />
<blockquote style="margin: 1em 20px;">
Schema validation warning: Type '<a href="http://www.example.com/Types:Meeting'" style="color: #336699;">http://www.Example.com/Types:Meeting'</a> is not declared.<br />
Warning: Schema could not be validated. Class generation may fail or may produce incorrect results.<br />
Error: Error generating classes for schema 'C:\Solution\Projects\Request'.<br />
<br />
- The datatype '<a href="http://www.example.com/Types:Meeting'" style="color: #336699;">http://www.Example.com/Types:Meeting'</a> is missing.<br />
If you would like more help, please type "xsd /?".</blockquote>
This is due to the fact that the xsd.exe does not use the schemaLocation hint to find the imported schema. You’ve got to include it as a parameter. in your xsd.exe call:<br />
C:\Solution\Project>xsd.exe Types.xsd Request.xsd /c<br />
This will generate one file call Request.cs that has a Request class, and a Meeting class. Now we just need to create the Response class and we’re good to go. But wait… running “C:\Solution\Project>xsd.exe Types.xsd Response.xsd /c” will create a different file, Response.cs, that contains a Response class and a duplicate Meeting class. Now we’re stuck with another compiler error and no longer DRY.<br />
<h4>
<span class="Apple-style-span" style="font-weight: normal;"><b><br /></b></span></h4>
<h4>
Getting xsd.exe To Not Create Duplicate Classes</h4>
This is a simple fix, but it took me a long time to figure out. You have to use xsd.exe to compile all of your classes at once, so rather than running two separate commands, you just need to run one:<br />
C:\Solution\Project>xsd.exe Types.xsd Request.xsd Response.xsd /c<br />
Now you have one file, Response.xsd, with all three classes in it.<br />
<br />
<h4>
Getting Visual Studio 2010 To Auto Recompile XSD Generated Classes</h4>
Using the Project Build Events, you can set the project to always recompile the XSD classes each time you build the project. It is also helpful to rename the file so it isn’t always the name of the last XSD file passed to xsd.exe. Here are the Pre-build event command line values required to auto build the XSD classes and rename the file to XsdGeneratedClasses.cs:<br />
<br />
<span style="color: #38761d;">EDIT suggested by <a href="http://www.blogger.com/profile/02392514178092280195" rel="nofollow" style="color: #336699;" target="_blank">Jamie</a> instead of the Registry hack (it worked back in the day for me, don't know if it still does), he suggests using "$(TargetFrameworkSDKToolsDirectory)xsd.exe" to find the path of the xsd.exe. Thanks Jamie!</span><br />
<span style="font-family: inherit;"><span style="background-color: white; color: #333333; font-size: 13px; line-height: 16.890625px;"><br /></span></span>"$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A\@InstallationFolder)\bin\NETFX 4.0 Tools\xsd.exe" "$(ProjectDir)Request.xsd" "$(ProjectDir)Response.xsd" "$(ProjectDir)Types.xsd" /c /o:"$(ProjectDir)"<br />
move "$(ProjectDir)Types.cs" "$(ProjectDir)XsdGeneratedClasses.cs"<br />
<br />
Now whenever the project get’s built, the XSD generated classes will always be rewritten by xsd.exe<br />
<br />
<br />
<br />
<h4>
Extending XSD Generated Classes</h4>
Don’t forget that classes created by xsd.exe are all partial classes. It’s a good idea to add default constructors and logic in a separate partial class in a different file. It’s especially helpful for initializing arrays since xsd.exe generated classes use arrays and not ArrayLists or Generic Lists. This allows you to add logic, that won’t be changed when the class is regenerated.<br />
<br />
<br />
<h4>
Serializing/Deserializing XSD Generated Classes</h4>
<div style="line-height: 1.3em; margin: 0px 0px 0.75em;">
Now your code for Serializing and Deserializing your objects is as simple as this:</div>
<div style="line-height: 1.3em; margin: 0px 0px 0.75em;">
To Serialize:</div>
<br />
<pre class="code"><span style="font-size: 9.090909004211426px;"><span style="color: #2b91af;">XmlSerializer </span><span style="color: #010001;">s</span><span style="color: black;"> = </span><span style="color: blue;">new </span><span style="color: #2b91af;">XmlSerializer</span><span style="color: black;">(</span><span style="color: blue;">typeof</span><span style="color: black;">(</span><span style="color: #2b91af;">Request</span><span style="color: black;">));</span><span style="color: #010001;">System</span><span style="color: black;">.</span><span style="color: #010001;">IO</span><span style="color: black;">.</span><span style="color: #2b91af;">TextWriter </span><span style="color: #010001;">w</span><span style="color: black;"> = </span><span style="color: blue;">new </span><span style="color: #010001;">System</span><span style="color: black;">.</span><span style="color: #010001;">IO</span><span style="color: black;">.</span><span style="color: #2b91af;">StreamWriter</span><span style="color: black;">(</span><span style="color: #a31515;">@"C:\Request.xml"</span><span style="color: black;">);</span><span style="color: #010001;">s</span><span style="color: black;">.</span><span style="color: #010001;">Serialize</span><span style="color: black;">(</span><span style="color: #010001;">w</span><span style="color: black;">, </span><span style="color: blue;">new </span><span style="color: #2b91af;">Request</span><span style="color: black;">());</span><span style="color: #010001;">w</span><span style="color: black;">.</span><span style="color: #010001;">Close</span><span style="color: black;">();</span><span style="color: silver;">
</span></span></pre>
<br />
<div style="line-height: 1.3em; margin: 0px 0px 0.75em;">
<br /></div>
<div style="line-height: 1.3em; margin: 0px 0px 0.75em;">
To Deserialize:</div>
<br />
<pre class="code"><span style="font-size: 9.090909004211426px;"><span style="color: #2b91af;">XmlSerializer </span><span style="color: #010001;">s</span><span style="color: black;"> = </span><span style="color: blue;">new </span><span style="color: #2b91af;">XmlSerializer</span><span style="color: black;">(</span><span style="color: blue;">typeof</span><span style="color: black;">(</span><span style="color: #2b91af;">Request</span><span style="color: black;">));</span><span style="color: #2b91af;">Request </span><span style="color: #010001;">request</span><span style="color: black;">;</span><span style="color: #010001;">System</span><span style="color: black;">.</span><span style="color: #010001;">IO</span><span style="color: black;">.</span><span style="color: #2b91af;">TextReader </span><span style="color: #010001;">r</span><span style="color: black;"> = </span><span style="color: blue;">new </span><span style="color: #010001;">System</span><span style="color: black;">.</span><span style="color: #010001;">IO</span><span style="color: black;">.</span><span style="color: #2b91af;">StreamReader</span><span style="color: black;">(</span><span style="color: #a31515;">"request.xml"</span><span style="color: black;">);</span><span style="color: #010001;">request</span><span style="color: black;"> = (</span><span style="color: #2b91af;">Request</span><span style="color: black;">)</span><span style="color: #010001;">s</span><span style="color: black;">.</span><span style="color: #010001;">Deserialize</span><span style="color: black;">(</span><span style="color: #010001;">r</span><span style="color: black;">);</span><span style="color: #010001;">r</span><span style="color: black;">.</span><span style="color: #010001;">Close</span><span style="color: black;">();</span><span style="color: silver;">
</span></span></pre>
<div style="line-height: 1.3em; margin: 0px 0px 0.75em;">
<br /></div>
<div style="clear: both; line-height: 1.3em; margin: 0px 0px 0.75em;">
</div>
</div>
</div>
Anonymoushttp://www.blogger.com/profile/15527294402156840684noreply@blogger.com0tag:blogger.com,1999:blog-5496486467939848451.post-48766963599007292822013-12-30T13:03:00.000-05:002013-12-30T13:05:11.738-05:00Q & A - How to Configure Parties in BizTalk 101<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: left;">
</div>
<div>
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<span style="color: #0b5394; font-family: Verdana, sans-serif;">Q: </span><span style="background-color: white; color: #0b5394; font-family: Verdana, sans-serif; line-height: 15.333333015441895px; text-align: justify;">You are developing an EDI solition, and you need to configure a new trading partner.</span><span style="font-family: Verdana, sans-serif;"><br /></span><span style="color: #0b5394; font-family: Verdana, sans-serif;"><br /></span><br />
<div style="text-align: left;">
<span style="color: #0b5394; font-family: Verdana, sans-serif;">A:</span><span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div style="text-align: left;">
<span style="background-color: white; color: #0b5394; line-height: 15.333333015441895px; text-align: justify;"><span style="font-family: Courier New, Courier, monospace;">Trading partner management is the most significant new functionality presented in BizTalk Server 2010. The new mapper has some nice features, but it doesn't bring new functionality to the product. The trading partner configuration, on the other hand, allows for the development of EDI solutions that could not be done before. This solution outlines how to create a trading partner in BizTalk Server.</span></span></div>
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15.326704025268555px;"><br /></span></span><span style="background-color: white; font-family: Verdana, sans-serif; line-height: 15.333333015441895px; text-align: justify;">Open the BizTalk Administration Console, and click Parties (see </span><a class="docLink" href="http://www.blogger.com/blogger.g?blogID=5496486467939848451" style="background-color: white; font-family: Verdana, sans-serif; line-height: 15.333333015441895px; text-align: justify;">Figure 1</a><span style="background-color: white; font-family: Verdana, sans-serif; line-height: 15.333333015441895px; text-align: justify;">).</span><span style="font-family: Verdana, sans-serif;"><br /><span style="line-height: 15.326704025268555px;"><br /></span></span><span style="font-family: Verdana, sans-serif; line-height: 15.333333015441895px;">Figure 1. The Parties folder in BizTalk</span><br />
<div style="text-align: left;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15.324999809265137px;"><br /></span></span><img alt="" border="0" height="262" id="" src="http://tech.sportstoday.us/image/1103/Configuring%20EDI%20Trading%20Partners_1.jpg" style="font-family: Verdana, sans-serif; height: 262px; line-height: 15.333333015441895px; text-align: justify; width: 256px;" width="256" /><span style="font-family: Verdana, sans-serif;"><br /><span style="line-height: 15.326704025268555px;"><br /></span></span><span style="background-color: white; font-family: Verdana, sans-serif; line-height: 15.333333015441895px; text-align: justify;">Right-click any area in the Parties and Business Profiles area and select New => Party.</span><span style="font-family: Verdana, sans-serif;"><br /><span style="line-height: 15.326704025268555px;"><br /></span></span><span style="background-color: white; font-family: Verdana, sans-serif; line-height: 15.333333015441895px; text-align: justify;">In the Party Properties dialogue box, give the party an appropriate name. This should be the name of the trading partner you will be exchanging documents with.</span><span style="font-family: Verdana, sans-serif;"><br /><span style="line-height: 15.326704025268555px;"><br /></span></span><span style="font-family: Verdana, sans-serif; line-height: 15.333333015441895px; text-align: justify;">Enable the option for the Local BizTalk processing (see </span><a class="docLink" href="http://www.blogger.com/blogger.g?blogID=5496486467939848451" style="font-family: Verdana, sans-serif; line-height: 15.333333015441895px; text-align: justify;">Figure 2</a><a href="http://www.blogger.com/blogger.g?blogID=5496486467939848451" name="to indicate" style="font-family: Verdana, sans-serif; line-height: 15.333333015441895px; text-align: justify;"></a><span style="font-family: Verdana, sans-serif; line-height: 15.333333015441895px; text-align: justify;">). This setting is used to indicate that BizTalk Server will be used to process messages to or from the party (rather than being the default party itself).</span><span style="font-family: Verdana, sans-serif;"><br /><span style="line-height: 15.326704025268555px;"><br /></span></span><span style="font-family: Verdana, sans-serif; line-height: 15.333333015441895px;">Figure 2. Configuring the base party object</span></div>
<div style="text-align: left;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15.324999809265137px;"><br /></span></span><img alt="" border="0" height="117" id="" src="http://tech.sportstoday.us/image/1103/Configuring%20EDI%20Trading%20Partners_2.jpg" style="font-family: Verdana, sans-serif; height: 117px; line-height: 15.333333015441895px; text-align: justify; width: 549px;" width="549" /><span style="font-family: Verdana, sans-serif;"><br /><span style="line-height: 15.326704025268555px;"><br /></span></span><span style="background-color: white; font-family: Verdana, sans-serif; line-height: 15.333333015441895px; text-align: justify;">Click the "Send ports" tab. This is where ports are associated with a party, and it is used in instances where all outbound EDI documents on this port should have envelope information configured as specified in the EDI properties of the party being configured. Add any relevant send ports, and click OK.</span></div>
<h5 style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: 15.333333015441895px; orphans: auto; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">
<span id="ctl00_ContentPlaceHolder1_noidung" style="color: black; font-weight: normal;"><span style="font-family: Verdana, sans-serif; font-size: small;"><a href="http://www.blogger.com/blogger.g?blogID=5496486467939848451" name="solution-020"></a></span></span></h5>
<h5 style="background-color: white; orphans: auto; text-align: justify; text-indent: 0px; widows: auto;">
<span style="font-family: Verdana, sans-serif; font-size: small;"><div class="docText" style="-webkit-text-stroke-width: 0px; color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 15.333333015441895px; text-transform: none; white-space: normal; word-spacing: 0px;">
<a href="http://www.blogger.com/blogger.g?blogID=5496486467939848451" name="is the"></a><a href="http://www.blogger.com/blogger.g?blogID=5496486467939848451" name="IDX-CHP-1-0042"></a></div>
</span></h5>
<h5 style="background-color: white; orphans: auto; text-align: justify; text-indent: 0px; widows: auto;">
<ol class="docList" style="-webkit-text-stroke-width: 0px; color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 15.333333015441895px; text-transform: none; white-space: normal; word-spacing: 0px;" type="1"></ol>
<ol class="docList" style="-webkit-text-stroke-width: 0px; color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 15.333333015441895px; text-transform: none; white-space: normal; word-spacing: 0px;" type="1"></ol>
<ol class="docList" style="-webkit-text-stroke-width: 0px; color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 15.333333015441895px; text-transform: none; white-space: normal; word-spacing: 0px;" type="1"></ol>
<ol class="docList" style="-webkit-text-stroke-width: 0px; color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 15.333333015441895px; text-transform: none; white-space: normal; word-spacing: 0px;" type="1"></ol>
<ol class="docList" style="-webkit-text-stroke-width: 0px; color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 15.333333015441895px; text-transform: none; white-space: normal; word-spacing: 0px;" type="1"></ol>
</h5>
<h5 style="background-color: white; orphans: auto; text-align: justify; text-indent: 0px; widows: auto;">
<span style="font-family: Verdana, sans-serif; font-size: small; font-weight: normal; line-height: 15.333333015441895px;">Now that the party object has been created, a new business profile must be created. A business profile contains all of the EDI configurations for a given business of a trading partner. For example, a trading partner may be a single company with multiple departments or divisions. Each department has its own integrations with internal and external vendors, and each uses its own X12 or EDIFACT settings. One business profile for each department must be created in order to ensure that the envelopes on the EDI documents being exchanged are set properly, and that all other EDI specific configurations are accurate for that department.</span><br /><span style="font-family: Verdana, sans-serif; font-size: small;"><span style="font-weight: normal; line-height: 15.326704025268555px;"><br /></span></span><span style="font-family: Verdana, sans-serif; font-size: small; font-weight: normal; line-height: 15.333333015441895px;">Right-click the party that was created, and select New => Business Profile (see </span><a class="docLink" href="http://www.blogger.com/blogger.g?blogID=5496486467939848451" style="font-family: Verdana, sans-serif; font-size: medium; font-weight: normal; line-height: 15.333333015441895px;">Figure 3</a><span style="font-family: Verdana, sans-serif; font-size: small; font-weight: normal; line-height: 15.333333015441895px;">).</span></h5>
<h5 style="background-color: white; orphans: auto; text-align: justify; text-indent: 0px; widows: auto;">
<br /><span style="background-color: transparent; font-family: Verdana, sans-serif; font-size: small; font-weight: normal; line-height: 15.333333015441895px; text-align: left;">Figure 3. Creating a business profile on a party</span></h5>
<h5 style="background-color: white; orphans: auto; text-align: justify; text-indent: 0px; widows: auto;">
<br /><img alt="" border="0" height="121" id="" src="http://tech.sportstoday.us/image/1103/Configuring%20EDI%20Trading%20Partners_3.jpg" style="font-family: Verdana, sans-serif; font-size: medium; font-weight: normal; height: 121px; line-height: 15.333333015441895px; width: 492px;" width="492" /><br /><span style="font-family: Verdana, sans-serif; font-size: small;"><br /><span style="font-weight: normal; line-height: 15.326704025268555px;"><br /></span></span><span style="font-family: Verdana, sans-serif; font-size: small; font-weight: normal; line-height: 15.333333015441895px;">Give the business profile a name representative of the business unit or department being set up. In many cases, a party will only have a single business profile.</span><br /><span style="font-family: Verdana, sans-serif; font-size: small;"><br /><span style="font-weight: normal; line-height: 15.326704025268555px;"><br /></span></span><span style="font-family: Verdana, sans-serif; font-size: small; font-weight: normal; line-height: 15.333333015441895px;">On the identities screen, set the trading partner ID(s) and qualifier(s) (see </span><a class="docLink" href="http://www.blogger.com/blogger.g?blogID=5496486467939848451" style="font-family: Verdana, sans-serif; font-size: medium; font-weight: normal; line-height: 15.333333015441895px;">Figure 4</a><span style="font-family: Verdana, sans-serif; font-size: small; font-weight: normal; line-height: 15.333333015441895px;">). These values are given to you directly by the trading partner, and are the way trading partners are uniquely identified.</span></h5>
<h5 style="background-color: white; orphans: auto; text-align: justify; text-indent: 0px; widows: auto;">
<br /><span style="background-color: transparent; font-family: Verdana, sans-serif; font-size: small; font-weight: normal; line-height: 15.333333015441895px; text-align: left;">Figure 4. Setting the Business Profile's identities</span></h5>
<h5 style="background-color: white; orphans: auto; text-align: justify; text-indent: 0px; widows: auto;">
<br /><img alt="" border="0" height="258" id="" src="http://tech.sportstoday.us/image/1103/Configuring%20EDI%20Trading%20Partners_4.jpg" style="font-family: Verdana, sans-serif; font-size: medium; font-weight: normal; height: 258px; line-height: 15.333333015441895px; width: 549px;" width="549" /><br /><span style="font-family: Verdana, sans-serif; font-size: small; font-weight: normal; line-height: 15.333333015441895px;">Once the business profile is fully configured, click OK.</span></h5>
<h5 style="background-color: white; orphans: auto; text-align: justify; text-indent: 0px; widows: auto;">
<i style="font-family: Verdana, sans-serif; font-size: medium; font-weight: normal; line-height: 15.333333015441895px;">With the business profile and core party configured, an agreement can be made. However, to create an agreement, you must have two parties configured. One party represents the recipient, and one is the sender. In many cases, BizTalk is going to be one of the parties. However, in the cases where BizTalk is acting as a value added network (VAN)—essentially, as a router of documents between parties—there may be many parties sending and receiving documents to many other parties. All of the configurations representing document communication between parties are known as agreements.</i></h5>
<h5 style="background-color: white; orphans: auto; text-align: justify; text-indent: 0px; widows: auto;">
<span style="font-family: Verdana, sans-serif; font-size: small;"><span style="font-weight: normal; line-height: 15.326704025268555px;"><br /></span></span><span style="font-family: Verdana, sans-serif; font-size: small; font-weight: normal; line-height: 15.333333015441895px;">To create an agreement, right-click the business profile, and select New => Agreement.</span><br /><span style="font-family: Verdana, sans-serif; font-size: small;"><span style="font-weight: normal; line-height: 15.326704025268555px;"><br /></span></span><span style="font-family: Verdana, sans-serif; font-size: small; font-weight: normal; line-height: 15.333333015441895px;">Initially, there will be only a single tab to configure. You must specify the party being interacted with and the protocol being used. To do so, set the Protocol property to (for example) X12, and the Party and Business properties to an available party. Once these have been set, two new tabs will appear (see </span><a class="docLink" href="http://www.blogger.com/blogger.g?blogID=5496486467939848451" style="font-family: Verdana, sans-serif; font-size: medium; font-weight: normal; line-height: 15.333333015441895px;">Figure 5</a><span style="font-family: Verdana, sans-serif; font-size: small; font-weight: normal; line-height: 15.333333015441895px;">). </span></h5>
<h5 style="background-color: white; orphans: auto; text-align: justify; text-indent: 0px; widows: auto;">
<span style="font-family: Verdana, sans-serif; font-size: small; font-weight: normal; line-height: 15.333333015441895px;">These tabs are where all of the EDI specific information is configured for the given agreement.</span><br /><span style="font-family: Verdana, sans-serif; font-size: small;"><span style="font-weight: normal; line-height: 15.326704025268555px;"><br /></span></span><span style="background-color: transparent; font-family: Verdana, sans-serif; font-size: small; font-weight: normal; line-height: 15.333333015441895px; text-align: left;">Figure 5. Setting the general properties of the Agreement</span></h5>
<h5 style="background-color: white; orphans: auto; text-align: justify; text-indent: 0px; widows: auto;">
<br /><img alt="" border="0" height="471" id="" src="http://tech.sportstoday.us/image/1103/Configuring%20EDI%20Trading%20Partners_5.jpg" style="font-family: Verdana, sans-serif; font-size: medium; font-weight: normal; height: 471px; line-height: 15.333333015441895px; width: 549px;" width="549" /><br /><span style="font-family: Verdana, sans-serif; font-size: small; font-weight: normal; line-height: 15.333333015441895px;"><br /></span></h5>
<h5 style="background-color: white; orphans: auto; text-align: justify; text-indent: 0px; widows: auto;">
<span style="font-family: Verdana, sans-serif; font-size: small; font-weight: normal; line-height: 15.333333015441895px;">Click each of the tabs to set the EDI-specific values based on the trading partner configuration specifications. An example of the Identifiers screen is shown in </span><a class="docLink" href="http://www.blogger.com/blogger.g?blogID=5496486467939848451" style="font-family: Verdana, sans-serif; font-size: medium; font-weight: normal; line-height: 15.333333015441895px;">Figure 6</a><span style="line-height: 15.333333015441895px;"><a href="http://www.blogger.com/blogger.g?blogID=5496486467939848451" name="OK to" style="font-family: Verdana, sans-serif; font-size: medium; font-weight: normal; line-height: 15.333333015441895px;"></a></span><span style="font-family: Verdana, sans-serif; font-size: small; font-weight: normal; line-height: 15.333333015441895px;">. Once you are finished, click OK to save the trading partner configuration.</span><br /><span style="font-family: Verdana, sans-serif; font-size: small;"><span style="font-weight: normal; line-height: 15.326704025268555px;"><br /></span></span><span style="background-color: transparent; font-family: Verdana, sans-serif; font-size: small; font-weight: normal; line-height: 15.333333015441895px; text-align: left;">Figure 6. Setting values within the agreement</span></h5>
<h5 style="background-color: white; orphans: auto; text-align: justify; text-indent: 0px; widows: auto;">
<br /><img alt="" border="0" height="173" id="" src="http://tech.sportstoday.us/image/1103/Configuring%20EDI%20Trading%20Partners_6.jpg" style="font-family: Verdana, sans-serif; font-size: medium; font-weight: normal; height: 173px; line-height: 15.333333015441895px; width: 549px;" width="549" /><br /><span style="background-color: transparent; font-family: Verdana, sans-serif; font-size: small; font-weight: normal; line-height: 15.333333015441895px; text-align: left;"><br /></span></h5>
<h5 style="background-color: white; orphans: auto; text-align: justify; text-indent: 0px; widows: auto;">
<span style="background-color: transparent; font-family: Verdana, sans-serif; font-size: small; font-weight: normal; line-height: 15.333333015441895px; text-align: left;">How It Works</span></h5>
<h5 style="background-color: white; orphans: auto; text-align: justify; text-indent: 0px; widows: auto;">
<br /><span style="font-family: Verdana, sans-serif; font-size: small; font-weight: normal; line-height: 15.333333015441895px;">This recipe outlined how to configure the different components that make up a trading partner, but without the full story, understanding all of the settings is difficult.</span><ol class="docList" style="-webkit-text-stroke-width: 0px; color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 15.333333015441895px; text-transform: none; white-space: normal; word-spacing: 0px;" type="1"></ol>
<ol class="docList" style="-webkit-text-stroke-width: 0px; color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 15.333333015441895px; text-transform: none; white-space: normal; word-spacing: 0px;" type="1"></ol>
<ol class="docList" style="-webkit-text-stroke-width: 0px; color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 15.333333015441895px; text-transform: none; white-space: normal; word-spacing: 0px;" type="1"></ol>
<ol class="docList" style="-webkit-text-stroke-width: 0px; color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 15.333333015441895px; text-transform: none; white-space: normal; word-spacing: 0px;" type="1"></ol>
</h5>
<h5 style="background-color: white; orphans: auto; text-align: justify; text-indent: 0px; widows: auto;">
<span style="-webkit-text-stroke-width: 0px; color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 15.333333015441895px; text-transform: none; white-space: normal; word-spacing: 0px;"><ol class="docList" type="1"></ol>
<ol class="docList" type="1"></ol>
</span><ol class="docList" style="-webkit-text-stroke-width: 0px; color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 15.333333015441895px; text-transform: none; white-space: normal; word-spacing: 0px;" type="1"></ol>
</h5>
<h5 style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: 15.333333015441895px; orphans: auto; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">
<span style="color: black; font-weight: normal;"><span style="font-family: Verdana, sans-serif; font-size: small;"><a href="http://www.blogger.com/blogger.g?blogID=5496486467939848451" name="how_it_works-021"></a></span></span></h5>
</div>
Anonymoushttp://www.blogger.com/profile/15527294402156840684noreply@blogger.com0tag:blogger.com,1999:blog-5496486467939848451.post-67811204299668325302013-11-04T16:10:00.002-05:002013-11-04T16:43:50.284-05:00Connecting Cloud to On premises - A cloudburst session by sam vanhoutte<div dir="ltr" style="text-align: left;" trbidi="on">
<blockquote class="tr_bq">
<div style="text-align: right;">
<div style="text-align: left;">
<i><u>post by <a href="http://www.codit.eu/en/home">sam vanhoutte</a></u></i> </div>
</div>
<i></i><br />
<div style="text-align: right;">
<div style="text-align: left;">
<i><i>This post contains cloud burst session video</i></i></div>
</div>
<i>
</i></blockquote>
<div style="background-color: white; border: 0px; color: #0d324e; line-height: 17px; margin-bottom: 5px; margin-top: 5px; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif;">In new scenarios, in which cloud is getting used, <strong style="border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">integration</strong> becomes very important. The Windows Azure platform provides a lot of different capabilities and services to make a secure link between your local systems and the Windows Azure services or machines. During this session, you will discover what the different technologies are and in what these are best applicable. You will learn more about the following technologies:</span></div>
<ul style="background-color: white; border: 0px; color: #0d324e; line-height: 17px; list-style-image: initial; list-style-position: initial; margin: 0px 0px 0px 40px; outline: 0px; padding: 0px; vertical-align: baseline;">
<li style="border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span style="font-family: Verdana, sans-serif;">Connectivity on messaging level: Service Bus Messaging</span></li>
<li style="border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span style="font-family: Verdana, sans-serif;">Connectivity on service level: Service Bus Relay</span></li>
<li style="border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span style="font-family: Verdana, sans-serif;">Connectivity on data level: SQL Data Sync </span></li>
<li style="border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span style="font-family: Verdana, sans-serif;">Connectivity on network level: Windows Azure Virtual Networking </span></li>
<li style="border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span style="font-family: Verdana, sans-serif;">Connectivity on security level: Active Directory integration</span></li>
</ul>
<div style="background-color: white; border: 0px; color: #0d324e; line-height: 17px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">
</div>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<iframe frameborder="0" scrolling="no" src="http://channel9.msdn.com/Events/Cloud-Burst/Cloud-Burst-2013/Connecting-the-Cloud-with-your-local-applications/player?w=840&h=540" style="height: 540px; width: 840px;"></iframe>
</div>
Anonymoushttp://www.blogger.com/profile/15527294402156840684noreply@blogger.com0tag:blogger.com,1999:blog-5496486467939848451.post-286966546151117742013-07-22T16:15:00.001-04:002013-07-22T16:37:45.567-04:00Publish WCF Service Endpoint to Azure Service Bus Relay | BizTalk 2013 / 2010<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">post by <a href="http://blog.quicklearn.com/author/nickhauenstein/" target="_blank">Nick Haunstein</a></span></span></div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="background-color: white; font-family: Verdana, sans-serif; line-height: 15.333333015441895px;">This post will focus on a feature that is technically present in BizTalk Server 2010, but was not installed by default. This feature was a subtle enhancement to the BizTalk WCF Service Publishing Wizard – namely the ability to publish a Windows Azure Service Bus Relay Endpoint without leaving the wizard (and also without using one of the new adapters that has </span><em style="background-color: white; border: 0px; font-family: Verdana, sans-serif; line-height: 15.333333015441895px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Relay</em><span style="background-color: white; font-family: Verdana, sans-serif; line-height: 15.333333015441895px;"> </span><span style="background-color: white; font-family: Verdana, sans-serif; line-height: 15.333333015441895px;">in its title).</span></div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">Even if you didn’t know that this feature existed, you will find it the first time that you attempt to publish <em style="border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">any </em>BizTalk artifact (schema/orchestration) as a WCF service in BizTalk Server 2013. It takes the form of the following screen within the BizTalk WCF Service Publishing Wizard, which appears immediately after choosing to publish a service (rather than simply a metadata description):</span></span></div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<a href="http://quicklearntraining.files.wordpress.com/2013/07/publish_sbendpoint.png" style="background-color: white; border: 0px; color: #0099cc; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;"><span style="font-family: Verdana, sans-serif;"><img alt="publish_sbendpoint" border="0" height="403" src="http://quicklearntraining.files.wordpress.com/2013/07/publish_sbendpoint_thumb.png?w=517&h=403" style="border: 0px solid rgb(238, 238, 238); display: inline; max-width: 97.5999984741211%; padding: 5px;" title="publish_sbendpoint" width="517" /></span></a></div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">If you check this box and proceed through the wizard (regardless of adapter selected on the first screen), you will see the following screen at the end of the typical wizard:</span></span></div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<a href="http://quicklearntraining.files.wordpress.com/2013/07/publish_sbendpoint_part2.png" style="background-color: white; border: 0px; color: #0099cc; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;"><span style="font-family: Verdana, sans-serif;"><img alt="publish_sbendpoint_part2" border="0" height="403" src="http://quicklearntraining.files.wordpress.com/2013/07/publish_sbendpoint_part2_thumb.png?w=517&h=403" style="border: 0px solid rgb(238, 238, 238); display: inline; max-width: 97.5999984741211%; padding: 5px;" title="publish_sbendpoint_part2" width="517" /></span></a></div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">The wizard assumes that you have already gone to the <a href="http://manage.windowsazure.com/" style="border: 0px; color: #0099cc; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;">Windows Azure Management Portal</a> and created a Service Bus namespace (effectively reserving yourself a sub-domain of servicebus.windows.net, and setting up an access control namespace for claims resolution and authorization purposes). If you’ve never done that before, it can be done through the <strong style="border: 0px; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">New</strong> menu as shown below:</span></span></div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<a href="http://quicklearntraining.files.wordpress.com/2013/07/servicebus_namespace.png" style="background-color: white; border: 0px; color: #0099cc; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;"><span style="font-family: Verdana, sans-serif;"><img alt="servicebus_namespace" border="0" height="230" src="http://quicklearntraining.files.wordpress.com/2013/07/servicebus_namespace_thumb.png?w=644&h=230" style="border: 0px solid rgb(238, 238, 238); display: inline; max-width: 97.5999984741211%; padding: 5px;" title="servicebus_namespace" width="644" /></span></a></div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">The next page of the wizard will require information necessary for BizTalk to authenticate with Windows Azure and prove that it is indeed the destination endpoint for the relay. This information is also obtainable only from the <a href="http://manage.windowsazure.com/" style="border: 0px; color: #0099cc; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;">Windows Azure Management Portal</a>. In order to access this information, you will need to click on your newly created namespace in the list of Service Bus namespaces, and then click the<strong style="border: 0px; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Connection Information</strong> button at the bottom of the page:</span></span></div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<a href="http://quicklearntraining.files.wordpress.com/2013/07/connection_info_button.png" style="background-color: white; border: 0px; color: #0099cc; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;"><span style="font-family: Verdana, sans-serif;"><img alt="connection_info_button" border="0" height="263" src="http://quicklearntraining.files.wordpress.com/2013/07/connection_info_button_thumb.png?w=553&h=263" style="border: 0px solid rgb(238, 238, 238); display: inline; max-width: 97.5999984741211%; padding: 5px;" title="connection_info_button" width="553" /></span></a></div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">This will bring up the following listing, of which you really only need to worry about the<strong style="border: 0px; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Default Issuer </strong>(Issuer Name in the wizard), and <strong style="border: 0px; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Default Key</strong> (Issuer Key in the wizard):</span></span></div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;"><a href="http://quicklearntraining.files.wordpress.com/2013/07/connection_info_listing.png" style="border: 0px; color: #0099cc; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;"><img alt="connection_info_listing" border="0" height="484" src="http://quicklearntraining.files.wordpress.com/2013/07/connection_info_listing_thumb.png?w=543&h=484" style="border: 0px solid rgb(238, 238, 238); display: inline; max-width: 97.5999984741211%; padding: 5px;" title="connection_info_listing" width="543" /></a> </span></span></div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">Once you gather this information, you’re ready to have a copy/paste party and fill out the last page of the wizard (unless you really want to live life in hard mode, don’t enable client authentication for metadata exchange – if you feel the need to do that, you may as well pass around the raw WSDL to whomever needs it and just forget about a MEX endpoint):</span></span></div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<a href="http://quicklearntraining.files.wordpress.com/2013/07/publish_sbendpoint_part3.png" style="background-color: white; border: 0px; color: #0099cc; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;"><span style="font-family: Verdana, sans-serif;"><img alt="publish_sbendpoint_part3" border="0" height="403" src="http://quicklearntraining.files.wordpress.com/2013/07/publish_sbendpoint_part3_thumb.png?w=517&h=403" style="border: 0px solid rgb(238, 238, 238); display: inline; max-width: 97.5999984741211%; padding: 5px;" title="publish_sbendpoint_part3" width="517" /></span></a></div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">Once you’re up to this point, you can sprint to the finish by clicking <strong style="border: 0px; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Next</strong>, <strong style="border: 0px; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Create</strong>(after reviewing the wonderful WSDL and making sure it’s something that you can be proud of), and then finally <strong style="border: 0px; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Finish</strong>.</span></span></div>
<h2 style="border: 0px; clear: both; color: #444444; font-weight: normal; margin: 0px; outline: 0px; padding: 0px; text-transform: uppercase; vertical-align: baseline;">
</h2>
<h2 style="border: 0px; clear: both; color: #444444; font-weight: normal; margin: 0px; outline: 0px; padding: 0px; text-transform: uppercase; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif; font-size: small;">TACKLING COMMON ISSUES</span></span></h2>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">Outside of the typical issues one might encounter hosting a WCF Service in a BizTalk Isolated Host (e.g., App Pool Identity needs permissions to Message Box database, correct .NET Framework version needs to be selected for App Pool, Receive Location must be started), you may also encounter a new one:</span></span></div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;"><a href="http://quicklearntraining.files.wordpress.com/2013/07/image.png" style="border: 0px; color: #0099cc; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;"><img alt="image" border="0" height="316" src="http://quicklearntraining.files.wordpress.com/2013/07/image_thumb.png?w=644&h=316" style="border: 0px solid rgb(238, 238, 238); display: inline; max-width: 97.5999984741211%; padding: 5px;" title="image" width="644" /></a> </span></span></div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">Again, for those using Google-fu in attempt to resolve an error, the error message reads:</span></span></div>
<blockquote style="border-left-color: rgb(221, 221, 221); border-left-style: solid; border-width: 0px 0px 0px 2px; color: #444444; font-style: italic; line-height: 15.333333015441895px; margin: 0px 0px 20px 40px; outline: 0px; padding: 0px 0px 0px 20px; quotes: ''; vertical-align: baseline;">
<div style="border: 0px; font-style: inherit; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">Invalid element in configuration. The extension name ‘transportClientEndpointBehavior’ is not registered in the collection at system.serviceModel/extensions/behaviorExtensions</span></span></div>
<div style="border: 0px; font-style: inherit; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="border: 0px; font-style: inherit; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">And it’s highlighting the portion of the configuration file that includes the key for Service Bus authentication.</span></span></div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">Before getting right to the resolution, let’s recap what we’re looking at. Going through the wizard, I had selected to host a WCF-WSHttp endpoint internally in a BizTalk Isolated Host (i.e., running in an IIS App Pool rather than a BizTalk Host Instance process). I then indicated that I wanted to also expose the service through a NetTcp relay endpoint hosted externally (on Windows Azure).</span></span></div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">My local IIS instance has been provided all the configuration information that it needs to coordinate with Windows Azure and make the relay live, but it currently doesn’t know what to do with it – which is why I have the error, and why my relay won’t be alive yet.</span></span></div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">In reality, this all could have been avoided by reading. Specifically reading the last page of the BizTalk WCF Service Publishing Wizard, which should tell you that you need to install the <a href="http://www.microsoft.com/en-us/download/details.aspx?id=19925" style="border: 0px; color: #0099cc; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;">AppFabric 1.0 SDK</a> before any of the relays will work. Again, this is functionality that was technically available in the previous generation, hence the older SDK version number.</span></span></div>
<h2 style="border: 0px; clear: both; color: #444444; font-weight: normal; margin: 0px; outline: 0px; padding: 0px; text-transform: uppercase; vertical-align: baseline;">
</h2>
<h2 style="border: 0px; clear: both; color: #444444; font-weight: normal; margin: 0px; outline: 0px; padding: 0px; text-transform: uppercase; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif; font-size: small;">HOW TO KNOW THAT IT’S WORKING</span></span></h2>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">If you have made it this far successfully, hitting the local service endpoint should give you a page that looks something like this:</span></span></div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<a href="http://quicklearntraining.files.wordpress.com/2013/07/workingservice.png" style="background-color: white; border: 0px; color: #0099cc; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;"><span style="font-family: Verdana, sans-serif;"><img alt="workingservice" border="0" height="335" src="http://quicklearntraining.files.wordpress.com/2013/07/workingservice_thumb.png?w=644&h=335" style="border: 0px solid rgb(238, 238, 238); display: inline; max-width: 97.5999984741211%; padding: 5px;" title="workingservice" width="644" /></span></a></div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">If you go to the Windows Azure Management Portal and dig into the namespace you created, you should see something like this:</span></span></div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<a href="http://quicklearntraining.files.wordpress.com/2013/07/relay_azure.png" style="background-color: white; border: 0px; color: #0099cc; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;"><span style="font-family: Verdana, sans-serif;"><img alt="relay_azure" border="0" height="241" src="http://quicklearntraining.files.wordpress.com/2013/07/relay_azure_thumb.png?w=644&h=241" style="border: 0px solid rgb(238, 238, 238); display: inline; max-width: 97.5999984741211%; padding: 5px;" title="relay_azure" width="644" /></span></a></div>
<h2 style="border: 0px; clear: both; color: #444444; font-weight: normal; margin: 0px; outline: 0px; padding: 0px; text-transform: uppercase; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif; font-size: small;">IT’S NOT REAL UNTIL I CAN CONSUME IT</span></span></h2>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">If you’re anything like me, this is an unsatisfactory ending point – the service doesn’t really exist until I can consume it from some client. To make it as fair as possible, I am hosting the service inside a fairly locked down Windows Azure Virtual Machine, and I will be consuming it from my laptop connected ultimately via a microwave connection somewhere in the shadow of <a href="http://upload.wikimedia.org/wikipedia/commons/5/5f/Mount_Pilchuck_in_winter.jpg" rel="noreferrer" style="border: 0px; color: #0099cc; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;">Mt. Pilchuk</a>.</span></span></div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">To consume this beast, we need to know our namespace (e.g., unique-name.servicebus.windows.net), and the mex endpoint exposed via relay (seen in the screenshot above). From there I can construct the address I would use in the <strong style="border: 0px; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Add Service Reference</strong> dialog in Visual Studio. In this case, that URL will be:<a href="https://unique-name.servicebus.windows.net/GetItemServiceDescription/GetItemService.svc_mex" rel="noreferrer" style="border: 0px; color: #0099cc; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;">https://unique-name.servicebus.windows.net/GetItemServiceDescription/GetItemService.svc_mex</a></span></span></div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">Upon consuming the service, you may notice that the WSDL importer chokes hard on the WSDL it’s finding. It tries to build up a custom binding to make the call, and it’s finding that it doesn’t really know anything about some of the binding elements required:</span></span></div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<a href="http://quicklearntraining.files.wordpress.com/2013/07/choked_importer.png" style="background-color: white; border: 0px; color: #0099cc; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;"><span style="font-family: Verdana, sans-serif;"><img alt="choked_importer" border="0" height="109" src="http://quicklearntraining.files.wordpress.com/2013/07/choked_importer_thumb.png?w=644&h=109" style="border: 0px; display: inline; max-width: 97.5999984741211%; padding: 5px;" title="choked_importer" width="644" /></span></a></div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">Again for those searching for this specific error, the message reads:</span></span></div>
<blockquote style="border-left-color: rgb(221, 221, 221); border-left-style: solid; border-width: 0px 0px 0px 2px; color: #444444; font-style: italic; line-height: 15.333333015441895px; margin: 0px 0px 20px 40px; outline: 0px; padding: 0px 0px 0px 20px; quotes: ''; vertical-align: baseline;">
<div style="border: 0px; font-style: inherit; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">WsdlImporter encountered unrecognized policy assertions in ServiceDescription ‘YOUR NAMESPACE HERE’</span></span></div>
</blockquote>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">In reality, we don’t need to build a custom binding to make this all happen. Instead, we can use the netTcpRelayBinding to make the connection. An easy way to make that happen is to install the Windows Azure Service Bus NuGet package to our project. We can start out by using the <strong style="border: 0px; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Manage NuGet Packages</strong> context menu item in Solution Explorer:</span></span></div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<a href="http://quicklearntraining.files.wordpress.com/2013/07/manage_nuget_packages.png" style="background-color: white; border: 0px; color: #0099cc; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;"><span style="font-family: Verdana, sans-serif;"><img alt="manage_nuget_packages" border="0" height="305" src="http://quicklearntraining.files.wordpress.com/2013/07/manage_nuget_packages_thumb.png?w=396&h=305" style="border: 0px solid rgb(238, 238, 238); display: inline; max-width: 97.5999984741211%; padding: 5px;" title="manage_nuget_packages" width="396" /></span></a></div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">Then search for the <strong style="border: 0px; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Windows Azure Service Bus</strong> package, and click the <strong style="border: 0px; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Install</strong>button:</span></span></div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<a href="http://quicklearntraining.files.wordpress.com/2013/07/manage_nuget_packages_part2.png" style="background-color: white; border: 0px; color: #0099cc; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;"><span style="font-family: Verdana, sans-serif;"><img alt="manage_nuget_packages_part2" border="0" height="206" src="http://quicklearntraining.files.wordpress.com/2013/07/manage_nuget_packages_part2_thumb.png?w=644&h=206" style="border: 0px solid rgb(238, 238, 238); display: inline; max-width: 97.5999984741211%; padding: 5px;" title="manage_nuget_packages_part2" width="644" /></span></a></div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">This should update the <strong style="border: 0px; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">App.config</strong> file of your application to include the following WCF extensions:</span></span></div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<a href="http://quicklearntraining.files.wordpress.com/2013/07/appconfig.png" style="background-color: white; border: 0px; color: #0099cc; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;"><span style="font-family: Verdana, sans-serif;"><img alt="appconfig" border="0" height="479" src="http://quicklearntraining.files.wordpress.com/2013/07/appconfig_thumb.png?w=644&h=479" style="border: 0px solid rgb(238, 238, 238); display: inline; max-width: 97.5999984741211%; padding: 5px;" title="appconfig" width="644" /></span></a></div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">From there, you will want to update your endpoint to reference the<strong style="border: 0px; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">netTcpRelayBinding</strong> (instead of the custom binding that the WSDL importer failed to generate properly):</span></span></div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">
<div class="syntaxhighlighter xml" id="highlighter_616016" style="border: 0px; font-style: inherit; margin: 1em 0px !important; outline: 0px; overflow-x: auto !important; overflow-y: hidden !important; padding: 0px; position: relative !important; vertical-align: baseline; width: 520px;">
<table border="0" cellpadding="0" cellspacing="0" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-spacing: 0px; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: 848px;"><tbody style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<tr style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><td class="gutter" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><div class="line number1 index0 alt2" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">1</span></span></div>
<div class="line number2 index1 alt1" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">2</span></span></div>
<div class="line number3 index2 alt2" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">3</span></span></div>
<div class="line number4 index3 alt1" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">4</span></span></div>
<div class="line number5 index4 alt2" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">5</span></span></div>
</td><td class="code" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: 818px;"><div class="container" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: relative !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<div class="line number1 index0 alt2" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;"><code class="xml plain" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><</code><code class="xml keyword" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">client</code><code class="xml plain" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">></code></span></span></div>
<div class="line number2 index1 alt1" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;"><code class="xml spaces" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="xml plain" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><</code><code class="xml keyword" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">endpoint</code> <code class="xml color1" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: gray !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">address</code><code class="xml plain" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">=</code><code class="xml string" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"<a href="sb://YOUR-NAMESPACE.servicebus.windows.net/YOUR-SERVICE-LOCATION/YOUR-SERVICE-HERE.svc" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-decoration: none; top: auto !important; vertical-align: baseline !important; width: auto !important;">sb://YOUR-NAMESPACE.servicebus.windows.net/YOUR-SERVICE-LOCATION/YOUR-SERVICE-HERE.svc</a>"</code></span></span></div>
<div class="line number3 index2 alt2" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;"><code class="xml spaces" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="xml color1" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: gray !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">behaviorConfiguration</code><code class="xml plain" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">=</code><code class="xml string" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"sharedSecretClientCredentials"</code> <code class="xml color1" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: gray !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">binding</code><code class="xml plain" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">=</code><code class="xml string" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"netTcpRelayBinding"</code></span></span></div>
<div class="line number4 index3 alt1" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;"><code class="xml spaces" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="xml color1" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: gray !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">contract</code><code class="xml plain" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">=</code><code class="xml string" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"RelayedItemService.ItemService"</code> <code class="xml color1" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: gray !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">name</code><code class="xml plain" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">=</code><code class="xml string" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"RelayEndpoint"</code> <code class="xml plain" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">/></code></span></span></div>
<div class="line number5 index4 alt2" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;"><code class="xml plain" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"></</code><code class="xml keyword" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">client</code><code class="xml plain" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">></code></span></span></div>
</div>
</td></tr>
</tbody></table>
</div>
</div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">You will also notice above that we have assigned a behaviorConfiguration — one that currently does not yet exist. So next, we will need to add an endpoint behavior (inside the system.serviceModel section of the App.config) to perform client authentication (if you don’t want to re-use the same credentials as before, make that visit over to the ACS Management Portal that the Connection Information page is begging you to do):</span></span></div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">
<div class="syntaxhighlighter xml" id="highlighter_409949" style="border: 0px; font-style: inherit; margin: 1em 0px !important; outline: 0px; overflow-x: auto !important; overflow-y: hidden !important; padding: 0px; position: relative !important; vertical-align: baseline; width: 520px;">
<table border="0" cellpadding="0" cellspacing="0" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-spacing: 0px; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: 723.3333129882813px;"><tbody style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<tr style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><td class="gutter" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><div class="line number1 index0 alt2" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">1</span></span></div>
<div class="line number2 index1 alt1" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">2</span></span></div>
<div class="line number3 index2 alt2" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">3</span></span></div>
<div class="line number4 index3 alt1" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">4</span></span></div>
<div class="line number5 index4 alt2" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">5</span></span></div>
<div class="line number6 index5 alt1" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">6</span></span></div>
<div class="line number7 index6 alt2" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">7</span></span></div>
<div class="line number8 index7 alt1" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">8</span></span></div>
<div class="line number9 index8 alt2" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">9</span></span></div>
<div class="line number10 index9 alt1" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">10</span></span></div>
<div class="line number11 index10 alt2" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">11</span></span></div>
</td><td class="code" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: 686px;"><div class="container" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: relative !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<div class="line number1 index0 alt2" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;"><code class="xml plain" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><</code><code class="xml keyword" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">behaviors</code><code class="xml plain" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">></code></span></span></div>
<div class="line number2 index1 alt1" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;"><code class="xml spaces" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="xml plain" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><</code><code class="xml keyword" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">endpointBehaviors</code><code class="xml plain" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">></code></span></span></div>
<div class="line number3 index2 alt2" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;"><code class="xml spaces" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="xml plain" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><</code><code class="xml keyword" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">behavior</code> <code class="xml color1" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: gray !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">name</code><code class="xml plain" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">=</code><code class="xml string" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"sharedSecretClientCredentials"</code><code class="xml plain" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">></code></span></span></div>
<div class="line number4 index3 alt1" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;"><code class="xml spaces" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="xml plain" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><</code><code class="xml keyword" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">transportClientEndpointBehavior</code><code class="xml plain" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">></code></span></span></div>
<div class="line number5 index4 alt2" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;"><code class="xml spaces" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="xml plain" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><</code><code class="xml keyword" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">tokenProvider</code><code class="xml plain" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">></code></span></span></div>
<div class="line number6 index5 alt1" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;"><code class="xml spaces" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="xml plain" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><</code><code class="xml keyword" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">sharedSecret</code> <code class="xml color1" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: gray !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">issuerName</code><code class="xml plain" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">=</code><code class="xml string" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"owner"</code> <code class="xml color1" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: gray !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">issuerSecret</code><code class="xml plain" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">=</code><code class="xml string" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"YOUR SHARED SECRET VALUE HERE"</code> <code class="xml plain" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">/></code></span></span></div>
<div class="line number7 index6 alt2" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;"><code class="xml spaces" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="xml plain" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"></</code><code class="xml keyword" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">tokenProvider</code><code class="xml plain" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">></code></span></span></div>
<div class="line number8 index7 alt1" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;"><code class="xml spaces" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="xml plain" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"></</code><code class="xml keyword" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">transportClientEndpointBehavior</code><code class="xml plain" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">></code></span></span></div>
<div class="line number9 index8 alt2" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;"><code class="xml spaces" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="xml plain" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"></</code><code class="xml keyword" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">behavior</code><code class="xml plain" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">></code></span></span></div>
<div class="line number10 index9 alt1" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;"><code class="xml spaces" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="xml plain" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"></</code><code class="xml keyword" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">endpointBehaviors</code><code class="xml plain" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">></code></span></span></div>
<div class="line number11 index10 alt2" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;"><code class="xml plain" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"></</code><code class="xml keyword" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">behaviors</code><code class="xml plain" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">></code></span></span></div>
</div>
</td></tr>
</tbody></table>
</div>
</div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">This is something that has changed more recently. In fact, I couldn’t find a single place documenting what this behavior should actually look like right now. Hopefully that will change.</span></span></div>
<h2 style="border: 0px; clear: both; color: #444444; font-weight: normal; margin: 0px; outline: 0px; padding: 0px; text-transform: uppercase; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif; font-size: small;">INVOKING THE SERVICE</span></span></h2>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">Once we get through all the configuration craziness, we’re ready to make quick work of calling the service with two lines of code (backed by a billion lines of configuration):</span></span></div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">
<div class="syntaxhighlighter csharp" id="highlighter_757830" style="border: 0px; font-style: inherit; margin: 1em 0px !important; outline: 0px; overflow-x: auto !important; overflow-y: hidden !important; padding: 0px; position: relative !important; vertical-align: baseline; width: 520px;">
<table border="0" cellpadding="0" cellspacing="0" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-spacing: 0px; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: 936px;"><tbody style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<tr style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><td class="gutter" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><div class="line number1 index0 alt2" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">1</span></span></div>
<div class="line number2 index1 alt1" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">2</span></span></div>
</td><td class="code" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: 906px;"><div class="container" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: relative !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<div class="line number1 index0 alt2" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;"><code class="csharp plain" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">YourServiceDotNetNamespace.YourServiceClient client = </code><code class="csharp keyword" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">new</code> <code class="csharp plain" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">YourServiceDotNetNamespace.YourServiceClient(</code><code class="csharp string" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"RelayEndpoint"</code><code class="csharp plain" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">);</code></span></span></div>
<div class="line number2 index1 alt1" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;"><code class="csharp plain" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">client.GetItem(</code><code class="csharp keyword" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">new</code> <code class="csharp plain" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">YourServiceRequest() { Id = </code><code class="csharp string" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"test"</code> <code class="csharp plain" style="-webkit-box-shadow: none !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">});</code></span></span></div>
</div>
</td></tr>
</tbody></table>
</div>
</div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">That’s all it takes.</span></span></div>
<h2 style="border: 0px; clear: both; color: #444444; font-weight: normal; margin: 0px; outline: 0px; padding: 0px; text-align: left; text-transform: uppercase; vertical-align: baseline;">
</h2>
<blockquote style="border-left-color: rgb(221, 221, 221); border-left-style: solid; border-width: 0px 0px 0px 2px; color: #444444; font-style: italic; line-height: 15.333333015441895px; margin: 0px 0px 20px 40px; outline: 0px; padding: 0px 0px 0px 20px; quotes: ''; text-align: left; vertical-align: baseline;">
<div style="border: 0px; font-style: inherit; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="border: 0px; font-style: inherit; margin-bottom: 1.8em; outline: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<h2 style="border: 0px; clear: both; color: #444444; font-weight: normal; margin: 0px; outline: 0px; padding: 0px; text-align: left; text-transform: uppercase; vertical-align: baseline;">
</h2>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; text-align: left; vertical-align: baseline;">
</div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; text-align: left; vertical-align: baseline;">
</div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; text-align: left; vertical-align: baseline;">
</div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; text-align: left; vertical-align: baseline;">
</div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; text-align: left; vertical-align: baseline;">
</div>
<div style="border: 0px; color: #444444; line-height: 15.333333015441895px; margin-bottom: 1.8em; outline: 0px; padding: 0px; text-align: left; vertical-align: baseline;">
</div>
</div>
Anonymoushttp://www.blogger.com/profile/15527294402156840684noreply@blogger.com0tag:blogger.com,1999:blog-5496486467939848451.post-3476140911264002142013-07-09T11:18:00.000-04:002013-07-22T16:16:11.543-04:00<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="background-color: white; text-align: left;">
<span style="font-family: Verdana, sans-serif;">post by scott</span></div>
<div style="background-color: white; text-align: left;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div style="background-color: white; text-align: left;">
<span style="font-family: Verdana, sans-serif;">Had an interesting, yet all too common situation last week whilst looking to tune an integration solution built on BizTalk Server. The LOB system we were integrating with had used SQL Server as it’s backend as was performing poorly…real poorly. We were seeing up to 15 sec to grab a single customer from the database!</span></div>
<div style="background-color: white; text-align: left;">
<span style="font-family: Verdana, sans-serif;">Upon looking at the DB schema I found all the tables defined something like this:</span></div>
<div style="background-color: white; text-align: left;">
<a href="http://blogs.breeze.net/scotts/ct.ashx?id=7d65245c-3cd3-46e5-a9e7-f73f52cb1af6&url=http%3a%2f%2fblogs.breeze.net%2fscotts%2fcontent%2fbinary%2fWindows-Live-Writer%2fPerformance-Tuning-Xml-Data-Types-in-SQL_11B4E%2fpromoted_columns_2.png" rel="noreferrer" style="color: #000099; text-decoration: none;"><span style="font-family: Verdana, sans-serif;"><img alt="promoted_columns" border="0" height="306" src="http://blogs.breeze.net/scotts/content/binary/Windows-Live-Writer/Performance-Tuning-Xml-Data-Types-in-SQL_11B4E/promoted_columns_thumb.png" style="background-image: none; border-width: 0px; display: inline; padding-left: 0px; padding-right: 0px; padding-top: 0px;" title="promoted_columns" width="400" /></span></a></div>
<div style="background-color: white; text-align: left;">
<span style="font-family: Verdana, sans-serif;">With just an internal ID as the PK and a single column to store segments of xml data. What made this design “interesting” was the lack of any indexing on the DB. Capturing the queries being issued from the LOB system we had something like:</span></div>
<div style="text-align: left;">
<span style="font-family: Verdana, sans-serif;"><span class="kwrd" style="color: blue;">SELECT</span> *<br /> <span class="kwrd" style="color: blue;">FROM</span> [dbo].[Customers]<br /> <span class="kwrd" style="color: blue;">WHERE</span> XmlData.exist<br /> (<span class="str" style="color: #006080;">'
declare namespace ns0="http://BizTalkService.Customer";
/ns0:Customer[CustomerID='</span><span class="str" style="color: #006080;"> declare namespace ns0="http://BizTalkService.Customer";</span><span class="str" style="color: #006080;"> /ns0:Customer[CustomerID='</span><span class="str" style="color: #006080;">'F001998A-E367-4B34-B630-3A70A91CA0BD'</span><span class="str" style="color: #006080;">']
'</span><span class="str" style="color: #006080;"> '</span>) = 1<br /><span class="kwrd" style="color: blue;">SQL</span> Server parse <span class="kwrd" style="color: blue;">and</span> compile <span class="kwrd" style="color: blue;">time</span>: <br /> CPU <span class="kwrd" style="color: blue;">time</span> = 0 ms, elapsed <span class="kwrd" style="color: blue;">time</span> = 16 ms.
<br />(1 <span class="kwrd" style="color: blue;">row</span>(s) affected)<br /><span class="kwrd" style="color: blue;">Table</span> <span class="str" style="color: #006080;">'Customers'</span>. Scan <span class="kwrd" style="color: blue;">count</span> 1, logical <span class="kwrd" style="color: blue;">reads</span> 33459, physical <span class="kwrd" style="color: blue;">reads</span> 0, <span class="kwrd" style="color: blue;">read</span>-ahead <span class="kwrd" style="color: blue;">reads</span> 0, lob logical <span class="kwrd" style="color: blue;">reads</span> 0, lob physical <span class="kwrd" style="color: blue;">reads</span> 0, lob <span class="kwrd" style="color: blue;">read</span>-ahead <span class="kwrd" style="color: blue;">reads</span> 0.
<br /> <span class="kwrd" style="color: blue;">SQL</span> Server Execution Times:<br /> CPU <span class="kwrd" style="color: blue;">time</span> = 4914 ms, elapsed <span class="kwrd" style="color: blue;">time</span> = 4981 ms.<br /><span class="kwrd" style="color: blue;">CREATE</span> <span class="kwrd" style="color: blue;">FUNCTION</span> udf_Get_CustomerID(@xmldata XML)<br /><span class="kwrd" style="color: blue;">RETURNS</span> nvarchar(50)<br /><span class="kwrd" style="color: blue;">WITH</span> SCHEMABINDING<br /><span class="kwrd" style="color: blue;">BEGIN</span><br /> <span class="kwrd" style="color: blue;">RETURN</span> @xmldata.<span class="kwrd" style="color: blue;">value</span><br /> (<br /> <span class="str" style="color: #006080;">'declare namespace ns0="http://BizTalkService.Customer";
(/ns0:Customer/CustomerID)[1]'</span><br /><span class="str" style="color: #006080;"> (/ns0:Customer/CustomerID)[1]'</span>, <br /> <span class="str" style="color: #006080;">'nvarchar(50)'</span><br /> )<br /><span class="kwrd" style="color: blue;">END</span><br /><span class="kwrd" style="color: blue;">GO</span>
<br /><span class="kwrd" style="color: blue;">ALTER</span> <span class="kwrd" style="color: blue;">TABLE</span> Customers<br /><span class="kwrd" style="color: blue;">ADD</span> CustomerID <span class="kwrd" style="color: blue;">AS</span> dbo.udf_Get_CustomerID(XmlData) <span style="color: blue;">PERSISTED</span><br /><span class="kwrd" style="color: blue;">GO</span>
<br /><span class="kwrd" style="color: blue;">CREATE</span> <span class="kwrd" style="color: blue;">INDEX</span> ix_CustomerID <span class="kwrd" style="color: blue;">ON</span> Customers(CustomerID);<br /><span class="kwrd" style="color: blue;">GO</span><br /><span class="kwrd" style="color: blue;">SELECT</span> *<br /> <span class="kwrd" style="color: blue;">FROM</span> [dbo].[Customers]<br /> <span class="kwrd" style="color: blue;">WHERE</span> CustomerID=<span class="str" style="color: #006080;">'F001998A-E367-4B34-B630-3A70A91CA0BD'</span>;<br /><span class="kwrd" style="color: blue;">SQL</span> Server parse <span class="kwrd" style="color: blue;">and</span> compile <span class="kwrd" style="color: blue;">time</span>: <br /> CPU <span class="kwrd" style="color: blue;">time</span> = 0 ms, elapsed <span class="kwrd" style="color: blue;">time</span> = 4 ms.
<br />(1 <span class="kwrd" style="color: blue;">row</span>(s) affected)<br /><span class="kwrd" style="color: blue;">Table</span> <span class="str" style="color: #006080;">'Customers'</span>. Scan <span class="kwrd" style="color: blue;">count</span> 1, logical <span class="kwrd" style="color: blue;">reads</span> 6, physical <span class="kwrd" style="color: blue;">reads</span> 0, <span class="kwrd" style="color: blue;">read</span>-ahead <span class="kwrd" style="color: blue;">reads</span> 0, lob logical <span class="kwrd" style="color: blue;">reads</span> 0, lob physical <span class="kwrd" style="color: blue;">reads</span> 0, lob <span class="kwrd" style="color: blue;">read</span>-ahead <span class="kwrd" style="color: blue;">reads</span> 0.
<br /> <span class="kwrd" style="color: blue;">SQL</span> Server Execution Times:<br /> CPU <span class="kwrd" style="color: blue;">time</span> = 15 ms, elapsed <span class="kwrd" style="color: blue;">time</span> = 1 ms.<br />Of course not all scenarios can rely on the client app changing its behaviour and issuing an optimised query once it see’s proper indexing. If this describes your situation you maybe interested in Selective Xml Indexes. In this article <a href="http://blogs.breeze.net/scotts/ct.ashx?id=7d65245c-3cd3-46e5-a9e7-f73f52cb1af6&url=https%3a%2f%2fwww.simple-talk.com%2fauthor%2fseth-delconte%2f" rel="noreferrer" style="color: #000099; text-decoration: none;" target="_blank">Seth Delconte</a> writes about the new SQL Server 2012 SP1 feature that doesn't require the client to change. </span></div>
<div style="background-color: white; text-align: left;">
<span style="font-family: Verdana, sans-serif;">These were taking anywhere from 1 sec up to 15 seconds. The execution plan was confirming what I’m sure you are already thinking: table scans! Simulating this query against our Customers table above with 100K rows gave us a baseline of around 5 sec to extract a single row.</span></div>
<div style="background-color: white; text-align: left;">
<span style="font-family: Verdana, sans-serif;">Instead of xml indexing, which brings substantial storage and maintenance overhead, promoted columns were looked at. We were told by the LOB vendor that the client application optimised the queries if it found indexes defined on the table. Indexed columns would be used instead of xpath queries when they existed. But how do we get indexed columns from the table structure we had?</span></div>
<div style="background-color: white; text-align: left;">
<span style="font-family: Verdana, sans-serif;">Here is the gist of the approach:</span></div>
<div style="background-color: white; text-align: left;">
<span style="font-family: Verdana, sans-serif;">First, Identify the common xpath expressions being used which look appropriate to optimise. In our example this might be the CustomerID lookup. Then we create a UDF to grab this value from the xml segment stored in the row. A computed or promoted column is created using the PERSISTED keyword and an index created.</span></div>
<div style="background-color: white; text-align: left;">
<span style="font-family: Verdana, sans-serif;">Now we can modify our query, as the LOB client did, to use the new indexed column and dramatically increase he performance of the types of queries.</span></div>
<div style="background-color: white; text-align: left;">
<span style="font-family: Verdana, sans-serif;">Giving us stats of:</span></div>
<pre class="csharpcode" style="background-color: white; text-align: left;"><span style="color: blue; font-family: Verdana, sans-serif;"></span></pre>
<div style="background-color: white; text-align: left;">
<span style="font-family: Verdana, sans-serif;">So we went from 4981 ms to 1 ms!</span></div>
<div style="background-color: white; text-align: left;">
<span style="font-family: Verdana, sans-serif;">Obviously we need to consider the overhead this creates for write operations as we should when considering any indexing design. Only optimise the most costly queries that get issued most frequently. Overkill can lead to poorer performance as more resources are required to maintain the indexes. During our subsequent testing we didn't measure any noticeable impact. Further testing will quantify this for us in the co</span><span style="font-family: verdana, arial, helvetica, sans-serif; font-size: 11px;">ming weeks.</span></div>
<div style="background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 11px;">
<br /></div>
</div>
Anonymoushttp://www.blogger.com/profile/15527294402156840684noreply@blogger.com0tag:blogger.com,1999:blog-5496486467939848451.post-34074729225499016952013-07-08T11:59:00.000-04:002013-07-09T11:37:51.993-04:00Microsoft Integration Toolkit Overhaul 2013 - An Over Look<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Verdana, sans-serif;">We all know that there has been a significant overhaul of Integration Stack to say most of the Microsoft Stack has been refreshed with new updated technologies releases and many new releases during <a href="http://channel9.msdn.com/Events/TechEd/NorthAmerica/2013/?wt.mc_id=tena_hp#fbid=EGbw64UhC7n" target="_blank">TechEd 2013</a> and <a href="http://channel9.msdn.com/Events/Build/2013/" target="_blank">Build Conference 2013</a></span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">Check out videos by BizTalk Gurus some very interesting demos and walkthroughs</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">Here is an Overlook of the Integration platform and changes that have been released lately</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">There is an Interesting post by <a href="http://blogs.biztalk360.com/" target="_blank">Saravana Kumar </a></span><br />
<br />
<h1 class="entry-title" style="line-height: 1.25; margin: 0px 0px 10px; padding: 0px;">
<span style="color: white; font-family: Verdana, sans-serif; font-size: x-large;"><a href="http://blogs.biztalk360.com/understanding-the-current-integration-technologies-puzzle-cloud-and-on-premise/" style="background-color: white; font-weight: normal;" target="_blank">Understanding the current Integration Technologies Puzzle</a></span></h1>
<div>
<span style="font-family: Verdana, sans-serif; font-size: x-large;"><br /></span></div>
<div>
<span style="background-color: white; color: #20124d; letter-spacing: -1px; line-height: 33px;"><span style="font-family: Verdana, sans-serif; font-size: x-large;"><a href="http://seroter.wordpress.com/2013/06/10/teched-north-america-session-recap-recording-link/" target="_blank">TechEd North America Session Recap - by Richard</a> Seroter</span></span></div>
<div>
<br /></div>
<div>
<span style="font-family: Verdana, sans-serif;">and video link for the presentation <a href="http://channel9.msdn.com/Events/TechEd/NorthAmerica/2013/ATC-B220#fbid=EGbw64UhC7n" target="_blank">Here</a></span></div>
<div>
<iframe frameborder="0" scrolling="no" src="http://channel9.msdn.com/Events/TechEd/NorthAmerica/2013/ATC-B220/player?w=720&h=480" style="height: 480px; width: 720px;"></iframe></div>
<div>
<br /></div>
</div>
Anonymoushttp://www.blogger.com/profile/15527294402156840684noreply@blogger.com0tag:blogger.com,1999:blog-5496486467939848451.post-65718756483316474832013-06-07T11:03:00.000-04:002013-06-07T11:03:22.120-04:00Use Fiddler with BizTalk to monitor Incoming/Outgoing Traffic<div dir="ltr" style="text-align: left;" trbidi="on">
<h3 class="post-title entry-title" itemprop="name" style="background-color: white; color: #333333; font-family: Verdana, Arial, sans-serif; font-size: 16px; line-height: 1.1em; margin: 0px; padding: 0px;">
Using Fiddler to debug BizTalk messages?</h3>
<div class="post-header" style="background-color: white; color: #333333; font-family: Verdana, Arial, sans-serif; font-size: 13px; line-height: 1.3em; margin: 0px 0px 0.75em;">
<div class="post-header-line-1" style="line-height: 1.3em; margin: 0px 0px 0.75em;">
</div>
</div>
<div class="post-body entry-content" id="post-body-8879602102114418703" itemprop="description articleBody" style="background-color: white; color: #333333; font-family: Verdana, Arial, sans-serif; font-size: 13px; line-height: 1.3em; margin: 0px 0px 0.75em;">
When using HTTP, SOAP or WCF send ports it can be incredibly useful to view the content of messages that are sent on the wire. This allows you to inspect the headers (SOAP or HTTP). <a href="http://www.fiddlertool.com/fiddler/" rel="noreferrer" style="color: #336699;" target="_blank">Fiddler</a> is a simple but fantastic tool to allow you to do this.<br />
<br />
By default, Fiddler will not trace any messages sent to endpoints by BizTalk as it does not use WinInet. However, BizTalk send ports can be configured to use a proxy allowing Fiddler to intercept them. On the Send Port tick the Use Proxy checkbox and set the Server to 127.0.0.1 and the port to 8888. For dynamic ports, set the following properties (as applicable to the adapter being used)<br />
<span style="color: green; font-family: Consolas; font-size: small;"><br /></span>
<span style="color: green; font-family: Consolas; font-size: small;">// Debug via fiddler<br /><span style="color: black;">msgSendRequest(SOAP.UseProxy) = true;<br />msgSendRequest(SOAP.ProxyAddress) = "127.0.0.1";<br />msgSendRequest(SOAP.ProxyPort) = 8888;</span></span><br />
<br />
<br />
Note that this needs to be removed when Fiddler is not running since traffic directed to the proxy will not be received by anything.</div>
</div>
Anonymoushttp://www.blogger.com/profile/15527294402156840684noreply@blogger.com0tag:blogger.com,1999:blog-5496486467939848451.post-24272402891415155552013-06-05T17:02:00.002-04:002013-06-05T17:02:33.849-04:00Fix Huge Maps in BizTalk - change default behavior - Undocumented Fix<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="color: #333333; line-height: 1.5em; margin: 0.5em 1em 0.8em;">
<span style="font-family: Verdana, sans-serif;">post by <a href="http://biztalktalk.wordpress.com/" target="_blank">Brett</a></span></div>
<div style="color: #333333; line-height: 1.5em; margin: 0.5em 1em 0.8em;">
<span style="line-height: 1.5em;"><span style="font-family: Verdana, sans-serif;">I have been working with several industry standard Xml schema definitions, specifically those defined by the UBL standard by OASIS (www.oasis-open.org). This organisation has a worthwhile, yet lofty, goal of defining a set of document standards that will cover the majority of communication needs for B2B.</span></span></div>
<div style="color: #333333; line-height: 1.5em; margin: 0.5em 1em 0.8em;">
<span style="font-family: Verdana, sans-serif;">The result of trying to be all things to all men is that the schemas defined are big. Like really, REALLY big, with a set of included schema file that run about 8-10 deep.</span></div>
<div style="color: #333333; line-height: 1.5em; margin: 0.5em 1em 0.8em;">
<span style="font-family: Verdana, sans-serif;">The problem with this, in the BizTalk world, is when you either generate an instance document from the schema, or attempt to map a document to a UBL schema document using the BizTalk Mapper. Due to the way the BizTalk handles default nodes, you end up with all default values being output into the destination document.</span></div>
<div style="color: #333333; line-height: 1.5em; margin: 0.5em 1em 0.8em;">
<span style="font-family: Verdana, sans-serif;">A quick, undocumented fix for this is to change the GenerateDefaultFixedNodes setting in the BizTalk Map. Where is this setting, you ask?</span></div>
<div style="line-height: 1.5em; margin: 0.5em 1em 0.8em;">
<span style="font-family: Verdana, sans-serif;"><span style="color: #333333;">Open the .btm file using the “XML Editor”, rather than the default “BizTalk Mapper” (i.e. right-click, choose “Open With…”, then XML Editor). The root node of the map document is called “mapsource”, one of the attributes is called </span><b><u><span style="color: #0b5394;">“GenerateDefaultFixedNodes”. Change this from “Yes” to “No”</span></u></b><span style="color: #333333;">, save and close, and you’re done.</span></span></div>
<div style="color: #333333; line-height: 1.5em; margin: 0.5em 1em 0.8em;">
<span style="font-family: Verdana, sans-serif;">This undocumented trick brought one of our generated XSLT transforms down from a slightly ridiculous 50 Mb to an easily handled 11 Kb, and the transform execution time from 20 seconds down to about the 50 millisecond mark (on a virtual machine)</span></div>
</div>
Anonymoushttp://www.blogger.com/profile/15527294402156840684noreply@blogger.com0tag:blogger.com,1999:blog-5496486467939848451.post-23050267376570547292013-06-03T15:30:00.000-04:002013-06-03T15:30:00.599-04:00Biz Talk : How To : Throw Custom Exception in Map<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Verdana, sans-serif;">post by <a href="http://biztalktalk.wordpress.com/" target="_blank">Brett</a></span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">I have run into an instance where I need to terminate and raise an exception from within an XSLT template, based on values (or lack thereof) within the source document. The XSLT transform is running within a BizTalk map.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">The secret is the following little-known XSLT construct, which can be conditionally called at any point in the transform:</span><br />
<br />
<blockquote class="tr_bq">
<span style="color: #660000; font-family: Verdana, sans-serif;"><b><xsl:message terminate="yes">Custom error text</xsl:message></b></span></blockquote>
<span style="font-family: Verdana, sans-serif;">This will cause the XSLT engine to stop processing immediately, and raise an exception. This exception, including the custom error text contained within the message segment, can be caught in the BizTalk Orchestration engine by explicitly catching an exception of type </span><br />
<span style="font-family: Verdana, sans-serif;"><span style="color: #073763;"><br /></span></span>
<span style="font-family: Verdana, sans-serif;"><span style="color: #073763;">Microsoft.XLANGS.BaseTypes.TransformationFailureException.</span></span></div>
Anonymoushttp://www.blogger.com/profile/15527294402156840684noreply@blogger.com0tag:blogger.com,1999:blog-5496486467939848451.post-36236292631689505112013-06-03T12:28:00.000-04:002013-06-03T12:28:06.909-04:00Run .bat and .ps cmd files from Visual Studio 2010 2008<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
post by <a href="http://www.rickglos.com/" target="_blank">Rick Glos</a>:</div>
<h2 style="text-align: left;">
Visual Studio 2010 | 2012</h2>
<div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
You can use this technique to run windows command files with the .bat and .cmd extensions.</div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
Just as previously, we need to create at least one, and optionally two, external tools.</div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
One that terminates the window after executing.</div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
Here’s the values for you to copy+paste and screenshot.</div>
<table border="0" cellpadding="2" cellspacing="2" style="background-color: white; border-collapse: collapse; border-spacing: 0px; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin: 0px 0px 0px 50px; padding: 0px;"><thead style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;">
<tr style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;"><th style="font-family: inherit; font-weight: normal; line-height: 1.5; margin: 0px; padding: 0px;">Field</th><th style="font-family: inherit; font-weight: normal; line-height: 1.5; margin: 0px; padding: 0px;">Value</th></tr>
</thead><tbody style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;">
<tr style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;"><td style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;">Title</td><td style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;">Run With Cmd</td></tr>
<tr style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;"><td style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;">Command</td><td style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;">%ComSpec%</td></tr>
<tr style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;"><td style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;">Arguments</td><td style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;">/C $(ItemPath)</td></tr>
<tr style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;"><td style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;">Initial Directory</td><td style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;">$(ItemDir)</td></tr>
</tbody></table>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
<a href="http://www.rickglos.com/image.axd?picture=image_10.png" style="color: #07538e; text-decoration: none;"><img alt="screenshot" border="0" height="465" src="http://www.rickglos.com/image.axd?picture=image_thumb_10.png" style="border: 0px; display: inline; margin: 0px 0px 0px 50px; max-width: 100%;" title="screenshot" width="476" /></a></div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
One that leaves the command window open after executing. Useful if you didn’t put a ‘pause’ in your command file or if you want to leave the cmd window open for additional commands.</div>
<table border="0" cellpadding="2" cellspacing="2" style="background-color: white; border-collapse: collapse; border-spacing: 0px; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin: 0px 0px 0px 50px; padding: 0px;"><thead style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;">
<tr style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;"><th style="font-family: inherit; font-weight: normal; line-height: 1.5; margin: 0px; padding: 0px;">Field</th><th style="font-family: inherit; font-weight: normal; line-height: 1.5; margin: 0px; padding: 0px;">Value</th></tr>
</thead><tbody style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;">
<tr style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;"><td style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;">Title</td><td style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;">Run With Cmd and Remain</td></tr>
<tr style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;"><td style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;">Command</td><td style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;">%ComSpec%</td></tr>
<tr style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;"><td style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;">Arguments</td><td style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;">/K $(ItemPath)</td></tr>
<tr style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;"><td style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;">Initial Directory</td><td style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;">$(ItemDir)</td></tr>
</tbody></table>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
<a href="http://www.rickglos.com/image.axd?picture=image_11.png" style="color: #07538e; text-decoration: none;"><img alt="screenshot" border="0" height="465" src="http://www.rickglos.com/image.axd?picture=image_thumb_11.png" style="border: 0px; display: inline; margin: 0px 0px 0px 50px; max-width: 100%;" title="screenshot" width="476" /></a></div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
Now we should see our new external tools available on the Tools menu.</div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
<a href="http://www.rickglos.com/image.axd?picture=image_12.png" style="color: #07538e; text-decoration: none;"><img alt="image" border="0" height="490" src="http://www.rickglos.com/image.axd?picture=image_thumb_12.png" style="border: 0px; display: inline; margin: 0px 0px 0px 50px; max-width: 100%;" title="image" width="425" /></a></div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
However, we’d like to right-click on the file and run the cmd file via Solution Explorer like so:</div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
<a href="http://www.rickglos.com/image.axd?picture=image_13.png" style="color: #07538e; text-decoration: none;"><img alt="image" border="0" height="321" src="http://www.rickglos.com/image.axd?picture=image_thumb_13.png" style="border: 0px; display: inline; margin: 0px 0px 0px 50px; max-width: 100%;" title="image" width="491" /></a></div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
Customizing this context menu in Visual Studio 2010 is abit different from context menu customization in VS2005/2008.</div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
Click Tools –> Customize… to launch the Customize Dialog.</div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
From that dialog we want to select the ‘Context menu’ radio option and the ‘Project and Solution Context Menus | Item’ from the drop down. I’m going to put the two commands right under ‘Open With…’. You can certainly do whatever you wish. Start this process by clicking ‘Add Command’ button on the same dialog.</div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
So here’s a screenshot with that above paragraph in a picture instead of words:</div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
<a href="http://www.rickglos.com/image.axd?picture=image_14.png" style="color: #07538e; text-decoration: none;"><img alt="image" border="0" height="393" src="http://www.rickglos.com/image.axd?picture=image_thumb_14.png" style="border: 0px; display: inline; margin: 0px 0px 0px 50px; max-width: 100%;" title="image" width="648" /></a></div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
When we click ‘Add Command’, the Add Command Dialog will open. Select ‘Tools’ from the Catgories list box on the left and find your external command from the command list box on the right. Your command will be named something like ‘External Command {Number}’ where {Number} is the number in your list from your External Tools dialog.</div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
<a href="http://www.rickglos.com/image.axd?picture=image_15.png" style="color: #07538e; text-decoration: none;"><img alt="image" border="0" height="217" src="http://www.rickglos.com/image.axd?picture=image_thumb_15.png" style="border: 0px; display: inline; margin: 0px 0px 0px 50px; max-width: 100%;" title="image" width="421" /></a></div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
Clear as mud? I’m going to use this to make sure I add External Command 3 and External Command 4 to the context menu.</div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
<a href="http://www.rickglos.com/image.axd?picture=image_16.png" style="color: #07538e; text-decoration: none;"><img alt="image" border="0" height="395" src="http://www.rickglos.com/image.axd?picture=image_thumb_16.png" style="border: 0px; display: inline; margin: 0px 0px 0px 50px; max-width: 100%;" title="image" width="618" /></a></div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
Now the ‘Project and Solution Context Menus | Item’ context menu should look like this in the Customize Dialog.</div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
<a href="http://www.rickglos.com/image.axd?picture=image_17.png" style="color: #07538e; text-decoration: none;"><img alt="image" border="0" height="461" src="http://www.rickglos.com/image.axd?picture=image_thumb_17.png" style="border: 0px; display: inline; margin: 0px 0px 0px 50px; max-width: 100%;" title="image" width="555" /></a> </div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
Close that dialog and check out your new menu items by right clicking on a file in Solution explorer. You should see your new external commands.</div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
<a href="http://www.rickglos.com/image.axd?picture=image_18.png" style="color: #07538e; text-decoration: none;"><img alt="image" border="0" height="233" src="http://www.rickglos.com/image.axd?picture=image_thumb_18.png" style="border: 0px; display: inline; margin: 0px 0px 0px 50px; max-width: 100%;" title="image" width="403" /></a></div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
For extra credit, you can go back into the Customize dialog and move your commands around into spot your like and alos create a Group around them.</div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
<a href="http://www.rickglos.com/image.axd?picture=image_19.png" style="color: #07538e; text-decoration: none;"><img alt="image" border="0" height="422" src="http://www.rickglos.com/image.axd?picture=image_thumb_19.png" style="border: 0px; display: inline; margin: 0px 0px 0px 50px; max-width: 100%;" title="image" width="676" /></a></div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
<br /></div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
The finished product looks like this.</div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
<a href="http://www.rickglos.com/image.axd?picture=image_20.png" style="color: #07538e; text-decoration: none;"><img alt="image" border="0" height="249" src="http://www.rickglos.com/image.axd?picture=image_thumb_20.png" style="border: 0px; display: inline; margin: 0px 0px 0px 50px; max-width: 100%;" title="image" width="435" /></a></div>
</div>
<div>
<br /></div>
<h2>
Visual Studio 2005 | 2008</h2>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
his will take you a few minutes to setup but once your done, it will save you countless minutes.</div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
It's not unusual to have scripts in your project or solution that automate tasks. Everything from executing a powershell script, moving files around, or some other custom automation tool you may have written.</div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
The default for double-clicking a cmd file in Visual Studio is for it to open the script for editing.</div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
<a href="http://www.rickglos.com/image.axd?picture=WindowsLiveWriter/HowtoruncmdfilesfromVisualStudio_AF0E/image_2.png" style="color: #07538e; text-decoration: none;"><img alt="image" border="0" height="361" src="http://www.rickglos.com/image.axd?picture=WindowsLiveWriter/HowtoruncmdfilesfromVisualStudio_AF0E/image_thumb.png" style="border: 0px; max-width: 100%;" width="713" /></a></div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
But what if you want to execute it?</div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
One way is to right click the folder above the file, choose 'Open Folder in Windows Explorer', wait for that window to open, find the file with your eyes again, and double-click to execute it.</div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
I tried using the 'Open With...' menu item and adding cmd but it doesn't allow you to pass in the file.</div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
<a href="http://www.rickglos.com/image.axd?picture=WindowsLiveWriter/HowtoruncmdfilesfromVisualStudio_AF0E/image_4.png" style="color: #07538e; text-decoration: none;"><img alt="image" border="0" height="345" src="http://www.rickglos.com/image.axd?picture=WindowsLiveWriter/HowtoruncmdfilesfromVisualStudio_AF0E/image_thumb_1.png" style="border: 0px; max-width: 100%;" width="492" /></a></div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
So what you end up with is an empty cmd prompt window that hasn't executed the script you thought it would.</div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
<strong>Ok great so how did you do it?</strong></div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
On the tools menu you can add external tools and add arguments. So Tools -> External Tools and a window will open that allows you to run with cmd and also pass in the initial directory as well as some additional arguments.</div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
I created two:</div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
One that terminates the window after executing</div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; padding-left: 40px;">
<table border="0" cellpadding="2" cellspacing="0" style="border-collapse: collapse; border-spacing: 0px; font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px; width: 412px;"><tbody style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;">
<tr style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;"><td style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;" valign="top" width="196">Title</td><td style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;" valign="top" width="214">Run With Cmd</td></tr>
<tr style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;"><td style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;" valign="top" width="195">Command</td><td style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;" valign="top" width="214">C:\Windows\System32\cmd.exe</td></tr>
<tr style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;"><td style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;" valign="top" width="195">Arguments</td><td style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;" valign="top" width="214">/C $(ItemPath)</td></tr>
<tr style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;"><td style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;" valign="top" width="195">Initial directory</td><td style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;" valign="top" width="214">$(ItemDir)</td></tr>
</tbody></table>
<div style="font-family: inherit; line-height: 1.5; margin-bottom: 15px; padding: 0px;">
<a href="http://www.rickglos.com/image.axd?picture=WindowsLiveWriter/HowtoruncmdfilesfromVisualStudio_AF0E/image_6.png" style="color: #07538e; text-decoration: none;"><img alt="image" border="0" height="414" src="http://www.rickglos.com/image.axd?picture=WindowsLiveWriter/HowtoruncmdfilesfromVisualStudio_AF0E/image_thumb_2.png" style="border: 0px; max-width: 100%;" width="412" /></a></div>
</div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
One that remains after executing</div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; padding-left: 40px;">
<table border="0" cellpadding="2" cellspacing="0" style="border-collapse: collapse; border-spacing: 0px; font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px; width: 412px;"><tbody style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;">
<tr style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;"><td style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;" valign="top" width="196">Title</td><td style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;" valign="top" width="214">Run With Cmd and Remain</td></tr>
<tr style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;"><td style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;" valign="top" width="195">Command</td><td style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;" valign="top" width="214">C:\Windows\System32\cmd.exe</td></tr>
<tr style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;"><td style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;" valign="top" width="195">Arguments</td><td style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;" valign="top" width="214">/K $(ItemPath)</td></tr>
<tr style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;"><td style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;" valign="top" width="195">Initial directory</td><td style="font-family: inherit; line-height: 1.5; margin: 0px; padding: 0px;" valign="top" width="214">$(ItemDir)</td></tr>
</tbody></table>
<div style="font-family: inherit; line-height: 1.5; margin-bottom: 15px; padding: 0px;">
<a href="http://www.rickglos.com/image.axd?picture=WindowsLiveWriter/HowtoruncmdfilesfromVisualStudio_AF0E/image_8.png" style="color: #07538e; text-decoration: none;"><img alt="image" border="0" height="414" src="http://www.rickglos.com/image.axd?picture=WindowsLiveWriter/HowtoruncmdfilesfromVisualStudio_AF0E/image_thumb_3.png" style="border: 0px; max-width: 100%;" width="412" /></a></div>
</div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
So now you can select the file in solution explorer, then select Tools -> Run With Cmd.</div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
You could go one step further and add it to the context menu.</div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
There's many ways to get into menu customize mode, one way is to choose View -> Toolbars -> Customize. Make sure to select the 'Context Menus' toolbar and you'll notice a toolbar appear in your menu when you're in customize mode.</div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
<a href="http://www.rickglos.com/image.axd?picture=WindowsLiveWriter/HowtoruncmdfilesfromVisualStudio_AF0E/image_10.png" style="color: #07538e; text-decoration: none;"><img alt="image" border="0" height="395" src="http://www.rickglos.com/image.axd?picture=WindowsLiveWriter/HowtoruncmdfilesfromVisualStudio_AF0E/image_thumb_4.png" style="border: 0px; max-width: 100%;" width="623" /></a></div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
This next part is tricky. Leave the customize dialog open - it's semi model, if you close it, you're out of edit mode. Click Tools -> and you'll see you're new command listed something like 'External Command 3', you'll have to remember which ones you created (or yes you could go and customize that text as well).</div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
Hold down control and left click (we want to <strong>copy</strong> this to the context menu not <strong>move</strong> it), slide your pointer over the 'Project and Solution Context Menus' menu item in the context menu toolbar, then down to 'Item', and drop it in there wherever you like.</div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
<a href="http://www.rickglos.com/image.axd?picture=WindowsLiveWriter/HowtoruncmdfilesfromVisualStudio_AF0E/image_12.png" style="color: #07538e; text-decoration: none;"><img alt="image" border="0" height="383" src="http://www.rickglos.com/image.axd?picture=WindowsLiveWriter/HowtoruncmdfilesfromVisualStudio_AF0E/image_thumb_5.png" style="border: 0px; max-width: 100%;" width="523" /></a></div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
Close the customize dialog.</div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
Now you can right-click on a cmd file in Solution Explorer and select either 'Run With Cmd' or 'Run With Cmd and Remain'.</div>
<div style="background-color: white; color: #333333; font-family: Calibri, helvetica, sans-serif, Arial; font-size: 16px; line-height: 24px; margin-bottom: 15px; padding: 0px;">
<a href="http://www.rickglos.com/image.axd?picture=WindowsLiveWriter/HowtoruncmdfilesfromVisualStudio_AF0E/image_14.png" style="color: #07538e; text-decoration: none;"><img alt="image" border="0" height="256" src="http://www.rickglos.com/image.axd?picture=WindowsLiveWriter/HowtoruncmdfilesfromVisualStudio_AF0E/image_thumb_6.png" style="border: 0px; max-width: 100%;" width="368" /></a></div>
</div>
Anonymoushttp://www.blogger.com/profile/15527294402156840684noreply@blogger.com0tag:blogger.com,1999:blog-5496486467939848451.post-53707912990226678212013-05-02T12:07:00.000-04:002013-05-02T12:07:46.738-04:00BizTalk : How To : Issues<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div style="background-color: white; color: #616161; line-height: 16px;">
<em><u><span style="font-family: Verdana, sans-serif;">post by sander nef</span></u></em></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<em><u><span style="font-family: Verdana, sans-serif;"><br /></span></u></em></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<em><u><span style="font-family: Verdana, sans-serif;">Issue: Outputfile name is %sourcefilename%</span></u></em></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<span style="font-family: Verdana, sans-serif;"><strong><span style="color: #c0504d;"><br /></span></strong></span></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<span style="font-family: Verdana, sans-serif;"><strong><span style="color: #c0504d;">Is it, that…?</span> Y</strong>ou have promoted the FILE.ReceivedFileName and configured the macro %SourceFileName%, however, this is CASE SENSITIVE!</span></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<u><em><span style="font-family: Verdana, sans-serif;">Issue: No processing takes place after a BRE call</span></em></u></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<span style="font-family: Verdana, sans-serif;"><strong><span style="color: #c0504d;"><br /></span></strong></span></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<span style="font-family: Verdana, sans-serif;"><strong><span style="color: #c0504d;">Is it, that…?</span> </strong>You might be using a .Net helperclass, you’ve added the ‘StaticSupport’ following (<a href="http://msdn.microsoft.com/en-us/library/dd298814(v=bts.10).aspx" style="color: #76a3d1; text-decoration: none;" title="http://msdn.microsoft.com/en-us/library/dd298814(v=bts.10).aspx">http://msdn.microsoft.com/en-us/library/dd298814(v=bts.10).aspx</a>). This won’t work…the StaticSupport should be created under the WOW64Node</span></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<em><u><span style="font-family: Verdana, sans-serif;">Issue: Pipeline configuration change does not have any effect</span></u></em></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<span style="font-family: Verdana, sans-serif;"><strong><span style="color: #c0504d;"><br /></span></strong></span></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<span style="font-family: Verdana, sans-serif;"><strong><span style="color: #c0504d;">Is it, that…?</span> </strong>You are using a dynamic send port…if so, stop/start the application-port</span></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<em><u><span style="font-family: Verdana, sans-serif;">Issue: Inside my orchestration, a variable assignments (from context properties) leads to an exception (missing property exception)</span></u></em></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<span style="font-family: Verdana, sans-serif;"><strong><span style="color: #c0504d;"><br /></span></strong></span></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<span style="font-family: Verdana, sans-serif;"><strong><span style="color: #c0504d;">Is it, that…?</span> </strong>You are not assigning the variable from the message property in the very beginning of the orchestration, you are doing this when you need the variable as you would do in normal code….if possible, make sure that you minimize the number of shapes between receive and message context properties retrievals.</span></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<span style="font-family: Verdana, sans-serif;"><u><em>Issue: You are using the Date functoid to generate a date, you want to use a different format (From the functoid: </em></u>The output format is CCYY-MM-DDThh:mm:ss.)</span></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<span style="font-family: Verdana, sans-serif;"><strong><span style="color: #c0504d;"><br /></span></strong></span></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<span style="font-family: Verdana, sans-serif;"><strong><span style="color: #c0504d;">Is it, that…?</span> </strong>You are using a ConvertDate functoid from a library that requires an input format, the description from the Date functoid does not work..</span></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<span style="font-family: Verdana, sans-serif;">This is because the description is not correct and should be as defined in Input[1]</span></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<a href="http://lh5.ggpht.com/-EJsxeA1-1A4/UMeiuHi9d1I/AAAAAAAAAqU/XhEzVg4bxy8/s1600-h/clip_image002%25255B3%25255D.jpg" rel="noreferrer" style="color: #76a3d1; text-decoration: none;"><span style="font-family: Verdana, sans-serif;"><img alt="clip_image002" border="0" height="524" src="http://lh6.ggpht.com/-_R0G9QjPSeQ/UMeivclt5wI/AAAAAAAAAqY/Kt_qGyh28NQ/clip_image002_thumb.jpg?imgmax=800" style="background-image: none; border: 0px; display: inline; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative;" title="clip_image002" width="640" /></span></a></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<span style="font-family: Verdana, sans-serif;">In my case I used a functoid library which has a parseExact call;</span></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<a href="http://lh3.ggpht.com/-7fniUfWfZbI/UMeiwK8Hg0I/AAAAAAAAAqg/KBT8uJk_4Mg/s1600-h/clip_image002%25255B4%25255D%25255B2%25255D.jpg" rel="noreferrer" style="color: #76a3d1; text-decoration: none;"><span style="font-family: Verdana, sans-serif;"><img alt="clip_image002[4]" border="0" height="233" src="http://lh4.ggpht.com/-HPmHuIA1AAU/UMeixLggfII/AAAAAAAAAqs/PAk3PO4gEI4/clip_image002%25255B4%25255D_thumb.jpg?imgmax=800" style="background-image: none; border: 0px; display: inline; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative;" title="clip_image002[4]" width="640" /></span></a></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<em><u><span style="font-family: Verdana, sans-serif;">Issue: I’m migrating a solution that contains a service reference and want to update this reference with a new URL / or use a classic ASP.Net webservice</span></u></em></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<span style="font-family: Verdana, sans-serif;"><strong><span style="color: #c0504d;">Is it, that…?</span> </strong>You forgot that little trick, which allows you to create/update the reference for classic 2.0 references <img alt="Glimlach" class="wlEmoticon wlEmoticon-smile" src="http://lh6.ggpht.com/-ikY9ShOFYzA/UMeix4pfipI/AAAAAAAAAq0/jkuhhgFf3MU/wlEmoticon-smile%25255B2%25255D.png?imgmax=800" style="border-style: none;" /></span></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<a href="http://lh3.ggpht.com/-34iJfseucNU/UMeiyyAAoDI/AAAAAAAAAq4/5PWuFULuZcg/s1600-h/clip_image002%25255B6%25255D%25255B2%25255D.jpg" rel="noreferrer" style="color: #76a3d1; text-decoration: none;"><span style="font-family: Verdana, sans-serif;"><img alt="clip_image002[6]" border="0" height="170" src="http://lh5.ggpht.com/-jQf4oRrhlB4/UMeiz3xSeZI/AAAAAAAAArE/hZLmDK-MMT4/clip_image002%25255B6%25255D_thumb.jpg?imgmax=800" style="background-image: none; border: 0px; display: inline; margin: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative;" title="clip_image002[6]" width="640" /></span></a></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<span style="font-family: Verdana, sans-serif;">Click Advanced</span></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<a href="http://lh5.ggpht.com/-fYmx1wJKi3Q/UMei0xXmpGI/AAAAAAAAArM/Xhtm74D6HSE/s1600-h/clip_image004%25255B3%25255D.jpg" rel="noreferrer" style="color: #76a3d1; text-decoration: none;"><span style="font-family: Verdana, sans-serif;"><img alt="clip_image004" border="0" height="640" src="http://lh5.ggpht.com/-YEs0qC8m3Ck/UMei1yeqsfI/AAAAAAAAArU/lB1UZbK7cN4/clip_image004_thumb.jpg?imgmax=800" style="background-image: none; border: 0px; display: inline; margin: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative;" title="clip_image004" width="241" /></span></a></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<span style="font-family: Verdana, sans-serif;">Click ‘Add Reference’</span></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<a href="http://lh4.ggpht.com/-5NvRB-TBc9w/UMei28rNAII/AAAAAAAAArc/yZFwo3Ezn6o/s1600-h/clip_image006%25255B3%25255D.jpg" rel="noreferrer" style="color: #76a3d1; text-decoration: none;"><span style="font-family: Verdana, sans-serif;"><img alt="clip_image006" border="0" height="640" src="http://lh4.ggpht.com/-Jjofhc_55VI/UMei349RCoI/AAAAAAAAArk/iydzjyKQlkU/clip_image006_thumb.jpg?imgmax=800" style="background-image: none; border: 0px; display: inline; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative;" title="clip_image006" width="356" /></span></a></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<span style="font-family: Verdana, sans-serif;">Enter the address</span></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<a href="http://lh4.ggpht.com/-rpGkMB0WLHQ/UMei4431y_I/AAAAAAAAArs/f5rTzjW_hSI/s1600-h/clip_image007%25255B3%25255D.jpg" rel="noreferrer" style="color: #76a3d1; text-decoration: none;"><span style="font-family: Verdana, sans-serif;"><img alt="clip_image007" border="0" height="448" src="http://lh4.ggpht.com/-81IDRyKAa9w/UMei6TKzsrI/AAAAAAAAAr0/Rm56x6Oxic4/clip_image007_thumb.jpg?imgmax=800" style="background-image: none; border: 0px; display: inline; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative;" title="clip_image007" width="640" /></span></a></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<em><u><span style="font-family: Verdana, sans-serif;"><br /></span></u></em></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<em><u><span style="font-family: Verdana, sans-serif;">Issue: Debugging XSLT raises an error</span></u></em></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<span style="font-family: Verdana, sans-serif;"><strong><span style="color: #c0504d;">Is it, that…?</span> </strong>You are calling a custom functoid / .Net class in the map…you won’t be able to debug</span></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<em><u><span style="font-family: Verdana, sans-serif;"><br /></span></u></em></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<em><u><span style="font-family: Verdana, sans-serif;">Issue: Calling an functoid / .Net class in an XSLT map does not work</span></u></em></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<span style="font-family: Verdana, sans-serif;"><strong><span style="color: #c0504d;">Is it, that…?</span> </strong>Only when you have an external XSLT it is possible to call a functoid / .Net class from the XSLT</span></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<em><u><span style="font-family: Verdana, sans-serif;"><br /></span></u></em></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<em><u><span style="font-family: Verdana, sans-serif;">Issue: There is no tracking data</span></u></em></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<span style="font-family: Verdana, sans-serif;"><strong><span style="color: #c0504d;">Is it, that…?</span> </strong>There are multiple tracking hosts</span></div>
<div style="background-color: white; color: #616161; line-height: 16px;">
<br /></div>
</div>
Anonymoushttp://www.blogger.com/profile/15527294402156840684noreply@blogger.com0tag:blogger.com,1999:blog-5496486467939848451.post-84913581291102515572013-04-13T11:30:00.000-04:002013-04-13T11:30:02.661-04:00BizTalk : How To : Backup BAM Databases and Update References to BAM Databases<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">The following tables describe the databases used by BizTalk Server and identify which methods are used to back up the databases.</span></span><br />
<h2 style="text-align: left;">
<span style="font-family: Verdana, sans-serif;"><a href="http://www.blogger.com/blogger.g?blogID=5496486467939848451" name="_Toc210119856"><span style="font-size: x-large;">Databases Backed Up by the Backup BizTalk Server Job</span></a><span style="font-size: small;"><o:p></o:p></span></span></h2>
<div class="MsoNormal" style="line-height: 22px; vertical-align: top;">
<span style="line-height: 15px;"><span style="font-family: Verdana, sans-serif;">The following table lists the databases that are backed up and restored as a part of the Backup BizTalk Server job. You can modify the Backup BizTalk Server job to back up custom databases by adding them to the adm_OtherBackupDatabases table.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; vertical-align: top;">
<span style="line-height: 15px;"><span style="font-family: Verdana, sans-serif;"><br /></span></span></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="background-color: #cccccc; border-collapse: collapse; border: none; margin-left: 3.75pt; width: 97%px;"><tbody>
<tr><td style="border-color: rgb(204, 204, 204) rgb(204, 204, 204) rgb(200, 205, 222); border-style: solid; border-width: 1pt; padding: 3.75pt;" valign="bottom"><div class="MsoNormal" style="margin: 3.75pt 0in;">
<b><span style="color: #000066;"><span style="font-family: Verdana, sans-serif;">Database<o:p></o:p></span></span></b></div>
</td><td style="border-bottom-color: rgb(200, 205, 222); border-bottom-width: 1pt; border-right-color: rgb(204, 204, 204); border-right-width: 1pt; border-style: solid solid solid none; border-top-color: rgb(204, 204, 204); border-top-width: 1pt; padding: 3.75pt;" valign="bottom"><div class="MsoNormal" style="margin: 3.75pt 0in;">
<b><span style="color: #000066;"><span style="font-family: Verdana, sans-serif;">Default database name<o:p></o:p></span></span></b></div>
</td><td style="border-bottom-color: rgb(200, 205, 222); border-bottom-width: 1pt; border-right-color: rgb(204, 204, 204); border-right-width: 1pt; border-style: solid solid solid none; border-top-color: rgb(204, 204, 204); border-top-width: 1pt; padding: 3.75pt;" valign="bottom"><div class="MsoNormal" style="margin: 3.75pt 0in;">
<b><span style="color: #000066;"><span style="font-family: Verdana, sans-serif;">Description<o:p></o:p></span></span></b></div>
</td></tr>
<tr><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-left-color: rgb(213, 213, 211); border-left-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">BAM Primary Import database<o:p></o:p></span></div>
</td><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid none; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">BAMPrimaryImport<o:p></o:p></span></div>
</td><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid none; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">This is the database where the Business Activity Monitoring (BAM) collects raw tracking data.<o:p></o:p></span></div>
</td></tr>
<tr><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-left-color: rgb(213, 213, 211); border-left-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">BAM Notification Services Application database<o:p></o:p></span></div>
</td><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid none; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">BAMAlertsApplication<o:p></o:p></span></div>
</td><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid none; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">This database contains alert information for BAM notifications. For example, when you create an alert using the BAM portal, entries are inserted in the database specifying the conditions and events to which the alert pertains, as well as other supporting data items for the alert.<o:p></o:p></span></div>
</td></tr>
<tr><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-left-color: rgb(213, 213, 211); border-left-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">BAM Notification Services Instance database<o:p></o:p></span></div>
</td><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid none; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">BAMAlertsNSMain<o:p></o:p></span></div>
</td><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid none; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">This database contains instance information specifying how the notification services connect to the system that BAM is monitoring.<o:p></o:p></span></div>
</td></tr>
<tr><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-left-color: rgb(213, 213, 211); border-left-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">HWS Administration database<o:p></o:p></span></div>
</td><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid none; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">BizTalkHwsDb<o:p></o:p></span></div>
</td><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid none; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">This database contains all administration information related to Human Workflow Services (HWS).<o:p></o:p></span></div>
</td></tr>
<tr><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-left-color: rgb(213, 213, 211); border-left-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">BizTalk Tracking database<o:p></o:p></span></div>
</td><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid none; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">BizTalkDTADb<o:p></o:p></span></div>
</td><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid none; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">This database stores health monitoring data tracked by the BizTalk Server tracking engine.<o:p></o:p></span></div>
</td></tr>
<tr><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-left-color: rgb(213, 213, 211); border-left-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">BizTalk Management database<o:p></o:p></span></div>
</td><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid none; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">BizTalkMgmtDb<o:p></o:p></span></div>
</td><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid none; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">This database is the central meta-information store for all instances of BizTalk Server.<o:p></o:p></span></div>
</td></tr>
<tr><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-left-color: rgb(213, 213, 211); border-left-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">BizTalk MessageBox database<o:p></o:p></span></div>
</td><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid none; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">BizTalkMsgBoxDb<o:p></o:p></span></div>
</td><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid none; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">This database is used by the BizTalk Server engine for routing, queuing, instance management, and a variety of other tasks.<o:p></o:p></span></div>
</td></tr>
<tr><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-left-color: rgb(213, 213, 211); border-left-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">Rule Engine database<o:p></o:p></span></div>
</td><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid none; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">BizTalkRuleEngineDb<o:p></o:p></span></div>
</td><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid none; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">This database is a repository for:<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 2.25pt; margin-left: 36.75pt; margin-right: 0.75pt; text-indent: -0.25in;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 18px;">·<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Policies, which are sets of related rules.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 2.25pt; margin-left: 36.75pt; margin-right: 0.75pt; text-indent: -0.25in;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 18px;">·<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Vocabularies, which are collections of user-friendly, domain-specific names for data references in rules.<o:p></o:p></span></span></div>
</td></tr>
<tr><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-left-color: rgb(213, 213, 211); border-left-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">SSO database<o:p></o:p></span></div>
</td><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid none; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">SSODB<o:p></o:p></span></div>
</td><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid none; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">This Enterprise Single Sign-On database securely stores the configuration information for receive locations.<o:p></o:p></span></div>
</td></tr>
<tr><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-left-color: rgb(213, 213, 211); border-left-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">TPM database<o:p></o:p></span></div>
</td><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid none; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">TPM<o:p></o:p></span></div>
</td><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid none; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">This database stores trading partner data for Business Activity Services (BAS). By default, TPM database is combined with BizTalk Management (BizTalkMgmtDb) database.<o:p></o:p></span></div>
</td></tr>
<tr><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-left-color: rgb(213, 213, 211); border-left-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">BizTalk Base EDI database<o:p></o:p></span></div>
</td><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid none; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">BizTalkEDIdb<o:p></o:p></span></div>
</td><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid none; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">This database stores state for the Base electronic data interchange (EDI) adapter, which has been deprecated in BizTalk Server 2006 R2. The Base EDI adapter can be used in upgrade scenarios, but for new installations of BizTalk Server 2006 R2, use the native EDI and AS2 functionality.<o:p></o:p></span></div>
</td></tr>
</tbody></table>
<h2 style="text-align: left;">
<span style="font-family: Verdana, sans-serif;"><a href="http://www.blogger.com/blogger.g?blogID=5496486467939848451" name="_Toc210119857"><span style="font-size: x-large;">Databases Backed Up by the BAS Backup Process</span></a><span style="font-size: small;"><o:p></o:p></span></span></h2>
<div class="MsoNormal" style="line-height: 22px; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">The following table lists the Microsoft Windows SharePoint Services databases that are backed up and restored using the procedures in </span><a href="http://msdn.microsoft.com/en-us/library/aa561971.aspx"><span style="line-height: 15px;">Backing Up and Restoring BAS</span></a><span style="line-height: 15px;">:<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; vertical-align: top;">
<span style="line-height: 15px;"><span style="font-family: Verdana, sans-serif;"><br /></span></span></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="background-color: #cccccc; border-collapse: collapse; border: none; margin-left: 3.75pt; width: 97%px;"><tbody>
<tr><td style="border-color: rgb(204, 204, 204) rgb(204, 204, 204) rgb(200, 205, 222); border-style: solid; border-width: 1pt; padding: 3.75pt;" valign="bottom"><div class="MsoNormal" style="margin: 3.75pt 0in;">
<b><span style="color: #000066;"><span style="font-family: Verdana, sans-serif;">Database<o:p></o:p></span></span></b></div>
</td><td style="border-bottom-color: rgb(200, 205, 222); border-bottom-width: 1pt; border-right-color: rgb(204, 204, 204); border-right-width: 1pt; border-style: solid solid solid none; border-top-color: rgb(204, 204, 204); border-top-width: 1pt; padding: 3.75pt;" valign="bottom"><div class="MsoNormal" style="margin: 3.75pt 0in;">
<b><span style="color: #000066;"><span style="font-family: Verdana, sans-serif;">Default database name<o:p></o:p></span></span></b></div>
</td><td style="border-bottom-color: rgb(200, 205, 222); border-bottom-width: 1pt; border-right-color: rgb(204, 204, 204); border-right-width: 1pt; border-style: solid solid solid none; border-top-color: rgb(204, 204, 204); border-top-width: 1pt; padding: 3.75pt;" valign="bottom"><div class="MsoNormal" style="margin: 3.75pt 0in;">
<b><span style="color: #000066;"><span style="font-family: Verdana, sans-serif;">Description<o:p></o:p></span></span></b></div>
</td></tr>
<tr><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-left-color: rgb(213, 213, 211); border-left-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">Windows SharePoint Services configuration database<o:p></o:p></span></div>
</td><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid none; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;"><i>User-defined</i><o:p></o:p></span></div>
</td><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid none; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">This database contains all of the global settings for the server.<o:p></o:p></span></div>
</td></tr>
<tr><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-left-color: rgb(213, 213, 211); border-left-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">Windows SharePoint Services content database<o:p></o:p></span></div>
</td><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid none; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;"><i>User-defined</i><o:p></o:p></span></div>
</td><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid none; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">This database contains all of the site content, such as list items and documents.<o:p></o:p></span></div>
</td></tr>
</tbody></table>
<h2 style="text-align: left;">
<span style="font-family: Verdana, sans-serif;"><a href="http://www.blogger.com/blogger.g?blogID=5496486467939848451" name="_Toc210119858"><span style="font-size: x-large;">Databases Backed Up by the BAM Backup Process</span></a><span style="font-size: small;"><o:p></o:p></span></span></h2>
<div class="MsoNormal" style="line-height: 22px; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">The following table lists the databases that are backed up and restored using the procedures in </span><a href="http://msdn.microsoft.com/en-us/library/aa560384.aspx"><span style="line-height: 15px;">Backing Up and Restoring BAM</span></a><span style="line-height: 15px;">:<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; vertical-align: top;">
<span style="line-height: 15px;"><span style="font-family: Verdana, sans-serif;"><br /></span></span></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="background-color: #cccccc; border-collapse: collapse; border: none; margin-left: 3.75pt; width: 97%px;"><tbody>
<tr><td style="border-color: rgb(204, 204, 204) rgb(204, 204, 204) rgb(200, 205, 222); border-style: solid; border-width: 1pt; padding: 3.75pt;" valign="bottom"><div class="MsoNormal" style="margin: 3.75pt 0in;">
<b><span style="color: #000066;"><span style="font-family: Verdana, sans-serif;">Database<o:p></o:p></span></span></b></div>
</td><td style="border-bottom-color: rgb(200, 205, 222); border-bottom-width: 1pt; border-right-color: rgb(204, 204, 204); border-right-width: 1pt; border-style: solid solid solid none; border-top-color: rgb(204, 204, 204); border-top-width: 1pt; padding: 3.75pt;" valign="bottom"><div class="MsoNormal" style="margin: 3.75pt 0in;">
<b><span style="color: #000066;"><span style="font-family: Verdana, sans-serif;">Default database name<o:p></o:p></span></span></b></div>
</td><td style="border-bottom-color: rgb(200, 205, 222); border-bottom-width: 1pt; border-right-color: rgb(204, 204, 204); border-right-width: 1pt; border-style: solid solid solid none; border-top-color: rgb(204, 204, 204); border-top-width: 1pt; padding: 3.75pt;" valign="bottom"><div class="MsoNormal" style="margin: 3.75pt 0in;">
<b><span style="color: #000066;"><span style="font-family: Verdana, sans-serif;">Description<o:p></o:p></span></span></b></div>
</td></tr>
<tr><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-left-color: rgb(213, 213, 211); border-left-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">BAM Star Schema<o:p></o:p></span></div>
</td><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid none; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">BAMStarSchema<o:p></o:p></span></div>
</td><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid none; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">This database contains the staging table, and the measure and dimension tables.<o:p></o:p></span></div>
</td></tr>
<tr><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-left-color: rgb(213, 213, 211); border-left-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">BAM Analysis<o:p></o:p></span></div>
</td><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid none; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">BAMAnalysis<o:p></o:p></span></div>
</td><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid none; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">This database contains BAM OLAP cubes for both online and offline analysis.<o:p></o:p></span></div>
</td></tr>
<tr><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-left-color: rgb(213, 213, 211); border-left-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">BAM Archive<o:p></o:p></span></div>
</td><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid none; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">BAMArchive<o:p></o:p></span></div>
</td><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid none; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">This database archives old business activity data. Create a BAM Archive database to minimize the accumulation of business activity data in the BAM Primary Import database.<o:p></o:p></span></div>
</td></tr>
<tr><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-left-color: rgb(213, 213, 211); border-left-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">Tracking Analysis Server<o:p></o:p></span></div>
</td><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid none; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">BizTalkAnalysisDb<o:p></o:p></span></div>
</td><td style="background-color: white; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid none; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;">This database stores health monitoring online analytical processing (OLAP) cubes.<o:p></o:p></span></div>
</td></tr>
</tbody></table>
<h2 style="text-align: left;">
<span style="font-family: Verdana, sans-serif;"><a href="http://www.blogger.com/blogger.g?blogID=5496486467939848451" name="_Toc210119859"><span style="font-size: x-large;">How to Back Up the BAM Analysis and Tracking Analysis Server Databases</span></a><span style="font-size: large;"><o:p></o:p></span></span></h2>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 7.5pt; vertical-align: top;">
<span style="line-height: 15px;"><span style="font-family: Verdana, sans-serif;">The Business Activity Monitoring (BAM) Analysis database and the Tracking Analysis Server database store content in SQL Server Analysis Services cubes. The Backup BizTalk Server job does not back up these databases. Instead, to backup these databases, you must use SQL Server Analysis Manager.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 7.5pt; vertical-align: top;">
<span style="line-height: 15px;"><span style="font-family: Verdana, sans-serif;">After you back up these databases, you may want to purge the OLAP cubes. When you purge the OLAP cubes, you must also perform the following steps:<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 2.25pt; margin-left: 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">1.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Before you purge the OLAP cubes, in the BAM Star Schema database, truncate the fact table(s) for the cube you want to purge. The table naming convention is "bam_<i><CubeName></i>_Facts".<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 2.25pt; margin-left: 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">2.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">After you purge the OLAP cubes, you must fully process active, completed, and virtual cubes.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 7.5pt; vertical-align: top;">
<span style="line-height: 15px;"><span style="font-family: Verdana, sans-serif;">For instructions about backing up the analysis databases, see "Archiving an Analysis Services Database" in SQL Server Books Online.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 7.5pt; vertical-align: top;">
<h2 style="text-align: left;">
<span style="font-family: Verdana, sans-serif;"><b><span style="font-size: x-large; line-height: 15px;">Scheduling backups for the BAM databases</span></b></span></h2>
</div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 7.5pt; vertical-align: top;">
<span style="line-height: 15px;"><span style="font-family: Verdana, sans-serif;">If you are using BAM, verify that neither the BAM cube process nor data maintenance Data Transformation Services (DTS) packages are running when the backup package is scheduled to run.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 7.5pt; vertical-align: top;">
<span style="line-height: 15px;"><span style="font-family: Verdana, sans-serif;">To ensure consistent schema across all BAM databases, back up the BAM databases and DTS packages each time you deploy or undeploy a BAM activity.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 7.5pt; vertical-align: top;">
<span style="line-height: 15px;"><span style="font-family: Verdana, sans-serif;">Back up the BAM Analysis database and BAM Star Schema database each time you deploy or undeploy a BAM view.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 7.5pt; vertical-align: top;">
<span style="line-height: 15px;"><span style="font-family: Verdana, sans-serif;">Back up the BAM databases in the following order:<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 2.25pt; margin-left: 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">1.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Run the Backup BizTalk Server job to back up the BAM Primary Import database and your other BizTalk Server databases.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 2.25pt; margin-left: 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">2.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Run the BAM data maintenance DTS package for all activities.<br />Incorporate these steps into a DTS package, and schedule the package to run on a regular basis. To ensure data integrity, make sure no other BAM cubing or data maintenance DTS packages run when this backup package is scheduled to run.<br />To ensure that you can recover a complete set of archived data if the BAM Archive database fails, back up the BAM Archive database after you copy the partition into the BAM Archive database, but before you delete the partition from the BAM Primary Import database. To do this, modify the data maintenance DTS package for each activity to insert a step to back up the BAM Archive database before the last step in the DTS package, "End Archiving."<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">3.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Back up the BAM Analysis database, and then the BAM Star Schema database.<o:p></o:p></span></span></div>
<h2 style="text-align: left;">
<span style="font-family: Verdana, sans-serif;"><a href="http://www.blogger.com/blogger.g?blogID=5496486467939848451" name="_Toc210119860"><span style="font-size: x-large;">How to Update References to the BAM Analysis Server Database Name</span></a><span style="font-size: small;"><o:p></o:p></span></span></h2>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">1.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Stop any BAM cube update and data maintenance SSIS packages, or prevent them from running until you have restored the BAM Analysis database.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">2.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Stop the BizTalk Application service (which includes the BAM Event Bus service) so it does not try to import more data into the database.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 2.25pt; margin-left: 51pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">1.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Click <b>Start</b>, click <b>Run</b>, and then type <b>services.msc</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 2.25pt; margin-left: 51pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">2.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Right-click the <b>BizTalk Service BizTalk Group: BizTalkServerApplication</b> service and then click <b>Stop</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">3.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Click <b>Start</b>, click <b>Microsoft SQL Server 2005</b>, and then click <b>SQL Server Business Intelligence Development Studio</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">4.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In SQL Server Business Intelligence Development Studio, create a new project. Click <b>File</b>, click <b>New</b>, and then click <b>Project</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">5.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In the <b>New Project</b> dialog box, in <b>Templates</b>, click <b>Integration Services Project</b>, and then click <b>OK</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">6.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In the <b>Integration Services Project</b> dialog box, in <b>Solution Explorer</b>, right-click <b>SSIS Packages</b>, and then click <b>Add Existing Package</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">7.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In the <b>Add Copy of Existing Package</b> dialog box, in the <b>Server</b> drop-down list box, select the server that contains the BAM_AN package.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">8.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In <b>Package Path</b>, click the ellipses button.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">9.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In the <b>SSIS Package</b> dialog box, select the BAM_AN package, click <b>OK</b>, and then click <b>OK</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; vertical-align: top;">
<span style="line-height: 15px;"><span style="font-family: Verdana, sans-serif;">The package is now listed in Solution Explorer.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">10.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In <b>Solution Explorer</b>, double-click the BAM_AN package. In <b>Connection Managers</b>, double-click database number 3 (MSDB database).<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">11.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In the <b>Connection Manager</b> dialog box, in the <b>Server name</b> box, enter the name of the MSDB server, and then click <b>OK</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">12.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Click the <b>Package Explorer</b> tab, double-click the <b>Variables</b> folder, and then update the values for the primary import server name and primary import database name.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">13.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Click <b>File</b>, and then click <b>Save All</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">14.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In <b>Microsoft SQL Server Management Studio</b>, click <b>Connect</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">15.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Click <b>Integration Services</b>, double-click <b>Stored Packages</b>, click <b>MSDB</b>, right-click the BAM_AN package, and then click <b>Import Package</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">16.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In the <b>Import Package</b> dialog box, in <b>Package location</b>, select <b>File System</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">17.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In <b>Package Path</b>, navigate to your saved project, select the BAM_AN*.dtsx file, and then click <b>Open</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">18.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Click inside the <b>Package Name</b> box to automatically populate the box.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">19.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Click <b>OK</b>, and then click <b>Yes</b> to overwrite.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">20.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Restart the BizTalk Application service.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 2.25pt; margin-left: 51pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">1.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Click <b>Start</b>, click <b>Run</b>, and then type <b>services.msc</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 2.25pt; margin-left: 51pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">2.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Right-click the <b>BizTalk Service BizTalk Group: BizTalkServerApplication</b> service and then click <b>Start</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">21.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Enable any BAM cube update and data maintenance SSIS packages.<o:p></o:p></span></span></div>
<h2 style="text-align: left;">
<span style="font-family: Verdana, sans-serif;"><a href="http://www.blogger.com/blogger.g?blogID=5496486467939848451" name="_Toc210119861"><span style="font-size: x-large;">How to Update References to the BAM Star Schema Database Name</span></a><span style="font-size: small;"><o:p></o:p></span></span></h2>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">1.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Stop any BAM cube update and data maintenance SSIS packages, or prevent them from running until you have restored the BAM Star Schema database.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">2.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Stop the BizTalk Application service (which includes the BAM Event Bus service) so it does not try to import more data into the database.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 2.25pt; margin-left: 51pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">1.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Click <b>Start</b>, click <b>Run</b>, and then type <b>services.msc</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 2.25pt; margin-left: 51pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">2.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Right-click the <b>BizTalk Service BizTalk Group: BizTalkServerApplication</b> service and then click <b>Stop</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">3.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Click <b>Start</b>, click <b>Programs</b>, click <b>Microsoft SQL Server 2005</b>, and then click <b>SQL Server Business Intelligence Development Studio</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">4.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In SQL Server Business Intelligence Development Studio, create a new project. Click <b>File</b>, click <b>New</b>, and then click <b>Project</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">5.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In the <b>New Project</b> dialog box, in <b>Templates</b>, click <b>Integration Services Project</b>, and then click <b>OK</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">6.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In the <b>Integration Services Project</b> dialog box, in <b>Solution Explorer</b>, right-click <b>SSIS Packages</b>, and then click <b>Add Existing Package</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">7.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In the <b>Add Copy of Existing Package</b> dialog box, in the <b>Server</b> drop-down list box, select the server that contains the BAM_AN package.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">8.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In <b>Package Path</b>, click the ellipses button.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">9.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In the <b>SSIS Package</b> dialog box, select the BAM_AN package, click <b>OK</b>, and then click <b>OK</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; vertical-align: top;">
<span style="line-height: 15px;"><span style="font-family: Verdana, sans-serif;">The package is now listed in Solution Explorer.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">10.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In <b>Solution Explorer</b>, double-click the BAM_AN package. In <b>Connection Managers</b>, double-click database number 3 (MSDB database).<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">11.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In the <b>Connection Manager</b> dialog box, in the <b>Server name</b> box, enter the name of the MSDB server, and then click <b>OK</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">12.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Click the <b>Package Explorer</b> tab, double-click the <b>Variables</b> folder, and then update the values for the primary import server name and primary import database name.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">13.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Click <b>File</b>, and then click <b>Save All</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">14.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In <b>Microsoft SQL Server Management Studio</b>, click <b>Connect</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">15.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Click <b>Integration Services</b>, double-click <b>Stored Packages</b>, click <b>MSDB</b>, right-click the BAM_AN package, and then click <b>Import Package</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">16.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In the <b>Import Package</b> dialog box, in <b>Package location</b>, select <b>File System</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">17.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In <b>Package Path</b>, navigate to your saved project, select the BAM_AN*.dtsx file, and then click <b>Open</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">18.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Click inside the <b>Package Name</b> box to automatically populate the box.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">19.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Click <b>OK</b>, and then click <b>Yes</b> to overwrite.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">20.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Restart the BizTalk Application service.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 2.25pt; margin-left: 51pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">1.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Click <b>Start</b>, click <b>Run</b>, and then type <b>services.msc</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 2.25pt; margin-left: 51pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">2.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Right-click the <b>BizTalk Service BizTalk Group: BizTalkServerApplication</b> service and then click <b>Start</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">21.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Enable any BAM cube update and data maintenance SSIS packages.<o:p></o:p></span></span></div>
<h2 style="text-align: left;">
<span style="font-family: Verdana, sans-serif;"><a href="http://www.blogger.com/blogger.g?blogID=5496486467939848451" name="_Toc210119862"><span style="font-size: x-large;">How to Update References to the BAM Archive Database Name</span></a><span style="font-size: small;"><o:p></o:p></span></span></h2>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">1.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Stop any BAM cube update and data maintenance DTS packages, or prevent them from running until you have restored the BAM Archive database.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">2.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Stop the BizTalk Application service (which includes the BAM Event Bus service) so it does not try to import more data into the database.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 2.25pt; margin-left: 51pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">1.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Click <b>Start</b>, click <b>Run</b>, and then type <b>services.msc</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 2.25pt; margin-left: 51pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">2.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Right-click the <b>BizTalk Service BizTalk Group: BizTalkServerApplication</b> service and then click <b>Stop</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">3.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Click <b>Start</b>, click <b>Programs</b>, click <b>Microsoft SQL Server 2005</b>, and then click <b>SQL Server Business Intelligence Development Studio</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">4.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In SQL Server Business Intelligence Development Studio, create a new project. Click <b>File</b>, click <b>New</b>, and then click <b>Project</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">5.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In the <b>New Project</b> dialog box, in <b>Templates</b>, click <b>Integration Services Project</b>, and then click <b>OK</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">6.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In the <b>Integration Services Project</b> dialog box, in <b>Solution Explorer</b>, right-click <b>SSIS Packages</b>, and then click <b>Add Existing Package</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">7.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In the <b>Add Copy of Existing Package</b> dialog box, in the <b>Server</b> drop-down list box, select the server that contains the BAM_DM package.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">8.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In <b>Package Path</b>, click the ellipses button.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">9.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In the <b>SSIS Package</b> dialog box, select the BAM_DM package, click <b>OK</b>, and then click <b>OK</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; vertical-align: top;">
<span style="line-height: 15px;"><span style="font-family: Verdana, sans-serif;">The package is now listed in Solution Explorer.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">10.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In <b>Solution Explorer</b>, double-click the BAM_DM package. In <b>Connection Managers</b>, double-click database number 3 (MSDB database).<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">11.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In the <b>Connection Manager</b> dialog box, in the <b>Server name</b> box, enter the name of the MSDB server, and then click <b>OK</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">12.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Click the <b>Package Explorer</b> tab, double-click the <b>Variables</b> folder, and then update the values for the primary import server name and primary import database name.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">13.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Click <b>File</b>, and then click <b>Save All</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">14.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In <b>Microsoft SQL Server Management Studio</b>, click <b>Connect</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">15.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Click <b>Integration Services</b>, double-click <b>Stored Packages</b>, click <b>MSDB</b>, right-click the BAM_DM package, and then click <b>Import Package</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">16.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In the <b>Import Package</b> dialog box, in <b>Package location</b>, select <b>File System</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">17.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In <b>Package Path</b>, navigate to your saved project, select the BAM_DM*.dtsx file, and then click <b>Open</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">18.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Click inside the <b>Package Name</b> box to automatically populate the box.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">19.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Click <b>OK</b>, and then click <b>Yes</b> to overwrite.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">20.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Restart the BizTalk Application service.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 2.25pt; margin-left: 51pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">1.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Click <b>Start</b>, click <b>Run</b>, and then type <b>services.msc</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 2.25pt; margin-left: 51pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">2.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Right-click the <b>BizTalk Service BizTalk Group: BizTalkServerApplication</b> service and then click <b>Start</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">21.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Enable any BAM cube update and data maintenance SSIS packages.<o:p></o:p></span></span></div>
<h2 style="text-align: left;">
<span style="font-family: Verdana, sans-serif;"><a href="http://www.blogger.com/blogger.g?blogID=5496486467939848451" name="_Toc210119863"><span style="font-size: x-large;">How to Update References to the BAM Primary Import Database Name and Connection String</span></a><span style="font-size: small;"><o:p></o:p></span></span></h2>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">1.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Stop any BAM cube update and data maintenance Data Transformation Services (DTS) packages, or prevent them from running until you have restored the BAM Primary Import database.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">2.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Stop the BizTalk Application service (which includes the BAM Event Bus service) so it does not try to import more data into the database.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 2.25pt; margin-left: 51pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">1.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Click <b>Start</b>, click <b>Run</b>, and then type <b>services.msc</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 2.25pt; margin-left: 51pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">2.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Right-click the <b>BizTalk Service BizTalk Group: BizTalkServerApplication</b> service and then click <b>Stop</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">3.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Restore the BAM Primary Import database, performing the steps in </span><a href="http://msdn.microsoft.com/en-us/library/aa546753.aspx"><span style="line-height: 15px;">How to Restore Your Databases</span></a><span style="line-height: 15px;">.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">4.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Update the following Web.Config files:<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 2.25pt; margin-left: 69pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 18px;">·<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">C:\Program Files\Microsoft BizTalk Server 2006\BAMPortal\BamManagementService\Web.Config.<br />Replace the <i><ServerName></i> string with the new server name and <i><DatabaseName></i> with the new database name. Update the following connection strings:<br /><appSettings><br /><add key="BamServer" value="<i><ServerName></i>" /><br /><add key="BamDatabase" value="<i><DatabaseName></i>" /><br /><add key="MaxResultRows" value="2000" /><br /></appSettings><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 2.25pt; margin-left: 69pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 18px;">·<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">C:\Program Files\Microsoft BizTalk Server 2006\BAMPortal\BamQueryService\Web.Config.<br />Replace the <i><ServerName></i> string with the new server name and <i><DatabaseName></i> with the new database name. Update the following connection strings:<br /><appSettings><br /><add key="BamServer" value="<i><ServerName></i>" /><br /><add key="BamDatabase" value="<i><DatabaseName></i>" /><br /><add key="MaxResultRows" value="2000" /><br /></appSettings><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="line-height: 15px;"><span style="font-family: Verdana, sans-serif;"><br /></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">5.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Click <b>Start</b>, click <b>Run</b>, type <b>cmd</b> and then click <b>OK</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">6.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Navigate to the following directory: <b>%SystemRoot%\Program Files\Microsoft BizTalk Server 2006\Schema\Restore</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">7.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Right-click <b>SampleUpdateInfo.xml</b>, and then click <b>Edit</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 2.25pt; margin-left: 51pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">0.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Comment out all of the database sections except for the BizTalkMgmtDb, OldPrimaryImportDatabase, PrimaryImportDatabase, ArchivingDatabase, AnalysisDatabase, StarSchemaDatabase, and Alert.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 2.25pt; margin-left: 51pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">1.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">For the BizTalkMgmtDb, OldPrimaryImportDatabase, PrimaryImportDatabase, ArchivingDatabase, AnalysisDatabase, StarSchemaDatabase, and Alert sections, set the <b>"SourceServer"</b> and <b>"Destination Server"</b> to the name of the existing server where those databases reside.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 51pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">2.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">For PrimaryImportDatabase, set the <b>"SourceServer"</b> to the name of the server where you have moved the BAM Primary Import database.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 51pt; text-indent: -0.25in; vertical-align: top;">
<span style="line-height: 15px;"><span style="font-family: Verdana, sans-serif;"><br /></span></span></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; margin-left: 39.75pt; width: 97%px;"><tbody>
<tr><td style="background-color: #efeff7; border-color: rgb(204, 204, 204) rgb(204, 204, 204) rgb(200, 205, 222); border-style: solid; border-width: 1pt; padding: 3.75pt;" valign="bottom"><div class="MsoNormal" style="margin: 3.75pt 0in;">
<span style="font-family: Verdana, sans-serif;"><b><span style="color: #000066;"><img alt="Description: http://i.msdn.microsoft.com/Aa561586.Important(en-us,MSDN.10).gif" border="0" height="10" src="file:///C:/Users/CONSUL~1/AppData/Local/Temp/OICE_A75EC24A-71B1-4CE0-8903-22BEE0492071.0/msohtmlclip1/01/clip_image006.gif" v:shapes="Picture_x0020_55" width="10" /></span></b><b><span style="color: #000066;">Important<o:p></o:p></span></b></span></div>
</td></tr>
<tr><td style="background-color: #f7f7ff; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-left-color: rgb(213, 213, 211); border-left-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0.75pt;">
<span style="font-family: Verdana, sans-serif;">Include the quotation marks around the name of the source and destination systems.<o:p></o:p></span></div>
</td></tr>
<tr><td style="background-color: #efeff7; border-bottom-color: rgb(200, 205, 222); border-bottom-width: 1pt; border-left-color: rgb(204, 204, 204); border-left-width: 1pt; border-right-color: rgb(204, 204, 204); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="bottom"><div class="MsoNormal" style="margin: 3.75pt 0in;">
<span style="font-family: Verdana, sans-serif;"><b><span style="color: #000066;"><img alt="Description: http://i.msdn.microsoft.com/Aa561586.note(en-us,MSDN.10).gif" border="0" height="10" src="file:///C:/Users/CONSUL~1/AppData/Local/Temp/OICE_A75EC24A-71B1-4CE0-8903-22BEE0492071.0/msohtmlclip1/01/clip_image005.gif" v:shapes="Picture_x0020_56" width="10" /></span></b><b><span style="color: #000066;">Note<o:p></o:p></span></b></span></div>
</td></tr>
<tr><td style="background-color: #f7f7ff; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-left-color: rgb(213, 213, 211); border-left-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0.75pt;">
<span style="font-family: Verdana, sans-serif;">If you renamed any of the BizTalk Server databases, you must also update the database names as appropriate.<o:p></o:p></span></div>
</td></tr>
</tbody></table>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 2.25pt; margin-left: 51pt; text-indent: -0.25in; vertical-align: top;">
<span style="line-height: 15px;"><span style="font-family: Verdana, sans-serif;"><br /></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 2.25pt; margin-left: 51pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">3.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">When you are finished editing the file, save it and exit.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">8.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">At the command prompt, type:<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><b><span style="line-height: 15px;">cscript UpdateDatabase.vbs SampleUpdateInfo.xml</span></b><span style="line-height: 15px;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; vertical-align: top;">
<b><span style="line-height: 15px;"><span style="font-family: Verdana, sans-serif;"><br /></span></span></b></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; margin-left: 21.75pt; width: 97%px;"><tbody>
<tr><td style="background-color: #efeff7; border-color: rgb(204, 204, 204) rgb(204, 204, 204) rgb(200, 205, 222); border-style: solid; border-width: 1pt; padding: 3.75pt;" valign="bottom"><div class="MsoNormal" style="margin: 3.75pt 0in;">
<span style="font-family: Verdana, sans-serif;"><b><span style="color: #000066;"><img alt="Description: http://i.msdn.microsoft.com/Aa561586.note(en-us,MSDN.10).gif" border="0" height="10" src="file:///C:/Users/CONSUL~1/AppData/Local/Temp/OICE_A75EC24A-71B1-4CE0-8903-22BEE0492071.0/msohtmlclip1/01/clip_image005.gif" v:shapes="Picture_x0020_57" width="10" /></span></b><b><span style="color: #000066;">Note<o:p></o:p></span></b></span></div>
</td></tr>
<tr><td style="background-color: #f7f7ff; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-left-color: rgb(213, 213, 211); border-left-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0.75pt;">
<span style="font-family: Verdana, sans-serif;">You only need to run UpdateDatabase.vbs once.<o:p></o:p></span></div>
</td></tr>
<tr><td style="background-color: #efeff7; border-bottom-color: rgb(200, 205, 222); border-bottom-width: 1pt; border-left-color: rgb(204, 204, 204); border-left-width: 1pt; border-right-color: rgb(204, 204, 204); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="bottom"><div class="MsoNormal" style="margin: 3.75pt 0in;">
<span style="font-family: Verdana, sans-serif;"><b><span style="color: #000066;"><img alt="Description: http://i.msdn.microsoft.com/Aa561586.note(en-us,MSDN.10).gif" border="0" height="10" src="file:///C:/Users/CONSUL~1/AppData/Local/Temp/OICE_A75EC24A-71B1-4CE0-8903-22BEE0492071.0/msohtmlclip1/01/clip_image005.gif" v:shapes="Picture_x0020_58" width="10" /></span></b><b><span style="color: #000066;">Note<o:p></o:p></span></b></span></div>
</td></tr>
<tr><td style="background-color: #f7f7ff; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-left-color: rgb(213, 213, 211); border-left-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0.75pt;">
<span style="font-family: Verdana, sans-serif;">On 64-bit computers, you must run UpdateDatabase.vbs from a 64-bit command prompt.<o:p></o:p></span></div>
</td></tr>
</tbody></table>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<br />
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">9.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">At the command prompt, navigate to the following directory:<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><b><span style="line-height: 15px;">%SystemRoot%\Program Files\Microsoft BizTalk Server 2006\Tracking</span></b><span style="line-height: 15px;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">10.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">At the command prompt, edit bm.exe.config, change the value of key="DefaultServer" to the new server name, and then save the file.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">11.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Update the reference to BAM Primary Import Database in all BAM Livedata Microsoft Excel files. For each file:<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 2.25pt; margin-left: 51pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">0.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Open the Excel live data file. The file name ends with _LiveData.xls.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 2.25pt; margin-left: 51pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">1.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">On the <b>BAM</b> menu, click <b>BAM DB Connection</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 2.25pt; margin-left: 51pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">2.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In the <b>Select BAM Database</b> dialog box, enter the SQL Server and BAMPrimaryImport database, and then click <b>OK</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 2.25pt; margin-left: 51pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">3.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">On the <b>File</b> menu, click <b>Close and Return to Microsoft Excel</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 2.25pt; margin-left: 51pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">4.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">On the <b>File</b> menu, click <b>Save</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">12.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Restart the BizTalk Application service.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 2.25pt; margin-left: 51pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">0.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Click <b>Start</b>, click <b>Run</b>, and then type <b>services.msc</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 2.25pt; margin-left: 51pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">1.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Right-click the <b>BizTalk Service BizTalk Group: BizTalkServerApplication</b> service and then click <b>Start</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">13.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Enable any BAM cube update and data maintenance DTS packages.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">14.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">To resolve any incomplete trace instances, see </span><a href="http://msdn.microsoft.com/en-us/library/aa561272.aspx"><span style="line-height: 15px;">How to Resolve Incomplete Activity Instances</span></a><span style="line-height: 15px;">.<o:p></o:p></span></span></div>
<h2 style="text-align: left;">
<span style="font-family: Verdana, sans-serif;"><a href="http://www.blogger.com/blogger.g?blogID=5496486467939848451" name="_Toc210119864"><span style="font-size: x-large;">How to Update References to the BAM Notification Services Databases</span></a><span style="font-size: small;"><o:p></o:p></span></span></h2>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">1.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Click <b>Start</b>, click <b>Run</b>, type <b>cmd</b>, and then click <b>OK</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">2.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">At the command prompt, navigate to the following directory: <b>%SystemRoot%\Program Files\Microsoft BizTalk Server 2006\Tracking</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">3.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Type: <b>bm.exe get-config –filename:config.xml</b><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">4.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Open the xml file created in step 2 to obtain the list of the computers on which you must re-register Notification Services.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; vertical-align: top;">
<span style="line-height: 15px;"><span style="font-family: Verdana, sans-serif;">The computer names are listed in the <b><Property Name=></b> parameters in the <b><DeploymentUnit Name="Alert"></b> section of the xml file:<o:p></o:p></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"> <DeploymentUnit Name="Alert"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"> <Property Name="GeneratorServerName" /><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"> <Property Name="ProviderServerName" /><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"> <Property Name="DistributorServerName" /><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 22px; text-indent: 0.5in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 18px;"> </DeploymentUnit></span><span style="line-height: 15px;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">5.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">On each computer listed in the xml file, stop the NS service and then unregister an instance of Notification Services:<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 2.25pt; margin-left: 51pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">1.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Click <b>Start</b>, click <b>Programs</b>, click <b>Microsoft SQL Server 2005</b>, click <b>Configuration Tools</b>, and then click <b>Notification Services Command Prompt</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 2.25pt; margin-left: 51pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">2.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">At the command prompt, type: <b>net stop NS$BamAlerts</b><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 2.25pt; margin-left: 51pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">3.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Type the following command to unregister the instance:<br /><b>nscontrol unregister -name BamAlerts</b><br />Unregistering an instance removes the registry entries, removes the NS$instance_name service (if present), and deletes the performance counters for the service.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">6.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Re-register the Notification Service:<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 2.25pt; margin-left: 51pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">1.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Click <b>Start</b>, click <b>Programs</b>, click <b>Microsoft SQL Server 2005</b>, click <b>Configuration Tools</b>, and then click <b>Notification Services Command Prompt</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 51pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">2.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">At the command prompt, type: <b>nscontrol register -name BamAlerts -server </b><i><ServerName></i> <b>-service -serviceusername "</b><i><ServiceUserName></i><b>" -servicepassword "</b><i><ServicePassword></i><b>"</b><br />This enables Notification Services to log on to the correct database (this information is maintained in the registry of the service machine by nscontrol).<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 51pt; text-indent: -0.25in; vertical-align: top;">
<span style="line-height: 15px;"><span style="font-family: Verdana, sans-serif;"><br /></span></span></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; margin-left: 39.75pt; width: 97%px;"><tbody>
<tr><td style="background-color: #efeff7; border-color: rgb(204, 204, 204) rgb(204, 204, 204) rgb(200, 205, 222); border-style: solid; border-width: 1pt; padding: 3.75pt;" valign="bottom"><div class="MsoNormal" style="margin: 3.75pt 0in;">
<span style="font-family: Verdana, sans-serif;"><b><span style="color: #000066;"><img alt="Description: http://i.msdn.microsoft.com/Aa578110.Important(en-us,MSDN.10).gif" border="0" height="10" src="file:///C:/Users/CONSUL~1/AppData/Local/Temp/OICE_A75EC24A-71B1-4CE0-8903-22BEE0492071.0/msohtmlclip1/01/clip_image006.gif" v:shapes="Picture_x0020_64" width="10" /></span></b><b><span style="color: #000066;">Important<o:p></o:p></span></b></span></div>
</td></tr>
<tr><td style="background-color: #f7f7ff; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-left-color: rgb(213, 213, 211); border-left-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0.75pt;">
<span style="font-family: Verdana, sans-serif;">Remember to use the new Notification Services databases server in the <b>-server</b> option when re-registering the service. In addition, you should use the same user name for the new Notification Services service as the old one.<o:p></o:p></span></div>
</td></tr>
</tbody></table>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="line-height: 15px;"><span style="font-family: Verdana, sans-serif;"><br /></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">7.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">On the computer that hosts the BAM portal, click <b>Start</b>, click <b>Programs</b>, click <b>Microsoft SQL Server 2005</b>, click <b>Configuration Tools</b>, and then click <b>Notification Services Command Prompt</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">8.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">At the command prompt, type:<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><b><span style="line-height: 15px;">net stop NS$BamAlerts</span></b><span style="line-height: 15px;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">9.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">At the command prompt, type:<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><b><span style="line-height: 15px;">nscontrol unregister -name BamAlerts</span></b><span style="line-height: 15px;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">10.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">At the command prompt, type:<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><b><span style="line-height: 15px;">nscontrol register -name </span></b><i><span style="line-height: 15px;"><BamAlerts> </span></i><b><span style="line-height: 15px;">-server</span></b><i><span style="line-height: 15px;"><NotificationServicesDatabaseServer></span></i><span style="line-height: 15px;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">11.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">At the command prompt, type: <b>net start NS$BamAlerts</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">12.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Click <b>Start</b>, click <b>Run</b>, type <b>cmd</b>, and then click <b>OK</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">13.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">At the command prompt, navigate to the following directory: <b>%SystemRoot%\Program Files\Microsoft BizTalk Server 2006\Tracking</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">14.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">At the command prompt, type:<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><b><span style="line-height: 15px;">bm.exe update-config –FileName:config.xml</span></b><span style="line-height: 15px;"><o:p></o:p></span></span></div>
<h2 style="text-align: left;">
<span style="font-family: Verdana, sans-serif;"><a href="http://www.blogger.com/blogger.g?blogID=5496486467939848451" name="_Toc210119865"><span style="font-size: x-large;">How to Resolve Incomplete Activity Instances</span></a><span style="font-size: small;"><o:p></o:p></span></span></h2>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">1.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Run the following query against the BAM Primary Import database:<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 18px;">Select ActivityID from bam_<ActivityName>_Active where IsComplete = 0</span><span style="line-height: 15px;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">2.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">If data from external systems indicates that the activity instance is in fact completed, run the following query to manually complete the instance:<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 18px;">exec bam_<ActivityName>_PrimaryImport @ActivityID=N'<ActivityID>', @IsStartNew=0, @IsComplete=1</span><span style="line-height: 15px;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; vertical-align: top;">
<span style="line-height: 18px;"><span style="font-family: Verdana, sans-serif;"><br /></span></span></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; margin-left: 25.35pt; width: 95%px;"><tbody>
<tr><td style="background-color: #efeff7; border-color: rgb(204, 204, 204) rgb(204, 204, 204) rgb(200, 205, 222); border-style: solid; border-width: 1pt; padding: 3.75pt;" valign="bottom"><div class="MsoNormal" style="margin: 3.75pt 0in;">
<span style="font-family: Verdana, sans-serif;"><b><span style="color: #000066;"><img alt="Description: http://i.msdn.microsoft.com/Aa561272.note(en-us,MSDN.10).gif" border="0" height="10" src="file:///C:/Users/CONSUL~1/AppData/Local/Temp/OICE_A75EC24A-71B1-4CE0-8903-22BEE0492071.0/msohtmlclip1/01/clip_image005.gif" v:shapes="Picture_x0020_69" width="10" /></span></b><b><span style="color: #000066;">Note<o:p></o:p></span></b></span></div>
</td></tr>
<tr><td style="background-color: #f7f7ff; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-left-color: rgb(213, 213, 211); border-left-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0.75pt;">
<span style="font-family: Verdana, sans-serif;">You can follow the same process to complete a continuation activity by replacing ActivityID with ContinuationID.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin: 0.75pt;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
</td></tr>
</tbody></table>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<br />
<div class="MsoNormal" style="line-height: 22px; vertical-align: top;">
</div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; margin-left: 3.75pt; width: 97%px;"><tbody>
<tr><td style="background-color: #efeff7; border-color: rgb(204, 204, 204) rgb(204, 204, 204) rgb(200, 205, 222); border-style: solid; border-width: 1pt; padding: 3.75pt;" valign="bottom"><div class="MsoNormal" style="margin: 3.75pt 0in;">
<span style="font-family: Verdana, sans-serif;"><b><span style="color: #000066;"><img alt="Description: http://i.msdn.microsoft.com/Aa561272.note(en-us,MSDN.10).gif" border="0" height="10" src="file:///C:/Users/CONSUL~1/AppData/Local/Temp/OICE_A75EC24A-71B1-4CE0-8903-22BEE0492071.0/msohtmlclip1/01/clip_image005.gif" v:shapes="Picture_x0020_70" width="10" /></span></b><b><span style="color: #000066;">Note<o:p></o:p></span></b></span></div>
</td></tr>
<tr><td style="background-color: #f7f7ff; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-left-color: rgb(213, 213, 211); border-left-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0.75pt;">
<span style="font-family: Verdana, sans-serif;">If the main trace has any active continuation traces, it remains active until the continuation traces are completed.<o:p></o:p></span></div>
</td></tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
</div>
Anonymoushttp://www.blogger.com/profile/15527294402156840684noreply@blogger.com0tag:blogger.com,1999:blog-5496486467939848451.post-79662808271634104412013-04-12T09:30:00.000-04:002013-04-12T09:30:04.636-04:00BizTalk : How To : Restore Your backup BizTalk Databases<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<h2 style="text-align: left;">
<span style="font-family: Verdana, sans-serif; font-size: small;">How to Restore Your BizTalk Databases</span></h2>
<h1>
<span style="font-family: Verdana, sans-serif; font-size: small;"><o:p></o:p></span></h1>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">1.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">On the computer or computers that you have identified as the destination system, click <b>Start</b>, click <b>Programs</b>, click <b>Microsoft SQL Server 2005</b>, and then click <b>SQL Server Management Studio</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">2.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In the <b>Connect to Server</b> dialog box, specify the name of the SQL Server on the destination system, and then click <b>Connect</b> to connect to the appropriate SQL Server.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">3.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In <b>Microsoft SQL Server Management Studio</b>, double-click the appropriate server, double-click <b>SQL Server Agent</b>, and then double-click <b>Jobs</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">4.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In the details pane, right-click <b>BTS Log Shipping - Get Backup History</b>, and then click <b>Disable</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; vertical-align: top;">
<span style="line-height: 15px;"><span style="font-family: Verdana, sans-serif;">In the <b>Disable Jobs</b> dialog box, the status changes to <b>Success</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">5.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In the details pane, right-click <b>BTS Log Shipping - Restore Databases</b>, and then click <b>Disable</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; vertical-align: top;">
<span style="line-height: 15px;"><span style="font-family: Verdana, sans-serif;">In the <b>Disable Jobs</b> dialog box, the status changes to <b>Success</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">6.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In the details pane, right-click <b>BTS Log Shipping - Restore To Mark</b>, and then click <b>Start Job</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; vertical-align: top;">
<span style="line-height: 15px;"><span style="font-family: Verdana, sans-serif;">SQL Server Agent jobs and BizTalk Server databases are restored to the destination system.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">7.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">On the computer running BizTalk Server 2006, where you edited the SampleUpdateInfo.xml file, open a command prompt. Click <b>Start</b>, click <b>Run</b>, type <b>cmd</b> and then click <b>OK</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">8.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Navigate to the following directory: <b>%SystemRoot%\Program Files\Microsoft BizTalk Server 2006\Schema\Restore</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;"><br /></span></span></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; margin-left: 21.75pt; width: 97%px;"><tbody>
<tr><td style="background-color: #efeff7; border-color: rgb(204, 204, 204) rgb(204, 204, 204) rgb(200, 205, 222); border-style: solid; border-width: 1pt; padding: 3.75pt;" valign="bottom"><div class="MsoNormal" style="margin: 3.75pt 0in;">
<span style="font-family: Verdana, sans-serif;"><b><span style="color: #000066;"><img alt="Description: http://i.msdn.microsoft.com/Aa546753.note(en-us,MSDN.10).gif" border="0" height="10" src="file:///C:/Users/CONSUL~1/AppData/Local/Temp/OICE_A75EC24A-71B1-4CE0-8903-22BEE0492071.0/msohtmlclip1/01/clip_image005.gif" v:shapes="Picture_x0020_37" width="10" /></span></b><b><span style="color: #000066;">Note<o:p></o:p></span></b></span></div>
</td></tr>
<tr><td style="background-color: #f7f7ff; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-left-color: rgb(213, 213, 211); border-left-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0.75pt;">
<span style="font-family: Verdana, sans-serif;">On 64-bit computers, browse to the following folder: <b>%SystemRoot%\Program Files (x86)\Microsoft BizTalk Server 2006\Bins32\Schema\Restore</b>.<o:p></o:p></span></div>
</td></tr>
</tbody></table>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;"><br /></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">9.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">At the command prompt, type:<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><b><span style="line-height: 15px;">cscript UpdateDatabase.vbs SampleUpdateInfo.xml</span></b><span style="line-height: 15px;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; vertical-align: top;">
<span style="line-height: 15px;"><span style="font-family: Verdana, sans-serif;">This script updates all tables that store information about the location of other databases.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; vertical-align: top;">
<span style="line-height: 15px;"><span style="font-family: Verdana, sans-serif;"><br /></span></span></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; margin-left: 21.75pt; width: 97%px;"><tbody>
<tr><td style="background-color: #efeff7; border-color: rgb(204, 204, 204) rgb(204, 204, 204) rgb(200, 205, 222); border-style: solid; border-width: 1pt; padding: 3.75pt;" valign="bottom"><div class="MsoNormal" style="margin: 3.75pt 0in;">
<span style="font-family: Verdana, sans-serif;"><b><span style="color: #000066;"><img alt="Description: http://i.msdn.microsoft.com/Aa546753.note(en-us,MSDN.10).gif" border="0" height="10" src="file:///C:/Users/CONSUL~1/AppData/Local/Temp/OICE_A75EC24A-71B1-4CE0-8903-22BEE0492071.0/msohtmlclip1/01/clip_image005.gif" v:shapes="Picture_x0020_38" width="10" /></span></b><b><span style="color: #000066;">Note<o:p></o:p></span></b></span></div>
</td></tr>
<tr><td style="background-color: #f7f7ff; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-left-color: rgb(213, 213, 211); border-left-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0.75pt;">
<span style="font-family: Verdana, sans-serif;">You only need to run UpdateDatabase.vbs on one server in the BizTalk group.<o:p></o:p></span></div>
</td></tr>
<tr><td style="background-color: #efeff7; border-bottom-color: rgb(200, 205, 222); border-bottom-width: 1pt; border-left-color: rgb(204, 204, 204); border-left-width: 1pt; border-right-color: rgb(204, 204, 204); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="bottom"><div class="MsoNormal" style="margin: 3.75pt 0in;">
<span style="font-family: Verdana, sans-serif;"><b><span style="color: #000066;"><img alt="Description: http://i.msdn.microsoft.com/Aa546753.note(en-us,MSDN.10).gif" border="0" height="10" src="file:///C:/Users/CONSUL~1/AppData/Local/Temp/OICE_A75EC24A-71B1-4CE0-8903-22BEE0492071.0/msohtmlclip1/01/clip_image005.gif" v:shapes="Picture_x0020_39" width="10" /></span></b><b><span style="color: #000066;">Note<o:p></o:p></span></b></span></div>
</td></tr>
<tr><td style="background-color: #f7f7ff; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-left-color: rgb(213, 213, 211); border-left-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0.75pt;">
<span style="font-family: Verdana, sans-serif;">On 64-bit computers, you must run UpdateDatabase.vbs from a 64-bit command prompt.<o:p></o:p></span></div>
</td></tr>
</tbody></table>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;"><br /></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">10.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Copy the edited SampleUpdateInfo.xml file to the <b>%SystemRoot%\Program Files\Microsoft BizTalk Server 2006\Schema\Restore</b> directory on every computer running BizTalk Server 2006 that is part of the BizTalk Server group.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;"><br /></span></span></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; margin-left: 21.75pt; width: 97%px;"><tbody>
<tr><td style="background-color: #efeff7; border-color: rgb(204, 204, 204) rgb(204, 204, 204) rgb(200, 205, 222); border-style: solid; border-width: 1pt; padding: 3.75pt;" valign="bottom"><div class="MsoNormal" style="margin: 3.75pt 0in;">
<span style="font-family: Verdana, sans-serif;"><b><span style="color: #000066;"><img alt="Description: http://i.msdn.microsoft.com/Aa546753.note(en-us,MSDN.10).gif" border="0" height="10" src="file:///C:/Users/CONSUL~1/AppData/Local/Temp/OICE_A75EC24A-71B1-4CE0-8903-22BEE0492071.0/msohtmlclip1/01/clip_image005.gif" v:shapes="Picture_x0020_40" width="10" /></span></b><b><span style="color: #000066;">Note<o:p></o:p></span></b></span></div>
</td></tr>
<tr><td style="background-color: #f7f7ff; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-left-color: rgb(213, 213, 211); border-left-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0.75pt;">
<span style="font-family: Verdana, sans-serif;">On 64-bit computers, browse to the following folder: <b>%SystemRoot%\Program Files (x86)\Microsoft BizTalk Server 2006\Bins32\Schema\Restore</b>.<o:p></o:p></span></div>
</td></tr>
</tbody></table>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;"><br /></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">11.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">On each computer in the BizTalk Server group, open a command prompt. Click <b>Start</b>, click <b>Run</b>, type <b>cmd</b> and then click <b>OK</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;"><br /></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">12.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Navigate to the following directory: <b>%SystemRoot%\Program Files\Microsoft BizTalk Server 2006\Schema\Restore</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;"><br /></span></span></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; margin-left: 21.75pt; width: 97%px;"><tbody>
<tr><td style="background-color: #efeff7; border-color: rgb(204, 204, 204) rgb(204, 204, 204) rgb(200, 205, 222); border-style: solid; border-width: 1pt; padding: 3.75pt;" valign="bottom"><div class="MsoNormal" style="margin: 3.75pt 0in;">
<span style="font-family: Verdana, sans-serif;"><b><span style="color: #000066;"><img alt="Description: http://i.msdn.microsoft.com/Aa546753.note(en-us,MSDN.10).gif" border="0" height="10" src="file:///C:/Users/CONSUL~1/AppData/Local/Temp/OICE_A75EC24A-71B1-4CE0-8903-22BEE0492071.0/msohtmlclip1/01/clip_image005.gif" v:shapes="Picture_x0020_41" width="10" /></span></b><b><span style="color: #000066;">Note<o:p></o:p></span></b></span></div>
</td></tr>
<tr><td style="background-color: #f7f7ff; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-left-color: rgb(213, 213, 211); border-left-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0.75pt;">
<span style="font-family: Verdana, sans-serif;">On 64-bit computers, browse to the following folder: <b>%SystemRoot%\Program Files (x86)\Microsoft BizTalk Server 2006\Bins32\Schema\Restore</b>.<o:p></o:p></span></div>
</td></tr>
</tbody></table>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;"><br /></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">13.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">At the command prompt, type:<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><b><span style="line-height: 15px;">cscript UpdateRegistry.vbs SampleUpdateInfo.xml</span></b><span style="line-height: 15px;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; vertical-align: top;">
<span style="line-height: 15px;"><span style="font-family: Verdana, sans-serif;">This script updates all registry entries that store information about the location of other databases.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; vertical-align: top;">
<span style="line-height: 15px;"><span style="font-family: Verdana, sans-serif;"><br /></span></span></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; margin-left: 21.75pt; width: 97%px;"><tbody>
<tr><td style="background-color: #efeff7; border-color: rgb(204, 204, 204) rgb(204, 204, 204) rgb(200, 205, 222); border-style: solid; border-width: 1pt; padding: 3.75pt;" valign="bottom"><div class="MsoNormal" style="margin: 3.75pt 0in;">
<span style="font-family: Verdana, sans-serif;"><b><span style="color: #000066;"><img alt="Description: http://i.msdn.microsoft.com/Aa546753.note(en-us,MSDN.10).gif" border="0" height="10" src="file:///C:/Users/CONSUL~1/AppData/Local/Temp/OICE_A75EC24A-71B1-4CE0-8903-22BEE0492071.0/msohtmlclip1/01/clip_image005.gif" v:shapes="Picture_x0020_42" width="10" /></span></b><b><span style="color: #000066;">Note<o:p></o:p></span></b></span></div>
</td></tr>
<tr><td style="background-color: #f7f7ff; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-left-color: rgb(213, 213, 211); border-left-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0.75pt;">
<span style="font-family: Verdana, sans-serif;">You need to run UpdateRegistry.vbs on every server in the BizTalk group.<o:p></o:p></span></div>
</td></tr>
<tr><td style="background-color: #efeff7; border-bottom-color: rgb(200, 205, 222); border-bottom-width: 1pt; border-left-color: rgb(204, 204, 204); border-left-width: 1pt; border-right-color: rgb(204, 204, 204); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="bottom"><div class="MsoNormal" style="margin: 3.75pt 0in;">
<span style="font-family: Verdana, sans-serif;"><b><span style="color: #000066;"><img alt="Description: http://i.msdn.microsoft.com/Aa546753.note(en-us,MSDN.10).gif" border="0" height="10" src="file:///C:/Users/CONSUL~1/AppData/Local/Temp/OICE_A75EC24A-71B1-4CE0-8903-22BEE0492071.0/msohtmlclip1/01/clip_image005.gif" v:shapes="Picture_x0020_43" width="10" /></span></b><b><span style="color: #000066;">Note<o:p></o:p></span></b></span></div>
</td></tr>
<tr><td style="background-color: #f7f7ff; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-left-color: rgb(213, 213, 211); border-left-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0.75pt;">
<span style="font-family: Verdana, sans-serif;">On 64-bit computers, you must run UpdateRegistry.vbs from a 64-bit command prompt.<o:p></o:p></span></div>
</td></tr>
</tbody></table>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;"><br /></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">14.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Restart all of the BizTalk Server services. For more information about how to restart the BizTalk Server services, see </span><a href="http://msdn.microsoft.com/en-us/library/aa559716.aspx"><span style="line-height: 15px;">How to Start, Stop, Pause, Resume, or Restart BizTalk Server Services</span></a><span style="line-height: 15px;">.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;"><br /></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">15.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">After restoring your databases, you must restart the Windows Management Instrumentation service. Click <b>Start</b>, click <b>Run</b>, type <b>services.msc</b>, and then click <b>OK</b>. Right-click <b>Windows Management Instrumentation</b>, and then click <b>Restart</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">16.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">On the computer you use to administer BizTalk Server, click <b>Start</b>, click <b>Programs</b>, click <b>Microsoft BizTalk Server 2006</b>, and then click <b>BizTalk Server Administration</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">17.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In the console tree, right-click the <b>BizTalk Group</b>, and then click <b>Remove</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">18.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In the console tree, right-click <b>BizTalk Server 2006 Administration</b>, and then click <b>Connect to Existing Group</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">19.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In the <b>Connect to Existing BizTalk Server Configuration Database</b> dialog box, in the <b>SQL Server name</b> drop-down list box, select the name of the Microsoft SQL Server instance that hosts the BizTalk Management database. When you select the instance of SQL Server, BizTalk Server automatically attempts to detect BizTalk Server databases on that computer.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">20.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In the <b>Database name</b> drop-down list box, select the BizTalk Management database (<b>BizTalkMgmtDb</b>) to which you want to connect, and then click <b>OK</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; vertical-align: top;">
<span style="line-height: 15px;"><span style="font-family: Verdana, sans-serif;">The BizTalk Server Administration Console adds the BizTalk group to the console tree.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; vertical-align: top;">
<span style="line-height: 15px;"><span style="font-family: Verdana, sans-serif;">Your BizTalk server is now restored and should be running. You should now configure the Backup BizTalk Server job to start writing backups to a new destination server. You should also reconfigure a new destination system.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; vertical-align: top;">
<span style="line-height: 15px;"><span style="font-family: Verdana, sans-serif;"><br /></span></span></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; margin-left: 3.75pt; width: 97%px;"><tbody>
<tr><td style="background-color: #efeff7; border-color: rgb(204, 204, 204) rgb(204, 204, 204) rgb(200, 205, 222); border-style: solid; border-width: 1pt; padding: 3.75pt;" valign="bottom"><div class="MsoNormal" style="margin: 3.75pt 0in;">
<span style="font-family: Verdana, sans-serif;"><b><span style="color: #000066;"><img alt="Description: http://i.msdn.microsoft.com/Aa546753.Important(en-us,MSDN.10).gif" border="0" height="10" src="file:///C:/Users/CONSUL~1/AppData/Local/Temp/OICE_A75EC24A-71B1-4CE0-8903-22BEE0492071.0/msohtmlclip1/01/clip_image006.gif" v:shapes="Picture_x0020_44" width="10" /></span></b><b><span style="color: #000066;">Important<o:p></o:p></span></b></span></div>
</td></tr>
<tr><td style="background-color: #f7f7ff; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-left-color: rgb(213, 213, 211); border-left-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0.75pt;">
<span style="font-family: Verdana, sans-serif;">If you are using the Rules Engine, after restoring the databases, you must restart the Rule Engine Update Service on every server in the BizTalk Server group. For more information about how to restart the Rule Engine Update Service, see <a href="http://msdn.microsoft.com/en-us/library/aa559716.aspx">How to Start, Stop, Pause, Resume, or Restart BizTalk Server Services</a>.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin: 0.75pt;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
</td></tr>
<tr><td style="background-color: #efeff7; border-bottom-color: rgb(200, 205, 222); border-bottom-width: 1pt; border-left-color: rgb(204, 204, 204); border-left-width: 1pt; border-right-color: rgb(204, 204, 204); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="bottom"><div class="MsoNormal" style="margin: 3.75pt 0in;">
<span style="font-family: Verdana, sans-serif;"><b><span style="color: #000066;"><img alt="Description: http://i.msdn.microsoft.com/Aa546753.note(en-us,MSDN.10).gif" border="0" height="10" src="file:///C:/Users/CONSUL~1/AppData/Local/Temp/OICE_A75EC24A-71B1-4CE0-8903-22BEE0492071.0/msohtmlclip1/01/clip_image005.gif" v:shapes="Picture_x0020_45" width="10" /></span></b><b><span style="color: #000066;">Note<o:p></o:p></span></b></span></div>
</td></tr>
<tr><td style="background-color: #f7f7ff; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-left-color: rgb(213, 213, 211); border-left-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0.75pt;">
<span style="font-family: Verdana, sans-serif;">If you are using BAS or BAM, this is the time to restore the BAS and BAM databases. For more information, see <a href="http://msdn.microsoft.com/en-us/library/aa561971.aspx">Backing Up and Restoring BAS</a> and <a href="http://msdn.microsoft.com/en-us/library/aa560384.aspx">Backing Up and Restoring BAM</a>.<o:p></o:p></span></div>
</td></tr>
</tbody></table>
<h1>
</h1>
</div>
Anonymoushttp://www.blogger.com/profile/15527294402156840684noreply@blogger.com0tag:blogger.com,1999:blog-5496486467939848451.post-25719535141210549382013-04-11T14:30:00.000-04:002013-04-11T14:30:02.840-04:00BizTalk : How To : Configure the Destination System for Log Shipping<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<h2 style="text-align: left;">
<span style="font-family: Verdana, sans-serif; font-size: small;">How to Configure the Destination System for Log Shipping</span></h2>
<h1>
<span style="font-family: Verdana, sans-serif; font-size: small;"><o:p></o:p></span></h1>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">1.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">On the computer or computers that you have identified as the destination system, click <b>Start</b>, click <b>Programs</b>, click <b>Microsoft SQL Server 2005</b>, and then click <b>SQL Server Management Studio</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">2.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In the <b>Connect to Server</b> dialog box, specify the name of the SQL Server on the destination computer, and then click <b>Connect</b> to connect to the appropriate SQL Server.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">3.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In <b>Microsoft SQL Server Management Studio</b>, click <b>File</b>, click <b>Open</b>, and then click <b>File</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">4.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In the <b>Open File</b> dialog box, browse to the following SQL script:<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 18px;">%SystemRoot%\Program Files\Microsoft BizTalk Server 2006\Schema\LogShipping_Destination_Schema.sql</span><span style="line-height: 15px;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">5.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Click the <b>Query</b> menu, and then click <b>Execute</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; vertical-align: top;">
<span style="line-height: 15px;"><span style="font-family: Verdana, sans-serif;">The LogShipping_Destination_Schema drops and recreates the tables used for restoring the source databases on the destination system. This includes tables to store the list of databases being recovered, copies of the backup history imported from the source system's BizTalkMgmtDb database, and information about SQL Server Agent jobs configured to run against the source databases.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">6.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In <b>Microsoft SQL Server Management Studio</b>, click <b>File</b>, click <b>Open</b>, and then click <b>File</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">7.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In the <b>Open File</b> dialog box, browse to the following SQL script:<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 18px;">%SystemRoot%\Program Files\Microsoft BizTalk Server 2006\Schema\LogShipping_Destination_Logic.sql</span><span style="line-height: 15px;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">8.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Click the <b>Query</b> menu, and then click <b>Execute</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">9.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">On the computer or computers you have identified as the destination system, click <b>Start</b>, click <b>Programs</b>, click <b>Microsoft SQL Server 2005</b>, and then click <b>SQL Server Management Studio</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">10.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In the <b>Connect to Server</b> dialog box, specify the name of the SQL Server on the destination computer, and then click <b>Connect</b> to connect to the appropriate SQL Server.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">11.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In <b>Microsoft SQL Server Management Studio</b>, click <b>New Query</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">12.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In the query window paste the following command:<o:p></o:p></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;">exec bts_ConfigureBizTalkLogShipping @nvcDescription = '<MyLogShippingSolution>',<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;">@nvcMgmtDatabaseName = '<BizTalkServerManagementDatabaseName>',<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;">@nvcMgmtServerName = '<BizTalkServerManagementDatabaseServer>',<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;">@SourceServerName = null, -- null indicates that this destination server restores all databases<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 22px; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 18px;">@fLinkServers = 1 -- 1 automatically links the server to the management database</span><span style="line-height: 15px;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="line-height: 15px;"><span style="font-family: Verdana, sans-serif;"><br /></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">13.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In the command, replace <i><MyLogShippingSolution></i> with a meaningful description, surrounded by single quotes. Replace <i><BizTalkServerManagementDatabaseName></i> and <i><BizTalkServerManagementDatabaseServer></i> with the name and location of your source BizTalk Management database, surrounded by single quotes.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="line-height: 15px;"><span style="font-family: Verdana, sans-serif;"><br /></span></span></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; margin-left: 21.75pt; width: 97%px;"><tbody>
<tr><td style="background-color: #efeff7; background-position: initial initial; background-repeat: initial initial; border-color: rgb(204, 204, 204) rgb(204, 204, 204) rgb(200, 205, 222); border-style: solid; border-width: 1pt; padding: 3.75pt;" valign="bottom"><div class="MsoNormal" style="margin: 3.75pt 0in;">
<span style="font-family: Verdana, sans-serif;"><b><span style="color: #000066;"><img alt="Description: http://i.msdn.microsoft.com/Aa560961.Important(en-us,MSDN.10).gif" border="0" height="10" src="file:///C:/Users/CONSUL~1/AppData/Local/Temp/OICE_A75EC24A-71B1-4CE0-8903-22BEE0492071.0/msohtmlclip1/01/clip_image006.gif" v:shapes="Picture_x0020_16" width="10" /></span></b><b><span style="color: #000066;">Important<o:p></o:p></span></b></span></div>
</td></tr>
<tr><td style="background-color: #f7f7ff; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-left-color: rgb(213, 213, 211); border-left-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0.75pt;">
<span style="font-family: Verdana, sans-serif;">Before you execute this statement, you must enable the <b>Ad Hoc Distributed Queries</b> configuration option on the destination system.<o:p></o:p></span></div>
</td></tr>
<tr><td style="background-color: #efeff7; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(200, 205, 222); border-bottom-width: 1pt; border-left-color: rgb(204, 204, 204); border-left-width: 1pt; border-right-color: rgb(204, 204, 204); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="bottom"><div class="MsoNormal" style="margin: 3.75pt 0in;">
<span style="font-family: Verdana, sans-serif;"><b><span style="color: #000066;"><img alt="Description: http://i.msdn.microsoft.com/Aa560961.note(en-us,MSDN.10).gif" border="0" height="10" src="file:///C:/Users/CONSUL~1/AppData/Local/Temp/OICE_A75EC24A-71B1-4CE0-8903-22BEE0492071.0/msohtmlclip1/01/clip_image005.gif" v:shapes="Picture_x0020_17" width="10" /></span></b><b><span style="color: #000066;">Note<o:p></o:p></span></b></span></div>
</td></tr>
<tr><td style="background-color: #f7f7ff; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-left-color: rgb(213, 213, 211); border-left-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0.75pt;">
<span style="font-family: Verdana, sans-serif;">If you have more than one source server, you can restore each source server to its own destination server. On each destination server, in the <b>@SourceServerName = null</b> parameter, replace <i>null</i> with the name of the appropriate source server, surrounded by single quotes (for example, <b>@SourceServerName = 'MySourceServer',</b>).<o:p></o:p></span></div>
</td></tr>
</tbody></table>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="line-height: 15px;"><span style="font-family: Verdana, sans-serif;"><br /></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">14.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Click the <b>Query</b> menu, and then click <b>Execute</b>.<o:p></o:p></span></span></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; margin-left: 21.75pt; width: 97%px;"><tbody>
<tr><td style="background-color: #efeff7; background-position: initial initial; background-repeat: initial initial; border-color: rgb(204, 204, 204) rgb(204, 204, 204) rgb(200, 205, 222); border-style: solid; border-width: 1pt; padding: 3.75pt;" valign="bottom"><div class="MsoNormal" style="margin: 3.75pt 0in;">
<span style="font-family: Verdana, sans-serif;"><b><span style="color: #000066;"><img alt="Description: http://i.msdn.microsoft.com/Aa560961.Important(en-us,MSDN.10).gif" border="0" height="10" src="file:///C:/Users/CONSUL~1/AppData/Local/Temp/OICE_A75EC24A-71B1-4CE0-8903-22BEE0492071.0/msohtmlclip1/01/clip_image006.gif" v:shapes="Picture_x0020_18" width="10" /></span></b><b><span style="color: #000066;">Important<o:p></o:p></span></b></span></div>
</td></tr>
<tr><td style="background-color: #f7f7ff; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-left-color: rgb(213, 213, 211); border-left-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0.75pt;">
<span style="font-family: Verdana, sans-serif;">if the query fails, after you fix the problem with the query, you must start over from step 1 of this procedure to reconfigure the destination system.<o:p></o:p></span></div>
</td></tr>
<tr><td style="background-color: #efeff7; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(200, 205, 222); border-bottom-width: 1pt; border-left-color: rgb(204, 204, 204); border-left-width: 1pt; border-right-color: rgb(204, 204, 204); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="bottom"><div class="MsoNormal" style="margin: 3.75pt 0in;">
<span style="font-family: Verdana, sans-serif;"><b><span style="color: #000066;"><img alt="Description: http://i.msdn.microsoft.com/Aa560961.note(en-us,MSDN.10).gif" border="0" height="10" src="file:///C:/Users/CONSUL~1/AppData/Local/Temp/OICE_A75EC24A-71B1-4CE0-8903-22BEE0492071.0/msohtmlclip1/01/clip_image005.gif" v:shapes="Picture_x0020_19" width="10" /></span></b><b><span style="color: #000066;">Note<o:p></o:p></span></b></span></div>
</td></tr>
<tr><td style="background-color: #f7f7ff; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-left-color: rgb(213, 213, 211); border-left-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0.75pt;">
<span style="font-family: Verdana, sans-serif;">The restore jobs on the destination system will attempt to recreate the log and data files for each restored database in the same location as they existed on the source database server.<o:p></o:p></span></div>
</td></tr>
</tbody></table>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="line-height: 15px;"><span style="font-family: Verdana, sans-serif;"><br /></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">15.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">On the destination system, in <b>SQL Server Management Studio</b>, double-click the appropriate server, double-click <b>SQL Server Agent</b>, and then double-click <b>Jobs</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">16.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">In the details pane, you will see three new jobs:<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 2.25pt; margin-left: 69pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 18px;">·<span style="line-height: normal;"> </span></span><b><span style="line-height: 15px;">BTS Log Shipping Get Backup History</span></b><span style="line-height: 15px;"><br />The BizTalk Server Log Shipping Get Backup History job moves backup history records from the source to the destination. It is scheduled by default to run every minute. This job runs as frequently as possible in order to move history records from the source to the destination. In the event of a system failure to the source system, the server that you identified as the destination system will continue to process the history records that have already been imported.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-bottom: 2.25pt; margin-left: 69pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 18px;">·<span style="line-height: normal;"> </span></span><b><span style="line-height: 15px;">BTS Server Log Shipping Restore Databases</span></b><span style="line-height: 15px;"><br />The BizTalk Server Log Shipping Restore Databases job restores backup files for the given databases for the source to the destination server. It is scheduled by default to run every minute. This job runs continuously without completing as long as there are backup files to restore. As an extra precaution, you can run this job an additional time to ensure that it is complete.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 69pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 18px;">·<span style="line-height: normal;"> </span></span><b><span style="line-height: 15px;">BTS Log Shipping Restore To Mark</span></b><span style="line-height: 15px;"><br />The BizTalk Server Log Shipping Restore To Mark job restores all of the databases to a mark in the last log backup. This ensures that all of the databases are in a transactionally consistent state. In addition, this job re-creates all of the SQL Server Agent jobs on the destination system that had been on the source system.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 69pt; text-indent: -0.25in; vertical-align: top;">
<span style="line-height: 15px;"><span style="font-family: Verdana, sans-serif;"><br /></span></span></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; margin-left: 21.75pt; width: 97%px;"><tbody>
<tr><td style="background-color: #efeff7; background-position: initial initial; background-repeat: initial initial; border-color: rgb(204, 204, 204) rgb(204, 204, 204) rgb(200, 205, 222); border-style: solid; border-width: 1pt; padding: 3.75pt;" valign="bottom"><div class="MsoNormal" style="margin: 3.75pt 0in;">
<span style="font-family: Verdana, sans-serif;"><b><span style="color: #000066;"><img alt="Description: http://i.msdn.microsoft.com/Aa560961.Important(en-us,MSDN.10).gif" border="0" height="10" src="file:///C:/Users/CONSUL~1/AppData/Local/Temp/OICE_A75EC24A-71B1-4CE0-8903-22BEE0492071.0/msohtmlclip1/01/clip_image006.gif" v:shapes="Picture_x0020_20" width="10" /></span></b><b><span style="color: #000066;">Important<o:p></o:p></span></b></span></div>
</td></tr>
<tr><td style="background-color: #f7f7ff; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-left-color: rgb(213, 213, 211); border-left-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0.75pt;">
<span style="font-family: Verdana, sans-serif;">You should monitor these jobs to ensure that they do not fail.<o:p></o:p></span></div>
</td></tr>
</tbody></table>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="line-height: 15px;"><span style="font-family: Verdana, sans-serif;"><br /></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">17.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">On a computer running BizTalk Server 2006, browse to the following folder: <b>%SystemRoot%\Program Files\Microsoft BizTalk Server 2006\Schema\Restore</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="line-height: 15px;"><span style="font-family: Verdana, sans-serif;"><br /></span></span></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; margin-left: 21.75pt; width: 97%px;"><tbody>
<tr><td style="background-color: #efeff7; background-position: initial initial; background-repeat: initial initial; border-color: rgb(204, 204, 204) rgb(204, 204, 204) rgb(200, 205, 222); border-style: solid; border-width: 1pt; padding: 3.75pt;" valign="bottom"><div class="MsoNormal" style="margin: 3.75pt 0in;">
<span style="font-family: Verdana, sans-serif;"><b><span style="color: #000066;"><img alt="Description: http://i.msdn.microsoft.com/Aa560961.note(en-us,MSDN.10).gif" border="0" height="10" src="file:///C:/Users/CONSUL~1/AppData/Local/Temp/OICE_A75EC24A-71B1-4CE0-8903-22BEE0492071.0/msohtmlclip1/01/clip_image005.gif" v:shapes="Picture_x0020_21" width="10" /></span></b><b><span style="color: #000066;">Note<o:p></o:p></span></b></span></div>
</td></tr>
<tr><td style="background-color: #f7f7ff; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-left-color: rgb(213, 213, 211); border-left-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0.75pt;">
<span style="font-family: Verdana, sans-serif;">On 64-bit computers, browse to the following folder: <b>%SystemRoot%\Program Files (x86)\Microsoft BizTalk Server 2006\Bins32\Schema\Restore</b>.<o:p></o:p></span></div>
</td></tr>
</tbody></table>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="line-height: 15px;"><span style="font-family: Verdana, sans-serif;"><br /></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">18.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Right-click <b>SampleUpdateInfo.xml</b>, and then click <b>Edit</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">19.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">Replace all instances of <b>"SourceServer"</b> with the name of the source system, and then replace all instances of <b>"DestinationServer"</b> with the name of the destination system.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="line-height: 15px;"><span style="font-family: Verdana, sans-serif;"><br /></span></span></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; margin-left: 21.75pt; width: 97%px;"><tbody>
<tr><td style="background-color: #efeff7; background-position: initial initial; background-repeat: initial initial; border-color: rgb(204, 204, 204) rgb(204, 204, 204) rgb(200, 205, 222); border-style: solid; border-width: 1pt; padding: 3.75pt;" valign="bottom"><div class="MsoNormal" style="margin: 3.75pt 0in;">
<span style="font-family: Verdana, sans-serif;"><b><span style="color: #000066;"><img alt="Description: http://i.msdn.microsoft.com/Aa560961.Important(en-us,MSDN.10).gif" border="0" height="10" src="file:///C:/Users/CONSUL~1/AppData/Local/Temp/OICE_A75EC24A-71B1-4CE0-8903-22BEE0492071.0/msohtmlclip1/01/clip_image006.gif" v:shapes="Picture_x0020_22" width="10" /></span></b><b><span style="color: #000066;">Important<o:p></o:p></span></b></span></div>
</td></tr>
<tr><td style="background-color: #f7f7ff; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-left-color: rgb(213, 213, 211); border-left-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0.75pt;">
<span style="font-family: Verdana, sans-serif;">Include the quotation marks around the name of the source and destination systems.<o:p></o:p></span></div>
</td></tr>
<tr><td style="background-color: #efeff7; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(200, 205, 222); border-bottom-width: 1pt; border-left-color: rgb(204, 204, 204); border-left-width: 1pt; border-right-color: rgb(204, 204, 204); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="bottom"><div class="MsoNormal" style="margin: 3.75pt 0in;">
<span style="font-family: Verdana, sans-serif;"><b><span style="color: #000066;"><img alt="Description: http://i.msdn.microsoft.com/Aa560961.note(en-us,MSDN.10).gif" border="0" height="10" src="file:///C:/Users/CONSUL~1/AppData/Local/Temp/OICE_A75EC24A-71B1-4CE0-8903-22BEE0492071.0/msohtmlclip1/01/clip_image005.gif" v:shapes="Picture_x0020_23" width="10" /></span></b><b><span style="color: #000066;">Note<o:p></o:p></span></b></span></div>
</td></tr>
<tr><td style="background-color: #f7f7ff; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-left-color: rgb(213, 213, 211); border-left-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0.75pt;">
<span style="font-family: Verdana, sans-serif;">If you renamed any of the BizTalk Server databases, you must also update the database names as appropriate.<o:p></o:p></span></div>
</td></tr>
</tbody></table>
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; margin-left: 21.75pt; width: 97%px;"><tbody>
<tr><td style="background-color: #efeff7; background-position: initial initial; background-repeat: initial initial; border-color: rgb(204, 204, 204) rgb(204, 204, 204) rgb(200, 205, 222); border-style: solid; border-width: 1pt; padding: 3.75pt;" valign="bottom"><div class="MsoNormal" style="margin: 3.75pt 0in;">
<span style="font-family: Verdana, sans-serif;"><b><span style="color: #000066;"><img alt="Description: http://i.msdn.microsoft.com/Aa560961.note(en-us,MSDN.10).gif" border="0" height="10" src="file:///C:/Users/CONSUL~1/AppData/Local/Temp/OICE_A75EC24A-71B1-4CE0-8903-22BEE0492071.0/msohtmlclip1/01/clip_image005.gif" v:shapes="Picture_x0020_24" width="10" /></span></b><b><span style="color: #000066;">Note<o:p></o:p></span></b></span></div>
</td></tr>
<tr><td style="background-color: #f7f7ff; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(213, 213, 211); border-bottom-width: 1pt; border-left-color: rgb(213, 213, 211); border-left-width: 1pt; border-right-color: rgb(213, 213, 211); border-right-width: 1pt; border-style: none solid solid; padding: 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0.75pt;">
<span style="font-family: Verdana, sans-serif;">If you have configured BAM, you must add two more lines in <b>OtherDatabases</b> section of the <b>SampleUpdateInfo.xml</b> file for the BAMAlertsApplication and BAMAlertsNSMain databases. If you changed the default name for these two databases, please use the actual database names.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;"><Database Name="BAM Alerts Application DB" oldDBName="BAMAlertsApplication" oldDBServer="SourceServer" newDBName=" BAMAlertsApplication" newDBServer="DestinationServer"/><o:p></o:p></span></div>
<div class="MsoNormal" style="margin: 0in 0.75pt 7.5pt;">
<span style="font-family: Verdana, sans-serif;"><Database Name="BAM Alerts Instance DB" oldDBName="BAMAlertsNSMain" oldDBServer="SourceServer" newDBName="BAMAlertsNSMain" newDBServer="DestinationServer"/><o:p></o:p></span></div>
</td></tr>
</tbody></table>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="line-height: 15px;"><span style="font-family: Verdana, sans-serif;"><br /></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">21.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">If you have more than one MessageBox database in your BizTalk Server system, add another MessageBoxDB line to the list, and then set IsMaster="0" for the non-master databases.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">22.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">If you are using BAM, HWS, or the Rules Engine, EDI, uncomment these lines as appropriate.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin: 0in 0in 7.5pt 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">23.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">If you have any custom databases, add them as appropriate under the <b><OtherDatabases></b> section. For more information, see </span><a href="http://msdn.microsoft.com/en-us/library/aa561198.aspx"><span style="line-height: 15px;">How to Back Up Custom Databases</span></a><span style="line-height: 15px;">.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 22px; margin-left: 33pt; text-indent: -0.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 15px;">24.<span style="line-height: normal;"> </span></span><span style="line-height: 15px;">When you are finished editing the file, save it and exit.<o:p></o:p></span></span></div>
<h1>
</h1>
</div>
Anonymoushttp://www.blogger.com/profile/15527294402156840684noreply@blogger.com0tag:blogger.com,1999:blog-5496486467939848451.post-6379790378261691632013-04-11T11:11:00.000-04:002013-04-11T11:30:32.691-04:00BizTalk : How To : Configure the Backup BizTalk Server Job<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Verdana, sans-serif;"><w:sdt docparttype="Cover Pages" docpartunique="t" id="1789343032" sdtdocpart="t">
<b><span style="color: #365f91;"><w:sdtpr></w:sdtpr><w:sdt docpart="320AEF48892A49F3AED824698DE5DABF" id="703864190" prefixmappings="xmlns:ns0='http://schemas.openxmlformats.org/package/2006/metadata/core-properties' xmlns:ns1='http://purl.org/dc/elements/1.1/'" storeitemid="X_6C3C8BC8-F283-45AE-878A-BAB7291924A1" text="t" title="Title" xpath="/ns0:coreProperties[1]/ns1:title[1]"></w:sdt></span></b><w:sdt docpart="826C3F46E4F448B0B708AF4744F21953" id="703864195" prefixmappings="xmlns:ns0='http://schemas.openxmlformats.org/package/2006/metadata/core-properties' xmlns:ns1='http://purl.org/dc/elements/1.1/'" storeitemid="X_6C3C8BC8-F283-45AE-878A-BAB7291924A1" text="t" title="Subtitle" xpath="/ns0:coreProperties[1]/ns1:subject[1]">
</w:sdt><w:sdt docpart="BFE8600EAEE74D7FA3121B1EE858525A" id="703864200" prefixmappings="xmlns:ns0='http://schemas.microsoft.com/office/2006/coverPageProps'" storeitemid="X_55AF091B-3C7A-41E3-B477-F2FDAA23CFDA" text="t" title="Abstract" xpath="/ns0:CoverPageProperties[1]/ns0:Abstract[1]">
</w:sdt><w:sdt docpart="C12FC5783EE145BCB6EE96AE1199E523" id="703864205" prefixmappings="xmlns:ns0='http://schemas.openxmlformats.org/package/2006/metadata/core-properties' xmlns:ns1='http://purl.org/dc/elements/1.1/'" storeitemid="X_6C3C8BC8-F283-45AE-878A-BAB7291924A1" text="t" title="Author" xpath="/ns0:coreProperties[1]/ns1:creator[1]">
</w:sdt><w:sdt calendar="t" calendartype="Gregorian" date="2008-09-25T00:00:00Z" dateformat="M/d/yyyy" id="703864210" lang="EN-US" maptodatetime="t" prefixmappings="xmlns:ns0='http://schemas.microsoft.com/office/2006/coverPageProps'" storeitemid="X_55AF091B-3C7A-41E3-B477-F2FDAA23CFDA" title="Date" xpath="/ns0:CoverPageProperties[1]/ns0:PublishDate[1]">
</w:sdt><table align="left" border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; margin-left: 7.1pt; margin-right: 7.1pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-table-anchor-horizontal: margin; mso-table-anchor-vertical: margin; mso-table-left: left; mso-table-lspace: 9.35pt; mso-table-rspace: 9.35pt; mso-table-top: bottom; mso-yfti-tbllook: 1184; width: 60%px;">
<tbody>
<tr>
<td style="padding: 0in 5.4pt 0in 5.4pt; width: 287.3pt;" valign="top" width="383"><div class="MsoNoSpacing">
<br /></div>
</td>
</tr>
<tr>
<td style="padding: 0in 5.4pt 0in 5.4pt; width: 287.3pt;" valign="top" width="383"><div class="MsoNoSpacing">
<br /></div>
</td></tr>
</tbody></table>
</w:sdt>
<span style="line-height: 115%;"><br clear="all" style="mso-special-character: line-break; page-break-before: always;" />
</span>
</span><br />
<h2 style="text-align: left;">
<span style="font-family: Verdana, sans-serif; font-size: small;"><span style="color: #17365d; letter-spacing: 0.25pt; line-height: 115%;"> </span><a href="http://www.blogger.com/blogger.g?blogID=5496486467939848451" name="_Toc210119852">How to Configure the Backup BizTalk Server Job</a></span></h2>
<h1>
<span style="font-family: Verdana, sans-serif; font-size: small;"><o:p></o:p></span></h1>
<div class="MsoNormal" style="line-height: 140%; margin-bottom: 7.5pt; margin-left: 33.0pt; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo2; tab-stops: list .5in; text-indent: -.25in; vertical-align: top;">
<!--[if !supportLists]--><span style="font-family: Verdana, sans-serif;"><span style="line-height: 140%;">1.<span style="line-height: normal;">
</span></span><!--[endif]--><span style="line-height: 140%;">On the computer that
contains the BizTalk Management database, click <b>Start</b>, click <b>Programs</b>,
click <b>Microsoft SQL Server 2005</b>, and then click <b>SQL Server Management
Studio</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 140%; margin-bottom: 7.5pt; margin-left: 33.0pt; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo2; tab-stops: list .5in; text-indent: -.25in; vertical-align: top;">
<!--[if !supportLists]--><span style="font-family: Verdana, sans-serif;"><span style="line-height: 140%;">2.<span style="line-height: normal;">
</span></span><!--[endif]--><span style="line-height: 140%;">In the <b>Connect to Server</b>
dialog box, specify the name of the SQL Server where the BizTalk Server
databases reside and the appropriate authentication type, and then click <b>Connect</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 140%; margin-bottom: 7.5pt; margin-left: 33.0pt; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo2; tab-stops: list .5in; text-indent: -.25in; vertical-align: top;">
<!--[if !supportLists]--><span style="font-family: Verdana, sans-serif;"><span style="line-height: 140%;">3.<span style="line-height: normal;">
</span></span><!--[endif]--><span style="line-height: 140%;">In <b>Microsoft SQL Server
Management Studio</b>, double-click <b>SQL Server Agent</b>, and then click <b>Jobs</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 140%; margin-bottom: 7.5pt; margin-left: 33.0pt; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo2; tab-stops: list .5in; text-indent: -.25in; vertical-align: top;">
<!--[if !supportLists]--><span style="font-family: Verdana, sans-serif;"><span style="line-height: 140%;">4.<span style="line-height: normal;">
</span></span><!--[endif]--><span style="line-height: 140%;">In the details pane,
right-click <b>Backup BizTalk Server (BizTalkMgmtDb)</b>, and then click <b>Properties</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 140%; margin-bottom: 7.5pt; margin-left: 33.0pt; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo2; tab-stops: list .5in; text-indent: -.25in; vertical-align: top;">
<!--[if !supportLists]--><span style="font-family: Verdana, sans-serif;"><span style="line-height: 140%;">5.<span style="line-height: normal;">
</span></span><!--[endif]--><span style="line-height: 140%;">In the <b>Job Properties -
Backup BizTalk Server (BizTalkMgmtDb)</b> dialog box, under <b>Select a page</b>,
click <b>Steps</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 140%; margin-bottom: 7.5pt; margin-left: 33.0pt; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo2; tab-stops: list .5in; text-indent: -.25in; vertical-align: top;">
<!--[if !supportLists]--><span style="font-family: Verdana, sans-serif;"><span style="line-height: 140%;">6.<span style="line-height: normal;">
</span></span><!--[endif]--><span style="line-height: 140%;">In the <b>Job step list</b>,
click <b>BackupFull</b>, and then click <b>Edit</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 140%; margin-left: 33.0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in; text-indent: -.25in; vertical-align: top;">
<!--[if !supportLists]--><span style="font-family: Verdana, sans-serif;"><span style="line-height: 140%;">7.<span style="line-height: normal;">
</span></span><!--[endif]--><span style="line-height: 140%;">On the <b>General</b> page,
in the <b>Command</b> box, edit the command, and then click <b>OK</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 140%; margin-left: 33.0pt; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 140%;">exec
[dbo].[sp_BackupAllFull_Schedule] 'd' /* Frequency */, 'BTS' /* Name */,
'<destination path>' /* location of backup files */, 0 (default) or 1 /*
ForceFullBackupAfterPartialSetFailure */</span><span style="line-height: 140%;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 140%; margin-bottom: 2.25pt; margin-left: 51.0pt; mso-list: l0 level2 lfo2; mso-margin-top-alt: auto; tab-stops: list 1.0in; text-indent: -.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 140%;"><br /></span></span></div>
<div class="MsoNormal" style="line-height: 140%; margin-bottom: 2.25pt; margin-left: 51.0pt; mso-list: l0 level2 lfo2; mso-margin-top-alt: auto; tab-stops: list 1.0in; text-indent: -.25in; vertical-align: top;">
<!--[if !supportLists]--><span style="font-family: Verdana, sans-serif;"><span style="line-height: 140%;">1.<span style="line-height: normal;">
</span></span><!--[endif]--><b><span style="line-height: 140%;">Frequency</span></b><span style="line-height: 140%;">: The default is <b>d</b> (daily). This is the recommended
setting. Other values include <b>h</b> (hourly), <b>w</b> (weekly), <b>m</b>
(monthly), or <b>y</b> (yearly).<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 140%; margin-bottom: 2.25pt; margin-left: 51.0pt; mso-list: l0 level2 lfo2; mso-margin-top-alt: auto; tab-stops: list 1.0in; text-indent: -.25in; vertical-align: top;">
<!--[if !supportLists]--><span style="font-family: Verdana, sans-serif;"><span style="line-height: 140%;">2.<span style="line-height: normal;">
</span></span><!--[endif]--><b><span style="line-height: 140%;">Name</span></b><span style="line-height: 140%;">: The default is <b>BTS</b>. This is the recommended setting. The
name is used as part of the backup file name.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 140%; margin-left: 51.0pt; mso-list: l0 level2 lfo2; mso-margin-top-alt: auto; tab-stops: list 1.0in; text-indent: -.25in; vertical-align: top;">
<!--[if !supportLists]--><span style="font-family: Verdana, sans-serif;"><span style="line-height: 140%;">3.<span style="line-height: normal;"> </span></span><!--[endif]--><b><span style="line-height: 140%;">Location of backup files</span></b><span style="line-height: 140%;">: Replace
'<i><destination path></i>' with the full path (the path must include the
single quotes) to the computer and folder where you want to back up the BizTalk
Server databases.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 140%; margin-left: 51.0pt; mso-list: l0 level2 lfo2; mso-margin-top-alt: auto; tab-stops: list 1.0in; text-indent: -.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 140%;"><br /></span></span></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; margin-left: 39.75pt; mso-border-alt: solid #DDDDDD .75pt; mso-yfti-tbllook: 1184; width: 97%px;">
<tbody>
<tr>
<td style="background: #EFEFF7; border-bottom: solid #C8CDDE 1.0pt; border: solid #CCCCCC 1.0pt; mso-border-alt: solid #CCCCCC .25pt; mso-border-bottom-alt: solid #C8CDDE .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt;" valign="bottom"><div class="MsoNormal" style="margin: 3.75pt 0in;">
<span style="font-family: Verdana, sans-serif;"><b><span style="color: #000066;">Caution <o:p></o:p></span></b></span></div>
</td>
</tr>
<tr>
<td style="background: #F7F7FF; border-top: none; border: solid #D5D5D3 1.0pt; mso-border-alt: solid #D5D5D3 .75pt; mso-border-top-alt: solid #D5D5D3 .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0.75pt;">
<span style="font-family: Verdana, sans-serif;">To
avoid potential data loss, you should specify a computer for your backup that
is different from the computer with the original data. <o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="background: #EFEFF7; border-bottom: solid #C8CDDE 1.0pt; border-left: solid #CCCCCC 1.0pt; border-right: solid #CCCCCC 1.0pt; border-top: none; mso-border-alt: solid #CCCCCC .25pt; mso-border-bottom-alt: solid #C8CDDE .75pt; mso-border-top-alt: solid #CCCCCC .25pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt;" valign="bottom"><div class="MsoNormal" style="margin: 3.75pt 0in;">
<span style="font-family: Verdana, sans-serif;"><b><span style="color: #000066;">Caution <o:p></o:p></span></b></span></div>
</td>
</tr>
<tr>
<td style="background: #F7F7FF; border-top: none; border: solid #D5D5D3 1.0pt; mso-border-alt: solid #D5D5D3 .75pt; mso-border-top-alt: solid #D5D5D3 .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0.75pt;">
<span style="font-family: Verdana, sans-serif;">If you
specify a local path, then you have to manually copy all the files to the
same folder on the destination system whenever the Backup BizTalk Server job
creates new files. If you specify a remote path, it must be a UNC share such
as \\<i><ServerName></i>\<i><SharedDrive></i>\, where <i><ServerName></i>
is the name of the server where you want the files to be backed up using the
Backup BizTalk Server Job, and <i><SharedDrive></i> is name of the
shared folder. <o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal" style="line-height: 140%; margin-bottom: 2.25pt; margin-left: 51.0pt; mso-list: l0 level2 lfo2; mso-margin-top-alt: auto; tab-stops: list 1.0in; text-indent: -.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 140%;"><br /></span></span></div>
<div class="MsoNormal" style="line-height: 140%; margin-bottom: 2.25pt; margin-left: 51.0pt; mso-list: l0 level2 lfo2; mso-margin-top-alt: auto; tab-stops: list 1.0in; text-indent: -.25in; vertical-align: top;">
<!--[if !supportLists]--><span style="font-family: Verdana, sans-serif;"><span style="line-height: 140%;">4.<span style="line-height: normal;">
</span></span><!--[endif]--><b><span style="line-height: 140%;">Force full backup after
partial backup failures</span></b><span style="line-height: 140%;">: The default is <b>0</b>
when not specified, which means that if a log backup fails, no full backups are
done until the next full backup frequency interval is reached. Replace with <b>1</b>
if you want a full backup to be made whenever a log backup failure occurs.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 140%; margin-bottom: 7.5pt; margin-left: 33.0pt; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo2; tab-stops: list .5in; text-indent: -.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 140%;"><br /></span></span></div>
<div class="MsoNormal" style="line-height: 140%; margin-bottom: 7.5pt; margin-left: 33.0pt; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo2; tab-stops: list .5in; text-indent: -.25in; vertical-align: top;">
<!--[if !supportLists]--><span style="font-family: Verdana, sans-serif;"><span style="line-height: 140%;">8.<span style="line-height: normal;">
</span></span><!--[endif]--><span style="line-height: 140%;">In the <b>Job step list</b>,
click <b>MarkAndBackupLog</b>, and then click <b>Edit</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 140%; margin-bottom: 7.5pt; margin-left: 33.0pt; margin-right: 0in; margin-top: 0in; vertical-align: top;">
<span style="line-height: 140%;"><span style="font-family: Verdana, sans-serif;">The
MarkAndBackupLog step is responsible for marking the logs and then backing them
up.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 140%; margin-left: 33.0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in; text-indent: -.25in; vertical-align: top;">
<!--[if !supportLists]--><span style="font-family: Verdana, sans-serif;"><span style="line-height: 140%;">9.<span style="line-height: normal;">
</span></span><!--[endif]--><span style="line-height: 140%;">On the <b>General</b> page,
in the <b>Command</b> box, replace <b>'</b><i><destination path></i><b>'</b>
with the full path (including single quotes) to the computer and folder where
you want to store the BizTalk Server database logs and then click <b>OK</b>.
The <i><destination path></i> may be local or a UNC path to another
server.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 140%; margin-left: 33.0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in; text-indent: -.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 140%;"><br /></span></span></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; margin-left: 21.75pt; mso-border-alt: solid #DDDDDD .75pt; mso-yfti-tbllook: 1184; width: 97%px;">
<tbody>
<tr>
<td style="background: #EFEFF7; border-bottom: solid #C8CDDE 1.0pt; border: solid #CCCCCC 1.0pt; mso-border-alt: solid #CCCCCC .25pt; mso-border-bottom-alt: solid #C8CDDE .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt;" valign="bottom"><div class="MsoNormal" style="margin: 3.75pt 0in;">
<span style="font-family: Verdana, sans-serif;"><b><span style="color: #000066;"><!--[if gte vml 1]><v:shape id="Picture_x0020_4"
o:spid="_x0000_i1052" type="#_x0000_t75" alt="Description: http://i.msdn.microsoft.com/Aa546765.Caution(en-us,MSDN.10).gif"
style='width:8.25pt;height:8.25pt;visibility:visible;mso-wrap-style:square'>
<v:imagedata src="file:///C:\Users\CONSUL~1\AppData\Local\Temp\OICE_A75EC24A-71B1-4CE0-8903-22BEE0492071.0\msohtmlclip1\01\clip_image004.gif"
o:title="Aa546765.Caution(en-us,MSDN.10)"/>
</v:shape><![endif]--><!--[if !vml]--><img alt="Description: http://i.msdn.microsoft.com/Aa546765.Caution(en-us,MSDN.10).gif" height="11" src="file:///C:/Users/CONSUL~1/AppData/Local/Temp/OICE_A75EC24A-71B1-4CE0-8903-22BEE0492071.0/msohtmlclip1/01/clip_image004.gif" v:shapes="Picture_x0020_4" width="11" /><!--[endif]--></span></b><b><span style="color: #000066;">Caution <o:p></o:p></span></b></span></div>
</td>
</tr>
<tr>
<td style="background: #F7F7FF; border-top: none; border: solid #D5D5D3 1.0pt; mso-border-alt: solid #D5D5D3 .75pt; mso-border-top-alt: solid #D5D5D3 .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0.75pt;">
<span style="font-family: Verdana, sans-serif;">To
avoid potential data loss, the <i><destination path></i> should
specify a computer to store the database logs that is different from the
computer with the original database logs. <o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal" style="line-height: 140%; margin-bottom: 7.5pt; margin-left: 33.0pt; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo2; tab-stops: list .5in; text-indent: -.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 140%;"><br /></span></span></div>
<div class="MsoNormal" style="line-height: 140%; margin-bottom: 7.5pt; margin-left: 33.0pt; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo2; tab-stops: list .5in; text-indent: -.25in; vertical-align: top;">
<!--[if !supportLists]--><span style="font-family: Verdana, sans-serif;"><span style="line-height: 140%;">10.<span style="line-height: normal;"> </span></span><!--[endif]--><span style="line-height: 140%;">In the <b>Job step list</b>, click <b>Clear Backup History</b>,
and then click <b>Edit</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 140%; margin-left: 33.0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in; text-indent: -.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 140%;"><br /></span></span></div>
<div class="MsoNormal" style="line-height: 140%; margin-left: 33.0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in; text-indent: -.25in; vertical-align: top;">
<!--[if !supportLists]--><span style="font-family: Verdana, sans-serif;"><span style="line-height: 140%;">11.<span style="line-height: normal;"> </span></span><!--[endif]--><span style="line-height: 140%;">On the <b>General</b> page, in the <b>Command</b> box, change <b>DaysToKeep=</b><i><number></i>
to the number of days you want to keep the backup history, and then click <b>OK</b>
twice to close the<b> Job Properties - Backup BizTalk Server (BizTalkMgmtDb)</b>
dialog box.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 140%; margin-left: 33.0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in; text-indent: -.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 140%;"><br /></span></span></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; margin-left: 21.75pt; mso-border-alt: solid #DDDDDD .75pt; mso-yfti-tbllook: 1184; width: 97%px;">
<tbody>
<tr>
<td style="background: #EFEFF7; border-bottom: solid #C8CDDE 1.0pt; border: solid #CCCCCC 1.0pt; mso-border-alt: solid #CCCCCC .25pt; mso-border-bottom-alt: solid #C8CDDE .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt;" valign="bottom"><div class="MsoNormal" style="margin: 3.75pt 0in;">
<span style="font-family: Verdana, sans-serif;"><b><span style="color: #000066;"><!--[if gte vml 1]><v:shape id="Picture_x0020_5"
o:spid="_x0000_i1051" type="#_x0000_t75" alt="Description: http://i.msdn.microsoft.com/Aa546765.note(en-us,MSDN.10).gif"
style='width:7.5pt;height:7.5pt;visibility:visible;mso-wrap-style:square'>
<v:imagedata src="file:///C:\Users\CONSUL~1\AppData\Local\Temp\OICE_A75EC24A-71B1-4CE0-8903-22BEE0492071.0\msohtmlclip1\01\clip_image005.gif"
o:title="Aa546765.note(en-us,MSDN.10)"/>
</v:shape><![endif]--><!--[if !vml]--><img alt="Description: http://i.msdn.microsoft.com/Aa546765.note(en-us,MSDN.10).gif" height="10" src="file:///C:/Users/CONSUL~1/AppData/Local/Temp/OICE_A75EC24A-71B1-4CE0-8903-22BEE0492071.0/msohtmlclip1/01/clip_image005.gif" v:shapes="Picture_x0020_5" width="10" /><!--[endif]--></span></b><b><span style="color: #000066;">Note <o:p></o:p></span></b></span></div>
</td>
</tr>
<tr>
<td style="background: #F7F7FF; border-top: none; border: solid #D5D5D3 1.0pt; mso-border-alt: solid #D5D5D3 .75pt; mso-border-top-alt: solid #D5D5D3 .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0.75pt;">
<span style="font-family: Verdana, sans-serif;">The <b>DaysToKeep</b>
parameter specifies how long the backup history is kept in the
Adm_BackupHistory table. Periodically clearing the backup history helps to
maintain the Adm_BackupHistory table at an appropriate size. The default
value for the <b>DaysToKeep</b> parameter is 14 days. <o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal" style="line-height: 140%; margin-left: 33.0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in; text-indent: -.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 140%;"><br /></span></span></div>
<div class="MsoNormal" style="line-height: 140%; margin-left: 33.0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in; text-indent: -.25in; vertical-align: top;">
<!--[if !supportLists]--><span style="font-family: Verdana, sans-serif;"><span style="line-height: 140%;">12.<span style="line-height: normal;"> </span></span><!--[endif]--><span style="line-height: 140%;">Change the backup schedule, if desired. For more information, see </span><a href="http://msdn.microsoft.com/en-us/library/aa560723.aspx"><span style="line-height: 140%;">How to Schedule the Backup BizTalk Server Job</span></a><span style="line-height: 140%;">.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 140%; margin-left: 33.0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in; text-indent: -.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 140%;"><br /></span></span></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; margin-left: 21.75pt; mso-border-alt: solid #DDDDDD .75pt; mso-yfti-tbllook: 1184; width: 97%px;">
<tbody>
<tr>
<td style="background: #EFEFF7; border-bottom: solid #C8CDDE 1.0pt; border: solid #CCCCCC 1.0pt; mso-border-alt: solid #CCCCCC .25pt; mso-border-bottom-alt: solid #C8CDDE .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt;" valign="bottom"><div class="MsoNormal" style="margin: 3.75pt 0in;">
<span style="font-family: Verdana, sans-serif;"><b><span style="color: #000066;"><!--[if gte vml 1]><v:shape id="Picture_x0020_6"
o:spid="_x0000_i1050" type="#_x0000_t75" alt="Description: http://i.msdn.microsoft.com/Aa546765.note(en-us,MSDN.10).gif"
style='width:7.5pt;height:7.5pt;visibility:visible;mso-wrap-style:square'>
<v:imagedata src="file:///C:\Users\CONSUL~1\AppData\Local\Temp\OICE_A75EC24A-71B1-4CE0-8903-22BEE0492071.0\msohtmlclip1\01\clip_image005.gif"
o:title="Aa546765.note(en-us,MSDN.10)"/>
</v:shape><![endif]--><!--[if !vml]--><img alt="Description: http://i.msdn.microsoft.com/Aa546765.note(en-us,MSDN.10).gif" border="0" height="10" src="file:///C:/Users/CONSUL~1/AppData/Local/Temp/OICE_A75EC24A-71B1-4CE0-8903-22BEE0492071.0/msohtmlclip1/01/clip_image005.gif" v:shapes="Picture_x0020_6" width="10" /><!--[endif]--></span></b><b><span style="color: #000066;">Note <o:p></o:p></span></b></span></div>
</td>
</tr>
<tr>
<td style="background: #F7F7FF; border-top: none; border: solid #D5D5D3 1.0pt; mso-border-alt: solid #D5D5D3 .75pt; mso-border-top-alt: solid #D5D5D3 .75pt; padding: 3.75pt 3.75pt 3.75pt 3.75pt;" valign="top"><div class="MsoNormal" style="margin: 0.75pt;">
<span style="font-family: Verdana, sans-serif;">The
Backup BizTalk Server job runs the first time you configure it. By default,
on subsequent runs, the Backup BizTalk Server job performs a full backup once
a day and performs log backups every 15 minutes. <o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal" style="line-height: 140%; margin-bottom: 7.5pt; margin-left: 33.0pt; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo2; tab-stops: list .5in; text-indent: -.25in; vertical-align: top;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 140%;"><br /></span></span></div>
<div class="MsoNormal" style="line-height: 140%; margin-bottom: 7.5pt; margin-left: 33.0pt; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo2; tab-stops: list .5in; text-indent: -.25in; vertical-align: top;">
<!--[if !supportLists]--><span style="font-family: Verdana, sans-serif;"><span style="line-height: 140%;">13.<span style="line-height: normal;"> </span></span><!--[endif]--><span style="line-height: 140%;">In the details pane, right-click the <b>Backup BizTalk Server</b>
job, and then click <b>Enable</b>.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: 140%; margin-left: 33.0pt; vertical-align: top;">
<span style="line-height: 140%;"><span style="font-family: Verdana, sans-serif;">In the <b>Enable Jobs</b> dialog box, the status changes to <b>Success</b>.</span></span></div>
</div>
Anonymoushttp://www.blogger.com/profile/15527294402156840684noreply@blogger.com0tag:blogger.com,1999:blog-5496486467939848451.post-29978412604897640792013-04-10T09:30:00.000-04:002013-04-10T09:30:01.282-04:00BizTalk : How To : Call a Web service Using Custom Pipeline in a Messaging Solution<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<span style="font-family: Verdana, sans-serif;">Post by <a href="http://blogs.digitaldeposit.net/saravana/default.aspx" target="_blank">Saravana Kumar</a></span></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<span style="font-family: Verdana, sans-serif;">In this article I'll explain how you can call a Web Service which requires <span style="color: red;">multiple arguments</span> using a Custom pipeline and a custom pipeline component in a messaging-only scenario without using any Orchestration.</span></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<a href="http://www.digitaldeposit.net/blog/images/CallingWebServicefromBiztalk2006inaMessa_DA5C/image012.png" style="color: #ff8700;"><span style="font-family: Verdana, sans-serif;"><img alt="" border="0" height="255" src="http://www.digitaldeposit.net/blog/images/CallingWebServicefromBiztalk2006inaMessa_DA5C/image0_thumb6.png" style="border: 0px solid rgb(221, 221, 221); max-width: 100%;" width="446" /></span></a></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<br /></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<span style="font-family: Verdana, sans-serif;">Normally, when there is a requirement to call a web service from BizTalk, people tend to take the easy route of calling it via an Orchestration. When we do a web reference inside the orchestration, Orchestration does quite a lot of work for us. It creates all the required schemas, it creates all the required multipart messages, which will be passed to the web service as argument. It makes our life easier. But I guess like me, some of you out there might need to call the web service without using Orchestration. As shown in the above figure. I've one request-response HTTP receive port, and one Solicit response SOAP send port, through this I'm going to call a web service, which expects multiple argument (including one complex type) and return the result back to the caller (HTTP Response). Here are the steps: The <a href="http://www.digitaldeposit.net/blog/samples/SOAPMessagingOnly_CustomPipeline.zip" style="color: #ff8700;">attached sample file</a> contains all the required file, I'm just going to explain the key factors in this article.</span></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<strong><span style="font-family: Verdana, sans-serif;">1. Web Service Definition:</span></strong></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">[WebMethod]<br />public Person GetPersonInfo(<span style="color: red;">Person</span> person, <span style="color: red;">string</span> firstName, <span style="color: red;">string</span> secondName) {<br />//Some processing<br /><span style="color: blue;">return person</span>;<br />}</span></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<span style="font-family: Verdana, sans-serif;"><strong>2. Create a general custom pipeline component to construct the multipart message required for the Web Service call</strong> </span></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<span style="font-family: Verdana, sans-serif;">At run time SOAP Adapter in the send port will map the Biztalk multipart IBaseMessage to the Web Service argument based on the <em>partName</em> of IBaseMessage and <em>argument names</em> of the Webservice. The key factor is how we are going to construct the multipart message in the format required by the SOAP Adapter to make the WebService call. So, in this article we are going to create custom pipeline component which will construct the correct IBaseMessage required by the SOAP adapter based on the input message and some pipeline design time properties</span></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<span style="font-family: Verdana, sans-serif;">The custom pipeline component we are going to use has 2 design time properties FirstName and SecondName, which will be passed as parameters to the web service (See webservice definition from Step 1). We'll pass the first webservice argument "Person" as the incoming message via HTTP receive port. The figure below show the custom design time properties configuration window within Biztalk Admin console. </span></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<a href="http://www.digitaldeposit.net/blog/images/CallingWebServicefromBiztalk2006inaMessa_DA5C/image028.png" style="color: #ff8700;"><span style="font-family: Verdana, sans-serif;"><img alt="" border="0" height="244" src="http://www.digitaldeposit.net/blog/images/CallingWebServicefromBiztalk2006inaMessa_DA5C/image0_thumb14.png" style="border: 0px solid rgb(221, 221, 221); max-width: 100%;" width="379" /></span></a></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<span style="font-family: Verdana, sans-serif;">The code below is the snippet from the custom pipeline component (two important methods Execute and CreateMessage). The Execute method below without the first line of code will be equivalent to a<em>PassThru</em> pipeline component with default Biztalk IBaseMessage. </span></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">#############################################################</span></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">public Microsoft.BizTalk.Message.Interop.IBaseMessage <span style="color: blue;">Execute</span>(IPipelineContext pc, IBaseMessage inmsg)<br />{<br />IBaseMessage msg = CreateMessage(inmsg.BodyPart.GetOriginalDataStream(), pc.GetMessageFactory(),inmsg.Context);<br /><span style="color: blue;">return msg</span>;<br />}</span></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">#############################################################</span></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">IBaseMessage <span style="color: blue;">CreateMessage</span>(Stream s, IBaseMessageFactory msgFactory, IBaseMessageContext context)<br />{<br />IBaseMessage msg = msgFactory.CreateMessage();<br />IBaseMessagePart part = msgFactory.CreateMessagePart();<br />part.Data = s;</span></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">msg.AddPart("<span style="color: red;">Person</span>", part, true);<br />msg.Context = context;</span></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">//1st Part<br />IBaseMessagePart partFirstName = msgFactory.CreateMessagePart();<br />byte[] firstPart = System.Text.Encoding.UTF8.GetBytes(string.Format("<span style="color: red;"><string>{0}</string></span>", _firstName));<br />partFirstName.Data = new MemoryStream(firstPart);<br />partFirstName.Charset = "utf-8"<br />partFirstName.ContentType = "text/xml"<br />msg.AddPart("<span style="color: red;">firstName</span>", partFirstName, false);</span></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">//2nd Part<br />IBaseMessagePart partSecondName = msgFactory.CreateMessagePart();<br />byte[] secondPart = System.Text.Encoding.UTF8.GetBytes(string.Format("<string>{0}</string>", _secondName));<br />partSecondName.Data = new MemoryStream(secondPart);<br />partSecondName.Charset = "utf-8"<br />partSecondName.ContentType = "text/xml"<br />msg.AddPart("<span style="color: red;">secondName</span>", partSecondName, false);<br />return msg;<br />}</span></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">#############################################################</span></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<span style="font-family: Verdana, sans-serif;">Our user defined function <span style="color: blue;">CreateMessage</span> will create the required BizTalk IBaseMessage as shown in the below figure</span></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<a href="http://www.digitaldeposit.net/blog/images/CallingWebServicefromBiztalk2006inaMessa_DA5C/image06.png" style="color: #ff8700;"><span style="font-family: Verdana, sans-serif;"><img alt="" border="0" height="474" src="http://www.digitaldeposit.net/blog/images/CallingWebServicefromBiztalk2006inaMessa_DA5C/image0_thumb2.png" style="border: 0px solid rgb(221, 221, 221); max-width: 100%;" width="423" /></span></a></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<span style="font-family: Verdana, sans-serif;">In the above code snippet, the important things to note are highlighted in RED. The incoming message ("Person") will go as the first part (BodyPart) of the IBaseMessage with the name "Person", and then we added two more addional parts "firstName" and "secondName" to the IBaseMessage with correct partNames inline with the web service arguments. The other important thing to note is how the basic data types gets serialized. In our example we got "<span style="color: red;"><string>{0}</string></span>" as value for firstName and secondName, because they are of type <em>string</em>. If for example you got <em><span style="color: red;">int</span></em> as your argument then you need to create the part in the format <span style="color: red;"><int>5</int></span>.</span></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<em><span style="font-family: Verdana, sans-serif;">NOTE: See the web service signature defined in Step 1 for comparison</span></em></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<strong><span style="font-family: Verdana, sans-serif;">3. Create a Custom Receive Pipeline using the custom pipeline component</span></strong></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<span style="font-family: Verdana, sans-serif;">Create a new Biztalk Receive Pipeline and place the custom pipeline component we created in the "Decode" stage of the pipeline.</span></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<strong><span style="font-family: Verdana, sans-serif;">4. Configure the ports</span></strong></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<span style="font-family: Verdana, sans-serif;">As shown in our design diagram at the beginning we need 2 ports to send and receive the message, the <a href="http://www.digitaldeposit.net/blog/samples/SOAPMessagingOnly_CustomPipeline.zip" style="color: #ff8700;">attached sample</a> file got a binding file, this section is just for explanation, doesn't explain in detail how to configure the ports. Make sure the URL are correct, both on Receive and Send side after importing the binding. You need to configure IIS as well to receive messages via HTTP, follow the link to configure IIS for HTTP receive <a href="http://msdn2.microsoft.com/en-us/library/aa559072.aspx" style="color: #ff8700;" title="http://msdn2.microsoft.com/en-us/library/aa559072.aspx">http://msdn2.microsoft.com/en-us/library/aa559072.aspx</a>.</span></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<strong><span style="font-family: Verdana, sans-serif;">Two-Way HTTP Receive Port:</span></strong></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<a href="http://www.digitaldeposit.net/blog/images/CallingWebServicefromBiztalk2006inaMessa_DA5C/image019.png" style="color: #ff8700;"><span style="font-family: Verdana, sans-serif;"><img alt="" border="0" height="178" src="http://www.digitaldeposit.net/blog/images/CallingWebServicefromBiztalk2006inaMessa_DA5C/image0_thumb9.png" style="border: 0px solid rgb(221, 221, 221); max-width: 100%;" width="443" /></span></a></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<strong><span style="font-family: Verdana, sans-serif;">Solicit-Response SOAP Send Port:</span></strong></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<span style="font-family: Verdana, sans-serif;">We used the .NET Proxy class on our SOAP port to make the call.</span></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<a href="http://www.digitaldeposit.net/blog/images/CallingWebServicefromBiztalk2006inaMessa_DA5C/image016.png" style="color: #ff8700;"><span style="font-family: Verdana, sans-serif;"><img alt="" border="0" height="448" src="http://www.digitaldeposit.net/blog/images/CallingWebServicefromBiztalk2006inaMessa_DA5C/image0_thumb8.png" style="border: 0px solid rgb(221, 221, 221); max-width: 100%;" width="404" /></span></a></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<span style="font-family: Verdana, sans-serif;">Filter Condition on the Send Port</span></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<a href="http://www.digitaldeposit.net/blog/images/CallingWebServicefromBiztalk2006inaMessa_DA5C/image031.png" style="color: #ff8700;"><span style="font-family: Verdana, sans-serif;"><img alt="" border="0" height="210" src="http://www.digitaldeposit.net/blog/images/CallingWebServicefromBiztalk2006inaMessa_DA5C/image0_thumb15.png" style="border: 0px solid rgb(221, 221, 221); max-width: 100%;" width="435" /></span></a></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<strong><span style="font-family: Verdana, sans-serif;">5. Post a Message.</span></strong></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<span style="font-family: Verdana, sans-serif;">I used <a href="http://support.microsoft.com/kb/284285" style="color: #ff8700;">WFetch</a> to post the message to BizTalk. You can see on the result pane the request message is posted and you got the response back from the web service synchronously on a two way connection.</span></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<a href="http://www.digitaldeposit.net/blog/images/CallingWebServicefromBiztalk2006inaMessa_DA5C/image025.png" style="color: #ff8700;"><span style="font-family: Verdana, sans-serif;"><img alt="" border="0" height="400" src="http://www.digitaldeposit.net/blog/images/CallingWebServicefromBiztalk2006inaMessa_DA5C/image0_thumb13.png" style="border: 0px solid rgb(221, 221, 221); max-width: 100%;" width="389" /></span></a></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<strong><span style="font-family: Verdana, sans-serif;">Troubleshooting:</span></strong></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<span style="font-family: Verdana, sans-serif;">Some of the common exceptions you'll see while calling a webservice via SOAP adapter is shown below (from HAT and eventviewer)</span></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<span style="font-family: Verdana, sans-serif;">1. "<span style="color: black;"><em>Failed to retrieve the message part for parameter "firstName".</em></span> "</span></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<span style="font-family: Verdana, sans-serif;"><em>2. "</em><span style="color: black;"><em>Failed to serialize the message part "firstName" into the type "String" using namespace "". Please ensure that the message part stream is created properly."</em></span></span></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<span style="font-family: Verdana, sans-serif;">The reason for the first error message is due to wrongly named IBaseMessage partName. Read<strong>Section 2 </strong>carefully to overcome this error.</span></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<span style="font-family: Verdana, sans-serif;">The reason for the second error message is mainly due to some problem with serializing the IBaseMessage parts to the correct web service arguments. Best approach to overcome this error will be to build a .net console/windows application, add a web reference to the webservice and try to serialize each argument to the corresponding type. For example for this example you can try the following</span></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">FileStream fs = new FileStream(@"C:\Documents and Settings\SaravanaK\Desktop\FailedMessages\<span style="color: red;">_Person.out</span>",FileMode.Open,FileAccess.Read);<br />XmlSerializer serialise = new XmlSerializer(typeof(LH.WebReference.Person));<br />LH.WebReference.Person per = (LH.WebReference.Person)serialise.Deserialize(fs);<br />fs.Close();</span></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">fs = new FileStream(@"C:\Documents and Settings\SaravanaK\Desktop\FailedMessages\<span style="color: red;">_secondName.out</span>",FileMode.Open,FileAccess.Read);<br />serialise = new XmlSerializer(typeof(string));<br />string s2 = (string)serialise.Deserialize(fs);<br />fs.Close();</span></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<span style="font-family: Verdana, sans-serif;">The files "_Person.out" and "_secondName.out" are saved from HAT tool. See the exception detail and fix the issue, it will be some namespace issue or data issue.</span></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<a href="http://www.digitaldeposit.net/blog/samples/SOAPMessagingOnly_CustomPipeline.zip" style="color: #ff8700;"><span style="font-family: Verdana, sans-serif;">DOWNLOAD SAMPLE</span></a></div>
<div style="background-color: white; font-size: 12px; line-height: 18px; padding: 10px 0px 5px;">
<span style="font-family: Verdana, sans-serif;">Read the readme.txt file inside to configure it. Will take approximately 5-20 minutes based on your BizTalk knowledge level.</span></div>
</div>
Anonymoushttp://www.blogger.com/profile/15527294402156840684noreply@blogger.com0tag:blogger.com,1999:blog-5496486467939848451.post-56083148170840825752013-04-09T10:18:00.001-04:002013-04-09T10:43:48.137-04:00BizTalk : How To : Trouble Shoot BAM EventBus Service Error in Event Log<div dir="ltr" style="text-align: left;" trbidi="on">
post by Tiho<br />
<br />
<div style="color: #333333; line-height: 18.15625px;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">Here are 8 tables in each BizTalk Message Box database which store the tracking data before it is imported by the BAM EventBus Service (a.k.a. TDDS or Tracking Data Decoding Service) into the DTA/HAT and the BAM Primary Import databases. The tables are named TrackingData_x_y where 0 ≤ x ≤ 1 and 0 ≤ y ≤ 3. It is absolutely critical that the sizes of these tables do not increase over time. If the sizes are increasing than either TDDS is not able to catch up with the load or it is not working properly. There is a performance counter that can be used to monitor the size of the tracking data – BizTalk:Messsage Box:General Counters\Tracking Data Size.</span></span></div>
<div style="color: #333333; line-height: 18.15625px;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;"><br /></span></span></div>
<div style="color: #333333; line-height: 18.15625px;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">The first step to troubleshoot issues with the tracking data is to examine the Windows Event Log on the BizTalk Tracking Host machine for errors from the BAM EventBus Service. Error information along with the serialized original tracking data might be available in the TDDS_FailedTrackingData tables in the DTA/HAT and the BAM Primary Import databases. Another place where error information might be available is the TDDS_Heartbeats table in the BizTalk Management database.</span></span></div>
<div style="color: #333333; line-height: 18.15625px;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;"><br /></span></span></div>
<div style="color: #333333; line-height: 18.15625px;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">In this post I will focus on one very common cause which manifests as an error from the BAM EventBus Service in the Windows Event Log with event ID 25. </span></span></div>
<div style="color: #333333; line-height: 18.15625px;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;"><br /></span></span></div>
<div style="color: #333333; line-height: 18.15625px;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">The error should look like this:</span></span></div>
<pre style="color: #333333; line-height: 18.15625px;"><span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">Event Type: Error
Event Source: BAM EventBus Service
Event Category: None
Event ID: 25
Date: 12/20/2006
Time: 10:38:27 AM
User: N/A
Computer: TRACKINGHOST
Description:</span></span></pre>
<pre style="color: #333333; line-height: 18.15625px;"><span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">Either another TDDS is processing the same data or there is an orphaned
session in SQL server holding TDDS lock.Timeout expired. The timeout
period elapsed prior to completion of the operation or the server is not
responding. SQLServer: DBSERVER, Database: BAMPrimaryImport.
</span></span></pre>
<div style="color: #333333; line-height: 18.15625px;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;"><br /></span></span></div>
<div style="color: #333333; line-height: 18.15625px;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">This error will usually show up every 5 minutes or so. Below are the steps to resolve it.</span></span></div>
<div style="color: #333333; line-height: 18.15625px;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">First, make sure that you are not hitting any of the issues described in <a class="" href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/troubleshooting/htm/ebiz_trouble_bam_gukh.asp" mce_href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/troubleshooting/htm/ebiz_trouble_bam_gukh.asp" style="color: #0066dd; cursor: pointer; outline: none; text-decoration: none;" title="TDDS restart fails">this article</a>. If this is the case, then killing the orphaned sessions or restarting the SQL Server machine will resolve the issue. You can use the information in <a class="" href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/trblsql/tr_rptconsetup_5gmr.asp" mce_href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/trblsql/tr_rptconsetup_5gmr.asp" style="color: #0066dd; cursor: pointer; outline: none; text-decoration: none;" title="Orphaned Sessions">this article</a> to identify orphaned sessions.</span></span></div>
<div style="color: #333333; line-height: 18.15625px;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">If the issue is still there, then you most certainly have permissions problems. The account under which TDDS (and the BizTalk Tracking Host) is running must have execute permissions for the following stored procedures in the BizTalk Message Box database: TDDS_RedisterTDDSAccess and TDDS_GetNumTrackingPartitions. The same account must also have execute permissions for the TDDS_Lock stored procedure in the DTA/HAT and the BAM Primary Import databases.</span></span></div>
<div style="color: #333333; line-height: 18.15625px;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;"><br /></span></span></div>
<div style="color: #333333; line-height: 18.15625px;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">The permissions are set correctly when BizTalk Server is first installed but might be altered later directly or indirectly by manually setting explicit deny permissions for the specific account or any group that it is a member of.</span></span></div>
<div style="color: #333333; line-height: 18.15625px;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">The best way to check that permissions are indeed the problem is to open Task Manager on the Tracking Host machine and on the Processes tab check the account under which the BTSNTSvc.exe process is running. This is the Tracking Host account. Now start SQL Query Analyzer or SQL Management Studio (or any of the command line counterparts) with the same user credentials as BTSNTSvc.exe. You can use the “runas” command or right-click on a shortcut and choose “Run as…”. I suggest that you do this test on the Tracking Host machine to rule out any network connectivity issues.</span></span></div>
<div style="color: #333333; line-height: 18.15625px;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">After you have connected to the correct SQL database execute the following:</span></span></div>
<div style="color: #333333; line-height: 18.15625px;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;"><br /></span></span></div>
<div style="color: #333333; line-height: 18.15625px;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">In all BizTalk Message Box databases:</span></span></div>
<pre style="color: #333333; line-height: 18.15625px;"><span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">
</span></span></pre>
<pre style="color: #333333; line-height: 18.15625px;"><span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">DECLARE @RC int
DECLARE @retVal int
EXEC @RC = [BizTalkMsgBoxDb].[dbo].[TDDS_RegisterTDDSAccess] @retVal OUTPUT
SELECT @RC
GO
DECLARE @RC int
DECLARE @nPartitions tinyint
EXEC @RC = [BizTalkMsgBoxDb].[dbo].[TDDS_GetNumTrackingPartitions] @nPartitions OUTPUT
SELECT @RC
GO</span></span></pre>
<div style="color: #333333; line-height: 18.15625px;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;"><br /></span></span></div>
<div style="color: #333333; line-height: 18.15625px;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">In the BizTalk DTA and BAM Primary Import databases:</span></span></div>
<pre style="color: #333333; line-height: 18.15625px;"></pre>
<pre style="color: #333333; line-height: 18.15625px;"><span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">DECLARE @RC int
DECLARE @resource nvarchar(128)
DECLARE @milisecTimeout int
DECLARE @retVal int
SELECT @resource = N'Foo'
SELECT @milisecTimeout = 5000
EXEC @RC = [BAMPrimaryImport].[dbo].[TDDS_Lock] @resource, @milisecTimeout, @retVal OUTPUT
SELECT @retVal
SELECT @RC
GO</span></span></pre>
<pre style="color: #333333; line-height: 18.15625px;"><span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">
</span></span></pre>
<div style="color: #333333; line-height: 18.15625px;">
<span style="background-color: white;"><span style="font-family: Verdana, sans-serif;">The results of these queries should be 0 and there should not be any errors. If you get “EXECUTE permission denied” errors then grant the corresponding execute permissions until you can execute the queries without any errors. At this point TDDS should start moving the tracking data from the Message Box databases to the DTA and the BAM databases.</span></span></div>
</div>
Anonymoushttp://www.blogger.com/profile/15527294402156840684noreply@blogger.com0tag:blogger.com,1999:blog-5496486467939848451.post-48960255612891100842013-03-27T07:00:00.000-04:002013-03-27T07:00:10.410-04:00BizTalk : How To : Call .Net Component inside Biztalk mapper using XSLT call template PART 2<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">post by </span><a href="http://seroter.wordpress.com/" style="font-family: Verdana, sans-serif; font-size: small;" target="_blank">Richard Seroter</a><br />
<br />
<div style="background-color: white; color: #333333; line-height: 20px !important; padding: 8px 0px;">
<span style="font-family: Verdana, sans-serif;">A problem I mentioned was that the member variable in the class that the map was calling seemed to be getting shared amongst execution instances. Each map creates a sequential page number in the XSLT and puts it into the destination XML. However, I’d see output where the first message had pages “1..3..5..7..8″ and the second message had pages “2..4..6..9.” Very strange. I thought I fixed the problem, but it surfaced today in our Test environment.</span></div>
<div style="background-color: white; color: #333333; line-height: 20px !important; padding: 8px 0px;">
<span style="font-family: Verdana, sans-serif;">So, I set out to keep everything local to the map and get rid of external assembly calls. After banging my head for a few minutes, I came up the perfect solution. I decided to mix inline script with inline XSLT. “Madness” you say? I built a small test scenario. The map I constructed looks like this:</span></div>
<div style="background-color: white; color: #333333; line-height: 20px !important; padding: 8px 0px;">
<span style="font-family: Verdana, sans-serif;"><img src="http://www.seroter.com/blogpics/wordpress/2007.05.24map1.jpg" style="background-color: #f4f4f4; background-position: initial initial; background-repeat: initial initial; border: 1px solid rgb(221, 221, 221); margin: 0px 0px 6px; padding: 5px;" /></span></div>
<div style="background-color: white; color: #333333; line-height: 20px !important; padding: 8px 0px;">
<span style="font-family: Verdana, sans-serif;">In the first <b>Scripting</b> functoid, I have “inline C#” selected, and I created a global variable. I then have a function to increment that variable and return the next number in sequence.</span></div>
<div style="background-color: white; color: #333333; line-height: 20px !important; padding: 8px 0px;">
<span style="font-family: Verdana, sans-serif;"><img src="http://www.seroter.com/blogpics/wordpress/2007.05.24map2.jpg" style="background-color: #f4f4f4; background-position: initial initial; background-repeat: initial initial; border: 1px solid rgb(221, 221, 221); margin: 0px 0px 6px; padding: 5px;" /></span></div>
<div style="background-color: white; color: #333333; line-height: 20px !important; padding: 8px 0px;">
<span style="font-family: Verdana, sans-serif;">Did you know that you could have “global variables” in a map? Neat stuff. If I check out the XSLT that BizTalk generates for my map, I can see my function exposed as such:</span></div>
<div style="background-color: white; color: #333333; line-height: 20px !important; padding: 8px 0px;">
<span style="font-family: Verdana, sans-serif;"><img src="http://www.seroter.com/blogpics/wordpress/2007.05.24map3.jpg" style="background-color: #f4f4f4; background-position: initial initial; background-repeat: initial initial; border: 1px solid rgb(221, 221, 221); margin: 0px 0px 6px; padding: 5px;" /></span></div>
<div style="background-color: white; color: #333333; line-height: 20px !important; padding: 8px 0px;">
<span style="font-family: Verdana, sans-serif;">Now I know how to call this within my XSLT! The second <b>Scripting</b> functoid’s inline XSLT looks like this:</span></div>
<div style="background-color: white; color: #333333; line-height: 20px !important; padding: 8px 0px;">
<span style="font-family: Verdana, sans-serif;"><img src="http://www.seroter.com/blogpics/wordpress/2007.05.24map4.jpg" style="background-color: #f4f4f4; background-position: initial initial; background-repeat: initial initial; border: 1px solid rgb(221, 221, 221); margin: 0px 0px 6px; padding: 5px;" /><br />Notice that I can call the C# method written in the previous functoid with this code:</span></div>
<div style="background-color: white; color: #333333;">
<span style="font-family: Verdana, sans-serif;"><xsl:value-of select=”userCSharp:GetPageNumber()”/></span></div>
<div style="background-color: white; color: #333333; line-height: 20px !important; padding: 8px 0px;">
<span style="font-family: Verdana, sans-serif;">The “prefix” is the auto-generated one from the XSLT. Now, all the calculations are happening locally within the map, and not relying on outside components. The result of this map is a document that looks like this:</span></div>
<div style="background-color: white; color: #333333; line-height: 20px !important; padding: 8px 0px;">
<span style="font-family: Verdana, sans-serif;"><img src="http://www.seroter.com/blogpics/wordpress/2007.05.24map5.jpg" style="background-color: #f4f4f4; background-position: initial initial; background-repeat: initial initial; border: 1px solid rgb(221, 221, 221); margin: 0px 0px 6px; padding: 5px;" /></span></div>
<div style="background-color: white; color: #333333; line-height: 20px !important; padding: 8px 0px;">
<span style="font-family: Verdana, sans-serif;">There you go. Using global variables within a BizTalk map and calling a C# function from within the XSLT itself.</span></div>
</div>
Anonymoushttp://www.blogger.com/profile/15527294402156840684noreply@blogger.com0tag:blogger.com,1999:blog-5496486467939848451.post-15895985577323398642013-03-26T09:30:00.000-04:002013-03-26T09:30:03.510-04:00BizTalk : How To : Call .Net Component inside Biztalk mapper using XSLT call template PART 1<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div style="background-color: white; color: #333333; line-height: 20px !important; padding: 8px 0px;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">post by <a href="http://seroter.wordpress.com/" target="_blank">Richard Seroter</a></span></div>
<div style="background-color: white; color: #333333; line-height: 20px !important; padding: 8px 0px;">
<span style="font-family: Verdana, sans-serif;">I encountered a particularly tricky multi-part mapping scenario. I had to build a destination message that contained groupings from the two source messages. Each record in the first source message created a destination node, and each record in the second source message created a destination node directly beneath the related first source record. To make matters tougher, every destination record has an attribute containing a sequential number. So out of this …</span></div>
<div style="background-color: white; color: #333333; line-height: 20px !important; padding: 8px 0px;">
<span style="font-family: Verdana, sans-serif;"><source1><br /> <Node1><Node1><br /> <Node2></Node2><br /></source1><br /><source2><br /> <NodeRelatedToNode1></NodeRelatedToNode1><br /> <NodeRelatedToNode1></NodeRelatedToNode1><br /> <NodeRelatedToNode2></NodeRelatedToNode2><br /></source2></span></div>
<div style="background-color: white; color: #333333; line-height: 20px !important; padding: 8px 0px;">
<span style="font-family: Verdana, sans-serif;">The destination was supposed to look like this …</span></div>
<div style="background-color: white; color: #333333; line-height: 20px !important; padding: 8px 0px;">
<span style="font-family: Verdana, sans-serif;"><destination><br /> <Node1 <b>page=”1″</b>><Node1><br /> <NodeRelatedToNode1 <b>page=”2″</b>></NodeRelatedToNode1><br /> <NodeRelatedToNode1 <b>page=”3″</b>></NodeRelatedToNode1><br /> <Node2 <b>page=”4″</b>></Node2><br /> <NodeRelatedToNode2 <b>page=”5″</b>></NodeRelatedToNode2><br /></destination></span></div>
<div style="background-color: white; color: #333333; line-height: 20px !important; padding: 8px 0px;">
<span style="font-family: Verdana, sans-serif;">The grouping part wasn’t too tough, just used a <b>Scripting</b> functoid with the <b>XSLT Call Template</b>and a little hand written XSL. The hard part was creating the sequential “page” numbers. Those familiar with XSLT know that the “variables” in XSLT are basically constants, so you can’t create a variable and increment it. I considered building some sort of recursion to get my incremented number, but in the end, decided to call a custom .NET component from my map’s XSLT. I built a C# component that had a member variable, and a method called “GetNext()” which incremented and then returned the next sequential number. I then set my map’s <b>Custom Extension XML</b> to an XML document referencing my custom component. Now in my <b>XSLT Call Template</b> I could get the next “page” number each time I built a destination node. Neat!<br />See <a href="http://msdn2.microsoft.com/en-us/library/aa560433.aspx" style="color: #222222;">here</a> for an example of doing this.</span></div>
<div style="background-color: white; color: #333333; line-height: 20px !important; padding: 8px 0px;">
<span style="font-family: Verdana, sans-serif;">Here’s where a “quirk” was introduced. When I deployed this map, and ran multiple documents through it, the first document had it’s paging correct (e.g. pages 1-5), but the next messages had the wrong values (e.g. 6-10, 11-16, etc). What was happening was that somehow this custom C# component was being shared! The “increment” kept counting on each orchestration call! My C# component wasn’t built as a “static” object, and I assumed that the scope of each custom object was the individual map (or orchestration) instance.</span></div>
<div style="background-color: white; color: #333333; line-height: 20px !important; padding: 8px 0px;">
<span style="font-family: Verdana, sans-serif;">I still have no idea why this happened, but to ensure it wouldn’t keep happening, I added a method to the custom component called “Reset()” which set the counter to 0. Then at the top of the map I call out to that method to ensure that each map starts its counter at 0.</span></div>
</div>
Anonymoushttp://www.blogger.com/profile/15527294402156840684noreply@blogger.com0tag:blogger.com,1999:blog-5496486467939848451.post-70733168341753163642013-03-25T05:00:00.000-04:002013-03-25T05:00:04.418-04:00BizTalk : How To : Save suspended messages in BizTalk Vb Script<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white;">Last week, I needed to save 700+ suspended messages to file. I didn’t want to go in to each instance and click ‘save to file’ 700 times. A quick search in the web did not find what I want, however there were a number of articles about extracting messages from the BizTalk tracking database. One of which is this excellent article by <a href="http://connectedthoughts.wordpress.com/2008/04/02/3-ways-of-programatically-extracting-a-message-body-from-the-biztalk-tracking-database/" style="color: #707070; margin: 0px; padding: 0px;" target="_blank">Thiago Almeida</a>.</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white;">My scenario was for an existing BizTalk 2004 implementation in the company and is only a once-off thing I need to do. For the newer BizTalk 2006 applications, there is the ‘Failed Message Routing’ feature that can be enabled on send ports and receive ports. The failed messages could then be easily subscribed to a send port to output to file.</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white;">Then it occured to me that the WMI script Terminate.vbs has the option to save the messages before terminating the instances (<a href="http://go.microsoft.com/fwlink/?LinkID=107591" style="color: #707070; margin: 0px; padding: 0px;" target="_blank">http://go.microsoft.com/fwlink/?LinkID=107591</a> and slightly updated for <a href="http://msdn.microsoft.com/en-us/library/bb203857%28BTS.10%29.aspx" style="color: #707070; margin: 0px; padding: 0px;" target="_blank">2009</a>). Thus changing this script to do what I want required the least effort. I could just use the script as it is to save all the messages and terminate the instances. However it didn’t take much to modify it to take a parameter for filtering on an instance name and to only save messages (and not terminate them). Below is the usage description of the save_messages.vbs script and the actual script. It works for BizTalk 2004, 2006 and 2009.</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white;">There is also a replacement of the Terminate.vbs script: <a href="http://vincentchoo.wordpress.com/2011/08/10/biztalk-terminator/" style="color: #707070; margin: 0px; padding: 0px;" target="_blank">Biztalk Terminator</a>.</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white; color: blue; margin: 0px; padding: 0px;">Usage:<br style="margin: 0px; padding: 0px;" />cscript save_messages.vbs < -Z | -A | -DIS | -SR | -SNR > [Port/Orchestration name]</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white; color: blue; margin: 0px; padding: 0px;">-Z saves all “Zombie” instances (e.g. completed with discarded messages)<br style="margin: 0px; padding: 0px;" />-A saves all suspended and zombie instances as well as all routing failure reports<br style="margin: 0px; padding: 0px;" />-SR saves suspended resumable instances only<br style="margin: 0px; padding: 0px;" />-SNR saves suspended non-resumable instances only<br style="margin: 0px; padding: 0px;" />-DIS saves all dehydrated ‘isolated adapter’ instances<br style="margin: 0px; padding: 0px;" />optionally supply the name of the orchestration or port name to filter on specific instances</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white; color: blue; margin: 0px; padding: 0px;">Ensure that the C:\Temp folder exists before running as that is where it saves the instances</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white; color: blue; margin: 0px; padding: 0px;">Example: cscript save_messages.vbs -z “E-Reporting Data Transform Port”</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white; margin: 0px; padding: 0px; text-decoration: underline;">Visual Basic Script:</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white; color: maroon; margin: 0px; padding: 0px;">‘ save_messages.vbs<br style="margin: 0px; padding: 0px;" />‘ Enter save_messages.vbs with no arguments from a command prompt for usage<br style="margin: 0px; padding: 0px;" />‘ This script needs to be run under a user account that is a member of the BizTalk Administrators<br style="margin: 0px; padding: 0px;" />‘ group. This script needs to be run on a machine that is configured with BizTalk administration<br style="margin: 0px; padding: 0px;" />‘ tools.</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white; color: maroon; margin: 0px; padding: 0px;">dim objBtsWmiNS, objMsg, svcinsts, inst, msg, ndx, size</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white; color: maroon; margin: 0px; padding: 0px;">Dim aryHostNames()<br style="margin: 0px; padding: 0px;" />Dim aryObjQueues()<br style="margin: 0px; padding: 0px;" />Dim aryHostBatchSize()</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white; color: maroon; margin: 0px; padding: 0px;">Dim strKey2Instance<br style="margin: 0px; padding: 0px;" />Dim strQuery2Msg<br style="margin: 0px; padding: 0px;" />Dim strServiceName</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white; color: maroon; margin: 0px; padding: 0px;">On Error Resume Next<br style="margin: 0px; padding: 0px;" />Dim objArgs: Set objArgs = WScript.Arguments<br style="margin: 0px; padding: 0px;" />If ( objArgs.Count = 0 OR objArgs.Count > 2) Then<br style="margin: 0px; padding: 0px;" />PrintUsage()<br style="margin: 0px; padding: 0px;" />wscript.quit 0<br style="margin: 0px; padding: 0px;" />End If</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white; color: maroon; margin: 0px; padding: 0px;">wmiQuery = “”</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white; color: maroon; margin: 0px; padding: 0px;">‘ServiceStatus = 16 – ‘Completed With Discarded Messages’ in BizTalk Server 2004<br style="margin: 0px; padding: 0px;" />‘ServiceStatus = 32 – ‘Suspended (not resumable)’<br style="margin: 0px; padding: 0px;" />‘ServiceStatus = 4 – ‘Suspended (resumable)’<br style="margin: 0px; padding: 0px;" />‘ServiceClass = 64 – ‘Routing Failure Report’<br style="margin: 0px; padding: 0px;" />‘ErrorId = “0xC0C01B4C” – is how ‘Completed With Discarded Messages’ are exposed in BizTalk Server 2006</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white; color: maroon; margin: 0px; padding: 0px;">If (objArgs(0) = “-Z” OR objArgs(0) = “-z”) Then<br style="margin: 0px; padding: 0px;" />wmiQuery = “select * from MSBTS_serviceinstance where ServiceStatus=16 OR ErrorId=’0xC0C01B4C’”<br style="margin: 0px; padding: 0px;" />End If</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white; color: maroon; margin: 0px; padding: 0px;">If (objArgs(0) = “-A” or objArgs(0) = “-a”) Then<br style="margin: 0px; padding: 0px;" />wmiQuery = “select * from MSBTS_serviceinstance where ServiceStatus=4 OR ServiceStatus=32 OR ServiceStatus=16 OR ErrorId=’0xC0C01B4C’ OR ServiceClass=64″<br style="margin: 0px; padding: 0px;" />End If</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white; color: maroon; margin: 0px; padding: 0px;">If (objArgs(0) = “-SR” or objArgs(0) = “-sr”) Then<br style="margin: 0px; padding: 0px;" />wmiQuery = “select * from MSBTS_serviceinstance where ServiceStatus=4″<br style="margin: 0px; padding: 0px;" />End If</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white; color: maroon; margin: 0px; padding: 0px;">If (objArgs(0) = “-SNR” or objArgs(0) = “-snr”) Then<br style="margin: 0px; padding: 0px;" />wmiQuery = “select * from MSBTS_serviceinstance where ServiceStatus=32″<br style="margin: 0px; padding: 0px;" />End If</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white; color: maroon; margin: 0px; padding: 0px;">If (objArgs(0) = “-DIS” or objArgs(0) = “-dis”) Then<br style="margin: 0px; padding: 0px;" />wmiQuery = “select * from MSBTS_serviceinstance where ServiceClass=32 AND ServiceStatus=8″<br style="margin: 0px; padding: 0px;" />‘ServiceClass = 32 ‘Isolated Adapter<br style="margin: 0px; padding: 0px;" />‘ServiceStatus = 8 ‘Dehydrated<br style="margin: 0px; padding: 0px;" />End If</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white; color: maroon; margin: 0px; padding: 0px;">saveMessagesBeforeTermination = True</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white; color: maroon; margin: 0px; padding: 0px;">If ( objArgs.Count > 1) Then<br style="margin: 0px; padding: 0px;" />strServiceName = objArgs(1)<br style="margin: 0px; padding: 0px;" />End If</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white; color: maroon; margin: 0px; padding: 0px;">If(wmiQuery = “”) Then<br style="margin: 0px; padding: 0px;" />PrintUsage()<br style="margin: 0px; padding: 0px;" />wscript.quit 0<br style="margin: 0px; padding: 0px;" />End If</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white; color: maroon; margin: 0px; padding: 0px;">wscript.echo “–>Connecting to BizTalk WMI namespace”<br style="margin: 0px; padding: 0px;" />Set objBtsWmiNS = GetObject(“WinMgmts:{impersonationLevel=impersonate, (security)}\\.\root\MicrosoftBizTalkServer”)<br style="margin: 0px; padding: 0px;" />If Err <> 0 Then<br style="margin: 0px; padding: 0px;" />CheckWMIError<br style="margin: 0px; padding: 0px;" />wscript.quit 0<br style="margin: 0px; padding: 0px;" />End If</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white; color: maroon; margin: 0px; padding: 0px;">wscript.echo “–>Getting BizTalk host collection”<br style="margin: 0px; padding: 0px;" />Set hosts = objBtsWmiNS.ExecQuery(“select * from MSBTS_HostSetting”)<br style="margin: 0px; padding: 0px;" />If Err <> 0 Then<br style="margin: 0px; padding: 0px;" />CheckWMIError<br style="margin: 0px; padding: 0px;" />wscript.quit 0<br style="margin: 0px; padding: 0px;" />End If</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white; color: maroon; margin: 0px; padding: 0px;">hostCount = hosts.count</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white; color: maroon; margin: 0px; padding: 0px;">ReDim aryHostNames(hostCount – 1)<br style="margin: 0px; padding: 0px;" />ReDim aryObjQueues(hostCount – 1)<br style="margin: 0px; padding: 0px;" />ReDim aryHostBatchSize(hostCount – 1)</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white; color: maroon; margin: 0px; padding: 0px;">wscript.echo “–>Retrieve BizTalk host names and loading host queues”<br style="margin: 0px; padding: 0px;" />ndx = 0<br style="margin: 0px; padding: 0px;" />For Each host in hosts<br style="margin: 0px; padding: 0px;" />wscript.echo “Found host ” & host.Properties_(“Name”)<br style="margin: 0px; padding: 0px;" />aryHostNames(ndx) = host.Properties_(“Name”)<br style="margin: 0px; padding: 0px;" />Set aryObjQueues(ndx) = objBtsWmiNS.Get(“MSBTS_HostQueue.HostName=”"” & aryHostNames(ndx) & “”"”)<br style="margin: 0px; padding: 0px;" />If Err <> 0 Then<br style="margin: 0px; padding: 0px;" />CheckWMIError<br style="margin: 0px; padding: 0px;" />wscript.quit 0<br style="margin: 0px; padding: 0px;" />End If<br style="margin: 0px; padding: 0px;" />ndx = ndx + 1<br style="margin: 0px; padding: 0px;" />Next</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white; color: maroon; margin: 0px; padding: 0px;">wscript.echo “–>Getting collection of service instances”<br style="margin: 0px; padding: 0px;" />Set svcinsts = objBtsWmiNS.ExecQuery(wmiQuery)</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white; color: maroon; margin: 0px; padding: 0px;">‘Iterate through instances and save them in host-specific arrays.</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white; color: maroon; margin: 0px; padding: 0px;">wscript.echo “–>Start iterating service instances”<br style="margin: 0px; padding: 0px;" />totalCount = 0<br style="margin: 0px; padding: 0px;" />For Each inst in svcinsts<br style="margin: 0px; padding: 0px;" />If (objArgs.Count = 1 Or (objArgs.Count > 1 And strServiceName = inst.Properties_(“ServiceName”) ) ) Then</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white; color: maroon; margin: 0px; padding: 0px;">wscript.echo “Found suspended instance “”" & inst.Properties_(“ServiceName”) & “”" on host ” & inst.Properties_(“HostName”)<br style="margin: 0px; padding: 0px;" />‘Resolve host index<br style="margin: 0px; padding: 0px;" />For hostIdx = 0 To hostCount-1<br style="margin: 0px; padding: 0px;" />If aryHostNames(hostIdx) = inst.Properties_(“HostName”) Then<br style="margin: 0px; padding: 0px;" />Exit For<br style="margin: 0px; padding: 0px;" />End If<br style="margin: 0px; padding: 0px;" />Next</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white; color: maroon; margin: 0px; padding: 0px;">’16 is an internal service class that cannot be terminated<br style="margin: 0px; padding: 0px;" />If 16 = inst.Properties_(“ServiceClass”) Then<br style="margin: 0px; padding: 0px;" />wscript.echo “Skipping BizTalk internal service instances (they cannot be terminated anyway)”<br style="margin: 0px; padding: 0px;" />Else<br style="margin: 0px; padding: 0px;" />’64 is a routing failure report and doesn’t have messages that can be saved<br style="margin: 0px; padding: 0px;" />If 64 = inst.Properties_(“ServiceClass”) Or 16 = inst.Properties_(“ServiceClass”) Then<br style="margin: 0px; padding: 0px;" />saveMessagesBeforeTermination = False<br style="margin: 0px; padding: 0px;" />End If</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white; color: maroon; margin: 0px; padding: 0px;">errorCountSavingMessages = 0<br style="margin: 0px; padding: 0px;" />If saveMessagesBeforeTermination Then<br style="margin: 0px; padding: 0px;" />strQuery2Msg = “select * from MSBTS_MessageInstance where ServiceInstanceID=”"” & inst.Properties_(“InstanceId”) & “”"”<br style="margin: 0px; padding: 0px;" />Set msgInsts = objBtsWmiNS.ExecQuery(strQuery2Msg)<br style="margin: 0px; padding: 0px;" />For Each msg in msgInsts<br style="margin: 0px; padding: 0px;" />msg.SaveToFile “C:\Temp”<br style="margin: 0px; padding: 0px;" />If Err <> 0 Then<br style="margin: 0px; padding: 0px;" />CheckWMIError<br style="margin: 0px; padding: 0px;" />wscript.echo “Failed to save MSBTS_MessageInstance”<br style="margin: 0px; padding: 0px;" />wscript.echo Err.Description & Err.Number<br style="margin: 0px; padding: 0px;" />errorCountSavingMessages = errorCountSavingMessages + 1<br style="margin: 0px; padding: 0px;" />Else<br style="margin: 0px; padding: 0px;" />wscript.echo “Saved message ” & msg.Properties_(“MessageInstanceID”)<br style="margin: 0px; padding: 0px;" />End If<br style="margin: 0px; padding: 0px;" />Next<br style="margin: 0px; padding: 0px;" />End If</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white; color: maroon; margin: 0px; padding: 0px;">totalCount = totalCount + 1<br style="margin: 0px; padding: 0px;" />End If</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white; color: maroon; margin: 0px; padding: 0px;">End If<br style="margin: 0px; padding: 0px;" />Next</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white; color: maroon; margin: 0px; padding: 0px;">‘ Delete whatever is left<br style="margin: 0px; padding: 0px;" />For hostIdx = 0 To hostCount-1<br style="margin: 0px; padding: 0px;" />If aryHostBatchSize(hostIdx) > 0 Then<br style="margin: 0px; padding: 0px;" />TerminateAccumulatedInstacesForHost hostIdx<br style="margin: 0px; padding: 0px;" />End If<br style="margin: 0px; padding: 0px;" />Next</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white; color: maroon; margin: 0px; padding: 0px;">wscript.echo “SUCCESS> ” & totalCount & ” instances were found and attempted to be saved”</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white; color: maroon; margin: 0px; padding: 0px;">‘This subroutine deals with all errors using the WbemScripting object.<br style="margin: 0px; padding: 0px;" />‘Error descriptions are returned to the user by printing to the console.<br style="margin: 0px; padding: 0px;" />Sub CheckWMIError()</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white; color: maroon; margin: 0px; padding: 0px;">If Err <> 0 Then<br style="margin: 0px; padding: 0px;" />On Error Resume Next<br style="margin: 0px; padding: 0px;" />Dim strErrDesc: strErrDesc = Err.Description<br style="margin: 0px; padding: 0px;" />Dim ErrNum: ErrNum = Err.Number<br style="margin: 0px; padding: 0px;" />Dim WMIError : Set WMIError = CreateObject(“WbemScripting.SwbemLastError”)</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white; color: maroon; margin: 0px; padding: 0px;">If (TypeName(WMIError) = “Empty” ) Then<br style="margin: 0px; padding: 0px;" />wscript.echo strErrDesc & ” (HRESULT: ” & Hex(ErrNum) & “).”<br style="margin: 0px; padding: 0px;" />Else<br style="margin: 0px; padding: 0px;" />wscript.echo WMIError.Description & “(HRESULT: ” & Hex(ErrNum) & “).”<br style="margin: 0px; padding: 0px;" />Set WMIError = nothing<br style="margin: 0px; padding: 0px;" />End If</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white; color: maroon; margin: 0px; padding: 0px;">‘wscript.quit 0<br style="margin: 0px; padding: 0px;" />End If</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white; color: maroon; margin: 0px; padding: 0px;">End Sub</span></div>
<div style="color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin-bottom: 15px; padding: 0px;">
<span style="background-color: white; color: maroon; margin: 0px; padding: 0px;">Sub PrintUsage()<br style="margin: 0px; padding: 0px;" />wscript.echo “Usage:”<br style="margin: 0px; padding: 0px;" />wscript.echo “cscript save_messages.vbs < -Z | -A | -DIS | -SR | -SNR > [Port/Orchestration name]“<br style="margin: 0px; padding: 0px;" />wscript.echo<br style="margin: 0px; padding: 0px;" />wscript.echo “ -Z saves all “”Zombie”" instances (e.g. completed with discarded messages)”<br style="margin: 0px; padding: 0px;" />wscript.echo “ -A saves all suspended and zombie instances as well as all routing failure reports”<br style="margin: 0px; padding: 0px;" />wscript.echo “ -SR saves suspended resumable instances only”<br style="margin: 0px; padding: 0px;" />wscript.echo “ -SNR saves suspended non-resumable instances only”<br style="margin: 0px; padding: 0px;" />wscript.echo “ -DIS saves all dehydrated ‘isolated adapter’ instances”<br style="margin: 0px; padding: 0px;" />wscript.echo “ optionally supply the name of the orchestration or port name to filter on specific instances”<br style="margin: 0px; padding: 0px;" />wscript.echo<br style="margin: 0px; padding: 0px;" />wscript.echo “ Ensure that the C:\Temp folder exists before running as that is where it saves the instances”<br style="margin: 0px; padding: 0px;" />wscript.echo<br style="margin: 0px; padding: 0px;" />wscript.echo “ Example: cscript save_messages.vbs -z “”E-Reporting Data Transform Port”"”<br style="margin: 0px; padding: 0px;" />wscript.echo<br style="margin: 0px; padding: 0px;" />End Sub</span></div>
<div class="wpadvert" style="clear: both; color: #656565; font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 20.796875px; margin: 10px auto; overflow: hidden; padding: 0px; position: relative; text-align: center; width: 300px;">
<a href="http://en.wordpress.com/about-these-ads/" rel="nofollow" style="color: #707070; display: block; font-family: sans-serif; font-size: 9px; line-height: 1; margin: 0px; padding: 0px; position: absolute; text-align: left;"><span style="background-color: white;">About these ads</span></a></div>
<div class="sharedaddy sd-like-enabled" id="jp-post-flair" style="border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; clear: both; color: #656565; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px; line-height: 20.796875px; margin: 0px; padding: 0px; zoom: 1;">
<div class="sharedaddy sd-block sd-like jetpack-likes-widget-wrapper jetpack-likes-widget-unloaded" data-name="like-post-frame-3131022-7" data-src="http://widgets.wp.com/likes/#blog_id=3131022&post_id=7&origin=http://vincentchoo.wordpress.com" id="like-post-wrapper-3131022-7" style="border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-color: rgba(0, 0, 0, 0.129412); border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-style: solid; border-top-width: 1px; clear: both; margin: 0px; padding: 10px 0px 5px; width: 483px; zoom: 1;">
<div class="post-likes-widget-placeholder" style="border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px; height: 55px; margin: 0px; padding: 0px;">
<span class="button" style="background-color: white; background-image: -webkit-linear-gradient(top, rgb(247, 247, 247) 0%, rgb(239, 239, 239) 100%); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(221, 221, 221) !important; box-shadow: rgb(255, 255, 255) 0px 1px 0px inset; color: #999999; display: inline-block; line-height: 1; margin: 0px; padding: 0px;"></span></div>
</div>
</div>
</div>
Anonymoushttp://www.blogger.com/profile/15527294402156840684noreply@blogger.com0tag:blogger.com,1999:blog-5496486467939848451.post-78160661957226708992013-03-22T11:30:00.000-04:002013-03-22T11:30:00.834-04:00BizTalk : How To : Map Repeating Sequence Elements<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">source: <span style="color: #073763;"><u><a href="http://consultingblogs.emc.com/" target="_blank">paul petrov</a></u></span></span><br />
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><span style="color: #073763;"><br /></span></span>
<br />
<div class="BlogPostContent" style="background-color: white; font-family: Tahoma, Arial, Helvetica; font-size: 13px; line-height: 20px; margin-left: 1px; text-align: justify;">
<div class="MsoNormal" style="margin: 0in 0in 10pt;">
<span style="font-family: Calibri; font-size: small;">Repeating sequence groups can often be seen in real life XML documents. It happens when certain sequence of elements repeats in the instance document. Here's fairly abstract example of schema definition that contains sequence group:</span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"><</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">xs:schema</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> </span><span style="color: red; font-family: 'Courier New'; font-size: 10pt;">xmlns:b</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">=</span><span style="font-family: 'Courier New'; font-size: 10pt;">"<span style="color: blue;">http://schemas.microsoft.com/BizTalk/2003</span>"<span style="color: blue;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> </span><span style="color: red; font-family: 'Courier New'; font-size: 10pt;">xmlns:xs</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">=</span><span style="font-family: 'Courier New'; font-size: 10pt;">"<span style="color: blue;">http://www.w3.org/2001/XMLSchema</span>"<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> </span><span style="color: red; font-family: 'Courier New'; font-size: 10pt;">xmlns</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">=</span><span style="font-family: 'Courier New'; font-size: 10pt;">"<span style="color: blue;">NS-Schema1</span>"<span style="color: blue;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> </span><span style="color: red; font-family: 'Courier New'; font-size: 10pt;">targetNamespace</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">=</span><span style="font-family: 'Courier New'; font-size: 10pt;">"<span style="color: blue;">NS-Schema1</span>"<span style="color: blue;"> ><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">xs:element</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> </span><span style="color: red; font-family: 'Courier New'; font-size: 10pt;">name</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">=</span><span style="font-family: 'Courier New'; font-size: 10pt;">"<span style="color: blue;">RepeatingSequenceGroups</span>"<span style="color: blue;">><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">xs:complexType</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">xs:sequence</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> </span><span style="color: red; font-family: 'Courier New'; font-size: 10pt;">maxOccurs</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">=</span><span style="font-family: 'Courier New'; font-size: 10pt;">"<span style="color: blue;">1</span>"<span style="color: blue;"> </span><span style="color: red;">minOccurs</span><span style="color: blue;">=</span>"0"<span style="color: blue;">><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">xs:sequence</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> </span><span style="color: red; font-family: 'Courier New'; font-size: 10pt;">maxOccurs</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">=</span><span style="font-family: 'Courier New'; font-size: 10pt;">"<span style="color: blue;">unbounded</span>"<span style="color: blue;">><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">xs:element</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> </span><span style="color: red; font-family: 'Courier New'; font-size: 10pt;">name</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">=</span><span style="font-family: 'Courier New'; font-size: 10pt;">"<span style="color: blue;">A</span>"<span style="color: blue;"> </span><span style="color: red;">type</span><span style="color: blue;">=</span>"<span style="color: blue;">xs:string</span>"<span style="color: blue;"> /><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">xs:element</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> </span><span style="color: red; font-family: 'Courier New'; font-size: 10pt;">name</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">=</span><span style="font-family: 'Courier New'; font-size: 10pt;">"<span style="color: blue;">B</span>"<span style="color: blue;"> </span><span style="color: red;">type</span><span style="color: blue;">=</span>"<span style="color: blue;">xs:string</span>"<span style="color: blue;"> /><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">xs:element</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> </span><span style="color: red; font-family: 'Courier New'; font-size: 10pt;">name</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">=</span><span style="font-family: 'Courier New'; font-size: 10pt;">"<span style="color: blue;">C</span>"<span style="color: blue;"> </span><span style="color: red;">type</span><span style="color: blue;">=</span>"<span style="color: blue;">xs:string</span>"<span style="color: blue;"> </span><span style="color: red;">minOccurs</span><span style="color: blue;">=</span>"<span style="color: blue;">0</span>"<span style="color: blue;"> /><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> </</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">xs:sequence</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> </</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">xs:sequence</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> </</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">xs:complexType</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> </</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">xs:element</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">><o:p></o:p></span></div>
<div class="MsoNormal" style="margin: 0in 0in 10pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt; line-height: 14px;"></</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt; line-height: 14px;">xs:schema</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt; line-height: 14px;">></span></div>
<div class="MsoNormal" style="margin: 0in 0in 10pt;">
<span style="font-family: Calibri; font-size: small;">And here's corresponding XML instance document:</span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"><</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">ns0:RepeatingSequenceGroups</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> </span><span style="color: red; font-family: 'Courier New'; font-size: 10pt;">xmlns:ns0</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">=</span><span style="font-family: 'Courier New'; font-size: 10pt;">"<span style="color: blue;">NS-Schema1</span>"<span style="color: blue;">><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">A</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;">A1<span style="color: blue;"></</span><span style="color: #a31515;">A</span><span style="color: blue;">><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">B</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;">B1<span style="color: blue;"></</span><span style="color: #a31515;">B</span><span style="color: blue;">><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">C</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;">C1<span style="color: blue;"></</span><span style="color: #a31515;">C</span><span style="color: blue;">><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">A</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;">A2<span style="color: blue;"></</span><span style="color: #a31515;">A</span><span style="color: blue;">><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">B</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;">B2<span style="color: blue;"></</span><span style="color: #a31515;">B</span><span style="color: blue;">><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">A</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;">A3<span style="color: blue;"></</span><span style="color: #a31515;">A</span><span style="color: blue;">><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">B</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;">B3<span style="color: blue;"></</span><span style="color: #a31515;">B</span><span style="color: blue;">><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">C</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;">C3<span style="color: blue;"></</span><span style="color: #a31515;">C</span><span style="color: blue;">><o:p></o:p></span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 10pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt; line-height: 14px;"></</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt; line-height: 14px;">ns0:RepeatingSequenceGroups</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt; line-height: 14px;">></span></div>
<div class="MsoNormal" style="margin: 0in 0in 10pt;">
<span style="font-family: Calibri; font-size: small;">As you can see elements A, B, and C are children of anonymous xs:sequence element which in turn can be repeated N times. Let's say we need do simple mapping to the schema with similar structure but with different element names:</span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"><</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">ns0:Destination</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> </span><span style="color: red; font-family: 'Courier New'; font-size: 10pt;">xmlns:ns0</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">=</span><span style="font-family: 'Courier New'; font-size: 10pt;">"<span style="color: blue;">NS-Schema2</span>"<span style="color: blue;">><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">Alpha</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;">A1<span style="color: blue;"></</span><span style="color: #a31515;">Alpha</span><span style="color: blue;">><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">Beta</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;">B1<span style="color: blue;"></</span><span style="color: #a31515;">Beta</span><span style="color: blue;">><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">Gamma</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;">C1<span style="color: blue;"></</span><span style="color: #a31515;">Gamma</span><span style="color: blue;">><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">Alpha</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;">A2<span style="color: blue;"></</span><span style="color: #a31515;">Alpha</span><span style="color: blue;">><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">Beta</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;">B2<span style="color: blue;"></</span><span style="color: #a31515;">Beta</span><span style="color: blue;">><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">Gamma</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;">C2<span style="color: blue;"></</span><span style="color: #a31515;">Gamma</span><span style="color: blue;">><o:p></o:p></span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 10pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt; line-height: 14px;"></</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt; line-height: 14px;">ns0:Destination</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt; line-height: 14px;">></span></div>
<div class="MsoNormal" style="margin: 0in 0in 10pt;">
<span style="font-family: Calibri; font-size: small;">The basic map for such typical task would look pretty straightforward:</span></div>
<div class="MsoNormal" style="margin: 0in 0in 10pt;">
<img height="438" src="http://lh3.ggpht.com/_IZ7N3-ThVBQ/TSC7j3drrtI/AAAAAAAAAK4/HUPM9jTvjlM/MapRepeatingSequence_01.PNG.jpg" style="height: 438px; width: 781px;" width="781" /></div>
<div class="MsoNormal" style="margin: 0in 0in 10pt;">
</div>
<div class="MsoNormal" style="margin: 0in 0in 10pt;">
<span style="font-family: Calibri; font-size: small;">If we test this map without any modification it will produce following result:</span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"><</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">ns0:Destination</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> </span><span style="color: red; font-family: 'Courier New'; font-size: 10pt;">xmlns:ns0</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">=</span><span style="font-family: 'Courier New'; font-size: 10pt;">"<span style="color: blue;">NS-Schema2</span>"<span style="color: blue;">><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">Alpha</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;">A1<span style="color: blue;"></</span><span style="color: #a31515;">Alpha</span><span style="color: blue;">><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">Alpha</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;">A2<span style="color: blue;"></</span><span style="color: #a31515;">Alpha</span><span style="color: blue;">><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">Alpha</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;">A3<span style="color: blue;"></</span><span style="color: #a31515;">Alpha</span><span style="color: blue;">><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">Beta</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;">B1<span style="color: blue;"></</span><span style="color: #a31515;">Beta</span><span style="color: blue;">><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">Beta</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;">B2<span style="color: blue;"></</span><span style="color: #a31515;">Beta</span><span style="color: blue;">><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">Beta</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;">B3<span style="color: blue;"></</span><span style="color: #a31515;">Beta</span><span style="color: blue;">><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">Gamma</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;">C1<span style="color: blue;"></</span><span style="color: #a31515;">Gamma</span><span style="color: blue;">><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">Gamma</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;">C3<span style="color: blue;"></</span><span style="color: #a31515;">Gamma</span><span style="color: blue;">><o:p></o:p></span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 10pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt; line-height: 14px;"></</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt; line-height: 14px;">ns0:Destination</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt; line-height: 14px;">></span></div>
<div class="MsoNormal" style="margin: 0in 0in 10pt;">
<span style="font-family: Calibri; font-size: small;">The original order of the elements inside sequence is lost and that's not what we want. Default behavior of the BizTalk 2009 and 2010 Map Editor is to generate compatible map with older versions that did not have ability to preserve sequence order. To enable this feature simply open map file (*.btm) in text/xml editor and find attribute PreserveSequenceOrder of the root <mapsource> element. Set its value to Yes and re-test the map:</span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"><</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">ns0:Destination</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> </span><span style="color: red; font-family: 'Courier New'; font-size: 10pt;">xmlns:ns0</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">=</span><span style="font-family: 'Courier New'; font-size: 10pt;">"<span style="color: blue;">NS-Schema2</span>"<span style="color: blue;">><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">Alpha</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;">A1<span style="color: blue;"></</span><span style="color: #a31515;">Alpha</span><span style="color: blue;">><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">Beta</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;">B1<span style="color: blue;"></</span><span style="color: #a31515;">Beta</span><span style="color: blue;">><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">Gamma</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;">C1<span style="color: blue;"></</span><span style="color: #a31515;">Gamma</span><span style="color: blue;">><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">Alpha</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;">A2<span style="color: blue;"></</span><span style="color: #a31515;">Alpha</span><span style="color: blue;">><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">Beta</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;">B2<span style="color: blue;"></</span><span style="color: #a31515;">Beta</span><span style="color: blue;">><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">Alpha</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;">A3<span style="color: blue;"></</span><span style="color: #a31515;">Alpha</span><span style="color: blue;">><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">Beta</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;">B3<span style="color: blue;"></</span><span style="color: #a31515;">Beta</span><span style="color: blue;">><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">Gamma</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;">C3<span style="color: blue;"></</span><span style="color: #a31515;">Gamma</span><span style="color: blue;">><o:p></o:p></span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 10pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt; line-height: 14px;"></</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt; line-height: 14px;">ns0:Destination</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt; line-height: 14px;">></span></div>
<div class="MsoNormal" style="margin: 0in 0in 10pt;">
<span style="font-family: Calibri; font-size: small;">The result is as expected – all corresponding elements are in the same order as in the source document. Under the hood it is achieved by using one common xsl:for-each statement that pulls all elements in original order (rather than using individual for-each statement per element name in default mode) and xsl:if statements to test current element in the loop:</span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #2b91af; font-family: 'Courier New'; font-size: 10pt;">xsl:template</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> </span><span style="color: red; font-family: 'Courier New'; font-size: 10pt;">match</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">=</span><span style="font-family: 'Courier New'; font-size: 10pt;">"<span style="color: blue;">/s0:RepeatingSequenceGroups</span>"<span style="color: blue;">><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">ns0:Destination</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #2b91af; font-family: 'Courier New'; font-size: 10pt;">xsl:for-each</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> </span><span style="color: red; font-family: 'Courier New'; font-size: 10pt;">select</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">=</span><span style="font-family: 'Courier New'; font-size: 10pt;">"<span style="color: blue;">A|B|C</span>"<span style="color: blue;">><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #2b91af; font-family: 'Courier New'; font-size: 10pt;">xsl:if</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> </span><span style="color: red; font-family: 'Courier New'; font-size: 10pt;">test</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">=</span><span style="font-family: 'Courier New'; font-size: 10pt;">"<span style="color: blue;">local-name()='A'</span>"<span style="color: blue;">><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">Alpha</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #2b91af; font-family: 'Courier New'; font-size: 10pt;">xsl:value-of</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> </span><span style="color: red; font-family: 'Courier New'; font-size: 10pt;">select</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">=</span><span style="font-family: 'Courier New'; font-size: 10pt;">"<span style="color: blue;">./text()</span>"<span style="color: blue;"> /><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> </</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">Alpha</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> </</span><span style="color: #2b91af; font-family: 'Courier New'; font-size: 10pt;">xsl:if</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #2b91af; font-family: 'Courier New'; font-size: 10pt;">xsl:if</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> </span><span style="color: red; font-family: 'Courier New'; font-size: 10pt;">test</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">=</span><span style="font-family: 'Courier New'; font-size: 10pt;">"<span style="color: blue;">local-name()='B'</span>"<span style="color: blue;">><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">Beta</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #2b91af; font-family: 'Courier New'; font-size: 10pt;">xsl:value-of</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> </span><span style="color: red; font-family: 'Courier New'; font-size: 10pt;">select</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">=</span><span style="font-family: 'Courier New'; font-size: 10pt;">"<span style="color: blue;">./text()</span>"<span style="color: blue;"> /><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> </</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">Beta</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> </</span><span style="color: #2b91af; font-family: 'Courier New'; font-size: 10pt;">xsl:if</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #2b91af; font-family: 'Courier New'; font-size: 10pt;">xsl:if</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> </span><span style="color: red; font-family: 'Courier New'; font-size: 10pt;">test</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">=</span><span style="font-family: 'Courier New'; font-size: 10pt;">"<span style="color: blue;">local-name()='C'</span>"<span style="color: blue;">><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">Gamma</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> <</span><span style="color: #2b91af; font-family: 'Courier New'; font-size: 10pt;">xsl:value-of</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> </span><span style="color: red; font-family: 'Courier New'; font-size: 10pt;">select</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">=</span><span style="font-family: 'Courier New'; font-size: 10pt;">"<span style="color: blue;">./text()</span>"<span style="color: blue;"> /><o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> </</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">Gamma</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> </</span><span style="color: #2b91af; font-family: 'Courier New'; font-size: 10pt;">xsl:if</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> </</span><span style="color: #2b91af; font-family: 'Courier New'; font-size: 10pt;">xsl:for-each</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt;"> </</span><span style="color: #a31515; font-family: 'Courier New'; font-size: 10pt;">ns0:Destination</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt;">><o:p></o:p></span></div>
<div class="MsoNormal" style="margin: 0in 0in 10pt;">
<span style="color: blue; font-family: 'Courier New'; font-size: 10pt; line-height: 14px;"> </</span><span style="color: #2b91af; font-family: 'Courier New'; font-size: 10pt; line-height: 14px;">xsl:template</span><span style="color: blue; font-family: 'Courier New'; font-size: 10pt; line-height: 14px;">></span></div>
<div class="MsoNormal" style="margin: 0in 0in 10pt;">
<span style="font-family: Calibri; font-size: small;">BizTalk Map editor became smarter so learn and use this lesser known feature of XSLT 2.0 in your maps and XSL stylesheets.</span></div>
</div>
</div>
Anonymoushttp://www.blogger.com/profile/15527294402156840684noreply@blogger.com0tag:blogger.com,1999:blog-5496486467939848451.post-44698795873182074062013-03-22T09:30:00.000-04:002013-03-22T09:30:03.310-04:00BizTalk : Q&A : Read Repeating Namepair values using XSLT for-each <div dir="ltr" style="text-align: left;" trbidi="on">
Q: <span style="background-color: white; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 18px;">Hi i have a strange issue with matching specific attribute of xml node. Example code that doesnt work:</span><br />
<pre style="background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;"><code style="border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline;"><xsl:for-each select="../../unit/service/price/season[@name=$period_name]">
<xsl:attribute name="std_bed_price">
<xsl:value-of select="../@amount"/>
</xsl:attribute>
</xsl:for-each>
</code></pre>
<div style="background-color: white; border: 0px; clear: both; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 18px; margin-bottom: 1em; padding: 0px; vertical-align: baseline; word-wrap: break-word;">
Example code that DOES work but i don't like this way too much:</div>
<pre style="background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;"><code style="border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline;"> <xsl:for-each select="../../unit/service/price/season">
<xsl:if test="@name = $period_name">
<xsl:attribute name="std_bed_price">
<xsl:value-of select="../@amount"/>
</xsl:attribute>
</xsl:if>
</xsl:for-each>
</code></pre>
<div style="background-color: white; border: 0px; clear: both; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 18px; margin-bottom: 1em; padding: 0px; vertical-align: baseline; word-wrap: break-word;">
If in first example i replace the variable name with some of the values like 'A' it works, i also tested what variable name is selected and it has the correct data inside (so, 'A','B','C' ...)</div>
<div style="background-color: white; border: 0px; clear: both; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 18px; margin-bottom: 1em; padding: 0px; vertical-align: baseline; word-wrap: break-word;">
Anyone had this problem before?</div>
<div style="background-color: white; border: 0px; clear: both; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 18px; margin-bottom: 1em; padding: 0px; vertical-align: baseline; word-wrap: break-word;">
<br /></div>
<div style="background-color: white; border: 0px; clear: both; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 18px; margin-bottom: 1em; padding: 0px; vertical-align: baseline; word-wrap: break-word;">
A: <span style="background-color: transparent;">You might try changing it to an apply-templates instead of a foreach. Something like the following should work.</span></div>
<div class="post-text" style="background-color: white; border: 0px; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 18px; margin: 0px 5px 5px 0px; padding: 0px; vertical-align: baseline; width: 660px;">
<pre style="background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;"><code style="border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline;"><xsl:template match="price">
<xsl:attribute name="std_bed_price">
<xsl:value-of select="@amount" />
</xsl:attribute>
</xsl:template>
</code></pre>
<div style="background-color: transparent; border: 0px; clear: both; margin-bottom: 1em; padding: 0px; vertical-align: baseline; word-wrap: break-word;">
And then call it like:</div>
<pre style="background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;"><code style="border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline;"><xsl:apply-template select="../../unit/service/price/[season/@name=$period_name]" />
</code></pre>
</div>
<span style="font-family: Arial, Liberation Sans, DejaVu Sans, sans-serif; font-size: x-small;"><span style="line-height: 12px;">or</span></span><div>
<span style="font-family: Arial, Liberation Sans, DejaVu Sans, sans-serif; font-size: x-small;"><span style="line-height: 12px;"><br /></span></span></div>
<div>
<pre style="background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;"><code style="border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline;">select="../../unit/service/price/season[./@name=$period_name]</code></pre>
</div>
</div>
Anonymoushttp://www.blogger.com/profile/15527294402156840684noreply@blogger.com0