<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>BizTalk &amp; Development Thoughts</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/momalek/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/momalek/feed.xml</link>
    <description>This is a blog about my experience with development specially for BizTalk ...</description>
    <lastBuildDate>Wed, 08 Apr 2015 15:41:08 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>TCP CICS transactions integration and automated rollback</title>
      <link>https://docs.microsoft.com/archive/blogs/momalek/tcp-cics-transactions-integration-and-automated-rollback</link>
      <pubDate>Mon, 12 Jan 2015 01:27:25 GMT</pubDate>
      <dc:creator><![CDATA[Mohamed M Malek]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/momalek/2015/01/12/tcp-cics-transactions-integration-and-automated-rollback/</guid>
      <description><![CDATA[Introduction       Integrating BizTalk applications with Mainframe programs can be done using many...]]></description>
      <content:encoded><![CDATA[<h1>Introduction    <p></p> </h1>  <p class="MsoNormal">Integrating BizTalk applications with Mainframe programs can be done using many methods. One of the most convenient methods is to use the TCP CICS integration model using the standard listener TRM or enhanced listener ELM program link. Both these methods requires installation of a concurrent server (listener) on the Mainframe to handle TCP and sockets communication. Host Integration Server comes packed with an example concurrent server. One problem that you might face when using this model is the case of a processing of a transaction on the Mainframe and while this processing is happening on the Mainframe the socket communication fails. In this case you will face a condition where the transaction is already done on the Mainframe but the application on BizTalk is not aware that the transaction is performed so if there is no mechanism against this then the same transaction can be executed twice. </p>  <p></p>  <p></p>  <h1>Discussion &amp; Resolution    <p></p> </h1>  <p class="MsoNormal">A resolution of this problem is to edit the concurrent server program on the Mainframe to issue a CICS ABEND in the case of a socket failure. This insures that if the response is not delivered to the application then the transaction would be rolled back on the Mainframe, this though requires that all Mainframe programs to be used should not implement any SYNCPOINT. </p>  <p></p>  <p></p>  <p class="MsoNormal">To change the HIS provided sample for the concurrent listener to implement this approach the following should be added to the program MSCOMTI.cbl in the “STANDARD-LISTENER” procedure and after processing the “WRITE-BUF-TO-SOCKET” procedure. </p>  <p></p>  <p></p>  <div style="border-top: windowtext 1pt solid; border-right: windowtext 1pt solid; border-bottom: windowtext 1pt solid; padding-bottom: 1pt; padding-top: 1pt; padding-left: 4pt; border-left: windowtext 1pt solid; padding-right: 4pt; mso-element: para-border-div; mso-border-alt: solid windowtext .5pt">   <p class="CodeBlock"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>PERFORM WRITE-BUF-TO-SOCKET THRU </p>    <p></p>    <p></p>    <p class="CodeBlock"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>WRITE-BUF-TO-SOCKET-EXIT </p>    <p></p>    <p></p>    <p class="CodeBlock"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>IF CHILD-SERVER-ERROR &lt; 0 THEN </p>    <p></p>    <p></p>    <p class="CodeBlock"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="mso-spacerun: yes">&#160;</span>MOVE SS-CLOSE-SOCKET TO NEXT-STATE </p>    <p></p>    <p></p>    <p class="CodeBlock"><span style="mso-tab-count: 1">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="mso-spacerun: yes">&#160;</span><span style="background: yellow; mso-highlight: yellow">MOVE 'Y'<span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>TO ABEND-STAT</span> </p>    <p></p>    <p></p>    <p class="CodeBlock"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>ELSE </p>    <p></p>    <p></p> </div>  <p class="MsoNormal">Then within the same procedure after the loop ends add the following code to issue the ABEND. </p>  <p></p>  <p></p>  <div style="border-top: windowtext 1pt solid; border-right: windowtext 1pt solid; border-bottom: windowtext 1pt solid; padding-bottom: 1pt; padding-top: 1pt; padding-left: 4pt; border-left: windowtext 1pt solid; padding-right: 4pt; mso-element: para-border-div; mso-border-alt: solid windowtext .5pt">   <p class="CodeBlock">IF ABEND-IS-REQUIRED THEN </p>    <p></p>    <p></p>    <p class="CodeBlock"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>MOVE TP-ABEND-1 TO TRACE-ID </p>    <p></p>    <p></p>    <p class="CodeBlock"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>PERFORM TRACE-POINTS THRU TRACE-POINTS-EXIT </p>    <p></p>    <p></p>    <p class="CodeBlock"><span style="mso-tab-count: 1">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="background: yellow; mso-highlight: yellow">EXEC CICS ABEND ABCODE('ABC') END-EXEC</span> </p>    <p></p>    <p></p>    <p class="CodeBlock">END-IF. </p>    <p></p>    <p></p> </div>  <p class="MsoNormal">This will make sure that the transaction on the Mainframe will rollback if no response can be delivered to the application due to any connectivity problems. </p>  <p></p>  <p></p>  <p class="MsoNormal">Full source of the customized listener is <a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/79/57/CicsTcpMsComtiCs_V11.cbl" original-url="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57/CicsTcpMsComtiCs_5F00_V11.cbl">here</a>. </p>]]></content:encoded>
    </item>
    <item>
      <title>Writing a custom HostApps ESB adapter provider to integrate ESB toolkit with a Mainframe</title>
      <link>https://docs.microsoft.com/archive/blogs/momalek/writing-a-custom-hostapps-esb-adapter-provider-to-integrate-esb-toolkit-with-a-mainframe</link>
      <pubDate>Sat, 10 Jan 2015 06:53:35 GMT</pubDate>
      <dc:creator><![CDATA[Mohamed M Malek]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/momalek/2015/01/10/writing-a-custom-hostapps-esb-adapter-provider-to-integrate-esb-toolkit-with-a-mainframe/</guid>
      <description><![CDATA[Adapter provider framework is how the ESB toolkit configures the off-ramps to send requests using...]]></description>
      <content:encoded><![CDATA[<p class="MsoNormal"><span lang="EN-US">Adapter provider framework is how the ESB toolkit configures the off-ramps to send requests using dynamic send ports. An adapter provider is an implementation of the base abstract class <b>BaseAdapterProvider</b>. The adapter provider is simply a component that is executed as part of the send pipeline to add the required context properties on the message before it is processed by the adapter on the dynamic send port to send the message. </span>    <p></p> </p>  <p></p>  <p class="MsoNormal"><span lang="EN-US">HostApps adapter is BizTalk way to communicate with Mainframe programs using CICS integration. To use this adapter as part of the BizTalk ESB toolkit then you will need to allow dynamic ports to be able to send requests to this adapter. The ESB way to do this is by implementing a custom adapter provider. </span>    <p></p> </p>  <p></p>  <p class="MsoNormal"><span lang="EN-US">The steps to implement a new custom adapter provider are simple. The following are the steps required to implement a HostApps adapter provider: </span>    <p></p> </p>  <p></p>  <ol>   <li>     <div class="MsoListParagraphCxSpFirst" style="text-indent: -18pt; mso-list: l0 level1 lfo1"><span lang="EN-US" style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">1-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US">Create a new C# class library DLL and strongly sign the DLL.          <p></p>       </span></div>   </li>    <li>     <div class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo1"><span lang="EN-US" style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">2-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US">Add references to the following DLLs          <p></p>       </span></div>   </li> </ol>  <p class="MsoListParagraphCxSpMiddle" style="margin-left: 72pt; text-indent: -18pt; mso-list: l0 level2 lfo1; mso-add-space: auto"><span lang="EN-US" style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">a.<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US">Microsoft.BizTalk.Messaging.dll </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="margin-left: 72pt; text-indent: -18pt; mso-list: l0 level2 lfo1; mso-add-space: auto"><span lang="EN-US" style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">b.<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US">Microsoft.BizTalk.Pipeline.dll </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="margin-left: 72pt; text-indent: -18pt; mso-list: l0 level2 lfo1; mso-add-space: auto"><span lang="EN-US" style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">c.<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US">Microsoft.Practices.ESB.Adapter.dll </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="margin-left: 72pt; text-indent: -18pt; mso-list: l0 level2 lfo1; mso-add-space: auto"><span lang="EN-US" style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">d.<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US">Microsoft.Practices.ESB.Itinerary.Pipelines.dll </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="margin-left: 72pt; text-indent: -18pt; mso-list: l0 level2 lfo1; mso-add-space: auto"><span lang="EN-US" style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">e.<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US">Microsoft.XLANGs.BaseTypes.dll </span>    <p></p> </p>  <p></p>  <ol>   <li>     <div class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo1"><span lang="EN-US" style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">3-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US">Add a new class with any name and inherit from <b>BaseAdapterProvider</b>           <p></p>       </span></div>   </li>    <li>     <div class="MsoListParagraphCxSpLast" style="text-indent: -18pt; mso-list: l0 level1 lfo1"><span lang="EN-US" style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">4-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US">Override the public properties <b>AdapterName</b> and <b>AdapterContextPropertyNamespace</b> and return any name for your adapter provider. The following is an example for the HostApps adapter provider.</span></div>   </li> </ol>  <p class="MsoListParagraphCxSpLast" style="text-indent: -18pt; mso-list: l0 level1 lfo1"><span lang="EN-US"></span>    <p></p> </p>  <p></p>  <div style="border-top: windowtext 1pt solid; border-right: windowtext 1pt solid; border-bottom: windowtext 1pt solid; padding-bottom: 1pt; padding-top: 1pt; padding-left: 4pt; border-left: windowtext 1pt solid; padding-right: 4pt; mso-element: para-border-div; mso-border-alt: solid windowtext .5pt">   <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">public</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">override</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">string</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> AdapterName </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>{ </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">get</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>{ </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">return</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">&quot;HostApps&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>} </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>} </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"></span>      <p>&#160;</p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">public</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">override</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">string</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> AdapterContextPropertyNamespace </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>{ </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">get</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>{ </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">return</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">&quot;HostApps&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>} </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>} </span>      <p></p>   </p>    <p></p> </div>  <p class="MsoListParagraphCxSpFirst"><span lang="EN-US"></span>    <p>&#160;</p> </p>  <p></p>  <ol>   <li>     <div class="MsoListParagraphCxSpLast" style="text-indent: -18pt; mso-list: l0 level1 lfo1"><span lang="EN-US" style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">5-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US" style="mso-bidi-language: ar-eg">Override the method <b>SetEndpoint</b> and do all your processing to add context properties required by the adapter. In the case of the HostApps adapter you need simply to add an undocumented context property called “<b>AdapterConfig</b>” with all properties required including the assembly mapping. The following is an example for full configuration to be set in this property</span></div>   </li> </ol>  <p class="MsoListParagraphCxSpLast" style="text-indent: -18pt; mso-list: l0 level1 lfo1"><span lang="EN-US" style="mso-bidi-language: ar-eg">.</span><span lang="EN-US"> </span>    <p></p> </p>  <p></p>  <div style="border-top: windowtext 1pt solid; border-right: windowtext 1pt solid; border-bottom: windowtext 1pt solid; padding-bottom: 1pt; padding-top: 1pt; padding-left: 4pt; border-left: windowtext 1pt solid; padding-right: 4pt; mso-element: para-border-div; mso-border-alt: solid windowtext .5pt">   <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">&lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">Config</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">xmlns:xsi</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">=</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">\&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">http://www.w3.org/2001/XMLSchema-instance\</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">xmlns:xsd</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">=</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">\&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">http://www.w3.org/2001/XMLSchema\</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160; </span>&lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">uri</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">Connection String</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">&lt;/</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">uri</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160; </span>&lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">PersistentConnections</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">Yes</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">&lt;/</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">PersistentConnections</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160; </span>&lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">Transactions</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">Yes</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">&lt;/</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">Transactions</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160; </span>&lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">SecurityOverrides</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">No</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">&lt;/</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">SecurityOverrides</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160; </span>&lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">Tracing</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">No</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">&lt;/</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">Tracing</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160; </span>&lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">AdvancedOverrides</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">No</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">&lt;/</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">AdvancedOverrides</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160; </span>&lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">AssemblyMappings</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">&amp;lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">?xml version=\&quot;1.0\&quot; encoding=\&quot;utf-8\&quot;?</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">&amp;gt;&amp;lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">mappings</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">&amp;gt;&amp;lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">mapping</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">&amp;gt;&amp;lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">assembly</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">&amp;gt;&amp;lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">![CDATA[C:\\Program Files\\Microsoft Host Integration Server 2013 SDK v1.0\\ApplicationIntegration\\WindowsInitiated\\InstallationVerification\\TiHostDefinitions\\NetClnt1\\bin\\NetClnt1.DLL]]</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">&amp;gt;&amp;lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">/assembly</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">&amp;gt;&amp;lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">connectionString</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">&amp;gt;&amp;lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">![CDATA[CodePage=37;Name=TrmLink;TimeOut=0;SecurityFromClientContext=False;IPAddress=127.0.0.1;TCPPorts=7508;ConcurrentServerTransactionId=MSCS]]</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">&amp;gt;&amp;lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">/connectionString</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">&amp;gt;&amp;lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">/mapping</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">&amp;gt;&amp;lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">/mappings</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">&amp;gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">&lt;/</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">AssemblyMappings</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; padding-right: 0cm; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; line-height: 107%; mso-highlight: white; mso-ansi-language: en-gb">&lt;/</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; line-height: 107%; mso-highlight: white; mso-ansi-language: en-gb">Config</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; line-height: 107%; mso-highlight: white; mso-ansi-language: en-gb">&gt;</span><span lang="EN-US"> </span>      <p></p>   </p>    <p></p> </div>  <ol>   <li>     <div class="MsoListParagraphCxSpFirst" style="text-indent: -18pt; mso-list: l0 level1 lfo1"><span lang="EN-US" style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">6-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US">You can implement the way to take all these properties any way you want but the below is a full example of how to implement this.          <p></p>       </span></div>   </li> </ol>  <p class="MsoListParagraphCxSpLast"><span lang="EN-US"></span>    <p>&#160;</p> </p>  <p></p>  <div style="border-top: windowtext 1pt solid; border-right: windowtext 1pt solid; border-bottom: windowtext 1pt solid; padding-bottom: 1pt; padding-top: 1pt; padding-left: 1pt; border-left: windowtext 1pt solid; padding-right: 1pt; mso-element: para-border-div; mso-border-alt: solid windowtext .5pt">   <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">public</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">override</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">void</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> SetEndpoint(</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #2b91af; mso-highlight: white; mso-ansi-language: en-gb">Dictionary</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">string</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">, </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">string</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&gt; resolverDictionary, Microsoft.BizTalk.Message.Interop.IBaseMessageContext pipelineContext) </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>{ </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">try</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>{ </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">if</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> (resolverDictionary == </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">null</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">) </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">throw</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">new</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #2b91af; mso-highlight: white; mso-ansi-language: en-gb">ArgumentNullException</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">(</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">&quot;resolverDictionary&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">); </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">if</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> (pipelineContext == </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">null</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">) </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">throw</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">new</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #2b91af; mso-highlight: white; mso-ansi-language: en-gb">ArgumentNullException</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">(</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">&quot;pipelineContext&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">); </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: green; mso-highlight: white; mso-ansi-language: en-gb">// Set the end point</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">base</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">.SetEndpoint(resolverDictionary, pipelineContext); </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: green; mso-highlight: white; mso-ansi-language: en-gb">// Get the endpoint configuration </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"></span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">string</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> endpointConfig = resolverDictionary[</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">&quot;Resolver.EndpointConfig&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">]; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: green; mso-highlight: white; mso-ansi-language: en-gb">// Split the values</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: green; mso-highlight: white; mso-ansi-language: en-gb">// endpoint in the following format &quot;key1=val1#key2=val2#....&quot;;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"></span>      <p>&#160;</p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: green; mso-highlight: white; mso-ansi-language: en-gb">// Here the assembly mapping will be the last element</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: green; mso-highlight: white; mso-ansi-language: en-gb">// We used the '&amp;' instead of the ';' due to that AssemblyMappings will contains ';'</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"></span>      <p>&#160;</p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #2b91af; mso-highlight: white; mso-ansi-language: en-gb">Config</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> cng = </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">new</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #2b91af; mso-highlight: white; mso-ansi-language: en-gb">Config</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">(); </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">string</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> elemname, elemvalue; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">int</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> i; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">var</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> configelements = endpointConfig.Split(</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">'&amp;'</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">); </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">foreach</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> (</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">string</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> elem </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">in</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> configelements) </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>{ </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>i = elem.IndexOf(</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">'='</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">); </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">if</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> (i == -1) </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">continue</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>elemname = elem.Substring(0, i).Trim(); </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="mso-spacerun: yes">&#160;&#160;&#160; </span>elemvalue = elem.Substring(i + 1).Trim(); </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">switch</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> (elemname) </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>{ </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">case</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">&quot;Uri&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">: </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>cng.uri = elemvalue; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">break</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">case</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">&quot;PersistentConnections&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">: </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>cng.PersistentConnections = elemvalue; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">break</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">case</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">&quot;Transactions&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">: </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>cng.Transactions = elemvalue; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="mso-spacerun: yes">&#160;</span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">break</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">case</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">&quot;SecurityOverrides&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">: </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>cng.SecurityOverrides = elemvalue; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">break</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">case</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">&quot;AdvancedOverrides&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">: </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160; </span>cng.AdvancedOverrides = elemvalue; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">break</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">case</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">&quot;AssemblyMappings&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">: </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>cng.AssemblyMappings = elemvalue; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">break</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">case</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">&quot;Tracing&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">: </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>cng.Tracing = elemvalue; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">break</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>} </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>} </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"></span>      <p>&#160;</p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #2b91af; mso-highlight: white; mso-ansi-language: en-gb">StringBuilder</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> Builder = </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">new</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #2b91af; mso-highlight: white; mso-ansi-language: en-gb">StringBuilder</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">(); </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #2b91af; mso-highlight: white; mso-ansi-language: en-gb">StringWriter</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> Writer = </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">new</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #2b91af; mso-highlight: white; mso-ansi-language: en-gb">StringWriter</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">(Builder); </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #2b91af; mso-highlight: white; mso-ansi-language: en-gb">XmlSerializer</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> serializer = </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">new</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #2b91af; mso-highlight: white; mso-ansi-language: en-gb">XmlSerializer</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">(cng.GetType()); </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>serializer.Serialize(Writer, cng); </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>Writer.Flush(); </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">string</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> configStr = Builder.ToString(); </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">string</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> AdapterConfigNamespace = </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">&quot;http://microsoft.com/HostApplications/TI/WIP/Properties&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"></span>      <p>&#160;</p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>pipelineContext.Write(</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">&quot;AdapterConfig&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">, AdapterConfigNamespace, configStr); </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>} </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">catch</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">(</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #2b91af; mso-highlight: white; mso-ansi-language: en-gb">Exception</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> ex) </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>{ </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>} </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 1.0pt 1.0pt 1.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>} </span>      <p></p>   </p>    <p></p> </div>  <p class="MsoListParagraphCxSpFirst"><span lang="EN-US"></span>    <p>&#160;</p> </p>  <p></p>  <ol>   <li>     <div class="MsoListParagraphCxSpLast" style="text-indent: -18pt; mso-list: l0 level1 lfo1"><span lang="EN-US" style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">7-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US">Where the Config class is a just a helper class to allow serialization of the properties to XML and it is as follows.</span></div>   </li> </ol>  <p class="MsoListParagraphCxSpLast" style="text-indent: -18pt; mso-list: l0 level1 lfo1"><span lang="EN-US"></span>    <p></p> </p>  <p></p>  <div style="border-top: windowtext 1pt solid; border-right: windowtext 1pt solid; border-bottom: windowtext 1pt solid; padding-bottom: 1pt; padding-top: 1pt; padding-left: 4pt; border-left: windowtext 1pt solid; padding-right: 4pt; mso-element: para-border-div; mso-border-alt: solid windowtext .5pt">   <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">public</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">class</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #2b91af; mso-highlight: white; mso-ansi-language: en-gb">Config</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160; </span>{ </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">public</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> Config() </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>{ </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>uri = </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">&quot;Connection String&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>PersistentConnections = </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">&quot;Yes&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>Transactions = </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">&quot;Yes&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>SecurityOverrides = </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">&quot;No&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>Tracing = </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">&quot;No&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>AdvancedOverrides = </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">&quot;No&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>AssemblyMappings = </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">&quot;&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>} </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">public</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">string</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> uri { </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">get</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">; </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">set</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">; } </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">public</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">string</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> PersistentConnections { </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">get</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">; </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">set</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">; } </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">public</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">string</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> Transactions { </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">get</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">; </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">set</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">; } </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">public</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">string</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> SecurityOverrides { </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">get</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">; </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">set</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">; } </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">public</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">string</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> Tracing { </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">get</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">; </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">set</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">; } </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">public</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">string</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> AdvancedOverrides { </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">get</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">; </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">set</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">; } </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">public</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">string</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> AssemblyMappings { </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">get</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">; </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">set</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">; } </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160; </span>} </span>      <p></p>   </p>    <p></p> </div>  <p class="MsoListParagraphCxSpFirst"><span lang="EN-US"></span>    <p>&#160;</p> </p>  <p></p>  <ol>   <li>     <div class="MsoListParagraphCxSpLast" style="text-indent: -18pt; mso-list: l0 level1 lfo1"><span lang="EN-US" style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">8-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US">Then create the manifest file as follows to allow development inside the itinerary designer.</span></div>   </li> </ol>  <p class="MsoListParagraphCxSpLast" style="text-indent: -18pt; mso-list: l0 level1 lfo1"><span lang="EN-US"></span>    <p></p> </p>  <p></p>  <div style="border-top: windowtext 1pt solid; border-right: windowtext 1pt solid; border-bottom: windowtext 1pt solid; padding-bottom: 1pt; padding-top: 1pt; padding-left: 4pt; border-left: windowtext 1pt solid; padding-right: 4pt; mso-element: para-border-div; mso-border-alt: solid windowtext .5pt">   <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">&lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">adapterPropertyManifest</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">adapterName</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">=</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">TI</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160; </span>&lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">aliases</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160; </span>&lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">alias</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">name</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">=</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">tiPropertySchemas</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">value</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">=</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">NBE.MW.Common.Schemas, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b504e32a0298c59a</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> /&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160; </span>&lt;/</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">aliases</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160; </span>&lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">properties</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160; </span>&lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">property</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">name</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">=</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">uri</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">type</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">=</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">HostApps.uri</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">description</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">=</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">Always set to Connection String</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">assembly</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">=</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">tiPropertySchemas</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> /&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160; </span>&lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">property</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">name</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">=</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">PersistentConnections</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">type</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">=</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">HostApps.PersistentConnections</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">description</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">=</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">assembly</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">=</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">tiPropertySchemas</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> /&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160; </span>&lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">property</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">name</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">=</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">Transactions</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">type</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">=</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">HostApps.Transactions</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">description</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">=</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">assembly</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">=</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">tiPropertySchemas</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> /&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160; </span>&lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">property</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">name</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">=</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">SecurityOverrides</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">type</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">=</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">HostApps.SecurityOverrides</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">description</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">=</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">assembly</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">=</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">tiPropertySchemas</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> /&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160; </span>&lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">property</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">name</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">=</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">Tracing</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">type</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">=</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">HostApps.Tracing</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">description</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">=</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">assembly</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">=</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">tiPropertySchemas</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> /&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160; </span>&lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">property</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">name</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">=</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">AdvancedOverrides</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">type</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">=</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">HostApps.AdvancedOverrides</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">description</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">=</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">assembly</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">=</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">tiPropertySchemas</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> /&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160;&#160;&#160; </span>&lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">property</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">name</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">=</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">AssemblyMappings</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">type</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">=</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">HostApps.AssemblyMappings</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">description</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">=</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">assembly</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">=</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">tiPropertySchemas</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> /&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"><span style="mso-spacerun: yes">&#160; </span>&lt;/</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">properties</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">&lt;/</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">adapterPropertyManifest</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span>      <p></p>   </p>    <p></p> </div>  <p class="MsoListParagraphCxSpFirst"><span lang="EN-US"></span>    <p>&#160;</p> </p>  <p></p>  <ol>   <li>     <div class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo1"><span lang="EN-US" style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">9-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US">Copy the manifest file to the folder “C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\Microsoft.Practices.Services.Itinerary.DslPackage” on any development machine.          <p></p>       </span></div>   </li>    <li>     <div class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo1"><span lang="EN-US" style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">10-<span style="font: 7pt &quot;Times New Roman&quot;">&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US">Build the DLL and then GAC it.          <p></p>       </span></div>   </li>    <li>     <div class="MsoListParagraphCxSpLast" style="text-indent: -18pt; mso-list: l0 level1 lfo1"><span lang="EN-US" style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">11-<span style="font: 7pt &quot;Times New Roman&quot;">&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US">Add the following line to the Esb.Config file          <p></p>       </span></div>   </li> </ol>  <p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; text-autospace: ; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">&lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-ansi-language: en-gb">adapterProvider</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">name</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">=</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">HostApps</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">type</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">=</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">MyDll.AdapterProviders.HostAppsAdapterProvider, MyDll.AdapterProviders, Version=1.0.0.0, Culture=neutral, PublicKeyToken=32323232</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white; mso-ansi-language: en-gb">moniker</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">=</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb">HostApps</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-ansi-language: en-gb"> /&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-ansi-language: en-gb"> </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpFirst"><span style="mso-ansi-language: en-gb"></span>    <p>&#160;</p> </p>  <p></p>  <ol>   <li>     <div class="MsoListParagraphCxSpLast" style="text-indent: -18pt; mso-list: l0 level1 lfo1"><span lang="EN-US" style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">12-<span style="font: 7pt &quot;Times New Roman&quot;">&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US">Now open the itinerary designer and you will be able to see the new adapter provider in the list of adapters for the static resolver to configure the required properties. Also you can use the same configuration using any dynamic resolver such as BRE resolver.          <p></p>       </span></div>   </li> </ol>  <p class="MsoNormal"><span lang="EN-US">Happy BizTalking </span><span lang="EN-US" style="font-family: wingdings; mso-ascii-font-family: calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: calibri; mso-hansi-theme-font: minor-latin; mso-char-type: symbol; mso-symbol-font-family: wingdings"><span style="mso-char-type: symbol; mso-symbol-font-family: wingdings">J</span></span><span lang="EN-US"> </span></p>]]></content:encoded>
    </item>
    <item>
      <title>Using Host Integration Server COBOL Import Wizard</title>
      <link>https://docs.microsoft.com/archive/blogs/momalek/using-host-integration-server-cobol-import-wizard</link>
      <pubDate>Sat, 07 Jun 2014 03:37:04 GMT</pubDate>
      <dc:creator><![CDATA[Mohamed M Malek]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/momalek/2014/06/07/using-host-integration-server-cobol-import-wizard/</guid>
      <description><![CDATA[Introduction           Host Integration Server allows application integration with the Mainframe...]]></description>
      <content:encoded><![CDATA[<h1><span lang="EN-US" style="mso-ansi-language: en-us">Introduction      <p></p>   </span></h1>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us">Host Integration Server allows application integration with the Mainframe system using the Transaction Integrator (TI) component. The method to implement this integration involves building what is called a TI assembly. TI Assembly is actually built using the definition of the interface between the Mainframe program and the definition of the input and output COM areas. This involves in many cases reading large COBOL files and manually adding them to the TI library. The HIS development tools have added the import utility to simplify importing from COBOL copy book files but as we will see in this post this still have many challenges and I will provide in this post a systematic approach to facilitate importing a COBOL copy book file. </span>    <p></p> </p>  <p></p>  <h1><span lang="EN-US" style="mso-ansi-language: en-us">Discussion      <p></p>   </span></h1>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us">COBOL copy books are the way Mainframe programs define the inputs and outputs. You can think of these as the signature of C# methods. These are mainly text files with specific structure. You can find more details about the definition of the structure of the COBOL copy book files <a href="http://en.wikipedia.org/wiki/COBOL">here</a>. A COBOL copy book file would look something like the below: </span>    <p></p> </p>  <p></p>  <p class="MsoNormal"><span style="mso-fareast-language: en-gb; mso-no-proof: yes"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/4101.clip_image002_6A77165C.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/4101.clip_5F00_image002_5F00_6A77165C.jpg"><img title="clip_image002" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image002" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/1805.clip_image002_thumb_49863466.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/1805.clip_5F00_image002_5F00_thumb_5F00_49863466.jpg" width="756" height="328" v:shapes="Picture_x0020_1" /></a></span><span lang="EN-US" style="mso-ansi-language: en-us"> </span>    <p></p> </p>  <p></p>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us">Now usually you would receive two COM area definitions like the above, one for the input COM area and another for the output (if they are different) from the Mainframe team. So the challenge here is how to use the HIS import utility to import these into one method in the TI assembly. Usually when you try to import the import wizard would crash and would not give you enough description of where was the problem so you would end up adding these things manually and that would be ok for smaller programs (like the above) but for more complex programs where you have more than 20-50 fields in input and outputs that would be a very tedious task. The section below would provide a simple approach and walkthrough on how to import these files and use the import wizard successfully every time. </span>    <p></p> </p>  <p></p>  <h1><span lang="EN-US" style="mso-ansi-language: en-us">Solution &amp; Walkthrough      <p></p>   </span></h1>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us">The HIS import wizard is very sensitive to the spaces and structure of the COBOL copy book file. So for example a following misalignment would fail the import. </span>    <p></p> </p>  <p></p>  <p class="MsoNormal"><span style="mso-fareast-language: en-gb; mso-no-proof: yes"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/1411.clip_image004_3B4A4C27.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/1411.clip_5F00_image004_5F00_3B4A4C27.jpg"><img title="clip_image004" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image004" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/6558.clip_image004_thumb_06404DA8.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/6558.clip_5F00_image004_5F00_thumb_5F00_06404DA8.jpg" width="756" height="319" v:shapes="Picture_x0020_2" /></a></span><span lang="EN-US" style="mso-ansi-language: en-us"> </span>    <p></p> </p>  <p></p>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us">So the first thing you need to do when dealing with COBOL copy books is to align them perfectly. To do this I recommend using a tool such as Notepad ++ as it understands this type of file and it actually shows you very helpful vertical guidelines. </span>    <p></p> </p>  <p></p>  <p class="MsoNormal"><span style="mso-fareast-language: en-gb; mso-no-proof: yes"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/0724.clip_image005_110035AE.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/0724.clip_5F00_image005_5F00_110035AE.png"><img title="clip_image005" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image005" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/3806.clip_image005_thumb_62A940B1.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/3806.clip_5F00_image005_5F00_thumb_5F00_62A940B1.png" width="713" height="306" v:shapes="Picture_x0020_3" /></a></span><span lang="EN-US" style="mso-ansi-language: en-us"> </span>    <p></p> </p>  <p></p>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us">So this simplify spotting misalignments. </span>    <p></p> </p>  <p></p>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us">The second thing you need to do is to merge the inputs and outputs COM area definitions in one COBOL copy book file while aligning the outputs as if it is part of the input and I will show you later how these would be separated. Just give it a name with the same program name while adding any suffix such as “-OUT” to it. Please also note that every line has to be terminated with a dot. </span>    <p></p> </p>  <p></p>  <p class="MsoNormal"><span style="mso-fareast-language: en-gb; mso-no-proof: yes"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/0272.clip_image006_01EE7836.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/0272.clip_5F00_image006_5F00_01EE7836.png"><img title="clip_image006" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image006" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/2275.clip_image006_thumb_688905AC.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/2275.clip_5F00_image006_5F00_thumb_5F00_688905AC.png" width="713" height="306" v:shapes="Picture_x0020_4" /></a></span><span lang="EN-US" style="mso-ansi-language: en-us"> </span>    <p></p> </p>  <p></p>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us">Now that you have created and saved the COBOL copy book file open Visual Studio and create a new client TI library in a TI project. Now import it as follows: </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpFirst" style="text-indent: -18pt; mso-list: l0 level1 lfo1"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">1-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US" style="mso-ansi-language: en-us">     <br /></span><span style="mso-fareast-language: en-gb; mso-no-proof: yes"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/2627.clip_image007_20CA0D76.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/2627.clip_5F00_image007_5F00_20CA0D76.png"><img title="clip_image007" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image007" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/4606.clip_image007_thumb_70A2C2B2.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/4606.clip_5F00_image007_5F00_thumb_5F00_70A2C2B2.png" width="566" height="151" v:shapes="Picture_x0020_5" /></a></span><span lang="EN-US" style="mso-ansi-language: en-us"> </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo1"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">2-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US" style="mso-ansi-language: en-us">     <br /></span><span style="mso-fareast-language: en-gb; mso-no-proof: yes"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/5633.clip_image009_4485C5C1.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/5633.clip_5F00_image009_5F00_4485C5C1.jpg"><img title="clip_image009" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image009" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/6232.clip_image009_thumb_114C1D09.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/6232.clip_5F00_image009_5F00_thumb_5F00_114C1D09.jpg" width="757" height="534" v:shapes="Picture_x0020_7" /></a></span><span lang="EN-US" style="mso-ansi-language: en-us"> </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo1"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">3-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US" style="mso-ansi-language: en-us">     <br /></span><span style="mso-fareast-language: en-gb; mso-no-proof: yes"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/7737.clip_image010_1E488DCB.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/7737.clip_5F00_image010_5F00_1E488DCB.png"><img title="clip_image010" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image010" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/0312.clip_image010_thumb_02A69286.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/0312.clip_5F00_image010_5F00_thumb_5F00_02A69286.png" width="682" height="482" v:shapes="Picture_x0020_8" /></a></span><span lang="EN-US" style="mso-ansi-language: en-us"> </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo1"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">4-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US" style="mso-ansi-language: en-us">     <br /></span><span style="mso-fareast-language: en-gb; mso-no-proof: yes"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/3808.clip_image012_39174488.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/3808.clip_5F00_image012_5F00_39174488.jpg"><img title="clip_image012" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image012" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/6175.clip_image012_thumb_1F459F0A.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/6175.clip_5F00_image012_5F00_thumb_5F00_1F459F0A.jpg" width="757" height="534" v:shapes="Picture_x0020_9" /></a></span><span lang="EN-US" style="mso-ansi-language: en-us"> </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo1"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">5-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US" style="mso-ansi-language: en-us">     <br /></span><span style="mso-fareast-language: en-gb; mso-no-proof: yes"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/7288.clip_image013_70827718.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/7288.clip_5F00_image013_5F00_70827718.png"><img title="clip_image013" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image013" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/7607.clip_image013_thumb_0DF758D6.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/7607.clip_5F00_image013_5F00_thumb_5F00_0DF758D6.png" width="681" height="482" v:shapes="Picture_x0020_10" /></a></span><span lang="EN-US" style="mso-ansi-language: en-us"> </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo1"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">6-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US" style="mso-ansi-language: en-us">     <br /></span><span style="mso-fareast-language: en-gb; mso-no-proof: yes"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/2335.clip_image014_0B512DD6.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/2335.clip_5F00_image014_5F00_0B512DD6.png"><img title="clip_image014" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image014" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/8228.clip_image014_thumb_41C1DFD8.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/8228.clip_5F00_image014_5F00_thumb_5F00_41C1DFD8.png" width="681" height="481" v:shapes="Picture_x0020_11" /></a></span><span lang="EN-US" style="mso-ansi-language: en-us"> </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo1"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">7-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US" style="mso-ansi-language: en-us">     <br /></span><span style="mso-fareast-language: en-gb; mso-no-proof: yes"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/1220.clip_image016_3F1BB4D8.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/1220.clip_5F00_image016_5F00_3F1BB4D8.jpg"><img title="clip_image016" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image016" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/5381.clip_image016_thumb_6C333257.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/5381.clip_5F00_image016_5F00_thumb_5F00_6C333257.jpg" width="757" height="534" v:shapes="Picture_x0020_12" /></a></span><span lang="EN-US" style="mso-ansi-language: en-us"> </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpLast" style="text-indent: -18pt; mso-list: l0 level1 lfo1"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">8-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US" style="mso-ansi-language: en-us">Now the method is created as follows:      <br /></span><span style="mso-fareast-language: en-gb; mso-no-proof: yes"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/4130.clip_image018_4B425061.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/4130.clip_5F00_image018_5F00_4B425061.jpg"><img title="clip_image018" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image018" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/1462.clip_image018_thumb_56023867.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/1462.clip_5F00_image018_5F00_thumb_5F00_56023867.jpg" width="332" height="469" v:shapes="Picture_x0020_13" /></a></span><span lang="EN-US" style="mso-ansi-language: en-us"> </span>    <p></p> </p>  <p></p>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us"></span></p>]]></content:encoded>
    </item>
    <item>
      <title>Host Integration Server 2013 TI Assembly GAC deployment Walkthrough</title>
      <link>https://docs.microsoft.com/archive/blogs/momalek/host-integration-server-2013-ti-assembly-gac-deployment-walkthrough</link>
      <pubDate>Tue, 27 May 2014 02:42:13 GMT</pubDate>
      <dc:creator><![CDATA[Mohamed M Malek]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/momalek/2014/05/27/host-integration-server-2013-ti-assembly-gac-deployment-walkthrough/</guid>
      <description><![CDATA[Introduction           Host Integration Server (HIS) is used to integrate with Legacy Host...]]></description>
      <content:encoded><![CDATA[<h1><span lang="EN-US" style="mso-ansi-language: en-us">Introduction      <p></p>   </span></h1>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us">Host Integration Server (HIS) is used to integrate with Legacy Host technology. One of the Host integration scenarios is to call Mainframe programs or transactions using a component in HIS called Transaction Integrator (TI). The way to use TI is to create what is called a TI assembly and then use this to call the Host systems from the Windows System. The TI assembly can be either used in a folder or deployed to the Global Assembly Cache (GAC). I wanted to deploy the assembly to the GAC to make sure it is available from anywhere in the integration solution and because I had strong named assemblies in the solution that required to reference this assembly. This blog post will provide the challenge and problems faced while trying to do this and how these were resolved to finally deploy the TI assembly to the GAC and use it from there in a BizTalk solution. </span>    <p></p> </p>  <p></p>  <h1><span lang="EN-US" style="mso-ansi-language: en-us">Discussion      <p></p>   </span></h1>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us">Host Integration Server (HIS) is used to integrate with Legacy Host technology. One of the Host integration scenarios is to call Mainframe programs or transactions using a component in HIS called Transaction Integrator (TI). TI technology has been around for a while (it was used to be called COMTI) but it went through many changes and updates. In HIS 2013 the TI component undergone major changes. There are two scenarios to use the TI, either Host Initiated Processing (HIP) where the call is initiated from the Host server to the Windows server, in this scenario the Windows server acts as the backend and the Host is acting as the channel or initiating system. The other scenario is Windows Initiated Processing (WIP) where the call is initiated from the Windows platform and it is routed to the Host system. The diagram below illustrates this scenario. </span>    <p></p> </p>  <p></p>  <p class="MsoNormal" style="page-break-after: avoid; text-align: center" align="center"><span style="mso-fareast-language: en-gb; mso-no-proof: yes"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/3301.clip_image002_05797B87.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/3301.clip_5F00_image002_5F00_05797B87.jpg"><img title="clip_image002" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image002" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/7043.clip_image002_thumb_09865A0A.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/7043.clip_5F00_image002_5F00_thumb_5F00_09865A0A.jpg" width="543" height="370" v:shapes="Picture_x0020_2" /></a></span> </p>  <p></p>  <p></p>  <p class="MsoCaption" style="text-align: center" align="center">Figure <span style="mso-no-proof: yes">1</span><span lang="EN-US" style="mso-ansi-language: en-us">: Windows Initiated Processing Scenario </span>    <p></p> </p>  <p></p>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us">To be able to implement a WIP scenario you need to implement what is called a TI assembly. This assembly actually governs the interface and mapping of parameters between the Windows system and the Host system. The way you create this assembly (as this is a special assembly type) is using the TI project template that ships with the HIS 2013. I am not going to describe how to create the TI assembly as you can find many references on how to do this in the HIS 2013 SDK <a href="http://www.microsoft.com/en-us/download/details.aspx?id=41557">here</a> and on MSDN <a href="http://msdn.microsoft.com/en-us/library/dd786670(v=bts.10).aspx">here</a>. </span>    <p></p> </p>  <p></p>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us">Once you have created the TI assembly you will have the following view in VS 2012. </span>    <p></p> </p>  <p></p>  <p class="MsoNormal" style="page-break-after: avoid; text-align: center" align="center"><span style="mso-fareast-language: en-gb; mso-no-proof: yes"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/4760.clip_image004_0269AE43.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/4760.clip_5F00_image004_5F00_0269AE43.jpg"><img title="clip_image004" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image004" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/2642.clip_image004_thumb_78A446CA.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/2642.clip_5F00_image004_5F00_thumb_5F00_78A446CA.jpg" width="756" height="144" v:shapes="Picture_x0020_1" /></a></span> </p>  <p></p>  <p></p>  <p class="MsoCaption" style="text-align: center" align="center">Figure <span style="mso-no-proof: yes">2</span><span lang="EN-US" style="mso-ansi-language: en-us">: TI Assembly in VS 2012 </span>    <p></p> </p>  <p></p>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us">Now to be able to deploy an assembly in the GAC you need to have that assembly signed with a key and then would have a strong name. If you click on the Library node (root node in the above figure) and check the properties you will see that it has the following properties: </span>    <p></p> </p>  <p></p>  <p class="MsoNormal" style="page-break-after: avoid; text-align: center" align="center"><span style="mso-fareast-language: en-gb; mso-no-proof: yes"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/4670.clip_image006_6EDEDF52.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/4670.clip_5F00_image006_5F00_6EDEDF52.jpg"><img title="clip_image006" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image006" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/7840.clip_image006_thumb_278C1A11.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/7840.clip_5F00_image006_5F00_thumb_5F00_278C1A11.jpg" width="744" height="618" v:shapes="Picture_x0020_3" /></a></span> </p>  <p></p>  <p></p>  <p class="MsoCaption" style="text-align: center" align="center">Figure <span style="mso-no-proof: yes">3</span><span lang="EN-US" style="mso-ansi-language: en-us">: TI Library Properties </span>    <p></p> </p>  <p></p>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us">The property I am interested in is the KeyFile property which is according to the documentation if you provide a Key file in this property then the generated assembly would be signed with this key and would have a strong name (sweet). Unfortunately for some reason this does not work as expected and I could not get it to work and the assembly generated is always not signed. </span>    <p></p> </p>  <p></p>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us">I have investigated many other options to sign the assembly after being compiled and this is doable but I wanted something more streamed and easier to be done if I needed to re-generate the assembly. </span>    <p></p> </p>  <p></p>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us">Once I signed the assembly (as I will show you in the next section) and GACed it. When I create a BizTalk port using the BAHA adapter and try to configure it with the GACed assembly I found that the dialog to select the assembly from the GAC is always empty! <span style="mso-spacerun: yes">&#160;</span>As per the below figure. </span>    <p></p> </p>  <p></p>  <p class="MsoNormal" style="page-break-after: avoid; text-align: center" align="center"><span style="mso-fareast-language: en-gb; mso-no-proof: yes"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/5621.clip_image007_79352514.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/5621.clip_5F00_image007_5F00_79352514.png"><img title="clip_image007" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image007" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/5670.clip_image007_thumb_16AA06D2.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/5670.clip_5F00_image007_5F00_thumb_5F00_16AA06D2.png" width="792" height="551" v:shapes="Picture_x0020_4" /></a></span> </p>  <p></p>  <p></p>  <p class="MsoCaption" style="text-align: center" align="center">Figure <span style="mso-no-proof: yes">4</span><span lang="EN-US" style="mso-ansi-language: en-us">: Select Assembly from GAC form </span>    <p></p> </p>  <p></p>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us">The way to resolve also this issue and finally to configure the GACed assembly will be also presented in the following section. </span>    <p></p> </p>  <p></p>  <h1><span lang="EN-US" style="mso-ansi-language: en-us">Solution &amp; Walkthrough      <p></p>   </span></h1>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us">So let’s get to the way to get this working. The steps are as follows: </span>    <p></p> </p>  <p></p>  <h2><span lang="EN-US" style="mso-ansi-language: en-us">Part 1: GAC the TI Assembly      <p></p>   </span></h2>  <p class="MsoListParagraphCxSpFirst" style="text-indent: -18pt; mso-list: l1 level1 lfo1"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">1-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US" style="mso-ansi-language: en-us">Create the TI Assembly as you need and configure the calling model of the assembly to be “DirectCall, WCF, WS, BAHA”      <br /></span><span style="mso-fareast-language: en-gb; mso-no-proof: yes"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/7510.clip_image009_25E06F9F.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/7510.clip_5F00_image009_5F00_25E06F9F.jpg"><img title="clip_image009" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image009" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/5875.clip_image009_thumb_1C1B0827.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/5875.clip_5F00_image009_5F00_thumb_5F00_1C1B0827.jpg" width="655" height="192" v:shapes="Picture_x0020_5" /></a></span><span lang="EN-US" style="mso-ansi-language: en-us"> </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l1 level1 lfo1"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">2-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US" style="mso-ansi-language: en-us">Now in the same properties make sure you have set the Debug property to “True”      <br /></span><span style="mso-fareast-language: en-gb; mso-no-proof: yes"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/3757.clip_image011_27472322.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/3757.clip_5F00_image011_5F00_27472322.jpg"><img title="clip_image011" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image011" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/3716.clip_image011_thumb_4B6F0E62.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/3716.clip_5F00_image011_5F00_thumb_5F00_4B6F0E62.jpg" width="633" height="243" v:shapes="Picture_x0020_6" /></a></span><span lang="EN-US" style="mso-ansi-language: en-us"> </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l1 level1 lfo1"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">3-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US" style="mso-ansi-language: en-us">Now save the TI assembly and you will find the following are the generated artifacts in the output folder:      <br /></span><span style="mso-fareast-language: en-gb; mso-no-proof: yes"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/8867.clip_image013_16650FE3.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/8867.clip_5F00_image013_5F00_16650FE3.jpg"><img title="clip_image013" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image013" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/5280.clip_image013_thumb_082927A4.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/5280.clip_5F00_image013_5F00_thumb_5F00_082927A4.jpg" width="757" height="485" v:shapes="Picture_x0020_7" /></a></span><span lang="EN-US" style="mso-ansi-language: en-us"> </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l1 level1 lfo1"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">4-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US" style="mso-ansi-language: en-us">Now take notice of the generated CS file marked above. Now create a new class library project and name it as you see fit. In that Class library project make sure that the .NET version is set to 4.0 at least (as HIS 2013 is upgraded to .Net 4.0) and then add the generated CS file to that project ( you might even add it as a link to make sure if the CS file is re-generated it is automatically updated in the class library project)      <br /></span><span style="mso-fareast-language: en-gb; mso-no-proof: yes"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/6786.clip_image015_12E90FAA.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/6786.clip_5F00_image015_5F00_12E90FAA.jpg"><img title="clip_image015" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image015" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/6746.clip_image015_thumb_3710FAEA.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/6746.clip_5F00_image015_5F00_thumb_5F00_3710FAEA.jpg" width="407" height="239" v:shapes="Picture_x0020_8" /></a></span><span lang="EN-US" style="mso-ansi-language: en-us"> </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l1 level1 lfo1"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">5-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US" style="mso-ansi-language: en-us">Now make sure you add the following line to the AssemblyInfo.cs      <br /></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; line-height: 107%; mso-highlight: white">[</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; line-height: 107%; mso-highlight: white">assembly</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; line-height: 107%; mso-highlight: white">: System.</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #2b91af; line-height: 107%; mso-highlight: white">CLSCompliant</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; line-height: 107%; mso-highlight: white">(</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; line-height: 107%; mso-highlight: white">true</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; line-height: 107%; mso-highlight: white">)]</span><span lang="EN-US" style="mso-ansi-language: en-us"> </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l1 level1 lfo1"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">6-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US" style="mso-ansi-language: en-us">Now go to the properties of the class library and make this library a signed library as you do with any C# library      <br /></span><span style="mso-fareast-language: en-gb; mso-no-proof: yes"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/3060.clip_image016_5F4333FC.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/3060.clip_5F00_image016_5F00_5F4333FC.png"><img title="clip_image016" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image016" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/8015.clip_image016_thumb_4AC0752F.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/8015.clip_5F00_image016_5F00_thumb_5F00_4AC0752F.png" width="777" height="462" v:shapes="Picture_x0020_9" /></a></span><span lang="EN-US" style="mso-ansi-language: en-us"> </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l1 level1 lfo1"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">7-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US" style="mso-ansi-language: en-us">Add references to the following assemblies:      <br /></span><span style="mso-fareast-language: en-gb; mso-no-proof: yes"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/2210.clip_image018_6EE8606F.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/2210.clip_5F00_image018_5F00_6EE8606F.jpg"><img title="clip_image018" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image018" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/0508.clip_image018_thumb_64B6C602.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/0508.clip_5F00_image018_5F00_thumb_5F00_64B6C602.jpg" width="638" height="415" v:shapes="Picture_x0020_10" /></a></span><span lang="EN-US" style="mso-ansi-language: en-us">      <br />C:\Program Files\Microsoft Host Integration Server 2013\system\Microsoft.HostIntegration.TI.ClientContext.dll       <br />C:\Program Files\Microsoft Host Integration Server 2013\system\Microsoft.HostIntegration.TI.TBGen.dll       <br />C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.ServiceModel.dll       <br />C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Web.Services.dll </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpLast" style="text-indent: -18pt; mso-list: l1 level1 lfo1"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">8-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US" style="mso-ansi-language: en-us">Now build the assembly it should build successfully and then add it to the GAC using Gacutil.exe as you would do with any other assembly. The TI assembly is now GACed and ready to be used. </span>    <p></p> </p>  <p></p>  <h2><span lang="EN-US" style="mso-ansi-language: en-us">Part 2: Use the GACed TI assembly from BizTalk      <p></p>   </span></h2>  <p class="MsoListParagraphCxSpFirst" style="text-indent: -18pt; mso-list: l0 level1 lfo2"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">1-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US" style="mso-ansi-language: en-us">Since the TI assembly is a .Net 4.0 assembly it will be GACed in the .Net 4.0 GAC and hence will require the .Net 4.0 Gacutil to be handled. Which comes installed with VS 2012. </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo2"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">2-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US" style="mso-ansi-language: en-us">Now for some reason the HIS HostApps adapter is not linked correctly to the VS2012 installation folder and hence I had to change things a little to make sure it is able to see the TI assembly in the GAC. </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo2"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">3-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US" style="mso-ansi-language: en-us">Open the Regedit application and browse to the path “HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework” </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo2"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">4-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US" style="mso-ansi-language: en-us">Add a new string value with the name “sdkInstallRootv2.0” and set the value of this string to “C:\Gacutil4” </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo2"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">5-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US" style="mso-ansi-language: en-us">Now open the .net 4.0 tools folder “C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools” and copy all the contents of this folder to the folder “C:\Gacutil4\Bin” (just create this folder). </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo2"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">6-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US" style="mso-ansi-language: en-us">Now open the BizTalk administration console. </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo2"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">7-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US" style="mso-ansi-language: en-us">Create a new send port in BizTalk </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo2"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">8-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US" style="mso-ansi-language: en-us">Select the HostApps as the adapter and then click configure and configure the connection string      <br /></span><span style="mso-fareast-language: en-gb; mso-no-proof: yes"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/0451.clip_image020_3D7F0D7E.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/0451.clip_5F00_image020_5F00_3D7F0D7E.jpg"><img title="clip_image020" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image020" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/2068.clip_image020_thumb_1A51A2CC.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/2068.clip_5F00_image020_5F00_thumb_5F00_1A51A2CC.jpg" width="756" height="383" v:shapes="Picture_x0020_11" /></a></span><span lang="EN-US" style="mso-ansi-language: en-us"> </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo2"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">9-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US" style="mso-ansi-language: en-us">Now click add and then add assemblies (GAC) option      <br /></span><span style="mso-fareast-language: en-gb; mso-no-proof: yes"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/7282.clip_image021_2107=.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/7282.clip_5F00_image021_5F00_21073D00.png"><img title="clip_image021" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image021" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/2043.clip_image021_thumb_096F8F8D.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/2043.clip_5F00_image021_5F00_thumb_5F00_096F8F8D.png" width="755" height="490" v:shapes="Picture_x0020_12" /></a></span><span lang="EN-US" style="mso-ansi-language: en-us"> </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo2"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">10-<span style="font: 7pt &quot;Times New Roman&quot;">&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US" style="mso-ansi-language: en-us">Now you will see all assemblies installed in the .Net 4.0 GAC and you can select your TI assembly that you installed in Part 1 above      <br /></span><span style="mso-fareast-language: en-gb; mso-no-proof: yes"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/8475.clip_image022_3FE0418F.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/8475.clip_5F00_image022_5F00_3FE0418F.png"><img title="clip_image022" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image022" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/1072.clip_image022_thumb_7C30B88C.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/1072.clip_5F00_image022_5F00_thumb_5F00_7C30B88C.png" width="778" height="475" v:shapes="Picture_x0020_13" /></a></span><span lang="EN-US" style="mso-ansi-language: en-us"> </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo2"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">11-<span style="font: 7pt &quot;Times New Roman&quot;">&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US" style="mso-ansi-language: en-us">Now complete the configuration as usual and click ok to configure the send port      <br /></span><span style="mso-fareast-language: en-gb; mso-no-proof: yes"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/1524.clip_image024_5D79CEA1.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/1524.clip_5F00_image024_5F00_5D79CEA1.jpg"><img title="clip_image024" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image024" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/3051.clip_image024_thumb_3642161D.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/3051.clip_5F00_image024_5F00_thumb_5F00_3642161D.jpg" width="756" height="559" v:shapes="Picture_x0020_14" /></a></span><span lang="EN-US" style="mso-ansi-language: en-us"> </span>    <p></p> </p>  <p></p>  <p class="MsoListParagraphCxSpLast" style="text-indent: -18pt; mso-list: l0 level1 lfo2"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">12-<span style="font: 7pt &quot;Times New Roman&quot;">&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US" style="mso-ansi-language: en-us">Now if you check the connection string created and compaire the TI GACed assembly with a normal one you will find this as below: </span>    <p></p> </p>  <p></p>  <div style="border-top: windowtext 1pt solid; border-right: windowtext 1pt solid; border-bottom: windowtext 1pt solid; padding-bottom: 1pt; padding-top: 1pt; padding-left: 4pt; border-left: windowtext 1pt solid; padding-right: 4pt; mso-element: para-border-div; mso-border-alt: solid windowtext .5pt">   <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-no-proof: yes; mso-highlight: white">&lt;?</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-no-proof: yes; mso-highlight: white">xml</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-no-proof: yes; mso-highlight: white"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-no-proof: yes; mso-highlight: white">version</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-no-proof: yes; mso-highlight: white">=</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-no-proof: yes; mso-highlight: white">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-no-proof: yes; mso-highlight: white">1.0</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-no-proof: yes; mso-highlight: white">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-no-proof: yes; mso-highlight: white"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-no-proof: yes; mso-highlight: white">encoding</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-no-proof: yes; mso-highlight: white">=</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-no-proof: yes; mso-highlight: white">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-no-proof: yes; mso-highlight: white">utf-8</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-no-proof: yes; mso-highlight: white">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-no-proof: yes; mso-highlight: white">?&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-no-proof: yes; mso-highlight: white"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-no-proof: yes; mso-highlight: white">&lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-no-proof: yes; mso-highlight: white">mappings</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-no-proof: yes; mso-highlight: white">&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-no-proof: yes; mso-highlight: white"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-no-proof: yes; mso-highlight: white"><span style="mso-spacerun: yes">&#160; </span>&lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-no-proof: yes; mso-highlight: white">mapping</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-no-proof: yes; mso-highlight: white">&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-no-proof: yes; mso-highlight: white"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-no-proof: yes; mso-highlight: white"><span style="mso-spacerun: yes">&#160;&#160;&#160; </span>&lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-no-proof: yes; mso-highlight: white">assembly</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-no-proof: yes; mso-highlight: white">&gt;&lt;![CDATA[</span><span style="font-size: 9.5pt; font-family: consolas; background: yellow; color: gray; mso-no-proof: yes; mso-highlight: yellow">C:\Program Files\Microsoft Host Integration Server 2013 SDK v1.0\ApplicationIntegration\WindowsInitiated\InstallationVerification\TiHostDefinitions\NetClnt1\bin\NetClnt1.DLL</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-no-proof: yes; mso-highlight: white">]]&gt;&lt;/</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-no-proof: yes; mso-highlight: white">assembly</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-no-proof: yes; mso-highlight: white">&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-no-proof: yes; mso-highlight: white"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-no-proof: yes; mso-highlight: white"><span style="mso-spacerun: yes">&#160;&#160;&#160; </span>&lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-no-proof: yes; mso-highlight: white">connectionString</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-no-proof: yes; mso-highlight: white">&gt;&lt;![CDATA[</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: gray; mso-no-proof: yes; mso-highlight: white">CodePage=37;Name=TrmLink;TimeOut=0;SecurityFromClientContext=False;IPAddress=127.0.0.1;TCPPorts=7510;ConcurrentServerTransactionId=MSCS</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-no-proof: yes; mso-highlight: white">]]&gt;&lt;/</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-no-proof: yes; mso-highlight: white">connectionString</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-no-proof: yes; mso-highlight: white">&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-no-proof: yes; mso-highlight: white"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-no-proof: yes; mso-highlight: white"><span style="mso-spacerun: yes">&#160; </span>&lt;/</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-no-proof: yes; mso-highlight: white">mapping</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-no-proof: yes; mso-highlight: white">&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-no-proof: yes; mso-highlight: white"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-no-proof: yes; mso-highlight: white"><span style="mso-spacerun: yes">&#160; </span>&lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-no-proof: yes; mso-highlight: white">mapping</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-no-proof: yes; mso-highlight: white">&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-no-proof: yes; mso-highlight: white"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-no-proof: yes; mso-highlight: white"><span style="mso-spacerun: yes">&#160;&#160;&#160; </span>&lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-no-proof: yes; mso-highlight: white">assembly</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-no-proof: yes; mso-highlight: white">&gt;&lt;![CDATA[</span><span style="font-size: 9.5pt; font-family: consolas; background: yellow; color: gray; mso-no-proof: yes; mso-highlight: yellow">MCS.Test.TI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=2b679cb5291d11c2, processorArchitecture=MSIL</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-no-proof: yes; mso-highlight: white">]]&gt;&lt;/</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-no-proof: yes; mso-highlight: white">assembly</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-no-proof: yes; mso-highlight: white">&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-no-proof: yes; mso-highlight: white"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-no-proof: yes; mso-highlight: white"><span style="mso-spacerun: yes">&#160;&#160;&#160; </span>&lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-no-proof: yes; mso-highlight: white">connectionString</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-no-proof: yes; mso-highlight: white">&gt;&lt;![CDATA[</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: gray; mso-no-proof: yes; mso-highlight: white">CodePage=37;Name=TrmLink;TimeOut=0;SecurityFromClientContext=False;IPAddress=127.0.0.1;TCPPorts=7510;ConcurrentServerTransactionId=MSCS</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-no-proof: yes; mso-highlight: white">]]&gt;&lt;/</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-no-proof: yes; mso-highlight: white">connectionString</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-no-proof: yes; mso-highlight: white">&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-no-proof: yes; mso-highlight: white"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-layout-grid-align: none; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-no-proof: yes; mso-highlight: white"><span style="mso-spacerun: yes">&#160; </span>&lt;/</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-no-proof: yes; mso-highlight: white">mapping</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-no-proof: yes; mso-highlight: white">&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-no-proof: yes; mso-highlight: white"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; padding-right: 0cm; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; line-height: 107%; mso-no-proof: yes; mso-highlight: white">&lt;/</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; line-height: 107%; mso-no-proof: yes; mso-highlight: white">mappings</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; line-height: 107%; mso-no-proof: yes; mso-highlight: white">&gt;</span><span lang="EN-US" style="mso-ansi-language: en-us; mso-no-proof: yes"> </span>      <p></p>   </p>    <p></p> </div>  <p class="MsoListParagraph" style="text-indent: -18pt; mso-list: l0 level1 lfo2"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">13-<span style="font: 7pt &quot;Times New Roman&quot;">&#160; </span></span></span><span dir="ltr"></span><span lang="EN-US" style="mso-ansi-language: en-us">Now you can use this send port normally. </span>    <p></p> </p>  <p></p>  <h1><span lang="EN-US" style="mso-ansi-language: en-us">Conclusion      <p></p>   </span></h1>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us">The HIS 2013 TI assembly can be installed in the GAC to simplify your deployment configuration. The walkthrough provided above can be used on the development machine to be able to configure the solution and build it but on the production environment no changes are required at all. </span></p>]]></content:encoded>
    </item>
    <item>
      <title>SharePoint Provider Hosted App Walkthrough: Part 2 Dig deep</title>
      <link>https://docs.microsoft.com/archive/blogs/momalek/sharepoint-provider-hosted-app-walkthrough-part-2-dig-deep</link>
      <pubDate>Mon, 31 Mar 2014 12:22:25 GMT</pubDate>
      <dc:creator><![CDATA[Mohamed M Malek]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/momalek/2014/03/31/sharepoint-provider-hosted-app-walkthrough-part-2-dig-deep/</guid>
      <description><![CDATA[Introduction           In the previous post here I showed how to write a new provider hosted App...]]></description>
      <content:encoded><![CDATA[<h1><span lang="EN-US" style="mso-ansi-language: en-us">Introduction      <p></p>   </span></h1>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us">In the previous post <a href="http://blogs.technet.com/b/meamcs/archive/2013/02/24/sharepoint-provider-hosted-app-walkthrough-part-1-preparation.aspx">here</a> I showed how to write a new provider hosted App using a step by step process. In this post I will build up on that knowledge and show you the following: </span>    <p></p> </p>  <p></p>  <ul>   <li>     <div class="MsoListParagraphCxSpFirst" style="text-indent: -18pt; mso-list: l0 level1 lfo1"><span lang="EN-US" style="mso-ansi-language: en-us">How to customize your provider hosted app so that you get information from the SharePoint site. (Such as user email).          <p></p>       </span></div>   </li>    <li>     <div class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo1"><span lang="EN-US" style="mso-ansi-language: en-us">How to customize the look and feel of your provider hosted App so that it reflects the SharePoint theme so that the user does not feel a completely disconnected experience. Also how that can be selective so that if the same web site was viewed outside of SharePoint it is displayed as a normal web site.          <p></p>       </span></div>   </li>    <li>     <div class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo1"><span lang="EN-US" style="mso-ansi-language: en-us">How to link back to SharePoint and publish information back to the site including posting to the personal feeds.          <p></p>       </span></div>   </li>    <li>     <div class="MsoListParagraphCxSpLast" style="text-indent: -18pt; mso-list: l0 level1 lfo1"><span lang="EN-US" style="mso-ansi-language: en-us">How to host the provider hosted App on Azure web site and how to register this on your private tenant.          <p></p>       </span></div>   </li> </ul>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us">So let’s get started, shall we. </span>    <p></p> </p>  <p></p>  <h1><span lang="EN-US" style="mso-ansi-language: en-us">Getting Information from SharePoint      <p></p>   </span></h1>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us">To allow the application developers to connect to the source SharePoint site, the request coming from the SharePoint site has a query parameter called “</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; line-height: 107%; mso-highlight: white">SPHostURl</span><span lang="EN-US" style="mso-ansi-language: en-us">” this contains the source URL of the SharePoint site. So to retrieve information you need to use the client object model to connect to the SharePoint site. Now another problem is how to establish authorization and get the current user identity to be able to perform actions using the currently logged on user identity. To establish this you will already find in any new SharePoint provider hosted App a class called “</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #2b91af; line-height: 107%; mso-highlight: white">TokenHelper</span><span lang="EN-US" style="mso-ansi-language: en-us">” this will specifically help you to create the client context using the token. Now once you got the token you do not want to re-connect with the SharePoint site to retrieve the token with every request and hence the need of a token cache. I have included with this article a “</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #2b91af; line-height: 107%; mso-highlight: white">TokenDictionary</span><span lang="EN-US" style="mso-ansi-language: en-us">” class that would allow you specifically to cache your tokens. </span>    <p></p> </p>  <p></p>  <div style="border-top: windowtext 1pt solid; border-right: windowtext 1pt solid; border-bottom: windowtext 1pt solid; padding-bottom: 1pt; padding-top: 1pt; padding-left: 4pt; border-left: windowtext 1pt solid; padding-right: 4pt; mso-element: para-border-div; mso-border-alt: solid windowtext .5pt">   <p class="MsoNormal" style="border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; padding-right: 0cm; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span lang="EN-US" style="mso-ansi-language: en-us">Note: One thing extra to note while working with provider hosted apps is that you need to make sure you pass the “</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; line-height: 107%; mso-highlight: white">Request.QueryString</span><span lang="EN-US" style="mso-ansi-language: en-us">” from every page to the next so that you do not lose your SharePoint context. </span>      <p></p>   </p>    <p></p> </div>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us">Now let’s see the code to get the user email address: </span>    <p></p> </p>  <p></p>  <div style="border-top: windowtext 1pt solid; border-right: windowtext 1pt solid; border-bottom: windowtext 1pt solid; padding-bottom: 1pt; padding-top: 1pt; padding-left: 4pt; border-left: windowtext 1pt solid; padding-right: 4pt; mso-element: para-border-div; mso-border-alt: solid windowtext .5pt">   <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: green; mso-highlight: white; mso-no-proof: yes">// Retrieve Email address from SharePoint</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-no-proof: yes"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: green; mso-highlight: white; mso-no-proof: yes">//</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-no-proof: yes"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: green; mso-highlight: white; mso-no-proof: yes">// Set up SharePoint Context</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-no-proof: yes"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #2b91af; mso-highlight: white; mso-no-proof: yes">Uri</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-no-proof: yes"> sharePointUrl = MyApp.</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #2b91af; mso-highlight: white; mso-no-proof: yes">UrlHelper</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-no-proof: yes">.GetSharePointUrl(Request.QueryString); </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-no-proof: yes">MyApp.</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #2b91af; mso-highlight: white; mso-no-proof: yes">OAuthTokenPair</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-no-proof: yes"> tokenPair = MyApp.</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #2b91af; mso-highlight: white; mso-no-proof: yes">TokenDictionary</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-no-proof: yes">.GetOAuthTokenPairFromContextToken(</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-no-proof: yes">null</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-no-proof: yes">, sharePointUrl.Authority, Request.Url.Authority, Request.Cookies, Response.Cookies); </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-no-proof: yes">string</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-no-proof: yes"> accessToken = (tokenPair != </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-no-proof: yes">null</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-no-proof: yes"> ? tokenPair.AccessToken : </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white; mso-no-proof: yes">&quot;&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-no-proof: yes">); </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-no-proof: yes"></span>      <p>&#160;</p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: green; mso-highlight: white; mso-no-proof: yes">// Get SharePoint client context</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-no-proof: yes"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-no-proof: yes">Microsoft.SharePoint.Client.</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #2b91af; mso-highlight: white; mso-no-proof: yes">ClientContext</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-no-proof: yes"> clientContext = MyApp.</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #2b91af; mso-highlight: white; mso-no-proof: yes">TokenHelper</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-no-proof: yes">.GetClientContextWithAccessToken(sharePointUrl.ToString(), accessToken); </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-no-proof: yes"></span>      <p>&#160;</p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: green; mso-highlight: white; mso-no-proof: yes">// Load Query</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-no-proof: yes"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-no-proof: yes">Microsoft.SharePoint.Client.</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #2b91af; mso-highlight: white; mso-no-proof: yes">Web</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-no-proof: yes"> web = clientContext.Web; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-no-proof: yes">clientContext.Load(web.CurrentUser); </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-no-proof: yes">clientContext.ExecuteQuery(); </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-no-proof: yes"></span>      <p>&#160;</p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: green; mso-highlight: white; mso-no-proof: yes">// Work with the result</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-no-proof: yes"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white; mso-no-proof: yes">string</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white; mso-no-proof: yes"> userEmail = clientContext.Web.CurrentUser.Email; </span>      <p></p>   </p>    <p></p> </div>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us"></span>    <p>&#160;</p> </p>  <p></p>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us">Of course for this to work you will need to add a reference to the SharePoint client object model DLL “Microsoft.SharePoint.Client” and “Microsoft.SharePoint.Client.Runtime”, one good thing is that this is already done for you as part of a new SharePoint App project. </span><span lang="EN-US" style="font-family: wingdings; mso-ansi-language: en-us; mso-ascii-font-family: calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: calibri; mso-hansi-theme-font: minor-latin; mso-char-type: symbol; mso-symbol-font-family: wingdings"><span style="mso-char-type: symbol; mso-symbol-font-family: wingdings">J</span></span><span lang="EN-US" style="mso-ansi-language: en-us"> </span>    <p></p> </p>  <p></p>  <h1><span lang="EN-US" style="mso-ansi-language: en-us">Customizing the look and feel      <p></p>   </span></h1>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us">Once you click on a provider hosted App you are routed to that app and hence you lose the look and feel of the original SharePoint site and the user really feels disconnected. So how to resolve this issue. You simply need to customize your app to look the same like the SharePoint site instead of looking something like this. </span>    <p></p> </p>  <p></p>  <p class="MsoNormal"><span style="mso-no-proof: yes; mso-fareast-language: en-gb"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/6622.clip_image002_6196AF82.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/6622.clip_5F00_image002_5F00_6196AF82.jpg"><img title="clip_image002" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image002" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/7142.clip_image002_thumb_45888148.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/7142.clip_5F00_image002_5F00_thumb_5F00_45888148.jpg" width="292" height="88" v:shapes="Picture_x0020_1" /></a></span><span lang="EN-US" style="mso-ansi-language: en-us"> </span>    <p></p> </p>  <p></p>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us">The code required to do this is placed in your site theme. If you are using HTML5 then it would be the “_SiteLayout.cshtml” file. You need to add the following line to the header section: </span>    <p></p> </p>  <p></p>  <div style="border-top: windowtext 1pt solid; border-right: windowtext 1pt solid; border-bottom: windowtext 1pt solid; padding-bottom: 1pt; padding-top: 1pt; padding-left: 4pt; border-left: windowtext 1pt solid; padding-right: 4pt; mso-element: para-border-div; mso-border-alt: solid windowtext .5pt">   <p class="MsoNormal" style="border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; padding-right: 0cm; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; line-height: 107%; mso-highlight: white">&lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: maroon; line-height: 107%; mso-highlight: white">script</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; line-height: 107%; mso-highlight: white"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; line-height: 107%; mso-highlight: white">src</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; line-height: 107%; mso-highlight: white">=&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: yellow; color: black; line-height: 107%; mso-highlight: yellow">@</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; line-height: 107%; mso-highlight: white">Request.QueryString[</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; line-height: 107%; mso-highlight: white">&quot;SPHostUrl&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; line-height: 107%; mso-highlight: white">]</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; line-height: 107%; mso-highlight: white">/_layouts/15/sp.ui.controls.js&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; line-height: 107%; mso-highlight: white"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; line-height: 107%; mso-highlight: white">type</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; line-height: 107%; mso-highlight: white">=&quot;text/javascript&quot;&gt;&lt;/</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: maroon; line-height: 107%; mso-highlight: white">script</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; line-height: 107%; mso-highlight: white">&gt;</span><span lang="EN-US" style="mso-ansi-language: en-us"> </span>      <p></p>   </p>    <p></p> </div>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us">This line will allow the site to get the SP script file from your original farm. </span>    <p></p> </p>  <p></p>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us">Now on the page DIV you need to add the SP chrome as below: </span>    <p></p> </p>  <p></p>  <div style="border-top: windowtext 1pt solid; border-right: windowtext 1pt solid; border-bottom: windowtext 1pt solid; padding-bottom: 1pt; padding-top: 1pt; padding-left: 4pt; border-left: windowtext 1pt solid; padding-right: 4pt; mso-element: para-border-div; mso-border-alt: solid windowtext .5pt">   <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: yellow; color: black; mso-highlight: yellow">@*</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: darkgreen; mso-highlight: white">Configure the SharePoint Chrome Control</span><span style="font-size: 9.5pt; font-family: consolas; background: yellow; color: black; mso-highlight: yellow">*@</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white">&lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: maroon; mso-highlight: white">div</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white">id</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white">=&quot;chrome_ctrl_container&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white">data-ms-control</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white">=&quot;SP.UI.Controls.Navigation&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white">data-ms-options</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white">='{</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white">&quot;appHelpPageUrl&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> : </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white">&quot;/?</span><span style="font-size: 9.5pt; font-family: consolas; background: yellow; color: black; mso-highlight: yellow">@</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white">Request.QueryString</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white">,</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white">&quot;appIconUrl&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> : </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white">&quot;/Content/Images/AppIcon_white_96x96.jpg&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white">,</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white">&quot;appTitle&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> : </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white">&quot;My Provider Hosted App&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white">,</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white">&quot;settingsLinks&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> : </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white">[</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white">{</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white">&quot;linkUrl&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> : </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white">&quot;../?</span><span style="font-size: 9.5pt; font-family: consolas; background: yellow; color: black; mso-highlight: yellow">@</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white">Request.QueryString</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white">,</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white">&quot;displayName&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> : </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white">&quot;Settings&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white">},</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white">{</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white">&quot;linkUrl&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> : </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white">&quot;../about.cshtml?</span><span style="font-size: 9.5pt; font-family: consolas; background: yellow; color: black; mso-highlight: yellow">@</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white">Request.QueryString</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white">&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white">,</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white">&quot;displayName&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> : </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white">&quot;Support&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white">}</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white">]</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: red; mso-highlight: white">}'</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white">&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white">&lt;/</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: maroon; mso-highlight: white">div</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white">&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> </span>      <p></p>   </p>    <p></p> </div>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us">This will allow the page to look as below: </span>    <p></p> </p>  <p></p>  <p class="MsoNormal"><span style="mso-no-proof: yes; mso-fareast-language: en-gb"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/1727.clip_image004_5120CF38.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/1727.clip_5F00_image004_5F00_5120CF38.jpg"><img title="clip_image004" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image004" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/4370.clip_image004_thumb_79BF3B3F.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/4370.clip_5F00_image004_5F00_thumb_5F00_79BF3B3F.jpg" width="756" height="37" v:shapes="Picture_x0020_2" /></a></span><span lang="EN-US" style="mso-ansi-language: en-us"> </span>    <p></p> </p>  <p></p>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us">Also we do not need to show this on site if you open the site from an external user. So simply we add the following code to our default.chtml file: </span>    <p></p> </p>  <p></p>  <div style="border-top: windowtext 1pt solid; border-right: windowtext 1pt solid; border-bottom: windowtext 1pt solid; padding-bottom: 1pt; padding-top: 1pt; padding-left: 4pt; border-left: windowtext 1pt solid; padding-right: 4pt; mso-element: para-border-div; mso-border-alt: solid windowtext .5pt">   <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white">if</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> (</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white">string</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white">.IsNullOrEmpty(Request.QueryString[</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white">&quot;SPHostURl&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white">])) </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white">{ </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"><span style="mso-spacerun: yes">&#160;&#160;&#160; </span>Response.Redirect(</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white">&quot;~/Default.Public.cshtml&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white">); </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white">} </span>      <p></p>   </p>    <p></p> </div>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us">Also on the public default file we add the following to change the layout file to use the public file that does not contain the SharePoint chrome. </span>    <p></p> </p>  <p></p>  <div style="border-top: windowtext 1pt solid; border-right: windowtext 1pt solid; border-bottom: windowtext 1pt solid; padding-bottom: 1pt; padding-top: 1pt; padding-left: 4pt; border-left: windowtext 1pt solid; padding-right: 4pt; mso-element: para-border-div; mso-border-alt: solid windowtext .5pt">   <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: yellow; color: black; mso-highlight: yellow">@{</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"><span style="mso-spacerun: yes">&#160;&#160;&#160; </span>Layout = </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white">&quot;~/_SiteLayout.Public.cshtml&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white">; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"><span style="mso-spacerun: yes">&#160;&#160;&#160; </span></span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"><span style="mso-spacerun: yes">&#160;&#160;&#160; </span>Page.Title = </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white">&quot;Home&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white">; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: yellow; color: black; mso-highlight: yellow">}</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> </span>      <p></p>   </p>    <p></p> </div>  <h1><span lang="EN-US" style="mso-ansi-language: en-us">Publishing to the SharePoint User Feeds      <p></p>   </span></h1>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us">Now we need to write information back to the SharEPoint site and usually this is simply done using the Client Object Model in the same way we have read. As an example here I will show you how to write to the user feed. </span>    <p></p> </p>  <p></p>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us">The first thing you need to do is to add a reference to the DLL “Microsoft.SharePoint.Client.UserProfiles”. Now you need to do the following: </span>    <p></p> </p>  <p></p>  <div style="border-top: windowtext 1pt solid; border-right: windowtext 1pt solid; border-bottom: windowtext 1pt solid; padding-bottom: 1pt; padding-top: 1pt; padding-left: 4pt; border-left: windowtext 1pt solid; padding-right: 4pt; mso-element: para-border-div; mso-border-alt: solid windowtext .5pt">   <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: green; mso-highlight: white">// Get SharePoint client context</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white">Microsoft.SharePoint.Client.</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #2b91af; mso-highlight: white">ClientContext</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> clientContext = Bakery.</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #2b91af; mso-highlight: white">TokenHelper</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white">.GetClientContextWithAccessToken(sharePointUrl.ToString(), accessToken); </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; padding-right: 0cm; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt"></p>    <p>&#160;</p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: green; mso-highlight: white">// Set up content for Newsfeed post</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white">string</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> filename = </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white">&quot;/Images/Products/&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> + product.ImageName; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white">string</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> linkTitle = product.Name; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white">string</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> linkHref = Request.Url.AbsoluteUri; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white">string</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> linkComments = </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white">&quot;Join as for some &quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> + product.Name + </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white">&quot; at &quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> + orderShipping + </span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white">&quot; %23MyApp&quot;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white">; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"></span>      <p>&#160;</p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: green; mso-highlight: white">// Post to feed using the client context established at page load.</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white">MyApp.</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #2b91af; mso-highlight: white">FeedHelper</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white">.PostLinkToFeed(Request.Url.GetLeftPart(</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #2b91af; mso-highlight: white">UriPartial</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white">.Authority), </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>filename, linkTitle, linkHref, linkComments, </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"><span style="mso-spacerun: yes">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>clientContext); </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"></span>      <p>&#160;</p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white">clientContext.Dispose(); </span>      <p></p>   </p>    <p></p> </div>  <p class="MsoNormal">Also please note that you need to add proper access for your app to be able to do this as follows. </p>  <p></p>  <p></p>  <p class="MsoNormal"><span style="mso-no-proof: yes; mso-fareast-language: en-gb"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/7802.clip_image006_2910B0CA.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/7802.clip_5F00_image006_5F00_2910B0CA.jpg"><img title="clip_image006" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image006" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/0116.clip_image006_thumb_4855E84E.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/0116.clip_5F00_image006_5F00_thumb_5F00_4855E84E.jpg" width="756" height="269" v:shapes="Picture_x0020_3" /></a></span> </p>  <p></p>  <p></p>  <h1>Hosting the App on Azure Websites    <p></p> </h1>  <p class="MsoNormal">Now for the last piece of the puzzle how to host your site on Azure Websites. So here are the steps. </p>  <p></p>  <p></p>  <p class="MsoListParagraphCxSpFirst" style="text-indent: -18pt; mso-list: l1 level1 lfo2"><span style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">1-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span>First you need to create a new Azure WebSite. So logon to <a href="https://manage.windowsazure.com">https://manage.windowsazure.com</a> and go to the websites and click create.     <br /><span style="mso-no-proof: yes; mso-fareast-language: en-gb"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/0486.clip_image008_47801315.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/0486.clip_5F00_image008_5F00_47801315.jpg"><img title="clip_image008" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image008" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/8688.clip_image008_thumb_7503C389.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/8688.clip_5F00_image008_5F00_thumb_5F00_7503C389.jpg" width="755" height="199" v:shapes="Picture_x0020_4" /></a></span> </p>  <p></p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l1 level1 lfo2"><span style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">2-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span>Once the web site is created now download the publishing profile.     <br /><span style="mso-no-proof: yes; mso-fareast-language: en-gb"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/1727.clip_image010_5F3C6BDD.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/1727.clip_5F00_image010_5F00_5F3C6BDD.jpg"><img title="clip_image010" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image010" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/7077.clip_image010_thumb_0534ACE5.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/7077.clip_5F00_image010_5F00_thumb_5F00_0534ACE5.jpg" width="756" height="477" v:shapes="Picture_x0020_5" /></a></span> </p>  <p></p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l1 level1 lfo2"><span style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">3-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span>Now go to your app and import this publishing profile and publish your app to azure.     <br /><span style="mso-no-proof: yes; mso-fareast-language: en-gb"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/6371.clip_image012_4DF0B65A.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/6371.clip_5F00_image012_5F00_4DF0B65A.jpg"><img title="clip_image012" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image012" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/3034.clip_image012_thumb_5AED271C.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/3034.clip_5F00_image012_5F00_thumb_5F00_5AED271C.jpg" width="756" height="593" v:shapes="Picture_x0020_6" /></a></span>     <br /><span style="mso-no-proof: yes; mso-fareast-language: en-gb"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/3404.clip_image014_4C450BE8.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/3404.clip_5F00_image014_5F00_4C450BE8.jpg"><img title="clip_image014" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image014" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/1234.clip_image014_thumb_0B391D35.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/1234.clip_5F00_image014_5F00_thumb_5F00_0B391D35.jpg" width="756" height="594" v:shapes="Picture_x0020_8" /></a></span> </p>  <p></p>  <p></p>  <p class="MsoListParagraphCxSpLast" style="text-indent: -18pt; mso-list: l1 level1 lfo2"><span style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">4-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span>Click save to save the created profiles but do not publish yet as it will fail. Now open the file “backeryapp - Web Deploy.pubxml” using VS and edit it to insert the following lines </p>  <p></p>  <p></p>  <div style="border-top: windowtext 1pt solid; border-right: windowtext 1pt solid; border-bottom: windowtext 1pt solid; padding-bottom: 1pt; padding-top: 1pt; padding-left: 4pt; border-left: windowtext 1pt solid; padding-right: 4pt; mso-element: para-border-div; mso-border-alt: solid windowtext .5pt">   <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white">&lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white">PropertyGroup</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white">&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white"><span style="mso-spacerun: yes">&#160; </span>&lt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white">_Enable45Check</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white">&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white">false</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white">&lt;/</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white">_Enable45Check</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white">&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin-bottom: 0pt; border-top: medium none; border-right: medium none; border-bottom: medium none; padding-bottom: 0cm; padding-top: 0cm; padding-left: 0cm; border-left: medium none; line-height: normal; padding-right: 0cm; text-autospace: ; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none"><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white">&lt;/</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: #a31515; mso-highlight: white">PropertyGroup</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: blue; mso-highlight: white">&gt;</span><span style="font-size: 9.5pt; font-family: consolas; background: white; color: black; mso-highlight: white"> </span>      <p></p>   </p>    <p></p> </div>  <p class="MsoListParagraphCxSpFirst" style="text-indent: -18pt; mso-list: l1 level1 lfo2"><span style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">5-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span>Now publish your site to azure and it should succeed     <br /><span style="mso-no-proof: yes; mso-fareast-language: en-gb"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/3348.clip_image016_7AC33CEA.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/3348.clip_5F00_image016_5F00_7AC33CEA.jpg"><img title="clip_image016" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image016" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/6874.clip_image016_thumb_1A08746F.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/6874.clip_5F00_image016_5F00_thumb_5F00_1A08746F.jpg" width="756" height="594" v:shapes="Picture_x0020_9" /></a></span> </p>  <p></p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l1 level1 lfo2"><span style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">6-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span>Now you should be able to open your site and see the normal public page (not linked to SharePoint). </p>  <p></p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l1 level1 lfo2"><span style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">7-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span>Now open your “AppManifest.xml” file and make sure you change the URL or your app to the Azure URL (Note that the URL must be HTTPS based)     <br /><span style="mso-no-proof: yes; mso-fareast-language: en-gb"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/8306.clip_image018_0AF42646.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/8306.clip_5F00_image018_5F00_0AF42646.jpg"><img title="clip_image018" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image018" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/2480.clip_image018_thumb_5173A6FF.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/2480.clip_5F00_image018_5F00_thumb_5F00_5173A6FF.jpg" width="754" height="304" v:shapes="Picture_x0020_13" /></a></span> </p>  <p></p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l1 level1 lfo2"><span style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">8-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span>Now do not deploy it to SharePoint yet as it will fail, you need to register your app to SharePoint (same as what VS is doing automatically for you) so go to your tenant and open the page <a href="https://%3ctenant%3e.sharepoint.com/_layouts/15/appregnew.aspx">https://&lt;tenant&gt;.sharepoint.com/_layouts/15/appregnew.aspx</a> and click on the two generate buttons and fill the information as required:     <br /><span style="mso-no-proof: yes; mso-fareast-language: en-gb"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/1856.clip_image020_0A20E1BE.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/1856.clip_5F00_image020_5F00_0A20E1BE.jpg"><img title="clip_image020" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image020" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/0654.clip_image020_thumb_7FEF4750.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/0654.clip_5F00_image020_5F00_thumb_5F00_7FEF4750.jpg" width="756" height="341" v:shapes="Picture_x0020_11" /></a></span> </p>  <p></p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l1 level1 lfo2"><span style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">9-<span style="font: 7pt &quot;Times New Roman&quot;">&#160;&#160;&#160;&#160; </span></span></span><span dir="ltr"></span>Now copy both the Client Id and the Client Secret and put them in your site web.config file replacing the values there. Republish your site to azure. </p>  <p></p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l1 level1 lfo2"><span style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">10-<span style="font: 7pt &quot;Times New Roman&quot;">&#160; </span></span></span><span dir="ltr"></span>Now click on Create on the application registration page     <br /><span style="mso-no-proof: yes; mso-fareast-language: en-gb"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/5315.clip_image022_78666894.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/5315.clip_5F00_image022_5F00_78666894.jpg"><img title="clip_image022" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image022" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/6013.clip_image022_thumb_2A6099D0.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/6013.clip_5F00_image022_5F00_thumb_5F00_2A6099D0.jpg" width="755" height="267" v:shapes="Picture_x0020_12" /></a></span> </p>  <p></p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l1 level1 lfo2"><span style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">11-<span style="font: 7pt &quot;Times New Roman&quot;">&#160; </span></span></span><span dir="ltr"></span>Now publish the SharePoint App.     <br /><span style="mso-no-proof: yes; mso-fareast-language: en-gb"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/2185.clip_image024_74EA685B.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/2185.clip_5F00_image024_5F00_74EA685B.jpg"><img title="clip_image024" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image024" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/6685.clip_image024_thumb_142F9FE0.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/6685.clip_5F00_image024_5F00_thumb_5F00_142F9FE0.jpg" width="756" height="381" v:shapes="Picture_x0020_14" /></a></span>     <br /><span style="mso-no-proof: yes; mso-fareast-language: en-gb"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/2402.clip_image025_56389FD2.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/2402.clip_5F00_image025_5F00_56389FD2.png"><img title="clip_image025" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image025" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/6683.clip_image025_thumb_579CC2A4.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/6683.clip_5F00_image025_5F00_thumb_5F00_579CC2A4.png" width="704" height="618" v:shapes="Picture_x0020_15" /></a></span> </p>  <p></p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l1 level1 lfo2"><span style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">12-<span style="font: 7pt &quot;Times New Roman&quot;">&#160; </span></span></span><span dir="ltr"></span>Now go to your SharePoint tenant and upload the App package.     <br /><span style="mso-no-proof: yes; mso-fareast-language: en-gb"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/0677.clip_image026_709B239A.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/0677.clip_5F00_image026_5F00_709B239A.png"><img title="clip_image026" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image026" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/0045.clip_image026_thumb_42442E9E.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/0045.clip_5F00_image026_5F00_thumb_5F00_42442E9E.png" width="648" height="536" v:shapes="Picture_x0020_17" /></a></span>     <br /><span style="mso-no-proof: yes; mso-fareast-language: en-gb"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/0027.clip_image027_482162E8.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/0027.clip_5F00_image027_5F00_482162E8.png"><img title="clip_image027" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image027" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/1524.clip_image027_thumb_2C7F67A3.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/1524.clip_5F00_image027_5F00_thumb_5F00_2C7F67A3.png" width="791" height="329" v:shapes="Picture_x0020_19" /></a></span>     <br /><span style="mso-no-proof: yes; mso-fareast-language: en-gb"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/4617.clip_image028_3BB5D070.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/4617.clip_5F00_image028_5F00_3BB5D070.png"><img title="clip_image028" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image028" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/0434.clip_image028_thumb_18F498B3.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/0434.clip_5F00_image028_5F00_thumb_5F00_18F498B3.png" width="774" height="318" v:shapes="Picture_x0020_20" /></a></span>     <br /><span style="mso-no-proof: yes; mso-fareast-language: en-gb"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/2364.clip_image029_763360F5.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/2364.clip_5F00_image029_5F00_763360F5.png"><img title="clip_image029" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image029" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/8171.clip_image029_thumb_48489EEE.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/8171.clip_5F00_image029_5F00_thumb_5F00_48489EEE.png" width="699" height="361" v:shapes="Picture_x0020_21" /></a></span> </p>  <p></p>  <p></p>  <p class="MsoListParagraphCxSpLast" style="text-indent: -18pt; mso-list: l1 level1 lfo2"><span style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore">13-<span style="font: 7pt &quot;Times New Roman&quot;">&#160; </span></span></span><span dir="ltr"></span>Now test your app from the link below     <br /><span style="mso-no-proof: yes; mso-fareast-language: en-gb"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/7462.clip_image030_3E833776.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/7462.clip_5F00_image030_5F00_3E833776.png"><img title="clip_image030" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image030" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/4300.clip_image030_thumb_6B9AB4F5.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/4300.clip_5F00_image030_5F00_thumb_5F00_6B9AB4F5.png" width="796" height="701" v:shapes="Picture_x0020_22" /></a></span> </p>  <p></p>  <p></p>  <p class="MsoNormal">You should now be routed to the Azure web site and your app would be able to work as expected and link back to your SharePoint tenant. </p>  <p></p>  <p></p>  <p class="MsoNormal"><span style="mso-no-proof: yes; mso-fareast-language: en-gb"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/2260.clip_image032_0ADFEC7A.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/2260.clip_5F00_image032_5F00_0ADFEC7A.jpg"><img title="clip_image032" style="border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; display: inline; border-top-width: 0px" border="0" alt="clip_image032" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/0572.clip_image032_thumb_213591BF.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/0572.clip_5F00_image032_5F00_thumb_5F00_213591BF.jpg" width="756" height="121" v:shapes="Picture_x0020_23" /></a></span> </p>  <p></p>  <p></p>  <p class="MsoNormal">You can find the solution helper files <a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/79/57/Helpers.zip" original-url="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57/Helpers.zip">here</a>.     <br />    <br style="mso-special-character: line-break" />    <br style="mso-special-character: line-break" /></p>]]></content:encoded>
    </item>
    <item>
      <title>Small tip: Where is the XSD Definition Tab in Visual Studio 2012 with Host Integration Server 2013</title>
      <link>https://docs.microsoft.com/archive/blogs/momalek/small-tip-where-is-the-xsd-definition-tab-in-visual-studio-2012-with-host-integration-server-2013</link>
      <pubDate>Tue, 07 Jan 2014 13:09:01 GMT</pubDate>
      <dc:creator><![CDATA[Mohamed M Malek]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/momalek/2014/01/07/small-tip-where-is-the-xsd-definition-tab-in-visual-studio-2012-with-host-integration-server-2013/</guid>
      <description><![CDATA[Today I faced an issue that took me some time to figure out with Host Integration Server 2013....]]></description>
      <content:encoded><![CDATA[<p>Today I faced an issue that took me some time to figure out with Host Integration Server 2013. Usually when you develop transaction Integration (or application integration) with BizTalk server you require XSD schemas to be able to perform mappings and send messages using a send port. With Host Integration Server and up to 2010 version we did that by writing an application definition DLL within Visual Studio 2010 and then while you have the DLL description open in the designer you would click on the “XSD Definition” tab within your Visual Studio window as below:</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/4174.image_38F59005.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/4174.image_5F00_38F59005.png"><img title="image" style="display: inline;" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/5428.image_thumb_31D8E43E.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/5428.image_5F00_thumb_5F00_31D8E43E.png" width="509" height="360" /></a> </p>  <p>Then you copy all contents of this tab into a newly created XSD schema in a BizTalk project. </p>  <p>Now the problem I faced was that this tab is missing in HIS 2013 :( So how can we do this. At first I thought that maybe this is an installation issue as I had in that environment HIS 2010 and VS 2010. But it was not. It turned out that now you simply save the DLL and VS 2012 automatically generates for you the XSD (along with many other things such as WCF and ASMX services) inside a bin folder. So Vola use that XSD.</p>  <p>Happy HISing ;)</p>]]></content:encoded>
    </item>
    <item>
      <title>Using an IIS hosted MEX endpoint with an in-process WCF receive location in BizTalk Server</title>
      <link>https://docs.microsoft.com/archive/blogs/momalek/using-an-iis-hosted-mex-endpoint-with-an-in-process-wcf-receive-location-in-biztalk-server</link>
      <pubDate>Sat, 28 Dec 2013 03:52:29 GMT</pubDate>
      <dc:creator><![CDATA[Mohamed M Malek]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/momalek/2013/12/28/using-an-iis-hosted-mex-endpoint-with-an-in-process-wcf-receive-location-in-biztalk-server/</guid>
      <description><![CDATA[Introduction   Receiving messages and requests using WCF endpoints and receive locations is a very...]]></description>
      <content:encoded><![CDATA[<h2>Introduction </h2>  <p class="MsoNormal">Receiving messages and requests using WCF endpoints and receive locations is a very well-known practice that is used in many BizTalk integration projects. These WCF services can be either a published orchestration or using specific input and output schemas. In any of these there are two known messaging patterns that can be used either in-process or isolated. In-process means that the BizTalk server host instance will be responsible for hosting the WCF host and any requests will be directly received by the BizTalk host. Isolated model means that the WCF service host will be hosted inside IIS and a request received by this service will then be processed inside IIS W3WP worker process and once it requires persistence it will be submitted to the BizTalk Message Box database for normal publish and subscribe processing to occur. In this case this request can be picked up by any of the BizTalk processing host instances and hence will traverse the processes boundaries. In this post I will not go any further in describing these two models but I want to concentrate on a specific problem I faced.&#160;&#160; </p>  <p>So imagine the following scenario, you want to implement an in-process WCF receive service but you want the MEX endpoint to be published on IIS so you want the consumer of this service to be able to submit specific requests and expect specific responses rather than submitting and receiving Message objects. This can be done easily if you want to host the processing or receiving endpoint inside IIS, so working in isolated mode. But unfortunately this is not supported for in-process. Usually we do this by using the WCF publishing wizard and publish a metadata exchange endpoint only to IIS and point to the receive location required to process the request which is usually hosted inside IIS (isolated). Now if you select an in-process receive location it will publish the endpoint as usual and you will be able to create the MEX WCF service on IIS but when you try to use it you will receive the following error.&#160;&#160; </p>  <p class="MsoNormal" style="text-align: center;" align="center"><span style="mso-fareast-language: en-ca; mso-no-proof: yes;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/4503.clip_image002_68244A81.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/4503.clip_5F00_image002_5F00_68244A81.jpg"><img title="clip_image002" style="display: inline;" border="0" alt="clip_image002" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/7610.clip_image002_thumb_153BC801.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/7610.clip_5F00_image002_5F00_thumb_5F00_153BC801.jpg" width="785" height="213" /></a></span> </p>  <p>This is normal and expected as the in-process receive location have to be specified using an absolute URL rather than a relative one as you usually would configure an isolated one. Since the URL is absolute the MEX host will try to add it as a new base address. Now the problem is that this address is not supported by IIS. Now if you try to configure the service using the suggested configuration in this error this will not work in any way.&#160;&#160; </p>  <h2>Solution&#160;&#160; </h2>  <p class="MsoNormal">Usually this is not a supported configuration and hence there is no out of the box method to get this to work. Now I wanted this configuration to work so I started reflecting the BizTalk assemblies to figure out the problem. </p>  <p>Now if you open the MEX endpoint service SVC file you will find the following in it.&#160;&#160; </p>  <div style="padding: 1pt 4pt; border: 1pt solid windowtext; mso-element: para-border-div; mso-border-alt: solid windowtext .5pt;">   <p class="MsoNormal" style="padding: 0cm; border: currentcolor; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt;"><span style="background: yellow; color: black; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: yellow;">&lt;%</span><span style="background: white; color: blue; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">@</span><span style="background: white; color: black; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"> </span><span style="background: white; color: maroon; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">ServiceHost</span><span style="background: white; color: black; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"> </span><span style="background: white; color: red; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">Language</span><span style="background: white; color: blue; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">=&quot;c#&quot;</span><span style="background: white; color: black; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"> </span><span style="background: white; color: red; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">Factory</span><span style="background: white; color: blue; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">=&quot;Microsoft.BizTalk.Adapter.Wcf.Metadata.MexServiceHostFactory, Microsoft.BizTalk.Adapter.Wcf.Runtime, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot;</span><span style="background: white; color: black; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"> </span><span style="background: yellow; color: black; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: yellow;">%&gt;</span></p> </div>  <p class="MsoNormal">So as you can see here it is using a custom host factory to create the WCF service host. This custom host factory is inside an assembly called “<span style="background: white; color: blue; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">Microsoft.BizTalk.Adapter.Wcf.Runtime</span>” that is hosted in the GAC. So I reflected this assembly to see what is happening there and here is what I found inside the CreateServiceHost.&#160; </p>  <p></p>  <p class="MsoNormal" style="text-align: center;" align="center"><span style="mso-fareast-language: en-ca; mso-no-proof: yes;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/1106.clip_image003_0FEF7201.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/1106.clip_5F00_image003_5F00_0FEF7201.png"><img title="clip_image003" style="display: inline;" border="0" alt="clip_image003" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/4331.clip_image003_thumb_2ABB980D.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/4331.clip_5F00_image003_5F00_thumb_5F00_2ABB980D.png" width="649" height="117" /></a></span> </p>  <p>So as expected, it adds the URL to the list of base addresses if the address of the receive location is in absolute URL format. Now this is correct and needed if the processing endpoint is hosted inside the IIS but since this is hosted inside BizTalk worker process this is not needed and hence we would not need such a line.&#160;&#160; </p>  <p>So what I ended up doing is to create new service host factory. I started by thinking of inheriting from the already existing host factory, well you guessed it, this class is sealed<span style="font-family: wingdings; mso-ascii-font-family: calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: calibri; mso-hansi-theme-font: minor-latin; mso-char-type: symbol; mso-symbol-font-family: wingdings;"><span style="mso-char-type: symbol; mso-symbol-font-family: wingdings;">L</span></span>. That leaved me with the only other option which is to create a new class with exactly the same code (reflected) but with these lines removed. So the CreateServiceHost function is now as follows:&#160;&#160; </p>  <p class="MsoNormal">removed. So the CreateServiceHost function is now as follows:   <p></p> </p>  <div style="padding: 1pt 4pt; border: 1pt solid windowtext; mso-element: para-border-div; mso-border-alt: solid windowtext .5pt;">   <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">public</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"> </span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">override</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"> </span><span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">ServiceHostBase</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"> CreateServiceHost(</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">string</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"> constructorString, </span><span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">Uri</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">[] baseAddresses)       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">{       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160; </span></span><span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">BizTalkConfigurationSection</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"> bizTalkConfigurationSection = </span><span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">MexServiceHostFactory</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">.GetBizTalkConfigurationSection();       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160; </span></span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">if</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"> (bizTalkConfigurationSection.MexServiceHostFactoryConfiguration.Debug)       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160; </span>{        <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>System.Diagnostics.</span><span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">Debugger</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">.Launch();       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160;&#160; </span>}        <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160; </span></span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">if</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"> (baseAddresses == </span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">null</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">)       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160; </span>{        <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">throw</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"> </span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">new</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"> </span><span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">ArgumentNullException</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">(</span><span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">&quot;baseAddresses&quot;</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">);       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160; </span>}        <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160; </span>TraceParameters(constructorString, baseAddresses);        <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160; </span>TraceHostingEnvironment();        <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160; </span></span><span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">Uri</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"> uri = baseAddresses[0];       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160; </span></span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">string</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"> receiveLocationName = </span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">null</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">;       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160; </span></span><span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">Uri</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"> publicBaseAddress = </span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">null</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">;       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160; </span></span><span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">ReceiveLocationMappingCollection</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"> receiveLocationMappings = bizTalkConfigurationSection.MexServiceHostFactoryConfiguration.ReceiveLocationMappings;       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160; </span></span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">if</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"> (receiveLocationMappings != </span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">null</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">)       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160; </span>{        <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">string</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"> strService = uri.Segments[uri.Segments.Length - 1];       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">string</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"> strChannel = uri.Segments[uri.Segments.Length - 2];       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">ReceiveLocationMapping</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"> mapping = receiveLocationMappings[strChannel.ToLower() + strService.ToLower()];       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">if</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"> (mapping == </span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">null</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">)       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>{        <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">throw</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"> </span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">new</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"> </span><span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">ApplicationException</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">(</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">string</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">.Format(</span><span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">&quot;ReceiveLocationMappingNotFound for Service {0} and Channel {1}.&quot;</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">, strService, strChannel));       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>}        <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>receiveLocationName = mapping.ReceiveLocationName;        <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>publicBaseAddress = mapping.PublicBaseAddress;        <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160; </span>}        <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160; </span></span><span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">ReceiveLocationProxy</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"> proxy = !</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">string</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">.IsNullOrEmpty(receiveLocationName) ? </span><span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">ConfigurationInfo</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">.GetReceiveLocation(receiveLocationName) : </span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">null</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">;       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160; </span></span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">if</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"> (proxy == </span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">null</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">)       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160; </span>{        <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">throw</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"> </span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">new</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"> </span><span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">ApplicationException</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">(</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">string</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">.Format(</span><span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">&quot;ReceiveLocationForMetadataNotFound {0}&quot;</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">, </span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">new</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"> </span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">object</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">[] { receiveLocationName }));       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160; </span>}        <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160; </span></span><span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">RLConfig</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"> rlConfig = proxy.CreateRLConfig();       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160; </span></span><span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">OperationFlow</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"> operationFlow = !</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">string</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">.IsNullOrEmpty(proxy.ReceivePortName) ? </span><span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">ConfigurationInfo</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">.GetReceivePortOperationFlow(proxy.ReceivePortName) : </span><span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">OperationFlow</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">.None;       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160; </span></span><span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">List</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">&lt;</span><span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">Uri</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">&gt; list = </span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">new</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"> </span><span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">List</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">&lt;</span><span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">Uri</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">&gt;(baseAddresses);       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: yellow; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: yellow;"><span style="mso-spacerun: yes;">&#160;&#160; </span></span><span style="background: yellow; color: green; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: yellow;">/*if (Uri.IsWellFormedUriString(proxy.Address, UriKind.Absolute))</span><span style="background: yellow; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: yellow;">       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: yellow; color: green; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: yellow;"><span style="mso-spacerun: yes;">&#160;&#160; </span>{</span><span style="background: yellow; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: yellow;">       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: yellow; color: green; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: yellow;"><span style="mso-spacerun: yes;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>Uri item = new Uri(proxy.Address);</span><span style="background: yellow; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: yellow;">       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: yellow; color: green; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: yellow;"><span style="mso-spacerun: yes;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>list.Add(item);</span><span style="background: yellow; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: yellow;">       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: yellow; color: green; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: yellow;"><span style="mso-spacerun: yes;">&#160;&#160; </span>}*/</span><span style="background: yellow; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: yellow;">       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160; </span></span><span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">Type</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"> BizTalkServiceInstanceType = </span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">typeof</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">(</span><span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">ReceiveLocationMappingCollection</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">).Assembly.GetType(</span><span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">&quot;Microsoft.BizTalk.Adapter.Wcf.Runtime.BizTalkServiceInstance&quot;</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">);       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160; </span></span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">object</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"> BizTalkServiceInstance = </span><span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">Activator</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">.CreateInstance(BizTalkServiceInstanceType);       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160; </span></span><span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">Type</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"> MexServiceHostType = </span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">typeof</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">(</span><span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">ReceiveLocationMappingCollection</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">).Assembly.GetType(</span><span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">&quot;Microsoft.BizTalk.Adapter.Wcf.Metadata.MexServiceHost&quot;</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">);       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160; </span></span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">return</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"> (</span><span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">ServiceHost</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">)</span><span style="background: white; color: rgb(43, 145, 175); font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">Activator</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">.CreateInstance(MexServiceHostType, </span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">new</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;"> </span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">object</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">[] { operationFlow, rlConfig, publicBaseAddress, BizTalkServiceInstance, list.ToArray() });       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-no-proof: yes; mso-highlight: white;">}</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">       <p></p>     </span></p> </div>  <p class="MsoNormal">And as you can see I have commented out the lines to add the receive location URL as a base address. Of course I needed to reflect more classes as they were also sealed and private (or internal) so I could not get my new host factory to compile. I could have used reflection to create objects of these classes but I thought it would be simpler to simply reflect them and add them to the project. These classes were:   <p></p> </p>  <p class="MsoListParagraphCxSpFirst" style="text-indent: -18pt; mso-list: l0 level1 lfo1;"><span style="color: rgb(68, 84, 106); font-family: symbol; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol; mso-themecolor: text2;"><span style="mso-list: ignore;">·<span style="font: 7pt/normal &quot;Times New Roman&quot;; font-size-adjust: none; font-stretch: normal;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span></span><span dir="LTR"></span><span style="background: white; color: rgb(43, 145, 175); line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">ConfigurationInfo</span>    <p></p> </p>  <p class="MsoListParagraphCxSpLast" style="text-indent: -18pt; mso-list: l0 level1 lfo1;"><span style="color: rgb(68, 84, 106); font-family: symbol; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol; mso-themecolor: text2;"><span style="mso-list: ignore;">·<span style="font: 7pt/normal &quot;Times New Roman&quot;; font-size-adjust: none; font-stretch: normal;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span></span><span dir="LTR"></span><span style="background: white; color: rgb(43, 145, 175); line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">ReceiveLocationProxy</span>    <p></p> </p>  <p class="MsoNormal">Now the last thing I need to do is to change the SVC file of the MEX endpoint service to use the new host factory instead of the out of the box one as follows:   <p></p> </p>  <div style="padding: 1pt 4pt; border: 1pt solid windowtext; mso-element: para-border-div; mso-border-alt: solid windowtext .5pt;">   <p class="MsoNormal" style="padding: 0cm; border: currentcolor; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt;"><span style="background: yellow; color: black; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: yellow;">&lt;%</span><span style="background: white; color: blue; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">@</span><span style="background: white; color: black; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"> </span><span style="background: white; color: maroon; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">ServiceHost</span><span style="background: white; color: black; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"> </span><span style="background: white; color: red; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">Language</span><span style="background: white; color: blue; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">=&quot;c#&quot;</span><span style="background: white; color: black; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"> </span><span style="background: white; color: red; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">Factory</span><span style="background: white; color: blue; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">=&quot;&lt;Your namespace here&gt;.MexServiceHostFactory,&lt; your assembly name here&gt;, Version=1.0.0.0, Culture=neutral, PublicKeyToken=&lt;your assembly token here&gt;&quot;</span><span style="background: white; color: black; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"> </span><span style="background: yellow; color: black; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: yellow;">%&gt;</span><span style="mso-bidi-language: ar-eg;">       <p></p>     </span></p> </div>  <p class="MsoNormal"><span style="mso-bidi-language: ar-eg;">Now GAC the DLL and reset IIS (or recycle the app pool) and </span><span lang="FR" style="mso-bidi-language: ar-eg; mso-ansi-language: fr;">vola</span><span style="mso-bidi-language: ar-eg;"> now it is working and you can submit messages to the in-process receive location using a MEX endpoint hosted inside IIS.</span></p>  <p class="MsoNormal" style="text-align: center;" align="center"><span style="mso-fareast-language: en-ca; mso-no-proof: yes;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/1007.clip_image005_08669345.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/1007.clip_5F00_image005_5F00_08669345.jpg"><img title="clip_image005" style="display: inline;" border="0" alt="clip_image005" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/8802.clip_image005_thumb_2BB6189B.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/8802.clip_5F00_image005_5F00_thumb_5F00_2BB6189B.jpg" width="783" height="472" /></a></span><span style="mso-bidi-language: ar-eg;">&#160;&#160;&#160;&#160; </span></p>  <p>Happy BizTalking.</p>]]></content:encoded>
    </item>
    <item>
      <title>Integrating Apache ActiveMQ with BizTalk Server 2013 using WCF-WebHTTP adapter and REST API</title>
      <link>https://docs.microsoft.com/archive/blogs/momalek/integrating-apache-activemq-with-biztalk-server-2013-using-wcf-webhttp-adapter-and-rest-api</link>
      <pubDate>Wed, 11 Dec 2013 05:22:44 GMT</pubDate>
      <dc:creator><![CDATA[Mohamed M Malek]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/momalek/2013/12/11/integrating-apache-activemq-with-biztalk-server-2013-using-wcf-webhttp-adapter-and-rest-api/</guid>
      <description><![CDATA[Introduction           In this blog post I will present a very simple solution to integrate with...]]></description>
      <content:encoded><![CDATA[<h1><span lang="EN-US" style="mso-ansi-language: en-us;">Introduction      <p></p>   </span></h1>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us;">In this blog post I will present a very simple solution to integrate with Apache ActiveMQ platform. Actually I got this question from a friend I could not believe how easy it is to integrate with this platform using the new BizTalk 2013 WCF-WebHTTP adapter. The adapter provides many features out of the box that really makes the integration engineer life much easier and better. </span></p>  <p></p>  <p></p>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us;">In this scenario I have installed Apache ActiveMQ on a private VM, created a test queue and made sure that I am able actually to send messages to that test queue. The target then was to create a way to receive messages from this queue to BizTalk server. </span></p>  <p></p>  <p></p>  <h1><span lang="EN-US" style="mso-ansi-language: en-us;">Discussion      <p></p>   </span></h1>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us;">The following procedure is what I did to perform this POC. </span></p>  <p></p>  <p></p>  <p class="MsoListParagraphCxSpFirst" style="text-indent: -18pt; mso-list: l0 level1 lfo1;"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin;"><span style="mso-list: ignore;">1-<span style="font: 7pt/normal &quot;Times New Roman&quot;; font-size-adjust: none; font-stretch: normal;">&#160;&#160;&#160;&#160; </span></span></span><span dir="LTR"></span><span lang="EN-US" style="mso-ansi-language: en-us;">First I started by installing ActiveMQ and to my surprise that was super easy. So I downloaded the binaries from <a href="http://apache.mesi.com.ar/activemq/apache-activemq/5.9.0/apache-activemq-5.9.0-bin.zip">here</a> and I also downloaded the JDK from <a href="http://download.oracle.com/otn-pub/java/jdk/7u45-b18/jdk-7u45-windows-x64.exe">here</a>. I installed the JDK then extracted the ActiveMQ to any folder of my choice. </span></p>  <p></p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo1;"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin;"><span style="mso-list: ignore;">2-<span style="font: 7pt/normal &quot;Times New Roman&quot;; font-size-adjust: none; font-stretch: normal;">&#160;&#160;&#160;&#160; </span></span></span><span dir="LTR"></span><span lang="EN-US" style="mso-ansi-language: en-us;">I then had to set the JAVA_HOME environment variable (I do not know why the JDK setup did not do this) but I did that manually to point to the JDK folder as C:\Program Files\Java\jdk1.7.0_45 </span></p>  <p></p>  <p></p>  <p class="MsoListParagraphCxSpLast" style="text-indent: -18pt; mso-list: l0 level1 lfo1;"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin;"><span style="mso-list: ignore;">3-<span style="font: 7pt/normal &quot;Times New Roman&quot;; font-size-adjust: none; font-stretch: normal;">&#160;&#160;&#160;&#160; </span></span></span><span dir="LTR"></span><span lang="EN-US" style="mso-ansi-language: en-us;">I then started the ActiveMQ platform by browsing to the folder where I extracted it and then typing the command: </span></p>  <p></p>  <p></p>  <div style="padding: 1pt 4pt; border: 1pt solid windowtext; mso-element: para-border-div; mso-border-alt: solid windowtext .5pt;">   <p class="MsoNormal" style="padding: 0cm; border: currentcolor; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt;"><code><span style="color: black; line-height: 107%; font-size: 10pt; mso-fareast-font-family: calibri; mso-fareast-theme-font: minor-latin;">bin\activemq</span></code><span lang="EN-US" style="mso-ansi-language: en-us;"> </span></p>    <p></p>    <p></p> </div>  <p class="MsoListParagraphCxSpFirst" style="text-indent: -18pt; mso-list: l0 level1 lfo1;"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin;"><span style="mso-list: ignore;">4-<span style="font: 7pt/normal &quot;Times New Roman&quot;; font-size-adjust: none; font-stretch: normal;">&#160;&#160;&#160;&#160; </span></span></span><span dir="LTR"></span><span lang="EN-US" style="mso-ansi-language: en-us;">Then I opened the new administration portal using the URL (<a href="http://localhost:8161/hawtio">http://localhost:8161/hawtio</a>) then I logged in using the username admin and password admin. </span></p>  <p></p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo1;"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin;"><span style="mso-list: ignore;">5-<span style="font: 7pt/normal &quot;Times New Roman&quot;; font-size-adjust: none; font-stretch: normal;">&#160;&#160;&#160;&#160; </span></span></span><span dir="LTR"></span><span lang="EN-US" style="mso-ansi-language: en-us;">Clicked on “ActiveMQ”      <br /></span><span style="mso-fareast-language: en-ca; mso-no-proof: yes;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/1754.clip_image001_5B421E8E.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/1754.clip_5F00_image001_5F00_5B421E8E.png"><img title="clip_image001" style="display: inline;" border="0" alt="clip_image001" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/0564.clip_image001_thumb_03E08A96.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/0564.clip_5F00_image001_5F00_thumb_5F00_03E08A96.png" width="477" height="119" /></a></span><span lang="EN-US" style="mso-ansi-language: en-us;"> </span></p>  <p></p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo1;"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin;"><span style="mso-list: ignore;">6-<span style="font: 7pt/normal &quot;Times New Roman&quot;; font-size-adjust: none; font-stretch: normal;">&#160;&#160;&#160;&#160; </span></span></span><span dir="LTR"></span><span lang="EN-US" style="mso-ansi-language: en-us;">Then I created a new Queue called “Testing” by clicking “Create” then “Create Queue”      <br /></span><span style="mso-fareast-language: en-ca; mso-no-proof: yes;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/1588.clip_image002_00CE2CA1.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/1588.clip_5F00_image002_5F00_00CE2CA1.png"><img title="clip_image002" style="display: inline;" border="0" alt="clip_image002" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/7801.clip_image002_thumb_12AD511F.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/7801.clip_5F00_image002_5F00_thumb_5F00_12AD511F.png" width="663" height="259" /></a></span><span lang="EN-US" style="mso-ansi-language: en-us;"> </span></p>  <p></p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo1;"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin;"><span style="mso-list: ignore;">7-<span style="font: 7pt/normal &quot;Times New Roman&quot;; font-size-adjust: none; font-stretch: normal;">&#160;&#160;&#160;&#160; </span></span></span><span dir="LTR"></span><span lang="EN-US" style="mso-ansi-language: en-us;">Click on the queue on the left then click “Send” then make sure you change the format to XML type in a valid XML message and finally send the message.      <br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/5127.image_1007261F.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/5127.image_5F00_1007261F.png"><img title="image" style="display: inline;" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/6646.image_thumb_13A7D1AD.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/6646.image_5F00_thumb_5F00_13A7D1AD.png" width="831" height="130" /></a> </span></p>  <p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo1;"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin;"><span style="mso-list: ignore;">8-<span style="font: 7pt/normal &quot;Times New Roman&quot;; font-size-adjust: none; font-stretch: normal;">&#160;&#160;&#160;&#160; </span></span></span><span dir="LTR"></span><span lang="EN-US" style="mso-ansi-language: en-us;">If you now go to the browse of the queue you will find that the message is ready for pickup as per below:      <br /></span><span style="mso-fareast-language: en-ca; mso-no-proof: yes;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/7673.clip_image005_7799A372.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/7673.clip_5F00_image005_5F00_7799A372.png"><img title="clip_image005" style="display: inline;" border="0" alt="clip_image005" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/3312.clip_image005_thumb_3BDC9B70.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/3312.clip_5F00_image005_5F00_thumb_5F00_3BDC9B70.png" width="683" height="183" /></a></span><span lang="EN-US" style="mso-ansi-language: en-us;"> </span></p>  <p></p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo1;"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin;"><span style="mso-list: ignore;">9-<span style="font: 7pt/normal &quot;Times New Roman&quot;; font-size-adjust: none; font-stretch: normal;">&#160;&#160;&#160;&#160; </span></span></span><span dir="LTR"></span><span lang="EN-US" style="mso-ansi-language: en-us;">Now the ActiveMQ supports the REST API to be able to pick up messages (or post them) the address is as follows (<a href="http://localhost:8161/api/message/Testing?type=queue&amp;clientId=BTSconsumer">http://localhost:8161/api/message/Testing?type=queue&amp;clientId=BTSconsumer</a>). So note this address as we will use it later in BizTalk. </span></p>  <p></p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo1;"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin;"><span style="mso-list: ignore;">10-<span style="font: 7pt/normal &quot;Times New Roman&quot;; font-size-adjust: none; font-stretch: normal;">&#160; </span></span></span><span dir="LTR"></span><span lang="EN-US" style="mso-ansi-language: en-us;">Now let’s go to the BizTalk administration console. I created a new send port to be able to pick up messages from the Queue using the WCF-WebHTTP adapter. So I created a new send port and configured it as follows:      <br /></span><span style="mso-fareast-language: en-ca; mso-no-proof: yes;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/5635.clip_image006_26EDA9AE.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/5635.clip_5F00_image006_5F00_26EDA9AE.png"><img title="clip_image006" style="display: inline;" border="0" alt="clip_image006" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/6180.clip_image006_thumb_67486E7D.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/6180.clip_5F00_image006_5F00_thumb_5F00_67486E7D.png" width="662" height="534" /></a></span><span lang="EN-US" style="mso-ansi-language: en-us;"> </span></p>  <p></p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo1;"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin;"><span style="mso-list: ignore;">11-<span style="font: 7pt/normal &quot;Times New Roman&quot;; font-size-adjust: none; font-stretch: normal;">&#160; </span></span></span><span dir="LTR"></span><span lang="EN-US" style="mso-ansi-language: en-us;">Then click configure and change the address and operation as follows:      <br /></span><span style="mso-fareast-language: en-ca; mso-no-proof: yes;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/5050.clip_image007_27A3334D.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/5050.clip_5F00_image007_5F00_27A3334D.png"><img title="clip_image007" style="display: inline;" border="0" alt="clip_image007" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/0624.clip_image007_thumb_52EA5B05.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/0624.clip_5F00_image007_5F00_thumb_5F00_52EA5B05.png" width="435" height="596" /></a></span><span lang="EN-US" style="mso-ansi-language: en-us;"> </span></p>  <p></p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo1;"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin;"><span style="mso-list: ignore;">12-<span style="font: 7pt/normal &quot;Times New Roman&quot;; font-size-adjust: none; font-stretch: normal;">&#160; </span></span></span><span dir="LTR"></span><span lang="EN-US" style="mso-ansi-language: en-us;">One key point here (and a new feature that I really like about this new adapter) is that if you are using the HTTP GET operation then you cannot sent anything in the BODY of the HTTP request. But BizTalk out of the box have to send a message so the adapter solved this by adding a key feature called suppress outbound messages body for verbs GET, so you need to configure this as below:      <br /></span><span style="mso-fareast-language: en-ca; mso-no-proof: yes;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/4375.clip_image008_5DAA430B.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/4375.clip_5F00_image008_5F00_5DAA430B.png"><img title="clip_image008" style="display: inline;" border="0" alt="clip_image008" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/3644.clip_image008_thumb_3AE90B4E.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/3644.clip_5F00_image008_5F00_thumb_5F00_3AE90B4E.png" width="434" height="595" /></a></span><span lang="EN-US" style="mso-ansi-language: en-us;"> </span></p>  <p></p>  <p></p>  <p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo1;"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin;"><span style="mso-list: ignore;">13-<span style="font: 7pt/normal &quot;Times New Roman&quot;; font-size-adjust: none; font-stretch: normal;">&#160; </span></span></span><span dir="LTR"></span><span lang="EN-US" style="mso-ansi-language: en-us;">Now I need a way to issue a GET verb using this send port. So usually what you would configure is a scheduled task adapter to schedule checking of messages from the queue. In my case I wanted something simple and without installing anything else on the VM. So I configure a messaging approach to issue a GET verb after I send an empty file through a file receive location and then created another file send port to pick up the final message received form the Queue and write it to a folder. </span></p>  <p></p>  <p></p>  <p class="MsoListParagraphCxSpLast" style="text-indent: -18pt; mso-list: l0 level1 lfo1;"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin;"><span style="mso-list: ignore;">14-<span style="font: 7pt/normal &quot;Times New Roman&quot;; font-size-adjust: none; font-stretch: normal;">&#160; </span></span></span><span dir="LTR"></span><span lang="EN-US" style="mso-ansi-language: en-us;">Started everything and BINGO worked like a charm </span><span lang="EN-US" style="font-family: wingdings; mso-ansi-language: en-us; mso-ascii-font-family: calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: calibri; mso-hansi-theme-font: minor-latin; mso-char-type: symbol; mso-symbol-font-family: wingdings;"><span style="mso-char-type: symbol; mso-symbol-font-family: wingdings;">J</span></span><span lang="EN-US" style="mso-ansi-language: en-us;"> I have sent the message to the queue and then I drop the empty file to the input folder to issue a GET verb and finally the sent message is written to the output folder as follows: </span></p>  <p></p>  <p></p>  <div style="padding: 1pt 4pt; border: 1pt solid windowtext; mso-element: para-border-div; mso-border-alt: solid windowtext .5pt;">   <p class="MsoNormal" style="padding: 0cm; border: currentcolor; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt;"><span style="background: white; color: blue; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">&lt;</span><span style="background: white; color: rgb(163, 21, 21); line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">Sample</span><span style="background: white; color: blue; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">&gt;</span><span style="background: white; color: black; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">Input again!!</span><span style="background: white; color: blue; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">&lt;/</span><span style="background: white; color: rgb(163, 21, 21); line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">Sample</span><span style="background: white; color: blue; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">&gt;</span><span lang="EN-US" style="mso-ansi-language: en-us;"> </span></p>    <p></p>    <p></p> </div>  <h1><span lang="EN-US" style="mso-ansi-language: en-us;">Conclusion      <p></p>   </span></h1>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us;">The conclusion here is that REST is very powerful and makes you do amazing things. I really think everything should support REST and the other very important conclusion is that I need to thank the BizTalk product group to support this out of the box in BizTalk Server 2013 </span><span lang="EN-US" style="font-family: wingdings; mso-ansi-language: en-us; mso-ascii-font-family: calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: calibri; mso-hansi-theme-font: minor-latin; mso-char-type: symbol; mso-symbol-font-family: wingdings;"><span style="mso-char-type: symbol; mso-symbol-font-family: wingdings;">J</span></span><span lang="EN-US" style="mso-ansi-language: en-us;"> </span></p>]]></content:encoded>
    </item>
    <item>
      <title>Creating an Active/Active SQL Cluster using Hyper-V: Part4 Configuration Revisited</title>
      <link>https://docs.microsoft.com/archive/blogs/momalek/creating-an-activeactive-sql-cluster-using-hyper-v-part4-configuration-revisited</link>
      <pubDate>Wed, 04 Dec 2013 01:06:00 GMT</pubDate>
      <dc:creator><![CDATA[Mohamed M Malek]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/momalek/2013/12/04/creating-an-activeactive-sql-cluster-using-hyper-v-part4-configuration-revisited/</guid>
      <description><![CDATA[In part 1of this series I showed you how to configure the virtual storage required for the cluster....]]></description>
      <content:encoded><![CDATA[<p class="MsoNormal"><span style="color: black; mso-ansi-language: en-us; mso-ascii-font-family: calibri; mso-hansi-font-family: calibri;" lang="EN-US">In </span><span style="mso-ansi-language: en;" lang="EN"><a href="http://blogs.msdn.com/b/momalek/archive/2012/04/11/creating-an-active-active-sql-cluster-using-hyper-v-part1-virtualized-storage.aspx">part 1</a></span><span style="color: black; mso-ansi-language: en-us; mso-ascii-font-family: calibri; mso-hansi-font-family: calibri;" lang="EN">of this series I showed you how to configure the virtual storage required<span style="color: black; mso-ansi-language: en-us; mso-ascii-font-family: calibri; mso-hansi-font-family: calibri;" lang="EN-US"> for the cluster. In <a href="http://blogs.msdn.com/b/momalek/archive/2012/04/11/creating-an-active-active-sql-cluster-using-hyper-v-part2-the-clustered-instances.aspx">part 2</a></span><span><span> of this series I showed you how to configure two SQL instances on the created windows cluster. In <a href="http://blogs.msdn.com/b/momalek/archive/2012/04/18/creating-an-active-active-sql-cluster-using-hyper-v-part3-the-active-active-configuration.aspx">part 3</a> I showed you how to configure these two SQL instances into an Active/Active configuration.</span></span> After a while and as I was playing around with the configuration I have noticed that I cannot really move the SQL server services from one node to another automatically! I had to move the DTC first then I can move the SQL server service. Then it hit me! Why am I complicating things and doing everything by hand although the Windows Failover cluster can do much of the plumping in the correct way. So in this follow-up post I will show you how you can configure things the right way (the windows failover cluster way </span><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/1667.clip_image043_1B9534AB.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/1667.clip_5F00_image043_5F00_1B9534AB.png"><span style="text-decoration: none; mso-fareast-language: en-ca; mso-no-proof: yes; text-underline: none;"><span style="mso-ignore: vglayout;"><img style="border: 0px currentcolor; display: inline;" title="clip_image002" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/7608.clip_image002_1AF761F9.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/7608.clip_5F00_image002_5F00_1AF761F9.jpg" alt="clip_image002" width="25" height="27" border="0" /></span></span></a><span style="color: black; mso-ansi-language: en-us; mso-ascii-font-family: calibri; mso-hansi-font-family: calibri;" lang="EN-US">).</span></p>
<p>&nbsp;</p>
<h2><span style="mso-ansi-language: en;" lang="EN">Introduction</span></h2>
<p>&nbsp;</p>
<p class="MsoNormal"><span style="mso-ansi-language: en;" lang="EN">In this series of posts I will walk you through the processes of creating an Active/Active SQL server cluster using Hyper-V and Microsoft iSCSI target software for virtualized SAN. The target is to create first a storage server hosted on a normal Windows 2008 R2 server. Then connect to this server using two other machines as iSCSI initiators. Then I will create the windows cluster along with the DTC clustered service. A clustered SQL server instance will then be created. Finally another clustered SQL server instance will be created and Active/Active configuration of both instances will be applied.</span></p>
<p>&nbsp;</p>
<h2><span style="mso-ansi-language: en;" lang="EN">Solution Architecture</span></h2>
<p>&nbsp;</p>
<p class="MsoNormal"><span style="mso-ansi-language: en;" lang="EN">The solution is fairly simple as per the below configuration.</span></p>
<p>&nbsp;</p>
<p class="MsoNormal"><span style="mso-fareast-language: en-ca; mso-no-proof: yes;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/2474.clip_image004_6AD01735.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/2474.clip_5F00_image004_5F00_6AD01735.jpg"><img style="display: inline;" title="clip_image004" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/0601.clip_image004_thumb_47A2AC83.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/0601.clip_5F00_image004_5F00_thumb_5F00_47A2AC83.jpg" alt="clip_image004" width="775" height="541" border="0" /></a></span></p>
<h2><span style="mso-ansi-language: en;" lang="EN">Revisiting the Cluster configuration and Dependencies</span></h2>
<p>&nbsp;</p>
<p class="MsoNormal"><span style="mso-ansi-language: en;" lang="EN">The old dependency was not set correctly since the SQL server service and the associated DTC service are not the same clustered service but are managed differently and I established the link between them using an external service dependency. This rendered the SQL service not movable since the cluster really does not know that it is required to move the DTC service to be able to move the SQL service but instead it treats it as an external service that must exist for the SQL service to start.</span></p>
<p>&nbsp;</p>
<p class="MsoNormal"><span style="mso-ansi-language: en;" lang="EN">The old dependency diagram was like this:</span></p>
<p>&nbsp;</p>
<p class="MsoNormal"><span style="mso-fareast-language: en-ca; mso-no-proof: yes;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/2768.clip_image006_6034DA84.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/2768.clip_5F00_image006_5F00_6034DA84.jpg"><img style="display: inline;" title="clip_image006" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/4300.clip_image006_thumb_16395992.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/4300.clip_5F00_image006_5F00_thumb_5F00_16395992.jpg" alt="clip_image006" width="784" height="214" border="0" /></a></span></p>
<p class="MsoNormal"><span style="mso-ansi-language: en;" lang="EN">The problem is actually in the dependency on an external clustered service rather than a cluster service resource.</span></p>
<p>&nbsp;</p>
<p class="MsoNormal"><span style="mso-ansi-language: en;" lang="EN">Then I remembered that the Failover Cluster can add the DTC as a generic service resource to the same clustered service, or even better it actually knows of DTC and has a special type of resource as per the below image:</span></p>
<p>&nbsp;</p>
<p class="MsoNormal"><span style="mso-fareast-language: en-ca; mso-no-proof: yes;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/8372.clip_image007_619B8E07.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/8372.clip_5F00_image007_5F00_619B8E07.png"><img style="display: inline;" title="clip_image007" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/8836.clip_image007_thumb_77850057.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/8836.clip_5F00_image007_5F00_thumb_5F00_77850057.png" alt="clip_image007" width="807" height="551" border="0" /></a></span></p>
<p class="MsoNormal"><span style="mso-ansi-language: en;" lang="EN">So to configure everything correctly I performed the following:</span></p>
<p>&nbsp;</p>
<p class="MsoListParagraphCxSpFirst" style="text-indent: -18pt; mso-list: l0 level1 lfo1;"><span style="mso-ansi-language: en; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin;" lang="EN"><span style="mso-list: ignore;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; 1-<span style="font: 7pt/normal 'Times New Roman'; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="mso-ansi-language: en;" lang="EN">Brought all services offline including all two SQL server services and even disks.</span></p>
<p>&nbsp;</p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo1;"><span style="mso-ansi-language: en; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin;" lang="EN"><span style="mso-list: ignore;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2-<span style="font: 7pt/normal 'Times New Roman'; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="mso-ansi-language: en;" lang="EN">I removed all DTC related configuration by deleting the two clustered services for DTC including all dependencies from the SQL server services.</span></p>
<p>&nbsp;</p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo1;"><span style="mso-ansi-language: en; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin;" lang="EN"><span style="mso-list: ignore;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3-<span style="font: 7pt/normal 'Times New Roman'; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="mso-ansi-language: en;" lang="EN">Then I started by configuring the first SQL instance (let&rsquo;s say BCINST) I clicked on &ldquo;Add Distributed Transaction Coordinator&rdquo; as per the image above.</span></p>
<p>&nbsp;</p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo1;"><span style="mso-ansi-language: en; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin;" lang="EN"><span style="mso-list: ignore;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4-<span style="font: 7pt/normal 'Times New Roman'; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="mso-ansi-language: en;" lang="EN">I then added the DTC disk to the SQL server clustered service. So I now have two disks in this clustered service as below: <br /></span><span style="mso-fareast-language: en-ca; mso-no-proof: yes;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/1016.clip_image008_492E0B5B.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/1016.clip_5F00_image008_5F00_492E0B5B.png"><img style="display: inline;" title="clip_image008" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/0880.clip_image008_thumb_2D8C1016.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/0880.clip_5F00_image008_5F00_thumb_5F00_2D8C1016.png" alt="clip_image008" width="345" height="512" border="0" /></a></span></p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo1;"><span style="mso-ansi-language: en; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin;" lang="EN"><span style="mso-list: ignore;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5-<span style="font: 7pt/normal 'Times New Roman'; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="mso-ansi-language: en;" lang="EN">Then after it is added I simply configured the services dependencies so that the new DTC is configured as below <br /></span><span style="mso-fareast-language: en-ca; mso-no-proof: yes;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/2248.clip_image010_4F0DD056.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/2248.clip_5F00_image010_5F00_4F0DD056.jpg"><img style="display: inline;" title="clip_image010" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/6404.clip_image010_thumb_5E443923.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/6404.clip_5F00_image010_5F00_thumb_5F00_5E443923.jpg" alt="clip_image010" width="508" height="602" border="0" /></a></span><span style="mso-ansi-language: en;" lang="EN"> <br />So as you see it is dependent on the name and the disk.</span></p>
<p>&nbsp;</p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo1;"><span style="mso-ansi-language: en; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin;" lang="EN"><span style="mso-list: ignore;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 6-<span style="font: 7pt/normal 'Times New Roman'; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="mso-ansi-language: en;" lang="EN">Also I configured the IP to depend on the SQL data disk and the DTC disk also to make sure that the disks are the first thing to be brought online and before anything else. <br /></span><span style="mso-fareast-language: en-ca; mso-no-proof: yes;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/6765.clip_image012_7DF5A39C.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/6765.clip_5F00_image012_5F00_7DF5A39C.jpg"><img style="display: inline;" title="clip_image012" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/0447.clip_image012_thumb_5AC838EA.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/0447.clip_5F00_image012_5F00_thumb_5F00_5AC838EA.jpg" alt="clip_image012" width="508" height="278" border="0" /></a></span></p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; mso-list: l0 level1 lfo1;"><span style="mso-ansi-language: en; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin;" lang="EN"><span style="mso-list: ignore;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7-<span style="font: 7pt/normal 'Times New Roman'; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="mso-ansi-language: en;" lang="EN">Then I configured the SQL service to depend on three things (The name, the DTC service, and the Disk) as follows: <br /></span><span style="mso-fareast-language: en-ca; mso-no-proof: yes;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/4520.clip_image014_5ED5176D.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/4520.clip_5F00_image014_5F00_5ED5176D.jpg"><img style="display: inline;" title="clip_image014" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/5148.clip_image014_thumb_77D37863.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/5148.clip_5F00_image014_5F00_thumb_5F00_77D37863.jpg" alt="clip_image014" width="509" height="262" border="0" /></a></span></p>
<p class="MsoListParagraphCxSpLast" style="text-indent: -18pt; mso-list: l0 level1 lfo1;"><span style="mso-ansi-language: en; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin;" lang="EN"><span style="mso-list: ignore;">&nbsp;&nbsp;&nbsp;&nbsp; 8-<span style="font: 7pt/normal 'Times New Roman'; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="mso-ansi-language: en;" lang="EN">Then I crossed my fingers and brought all services online. It worked like a charm and I was finally able to move the SQL service from one node to another with no problems. I then configured the other service exactly the same way. So as you can see below now there are no more external DTC services but only internal clustered service resources as per the below: <br /></span><span style="mso-fareast-language: en-ca; mso-no-proof: yes;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/0714.clip_image016_42C979E4.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/0714.clip_5F00_image016_5F00_42C979E4.jpg"><img style="display: inline;" title="clip_image016" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/6136.clip_image016_thumb_7457782A.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/6136.clip_5F00_image016_5F00_thumb_5F00_7457782A.jpg" alt="clip_image016" width="784" height="534" border="0" /></a></span></p>
<p class="MsoNormal"><span style="mso-ansi-language: en;" lang="EN">The final dependency reports for both services is displayed as below.</span></p>
<p>&nbsp;</p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/6153.Dep2.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/6153.Dep2.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/6153.Dep2.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/6153.Dep2.jpg" alt="" width="800" height="138" /></a>&nbsp;</p>
<p class="MsoNormal"><span style="mso-fareast-language: en-ca; mso-no-proof: yes;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/3583.3731.clip_image020_44BE{.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/3583.3731.clip_5F00_image020_5F00_44BE7B00.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/3583.3731.clip_image020_44BE{.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/3583.3731.clip_5F00_image020_5F00_44BE7B00.jpg" alt="" width="800" height="138" /></a></span></p>
<p class="MsoNormal"><span style="mso-ansi-language: en;" lang="EN">This makes the two SQL server clustered services operate as expected and makes moving one service from a node to the other successful.</span></p>
<p>&nbsp;</p>
<p class="MsoNormal"><span style="color: black; mso-ansi-language: en-us; mso-ascii-font-family: calibri; mso-hansi-font-family: calibri;" lang="EN-US">Happy clustering </span><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/1667.clip_image043_1B9534AB.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/1667.clip_5F00_image043_5F00_1B9534AB.png"><span style="text-decoration: none; mso-fareast-language: en-ca; mso-no-proof: yes; text-underline: none;"><span style="mso-ignore: vglayout;"><img style="border: 0px currentcolor; display: inline;" title="clip_image021" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/3515.clip_image021_7FA83E7A.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/3515.clip_5F00_image021_5F00_7FA83E7A.jpg" alt="clip_image021" width="25" height="27" border="0" /></span></span></a></p>]]></content:encoded>
    </item>
    <item>
      <title>Solved: Nested and conditional parent and child Table Looping Functoid in BizTalk mapping</title>
      <link>https://docs.microsoft.com/archive/blogs/momalek/solved-nested-and-conditional-parent-and-child-table-looping-functoid-in-biztalk-mapping</link>
      <pubDate>Sat, 31 Aug 2013 03:37:13 GMT</pubDate>
      <dc:creator><![CDATA[Mohamed M Malek]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/momalek/2013/08/31/solved-nested-and-conditional-parent-and-child-table-looping-functoid-in-biztalk-mapping/</guid>
      <description><![CDATA[Introduction          BizTalk mapping tool is a very powerful tool once you get the hang of it....]]></description>
      <content:encoded><![CDATA[<h2><span lang="EN-US" style="mso-ansi-language: en-us;">Introduction     <p></p>   </span></h2>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us;">BizTalk mapping tool is a very powerful tool once you get the hang of it. Sometimes you would need to produce some structure in the output schema that did not exist in the source schema, the Table Looping functoid is built for this specific task.      <p></p>   </span></p>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us;">In some other cases you would need to generate a parent child kind of structure. In this blog post I will present the solution to use out of the box functoids to be able to generate this structure.     <p></p>   </span></p>  <h2><span lang="EN-US" style="mso-ansi-language: en-us;">Problem     <p></p>   </span></h2>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us;">Suppose you have the following as the input schema.     <p></p>   </span></p>  <p class="MsoNormal"><span style="mso-fareast-language: en-ca; mso-no-proof: yes;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/2783.clip_image002_51EF6007.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/2783.clip_5F00_image002_5F00_51EF6007.jpg"><img title="clip_image002" style="display: inline;" border="0" alt="clip_image002" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/7534.clip_image002_thumb_7E2BE6EB.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/7534.clip_5F00_image002_5F00_thumb_5F00_7E2BE6EB.jpg" width="784" height="188" /></a></span><span lang="EN-US" style="mso-ansi-language: en-us;">     <p></p>   </span></p>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us;">And the following output schema.     <p></p>   </span></p>  <p class="MsoNormal"><span style="mso-fareast-language: en-ca; mso-no-proof: yes;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/8883.clip_image004_6D643C3D.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/8883.clip_5F00_image004_5F00_6D643C3D.jpg"><img title="clip_image004" style="display: inline;" border="0" alt="clip_image004" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/0535.clip_image004_thumb_394F9CEA.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/0535.clip_5F00_image004_5F00_thumb_5F00_394F9CEA.jpg" width="784" height="520" /></a></span><span lang="EN-US" style="mso-ansi-language: en-us;">     <p></p>   </span></p>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us;">The requirement is to generate two Message elements in the ProcessRoot output schema. It is also required to generate some fields in the fields array inside each message. These fields are specific for each message and depend on the message ID field. So to be more specific let’s say that we have the following XML input:     <p></p>   </span></p>  <div style="padding: 1pt 4pt; border: 1pt solid windowtext; margin-right: 0cm; margin-left: -24pt; mso-element: para-border-div; mso-border-alt: solid windowtext .5pt;">   <p class="MsoNormal" style="margin: 0cm 0cm 0pt 24pt; padding: 0cm; border: currentcolor; line-height: normal; text-indent: -24pt; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt;"><span style="color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; font-size: 10pt; mso-fareast-language: en-ca; mso-fareast-font-family: &quot;Times New Roman&quot;; mso-bidi-font-family: &quot;Times New Roman&quot;;">&lt;</span><span style="color: rgb(153, 0, 0); font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; font-size: 10pt; mso-fareast-language: en-ca; mso-fareast-font-family: &quot;Times New Roman&quot;; mso-bidi-font-family: &quot;Times New Roman&quot;;">ns0:ProcessRequest</span><span style="color: red; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; font-size: 10pt; mso-fareast-language: en-ca; mso-fareast-font-family: &quot;Times New Roman&quot;; mso-bidi-font-family: &quot;Times New Roman&quot;;"> xmlns:ns0</span><span style="color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; font-size: 10pt; mso-fareast-language: en-ca; mso-fareast-font-family: &quot;Times New Roman&quot;; mso-bidi-font-family: &quot;Times New Roman&quot;;">=&quot;</span><b><span style="color: red; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; font-size: 10pt; mso-fareast-language: en-ca; mso-fareast-font-family: &quot;Times New Roman&quot;; mso-bidi-font-family: &quot;Times New Roman&quot;;">http://BTSTest.InputSchema</span></b><span style="color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; font-size: 10pt; mso-fareast-language: en-ca; mso-fareast-font-family: &quot;Times New Roman&quot;; mso-bidi-font-family: &quot;Times New Roman&quot;;">&quot;&gt;</span><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; font-size: 10pt; mso-fareast-language: en-ca; mso-fareast-font-family: &quot;Times New Roman&quot;; mso-bidi-font-family: &quot;Times New Roman&quot;;">       <p></p>     </span></p>    <p class="MsoNormal" style="margin: 0cm 0cm 0pt 24pt; padding: 0cm; border: currentcolor; line-height: normal; text-indent: -24pt; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt;"><b><span style="color: red; font-family: &quot;Courier New&quot;; font-size: 10pt; mso-fareast-language: en-ca; mso-fareast-font-family: &quot;Times New Roman&quot;;">&#160;</span></b><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; font-size: 10pt; mso-fareast-language: en-ca; mso-fareast-font-family: &quot;Times New Roman&quot;; mso-bidi-font-family: &quot;Times New Roman&quot;;"> <span style="color: blue;">&lt;</span><span style="color: rgb(153, 0, 0);">Parameter</span><span style="color: blue;">&gt;</span><b>Parameter_0</b><span style="color: blue;">&lt;/</span><span style="color: rgb(153, 0, 0);">Parameter</span><span style="color: blue;">&gt;</span>         <p></p>     </span></p>    <p class="MsoNormal" style="margin: 0cm 0cm 0pt 24pt; padding: 0cm; border: currentcolor; line-height: normal; text-indent: -24pt; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt;"><span style="color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; font-size: 10pt; mso-fareast-language: en-ca; mso-fareast-font-family: &quot;Times New Roman&quot;; mso-bidi-font-family: &quot;Times New Roman&quot;;">&lt;/</span><span style="color: rgb(153, 0, 0); font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; font-size: 10pt; mso-fareast-language: en-ca; mso-fareast-font-family: &quot;Times New Roman&quot;; mso-bidi-font-family: &quot;Times New Roman&quot;;">ns0:ProcessRequest</span><span style="color: blue; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; font-size: 10pt; mso-fareast-language: en-ca; mso-fareast-font-family: &quot;Times New Roman&quot;; mso-bidi-font-family: &quot;Times New Roman&quot;;">&gt;</span><span style="font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; font-size: 10pt; mso-fareast-language: en-ca; mso-fareast-font-family: &quot;Times New Roman&quot;; mso-bidi-font-family: &quot;Times New Roman&quot;;">       <p></p>     </span></p> </div>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us;">And we want to generate the following XML output from it:     <p></p>   </span></p>  <div style="padding: 1pt 4pt; border: 1pt solid windowtext; mso-element: para-border-div; mso-border-alt: solid windowtext .5pt;">   <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">&lt;</span><span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;">ProcessRoot</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"> </span><span style="background: white; color: red; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">ID</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">=</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">&quot;</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">9843748</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">&quot;</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">&gt;</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160; </span>&lt;</span><span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;">Message</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"> </span><span style="background: white; color: red; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">MessageID</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">=</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">&quot;</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">ID1</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">&quot;</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">&gt;</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160;&#160; </span>&lt;</span><span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;">Entity</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"> </span><span style="background: white; color: red; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">EntityName</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">=</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">&quot;</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">GM</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">&quot;</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">&gt;</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160;&#160;&#160;&#160; </span>&lt;</span><span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;">Field</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"> </span><span style="background: white; color: red; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">Name</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">=</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">&quot;</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">code</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">&quot;</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"> </span><span style="background: white; color: red; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">Value</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">=</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">&quot;</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">Val</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">&quot;</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"> /&gt;</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160;&#160;&#160;&#160; </span>&lt;</span><span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;">Field</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"> </span><span style="background: white; color: red; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">Name</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">=</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">&quot;</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">text</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">&quot;</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"> </span><span style="background: white; color: red; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">Value</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">=</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">&quot;</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">txtval</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">&quot;</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"> /&gt;</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160;&#160;&#160;&#160; </span>&lt;</span><span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;">Field</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"> </span><span style="background: white; color: red; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">Name</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">=</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">&quot;</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">key</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">&quot;</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"> </span><span style="background: white; color: red; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">Value</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">=</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">&quot;</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">Parameter_0</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">&quot;</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"> /&gt;</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160;&#160; </span>&lt;/</span><span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;">Entity</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">&gt;</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160; </span>&lt;/</span><span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;">Message</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">&gt;</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160; </span>&lt;</span><span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;">Message</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"> </span><span style="background: white; color: red; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">MessageID</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">=</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">&quot;</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">ID2</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">&quot;</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">&gt;</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160;&#160; </span>&lt;</span><span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;">Entity</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"> </span><span style="background: white; color: red; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">EntityName</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">=</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">&quot;</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">GM</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">&quot;</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">&gt;</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160;&#160;&#160;&#160; </span>&lt;</span><span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;">Field</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"> </span><span style="background: white; color: red; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">Name</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">=</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">&quot;</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">text</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">&quot;</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"> </span><span style="background: white; color: red; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">Value</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">=</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">&quot;</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">Parameter_0</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">&quot;</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"> /&gt;</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160;&#160;&#160; </span>&lt;/</span><span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;">Entity</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">&gt;</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; line-height: normal; margin-bottom: 0pt; -ms-text-autospace:; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt; mso-layout-grid-align: none;"><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;"><span style="mso-spacerun: yes;">&#160; </span>&lt;/</span><span style="background: white; color: rgb(163, 21, 21); font-family: consolas; font-size: 9.5pt; mso-highlight: white;">Message</span><span style="background: white; color: blue; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">&gt;</span><span style="background: white; color: black; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">       <p></p>     </span></p>    <p class="MsoNormal" style="padding: 0cm; border: currentcolor; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt;"><span style="background: white; color: blue; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">&lt;/</span><span style="background: white; color: rgb(163, 21, 21); line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">ProcessRoot</span><span style="background: white; color: blue; line-height: 107%; font-family: consolas; font-size: 9.5pt; mso-highlight: white;">&gt;</span><span lang="EN-US" style="mso-ansi-language: en-us;">       <p></p>     </span></p> </div>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us;">As you can see we have two challenges:     <p></p>   </span></p>  <p class="MsoListParagraphCxSpFirst" style="text-indent: -18pt; mso-list: l0 level1 lfo1;"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin;"><span style="mso-list: ignore;">1-<span style="font: 7pt/normal &quot;Times New Roman&quot;; font-size-adjust: none; font-stretch: normal;">&#160;&#160;&#160;&#160; </span></span></span><span dir="LTR"></span><span lang="EN-US" style="mso-ansi-language: en-us;">You need to create not just an array of two messages for one node in the input message, but also some sub-fields within each message.     <p></p>   </span></p>  <p class="MsoListParagraphCxSpLast" style="text-indent: -18pt; mso-list: l0 level1 lfo1;"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin;"><span style="mso-list: ignore;">2-<span style="font: 7pt/normal &quot;Times New Roman&quot;; font-size-adjust: none; font-stretch: normal;">&#160;&#160;&#160;&#160; </span></span></span><span dir="LTR"></span><span lang="EN-US" style="mso-ansi-language: en-us;">The fields generated are dynamic and dependent on the value of one of the fields of parent array.     <p></p>   </span></p>  <h2><span lang="EN-US" style="mso-ansi-language: en-us;">Solution     <p></p>   </span></h2>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us;">Because I want to generate some structure that does not exist in the original message then we have to use the Table Looping and Table Extractor functoids. Now the challenges listed above is the key here on how to develop this. So I had many ways I tried to implement this but mainly they all involved creating two Table looping functoids one for the parent structure and one for the child array. The challenge I had was how to link them and make the second table looping functoid dependent on the first one. Here is the map I ended up implementing:     <p></p>   </span></p>  <p class="MsoNormal"><span style="mso-fareast-language: en-ca; mso-no-proof: yes;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/2475.clip_image006_4FC23B71.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/2475.clip_5F00_image006_5F00_4FC23B71.jpg"><img title="clip_image006" style="display: inline;" border="0" alt="clip_image006" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/8284.clip_image006_thumb_4DA53CA8.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/8284.clip_5F00_image006_5F00_thumb_5F00_4DA53CA8.jpg" width="785" height="213" /></a></span><span lang="EN-US" style="mso-ansi-language: en-us;">     <p></p>   </span></p>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us;">There are some key points here to consider.     <p></p>   </span></p>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us;">First the first table looping functoid generates the parent array of messages and hence it is linked to the output node of the messages as per this figure:     <p></p>   </span></p>  <p class="MsoNormal"><span style="mso-fareast-language: en-ca; mso-no-proof: yes;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/3857.clip_image008_049F1AE2.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/3857.clip_5F00_image008_5F00_049F1AE2.jpg"><img title="clip_image008" style="display: inline;" border="0" alt="clip_image008" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/1273.clip_image008_thumb_3C052C10.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/1273.clip_5F00_image008_5F00_thumb_5F00_3C052C10.jpg" width="784" height="207" /></a></span><span lang="EN-US" style="mso-ansi-language: en-us;">     <p></p>   </span></p>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us;">Also the table of this functoid has the following structure to be generated:     <p></p>   </span></p>  <p class="MsoNormal"><span style="mso-fareast-language: en-ca; mso-no-proof: yes;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/6835.clip_image010_6E1C568D.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/6835.clip_5F00_image010_5F00_6E1C568D.jpg"><img title="clip_image010" style="display: inline;" border="0" alt="clip_image010" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/3175.clip_image010_thumb_1EFAF9FA.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/3175.clip_5F00_image010_5F00_thumb_5F00_1EFAF9FA.jpg" width="784" height="279" /></a></span><span lang="EN-US" style="mso-ansi-language: en-us;">     <p></p>   </span></p>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us;">The second notice here is that we have a link from the first column of the parent table looping functoid and the first column also of the child table looping functoid linked to the output fields array to make the generation of the fields conditional if it is equal to the message ID of its parent. This means that second table looping functoid has to include the message ID as part of the table also it will not be generated in the output.     <p></p>   </span></p>  <p class="MsoNormal"><span style="mso-fareast-language: en-ca; mso-no-proof: yes;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/7217.clip_image012_6EF0A878.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/7217.clip_5F00_image012_5F00_6EF0A878.jpg"><img title="clip_image012" style="display: inline;" border="0" alt="clip_image012" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/4861.clip_image012_thumb_4A9B9E29.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/4861.clip_5F00_image012_5F00_thumb_5F00_4A9B9E29.jpg" width="754" height="279" /></a></span><span lang="EN-US" style="mso-ansi-language: en-us;">     <p></p>   </span></p>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us;">Now ideally this would mean that the table of the child table looping functoid should be as follows:     <p></p>   </span></p>  <p class="MsoNormal"><span style="mso-fareast-language: en-ca; mso-no-proof: yes;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/1258.clip_image014_5A5B332D.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/1258.clip_5F00_image014_5F00_5A5B332D.jpg"><img title="clip_image014" style="display: inline;" border="0" alt="clip_image014" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/5873.clip_image014_thumb_6D9BE9CC.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/5873.clip_5F00_image014_5F00_thumb_5F00_6D9BE9CC.jpg" width="784" height="312" /></a></span><span lang="EN-US" style="mso-ansi-language: en-us;">     <p></p>   </span></p>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us;">But when I tried this it never worked (and until now I do not know why) when I debugged the generated XSLT I noticed that the first two rows generated from this functoid are always wrong. When performed further testing I noticed that the child functoid always has bad rows generated out of it that are exactly equal to the number of rows generated from the first table looping functoid. So what I ended up doing is that I added two extra dummy rows that I made sure will never generate anything in the output schema by making sure that the value that would be compared is always not equal. So what I ended up doing is configuring the second table looping functoid as follows.     <p></p>   </span></p>  <p class="MsoNormal"><span style="mso-fareast-language: en-ca; mso-no-proof: yes;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/7384.clip_image016_6AA68519.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/7384.clip_5F00_image016_5F00_6AA68519.jpg"><img title="clip_image016" style="display: inline;" border="0" alt="clip_image016" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/39/29/metablogapi/8420.clip_image016_thumb_337CF720.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-39-29-metablogapi/8420.clip_5F00_image016_5F00_thumb_5F00_337CF720.jpg" width="784" height="362" /></a></span><span lang="EN-US" style="mso-ansi-language: en-us;">     <p></p>   </span></p>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us;">This achieved exactly what I wanted and produced the required output XML.     <p></p>   </span></p>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us;">The sample input schema, output schema, and the above described map can be found <a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/79/57/4101.BTSTest.zip" original-url="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-79-57/4101.BTSTest.zip">here</a>.      <p></p>   </span></p>  <p class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: en-us;">Happy BizTalking </span><span lang="EN-US" style="font-family: wingdings; mso-ansi-language: en-us; mso-ascii-font-family: calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: calibri; mso-hansi-theme-font: minor-latin; mso-char-type: symbol; mso-symbol-font-family: wingdings;"><span style="mso-char-type: symbol; mso-symbol-font-family: wingdings;">J</span></span><span lang="EN-US" style="mso-ansi-language: en-us;">     <p></p>   </span></p>]]></content:encoded>
    </item>
  </channel>
</rss>