<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Amit Lale's blog</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/amitlale/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/amitlale/feed.xml</link>
    <description>All the latest stuff in technology, architecture and more !!</description>
    <lastBuildDate>Tue, 16 Apr 2019 04:38:11 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>SSIS 64-bit setting</title>
      <link>https://docs.microsoft.com/archive/blogs/amitlale/ssis-64-bit-setting</link>
      <pubDate>Tue, 11 Dec 2007 02:45:00 GMT</pubDate>
      <dc:creator><![CDATA[Garry Trinder]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/amitlale/2007/12/11/ssis-64-bit-setting/</guid>
      <description><![CDATA[These days, while working on SSIS 2005 (SQL Server Integration Services), I came across a porting...]]></description>
      <content:encoded><![CDATA[<P>These days, while working on SSIS 2005 (SQL Server Integration Services), I came across a porting issue. My SSIS packages ran fine on my 32-bit dev-box. But as soon as I ported them to 64-bit deployment machine, I started getting&nbsp;errors on connection managers, my connection managers could not connect to the respective data sources. </P>
<P>The thing to note here is that though the 64-bit editions of Microsoft SQL Server 2005 include Integration Services, some Integration Services features are available only in 32-bit versions, or have limitations on 64-bit computers. For one thing, the ODBC, OLEDB and drivers for Office 12 files have a different 64-bit version. So, if you have tested your SSIS packages (and the connection managers there-in) on a 32-bit machine, they might not behave similarly on 64-bit machine.&nbsp;</P>
<P>For the SSIS packages that really don't make use of the 64-bit processor, the SSIS project property <STRONG>Run64BitRuntime</STRONG> can be set to False. This is a instruction to&nbsp;load 32-bit runtime environment rather than 64-bit, and your packages would still run without doing any plumbing work. The property can be found under <STRONG>SSIS Project Property Pages -&gt; Configuration Properties -&gt; Debugging.</STRONG></P>
<P mce_keep="true">You can find more information on 64-bit Integration Services considerations <A class="" href="https://blogs.msdn.com/controlpanel/blogs/SQL%20Server%20Inegration%20Services" target=_blank mce_href="https://blogs.msdn.com/controlpanel/blogs/SQL Server Inegration Services">here</A></P>
<P mce_keep="true">&nbsp;</P>]]></content:encoded>
    </item>
    <item>
      <title>Beautiful photos of Seattle and Washington state</title>
      <link>https://docs.microsoft.com/archive/blogs/amitlale/beautiful-photos-of-seattle-and-washington-state</link>
      <pubDate>Wed, 23 May 2007 01:36:00 GMT</pubDate>
      <dc:creator><![CDATA[Garry Trinder]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/amitlale/2007/05/23/beautiful-photos-of-seattle-and-washington-state/</guid>
      <description><![CDATA[Here are beautiful photos of Seattle and around taken by Arun Prakash Ganesan....I love the vibrant...]]></description>
      <content:encoded><![CDATA[<P>Here are <A class="" title="Seattle and around" href="https://www.arung.in/Photos.aspx?AlbumID=5" mce_href="https://www.arung.in/Photos.aspx?AlbumID=5">beautiful photos of Seattle and around</A> taken by <A class="" title="Arun Prakash Ganesan" href="https://www.arung.in/" mce_href="https://www.arung.in/">Arun Prakash Ganesan</A>....I love the vibrant colors and the composition that Arun has captured. Do have a look at the other photos in his photo album !</P>]]></content:encoded>
    </item>
    <item>
      <title>Hosting WCF Service in IIS</title>
      <link>https://docs.microsoft.com/archive/blogs/amitlale/hosting-wcf-service-in-iis</link>
      <pubDate>Mon, 21 May 2007 05:26:00 GMT</pubDate>
      <dc:creator><![CDATA[Garry Trinder]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/amitlale/2007/05/21/hosting-wcf-service-in-iis/</guid>
      <description><![CDATA[&nbsp;
&nbsp;&nbsp;
All right!! So I have created a WCF service and I want to consume it…what do I...]]></description>
      <content:encoded><![CDATA[<DIV style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: medium none; PADDING-LEFT: 0in; PADDING-BOTTOM: 2pt; BORDER-LEFT: medium none; PADDING-TOP: 0in; BORDER-BOTTOM: #4f81bd 1pt solid; mso-border-bottom-themecolor: accent1; mso-element: para-border-div">&nbsp;</DIV>
<P class=PadderBetweenTitleandProperties style="MARGIN: 0in 0in 1pt"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p><FONT face=Calibri size=1>&nbsp;</FONT></o:p><o:p><FONT face=Calibri size=1>&nbsp;</FONT></o:p></P>
<P class=MsoNormal style="TEXT-JUSTIFY: inter-ideograph; MARGIN: 0in 0in 10pt; TEXT-ALIGN: justify"><FONT face=Calibri size=3>All right!! So I have created a WCF service and I want to consume it…what do I do? Where do I host the service? The first choice that comes to one’s mind (and which most of the examples talk about) is creating a console application and hosting the WCF service within this application. But this option is good only when you want to host the service quickly and test it out. In a practical scenario, we would require a service which sits there and is available all the time and allows a message based activation. Also, wouldn’t it be great if we can get rid of the extra code that we have to write just to host the service? Fortunately, WCF provides various options when it comes to hosting a service. These options are:</FONT></P>
<P class=MsoListParagraphCxSpFirst style="TEXT-JUSTIFY: inter-ideograph; MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; TEXT-ALIGN: justify; mso-list: l1 level1 lfo1"><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri size=3>1.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri size=3>Console application</FONT></P>
<P class=MsoListParagraphCxSpMiddle style="TEXT-JUSTIFY: inter-ideograph; MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; TEXT-ALIGN: justify; mso-list: l1 level1 lfo1"><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri size=3>2.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri size=3>Winform application</FONT></P>
<P class=MsoListParagraphCxSpMiddle style="TEXT-JUSTIFY: inter-ideograph; MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; TEXT-ALIGN: justify; mso-list: l1 level1 lfo1"><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri size=3>3.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri size=3>IIS</FONT></P>
<P class=MsoListParagraphCxSpMiddle style="TEXT-JUSTIFY: inter-ideograph; MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; TEXT-ALIGN: justify; mso-list: l1 level1 lfo1"><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri size=3>4.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri size=3>Windows service</FONT></P>
<P class=MsoListParagraphCxSpLast style="TEXT-JUSTIFY: inter-ideograph; MARGIN: 0in 0in 10pt 0.5in; TEXT-INDENT: -0.25in; TEXT-ALIGN: justify; mso-list: l1 level1 lfo1"><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri size=3>5.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri size=3>Windows Activation Service.</FONT></P>
<P class=MsoNormal style="TEXT-JUSTIFY: inter-ideograph; MARGIN: 0in 0in 10pt; TEXT-ALIGN: justify"><FONT face=Calibri size=3>Of course, the choice of the host restricts the type of transport that you can use for that service. I will not go into those details in this post. Let us look at how we can host the WCF service in IIS. When we use IIS to host WCF services, the services are integrated into ASP .NET. Thus the WCF services can take advantage of some of the inherent feature of ASP .NET such as process recycling, process health monitoring, message-based activation and idle shutdown. So let us get started…</FONT></P>
<P class=MsoNormal style="TEXT-JUSTIFY: inter-ideograph; MARGIN: 0in 0in 10pt; TEXT-ALIGN: justify"><FONT face=Calibri size=5>Create a WCF service</FONT></P>
<P class=MsoListParagraphCxSpFirst style="TEXT-JUSTIFY: inter-ideograph; MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; TEXT-ALIGN: justify; mso-list: l3 level1 lfo2"><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri size=3>1.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT size=3><FONT face=Calibri>Create a blank solution and add a <B style="mso-bidi-font-weight: normal">WCF Service Library</B> project to it. For the purpose of this post, I am going to create a simple GreetingService that has a method Greet. This method accepts a single parameter <I style="mso-bidi-font-style: normal">name</I> and returns a string “Hello “ appended to <I style="mso-bidi-font-style: normal">name</I></FONT></FONT></P>
<P class=MsoListParagraphCxSpFirst style="TEXT-JUSTIFY: inter-ideograph; MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; TEXT-ALIGN: justify; mso-list: l3 level1 lfo2"><EM><FONT face=Calibri size=3></FONT></EM>&nbsp;</P>
<P class=MsoListParagraphCxSpMiddle style="TEXT-JUSTIFY: inter-ideograph; MARGIN: 0in 0in 0pt 0.5in; TEXT-ALIGN: justify"><I style="mso-bidi-font-style: normal"><SPAN style="BACKGROUND: yellow; mso-highlight: yellow"><IMG title="Add a WCF Service to the solution" style="WIDTH: 236px; HEIGHT: 124px" height=124 alt="Add a WCF Service to the solution" hspace=1 src="https://farm1.static.flickr.com/196/507497171_eb79881131_o.jpg" width=236 align=baseline vspace=1 border=1 mce_src="https://farm1.static.flickr.com/196/507497171_eb79881131_o.jpg"></SPAN></I></P>
<P class=MsoListParagraphCxSpMiddle style="TEXT-JUSTIFY: inter-ideograph; MARGIN: 0in 0in 0pt 0.5in; TEXT-ALIGN: justify"><I style="mso-bidi-font-style: normal"><SPAN style="BACKGROUND: yellow; mso-highlight: yellow"></SPAN></I>&nbsp;</P>
<P class=MsoListParagraphCxSpLast style="TEXT-JUSTIFY: inter-ideograph; MARGIN: 0in 0in 10pt 0.5in; TEXT-INDENT: -0.25in; TEXT-ALIGN: justify; mso-list: l3 level1 lfo2"><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri size=3>2.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri size=3>The following is the code for the GreetingService WCF service. We define a service contract, mark the operations in that contract that are going to be exposed to the external world and then implement the service.</FONT></P><!-- Amit -->
<DIV style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: medium none; PADDING-LEFT: 0in; PADDING-BOTTOM: 2pt; BORDER-LEFT: medium none; PADDING-TOP: 0in; BORDER-BOTTOM: #4f81bd 1pt solid; mso-border-bottom-themecolor: accent1; mso-element: para-border-div">&nbsp;</DIV>
<P class=PadderBetweenTitleandProperties style="MARGIN: 0in 0in 1pt"><o:p><FONT face=Calibri size=1>&nbsp;</FONT></o:p><o:p><FONT face=Calibri size=1>&nbsp;</FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 1in; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">using</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> System;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 1in; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">using</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> System.Collections.Generic;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 1in; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">using</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> System.Text;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 1in; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">using</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> System.ServiceModel;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 1in; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 1in; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">namespace</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> Wcf.Samples.ServiceLibrary<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 1in; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">{<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 1in; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>[<SPAN style="COLOR: #2b91af">ServiceContract</SPAN>()]<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 1in; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">public</SPAN> <SPAN style="COLOR: blue">interface</SPAN> <SPAN style="COLOR: #2b91af">IGreeting<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 1in; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>{<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 1in; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>[<SPAN style="COLOR: #2b91af">OperationContract</SPAN>()]<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 1in; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">string</SPAN> Greet(<SPAN style="COLOR: blue">string</SPAN> name);<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 1in; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>}<o:p></o:p></SPAN></P>
<P class=MsoNormal style="TEXT-JUSTIFY: inter-ideograph; MARGIN: 0in 0in 10pt 1in; TEXT-ALIGN: justify"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">}</SPAN></P>
<P class=MsoListParagraph style="TEXT-JUSTIFY: inter-ideograph; MARGIN: 0in 0in 10pt 0.5in; TEXT-ALIGN: justify"><FONT face=Calibri size=3><U>GreetingService.cs</U></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 1in; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">using System;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 1in; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">using System.Collections.Generic;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 1in; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">using System.Text;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 1in; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 1in; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">namespace Wcf.Samples.ServiceLibrary<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 1in; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">{<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 1in; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>public class GreetingService : IGreeting <o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 1in; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>{<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 1in; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 1in; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>#region IGreeting Members<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 1in; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 1in; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>public string Greet(string name)<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 1in; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 1in; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>return "Hello - " + name;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 1in; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>}<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 1in; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 1in; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>#endregion<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 1in; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>}<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 1in; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">}<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 1in; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><o:p>&nbsp;</o:p></SPAN></P><!-- Amit -->
<DIV style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: medium none; PADDING-LEFT: 0in; PADDING-BOTTOM: 2pt; BORDER-LEFT: medium none; PADDING-TOP: 0in; BORDER-BOTTOM: #4f81bd 1pt solid; mso-border-bottom-themecolor: accent1; mso-element: para-border-div">&nbsp;</DIV>
<P class=PadderBetweenTitleandProperties style="MARGIN: 0in 0in 1pt"><o:p><FONT face=Calibri size=1>&nbsp;</FONT></o:p><o:p><FONT face=Calibri size=1>&nbsp;</FONT></o:p></P>
<P class=MsoListParagraphCxSpFirst style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l3 level1 lfo2; mso-layout-grid-align: none; mso-add-space: auto"><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri size=3>3.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri size=3>Now that you added the service contract and its implementation (the GreetingService), build the project.</FONT></P>
<P class=MsoListParagraphCxSpLast style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none; mso-add-space: auto"><o:p><FONT face=Calibri size=3>&nbsp;</FONT></o:p></P>
<P class=MsoNormal style="TEXT-JUSTIFY: inter-ideograph; MARGIN: 0in 0in 10pt; TEXT-ALIGN: justify"><FONT face=Calibri size=5>Host the service in IIS</FONT></P>
<P class=MsoListParagraphCxSpFirst style="TEXT-JUSTIFY: inter-ideograph; MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; TEXT-ALIGN: justify; mso-list: l2 level1 lfo3"><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri size=3>1.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri size=3>Now we create a Web site that will host the WCF service that we created in the previous section. For this, right-click the solution in the solution explorer and from the context menu, select <B style="mso-bidi-font-weight: normal">Add -&gt; New Web site<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>-&gt;WCF Service</B> as shown in the following figure.</FONT></P>
<P class=MsoListParagraphCxSpFirst style="TEXT-JUSTIFY: inter-ideograph; MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; TEXT-ALIGN: justify; mso-list: l2 level1 lfo3"><FONT face=Calibri size=3></FONT>&nbsp;</P>
<P class=MsoListParagraphCxSpMiddle style="TEXT-JUSTIFY: inter-ideograph; MARGIN: 0in 0in 0pt 0.5in; TEXT-ALIGN: justify"><SPAN style="BACKGROUND: yellow; mso-highlight: yellow"><IMG title="Add a new WCF Service web-site" style="WIDTH: 500px; HEIGHT: 325px" height=325 alt="Add a new WCF Service web-site" hspace=1 src="https://farm1.static.flickr.com/211/507497161_7223260ec7.jpg" width=500 align=baseline vspace=1 border=1 mce_src="https://farm1.static.flickr.com/211/507497161_7223260ec7.jpg"></SPAN></P>
<P class=MsoListParagraphCxSpMiddle style="TEXT-JUSTIFY: inter-ideograph; MARGIN: 0in 0in 0pt 0.5in; TEXT-ALIGN: justify"><SPAN style="BACKGROUND: yellow; mso-highlight: yellow"></SPAN>&nbsp;</P>
<P class=MsoListParagraphCxSpMiddle style="TEXT-JUSTIFY: inter-ideograph; MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; TEXT-ALIGN: justify; mso-list: l2 level1 lfo3"><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri size=3>2.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri size=3>This will create a WCF Service Web site into your solution along with the standard folders that get created for a Web site project (App_Code, App_Data etc). A new type of file called Service.svc will be generated and placed into the root of the Web site project, along with the corresponding code-behind file (Service.cs). The Service.cs is provided to implement a WCF service, which then can be referred in the Service.svc file. Since we already have created the WCF service in a separate assembly, we will refer to it in the Service.svc. As such we don’t need Service.cs and hence, it can be deleted.</FONT></P>
<P class=MsoListParagraphCxSpMiddle style="TEXT-JUSTIFY: inter-ideograph; MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; TEXT-ALIGN: justify; mso-list: l2 level1 lfo3"><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri size=3>3.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri size=3>Open Service.svc file and modify the single line in it like this:</FONT></P>
<P class=MsoListParagraphCxSpMiddle style="TEXT-JUSTIFY: inter-ideograph; MARGIN: 0in 0in 0pt 0.5in; TEXT-ALIGN: justify"><B style="mso-bidi-font-weight: normal"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">&lt;%@ ServiceHost Language="C#" Debug="true" Service="Wcf.Samples.ServiceLibrary.GreetingService" %&gt;</SPAN><o:p></o:p></B></P>
<P class=MsoListParagraphCxSpMiddle style="TEXT-JUSTIFY: inter-ideograph; MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; TEXT-ALIGN: justify; mso-list: l2 level1 lfo3"><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri size=3>4.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri size=3>In the above statement we point to the fully-qualified class name that implements the service that we want to host in IIS.</FONT></P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l2 level1 lfo3; mso-layout-grid-align: none; mso-add-space: auto"><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri size=3>5.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri size=3>Add the reference of the Wcf.Samples.ServiceLibrary project to the web-site project and build the web-site.</FONT></P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l2 level1 lfo3; mso-layout-grid-align: none; mso-add-space: auto"><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri size=3>6.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri size=3>This completes the creation of WCF service. Now, in order to let the service communicate with the external world, we need to define the communication behavior of the service. For defining this behavior, we will use the Service Configuration tool that comes along with Visual Studio 2005.</FONT></P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l2 level1 lfo3; mso-layout-grid-align: none; mso-add-space: auto"><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri size=3>7.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri size=3>From the main menu of Visual Studio 2005, select Tools -&gt; WCF Service Configuration Editor. The WCF Configuration Editor window will open up. Select <B style="mso-bidi-font-weight: normal">File -&gt; Open -&gt; Config File… </B>from the main menu. Browse and select the Web.config file of the WCF web-site.</FONT></P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l2 level1 lfo3; mso-layout-grid-align: none; mso-add-space: auto"><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri size=3>8.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri size=3>Once selected, the screen will be displayed as follows. The Web.config already has the configuration for the default service MyService under the <B style="mso-bidi-font-weight: normal">Services </B>node in the left-panel. Select this service and deleted it. We are going to create a new configuration for our service.</FONT></P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none; mso-add-space: auto"><SPAN style="BACKGROUND: yellow; mso-highlight: yellow"><FONT face=Calibri size=3></FONT></SPAN>&nbsp;</P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none; mso-add-space: auto"><SPAN style="BACKGROUND: yellow; mso-highlight: yellow"><FONT face=Calibri size=3></FONT></SPAN>&nbsp;</P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none; mso-add-space: auto"><SPAN style="BACKGROUND: yellow; mso-highlight: yellow"><IMG title="WCF Service Configuration Editor" style="WIDTH: 500px; HEIGHT: 357px" height=357 alt="WCF Service Configuration Editor" hspace=1 src="https://farm1.static.flickr.com/201/507497181_24a14a6d61.jpg" width=500 align=baseline vspace=1 border=1 mce_src="https://farm1.static.flickr.com/201/507497181_24a14a6d61.jpg"></SPAN></P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none; mso-add-space: auto"><SPAN style="BACKGROUND: yellow; mso-highlight: yellow"></SPAN>&nbsp;</P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l2 level1 lfo3; mso-layout-grid-align: none; mso-add-space: auto"><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri size=3>9.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri size=3>Right-click the <B style="mso-bidi-font-weight: normal">Services </B>node and select <B style="mso-bidi-font-weight: normal">“New service” </B>from the context menu. A service with service type NewServiceType will be created. On the right-panel, select the property <B style="mso-bidi-font-weight: normal">“Name”</B> and click the ellipsis. Service Type Browser will open up. Browse the bin folder of the web-site and locate the service assembly Wcf.Samples.ServiceLibrary and double-click it. The Service Type Browser dialog now will list the service “Wcf.Samples.ServiceLibrary.GreetingService” service. Select this service and click Open. This will set the service-type that we are going to configure.</FONT></P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l2 level1 lfo3; mso-layout-grid-align: none; mso-add-space: auto"><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri size=3>10.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri size=3>Now for the above service, we first need to specify the end-point. Right-click <B style="mso-bidi-font-weight: normal">Endpoints</B> node in the left-panel of the WCF Service Configuration Editor and select “New Endpoint”. This will create a default end-point with its properties being displayed in the right-panel.</FONT></P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l2 level1 lfo3; mso-layout-grid-align: none; mso-add-space: auto"><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri size=3>11.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri size=3>Set the following properties:</FONT></P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none; mso-add-space: auto"><o:p><FONT face=Calibri size=3>&nbsp;</FONT></o:p></P>
<TABLE class=MsoTableGrid style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; MARGIN: auto auto auto 0.5in; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid black .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-border-themecolor: text1; mso-yfti-tbllook: 1184" cellSpacing=0 cellPadding=0 border=1 class="MsoTableGrid">
<TBODY>
<TR style="mso-yfti-irow: 0; mso-yfti-firstrow: yes">
<TD class="" style="BORDER-RIGHT: black 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: black 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: black 1pt solid; WIDTH: 239.4pt; PADDING-TOP: 0in; BORDER-BOTTOM: black 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid black .5pt; mso-border-themecolor: text1" vAlign=top width=319>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none; mso-add-space: auto"><FONT face=Calibri size=3>Name</FONT></P></TD>
<TD class="" style="BORDER-RIGHT: black 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: black 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #d4d0c8; WIDTH: 516.2pt; PADDING-TOP: 0in; BORDER-BOTTOM: black 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1" vAlign=top width=688>
<P class=MsoListParagraphCxSpLast style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none; mso-add-space: auto"><FONT face=Calibri size=3>defaultEp</FONT></P></TD></TR>
<TR style="mso-yfti-irow: 1">
<TD class="" style="BORDER-RIGHT: black 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d4d0c8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: black 1pt solid; WIDTH: 239.4pt; PADDING-TOP: 0in; BORDER-BOTTOM: black 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1" vAlign=top width=319>
<P class=MsoListParagraphCxSpFirst style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none; mso-add-space: auto"><FONT face=Calibri size=3>Address</FONT></P></TD>
<TD class="" style="BORDER-RIGHT: black 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d4d0c8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #d4d0c8; WIDTH: 516.2pt; PADDING-TOP: 0in; BORDER-BOTTOM: black 1pt solid; BACKGROUND-COLOR: transparent; mso-border-bottom-themecolor: text1; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; mso-border-right-themecolor: text1" vAlign=top width=688>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none; mso-add-space: auto"><A href="https://localhost:28053/GreetingService/Service.svc"><FONT face=Calibri size=3>https://localhost:28053/GreetingService/Service.svc</FONT></A></P>
<P class=MsoListParagraphCxSpLast style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo4; mso-layout-grid-align: none; mso-add-space: auto"><SPAN style="FONT-FAMILY: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol"><SPAN style="mso-list: Ignore"><FONT size=3>·</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri size=3>Here 28053 is the port-number where the local web-server is running. You need to check your port number and enter it here appropriately.</FONT></P></TD></TR>
<TR style="mso-yfti-irow: 2">
<TD class="" style="BORDER-RIGHT: black 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d4d0c8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: black 1pt solid; WIDTH: 239.4pt; PADDING-TOP: 0in; BORDER-BOTTOM: black 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1" vAlign=top width=319>
<P class=MsoListParagraphCxSpFirst style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none; mso-add-space: auto"><FONT face=Calibri size=3>Binding</FONT></P></TD>
<TD class="" style="BORDER-RIGHT: black 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d4d0c8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #d4d0c8; WIDTH: 516.2pt; PADDING-TOP: 0in; BORDER-BOTTOM: black 1pt solid; BACKGROUND-COLOR: transparent; mso-border-bottom-themecolor: text1; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; mso-border-right-themecolor: text1" vAlign=top width=688>
<P class=MsoListParagraphCxSpLast style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none; mso-add-space: auto"><FONT face=Calibri size=3>basicHttpBinding</FONT></P></TD></TR>
<TR style="mso-yfti-irow: 3; mso-yfti-lastrow: yes">
<TD class="" style="BORDER-RIGHT: black 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d4d0c8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: black 1pt solid; WIDTH: 239.4pt; PADDING-TOP: 0in; BORDER-BOTTOM: black 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1" vAlign=top width=319>
<P class=MsoListParagraphCxSpFirst style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none; mso-add-space: auto"><FONT face=Calibri size=3>Contract</FONT></P></TD>
<TD class="" style="BORDER-RIGHT: black 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d4d0c8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #d4d0c8; WIDTH: 516.2pt; PADDING-TOP: 0in; BORDER-BOTTOM: black 1pt solid; BACKGROUND-COLOR: transparent; mso-border-bottom-themecolor: text1; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; mso-border-right-themecolor: text1" vAlign=top width=688>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none; mso-add-space: auto"><FONT face=Calibri size=3>Wcf.Samples.ServiceLibrary.IGreeting</FONT></P>
<P class=MsoListParagraphCxSpLast style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo4; mso-layout-grid-align: none; mso-add-space: auto"><SPAN style="FONT-FAMILY: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol"><SPAN style="mso-list: Ignore"><FONT size=3>·</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri size=3>You can click the ellipses to open the Contract Type Browser and select the appropriate assembly and contract from the bin directory of the web-site. </FONT></P></TD></TR></TBODY></TABLE>
<P class=MsoListParagraphCxSpFirst style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none; mso-add-space: auto"><SPAN style="mso-spacerun: yes"><FONT face=Calibri size=3></FONT></SPAN>&nbsp;</P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l2 level1 lfo3; mso-layout-grid-align: none; mso-add-space: auto"><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri size=3>12.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT size=3><FONT face=Calibri>This sets the basic communication for our service. In order to enable the service for metadata exchange (thereby allowing us the browse its wsdl), we need to set the metadata exchange properties for the service. To do this, expand the <B style="mso-bidi-font-weight: normal">Advanced</B> node in the left-panel, right-click <B style="mso-bidi-font-weight: normal">Service Behaviors</B> and select “New Service Behavior Configuration”. This will add a new Behavior Configuration by the default name <B style="mso-bidi-font-weight: normal">NewBehavior</B>. Behavior is a collection of attributes (here, service attributes) that can be set and applied to the service together. Right now, we are going to define a behavior that allows the metadata exchange on the service. Set the Name property of the new behavior configuration to <B style="mso-bidi-font-weight: normal">mexBehavior. </B></FONT></FONT></P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l2 level1 lfo3; mso-layout-grid-align: none; mso-add-space: auto"><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri size=3>13.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri size=3>In the “Behavior element extension position” (lower part of the right-panel), click “Add” button. This opens up a dialog “Adding Behavior Element Extension Sections”. Select serviceMetadata from the list and click “Add” on the dialog. This adds the extension serviceMetadata to the grid in the right-panel. Double-click the extension to open up its property-page. Set the property <B style="mso-bidi-font-weight: normal">HttpGetEnabled</B> to <B style="mso-bidi-font-weight: normal">true</B>.</FONT></P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l2 level1 lfo3; mso-layout-grid-align: none; mso-add-space: auto"><FONT face=Calibri size=3></FONT>&nbsp;</P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none; mso-add-space: auto"><SPAN style="BACKGROUND: yellow; mso-highlight: yellow"><FONT face=Calibri size=3><IMG title="Setting the service behavior " style="WIDTH: 500px; HEIGHT: 357px" height=357 alt="Setting the service behavior " hspace=1 src="https://farm1.static.flickr.com/224/507497163_64a8d7b4f8.jpg" width=500 align=baseline vspace=1 border=1 mce_src="https://farm1.static.flickr.com/224/507497163_64a8d7b4f8.jpg"></FONT></SPAN></P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none; mso-add-space: auto"><SPAN style="BACKGROUND: yellow; mso-highlight: yellow"><FONT face=Calibri size=3></FONT></SPAN>&nbsp;</P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none; mso-add-space: auto"><SPAN style="BACKGROUND: yellow; mso-highlight: yellow"><IMG style="WIDTH: 343px; HEIGHT: 388px" height=388 hspace=1 src="https://farm1.static.flickr.com/219/507497167_f82186c850_o.jpg" width=343 align=baseline vspace=1 border=1 mce_src="https://farm1.static.flickr.com/219/507497167_f82186c850_o.jpg"></SPAN></P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none; mso-add-space: auto"><SPAN style="BACKGROUND: yellow; mso-highlight: yellow"><FONT face=Calibri size=3></FONT></SPAN>&nbsp;</P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l2 level1 lfo3; mso-layout-grid-align: none; mso-add-space: auto"><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri size=3>14.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri size=3>Now that we have defined the behavior separately, we need to associate the behavior with our service. To do this, select the Wcf.Samples.ServiceLibrary.GreetingService under the <B style="mso-bidi-font-weight: normal">Services </B>node in the left panel. The right-panel will display its properties. Select the BehaviorConfiguration property, and select “mexBehavior” from the drop-down.</FONT></P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l2 level1 lfo3; mso-layout-grid-align: none; mso-add-space: auto"><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri size=3>15.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri size=3>This sets the service configuration and allows the service to communicate with the external world. Save the configuration by selecting the menu <B style="mso-bidi-font-weight: normal">File-&gt;Save</B>. Close the WCF Service Configuration Editor.</FONT></P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l2 level1 lfo3; mso-layout-grid-align: none; mso-add-space: auto"><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri size=3>16.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri size=3>Test that the service is hosted by running the WCF Web Site application. The following screen should be displayed.</FONT></P>
<P class=MsoListParagraphCxSpLast style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l2 level1 lfo3; mso-layout-grid-align: none; mso-add-space: auto"><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri size=3></FONT></SPAN></SPAN>&nbsp;</P>
<P class=MsoListParagraphCxSpLast style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l2 level1 lfo3; mso-layout-grid-align: none; mso-add-space: auto"><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri size=3><IMG title="WCF Service Test page" style="WIDTH: 500px; HEIGHT: 415px" height=415 alt="WCF Service Test page" hspace=1 src="https://farm1.static.flickr.com/206/507497179_479698c88b.jpg" width=500 align=baseline vspace=1 border=1 mce_src="https://farm1.static.flickr.com/206/507497179_479698c88b.jpg"></FONT></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><o:p><FONT face=Calibri size=3>&nbsp;</FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT face=Calibri size=3>You can test this service by creating a Console application and adding a proxy (generate the proxy by running the svcutil.exe utility). In the next post, I will explain how to invoke a WCF service hosted in IIS through the new WCF Adapter in BizTalk R2.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><o:p><FONT face=Calibri size=3>&nbsp;</FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><FONT size=3><FONT face=Calibri>Till then… happy coding </FONT><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">J</SPAN></SPAN></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><o:p><FONT face=Calibri size=3>&nbsp;</FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><o:p><FONT face=Calibri size=3>&nbsp;</FONT></o:p></P>
<P class=MsoListParagraph style="TEXT-JUSTIFY: inter-ideograph; MARGIN: 0in 0in 10pt 0.5in; TEXT-ALIGN: justify"><o:p><FONT face=Calibri size=3>&nbsp;</FONT></o:p></P>]]></content:encoded>
    </item>
    <item>
      <title>Creating a dynamic Send Port</title>
      <link>https://docs.microsoft.com/archive/blogs/amitlale/creating-a-dynamic-send-port</link>
      <pubDate>Mon, 12 Mar 2007 15:18:00 GMT</pubDate>
      <dc:creator><![CDATA[Garry Trinder]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/amitlale/2007/03/12/creating-a-dynamic-send-port/</guid>
      <description><![CDATA[The send ports in BizTalk allow the user to specify how the outgoing message will be delivered. One...]]></description>
      <content:encoded><![CDATA[<P>The send ports in BizTalk allow the user to specify how the outgoing message will be delivered. One can configure the transport (e.g. FTP or HTTP) the destination address (may be a file folder) and the other parameters that are specific to the selected transport (e.g. in case of FTP transport, the user name and password can be specified). Such type of configuration is done at design time or at the deployment time and often is sufficient. But there are instances where the type of transport to be used is governed by the nature of the message e.g. if my message is of type so-and-so OR if the value of a field in the message is xyz, then use FTP and send it to a FTP location otherwise use an HTTP and send it to another location. This is where <EM>Dynamic Send ports</EM> can be used to decide the port configuration at the time of message delivery. </P>
<P>Consider the following input XML message: </P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Courier New"><SPAN style="COLOR: blue">&lt;</SPAN><SPAN style="COLOR: #a31515">ns0:Input</SPAN><SPAN style="COLOR: blue"> </SPAN><SPAN style="COLOR: red">xmlns:ns0</SPAN><SPAN style="COLOR: blue">=</SPAN>"<SPAN style="COLOR: blue">https://MyProject.MyMessages.Input</SPAN>"<SPAN style="COLOR: blue">&gt; </SPAN></SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Courier New"><SPAN style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&lt;</SPAN><SPAN style="COLOR: #a31515">Header</SPAN><SPAN style="COLOR: blue">&gt; </SPAN></SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Courier New"><SPAN style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</SPAN><SPAN style="COLOR: #a31515">FTPServer</SPAN><SPAN style="COLOR: blue">&gt;MyServer.com&lt;/</SPAN><SPAN style="COLOR: #a31515">FTPServer</SPAN><SPAN style="COLOR: blue">&gt; </SPAN></SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Courier New"><SPAN style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</SPAN><SPAN style="COLOR: #a31515">UserName</SPAN><SPAN style="COLOR: blue">&gt;Foo&lt;/</SPAN><SPAN style="COLOR: #a31515">UserName</SPAN><SPAN style="COLOR: blue">&gt; </SPAN></SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Courier New"><SPAN style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</SPAN><SPAN style="COLOR: #a31515">Password</SPAN><SPAN style="COLOR: blue">&gt;Boo&lt;/</SPAN><SPAN style="COLOR: #a31515">Password</SPAN><SPAN style="COLOR: blue">&gt; </SPAN></SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Courier New"><SPAN style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</SPAN><SPAN style="COLOR: #a31515">RetryAttempts</SPAN><SPAN style="COLOR: blue">&gt;5&lt;/</SPAN><SPAN style="COLOR: #a31515">RetryAttempts</SPAN><SPAN style="COLOR: blue">&gt; </SPAN></SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Courier New"><SPAN style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</SPAN><SPAN style="COLOR: #a31515">RetryInterval</SPAN><SPAN style="COLOR: blue">&gt;10&lt;/</SPAN><SPAN style="COLOR: #a31515">RetryInterval</SPAN><SPAN style="COLOR: blue">&gt; </SPAN></SPAN></P>
<P style="MARGIN-LEFT: 36pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Courier New"><SPAN style="COLOR: blue">&lt;</SPAN><SPAN style="COLOR: #a31515">FileName</SPAN><SPAN style="COLOR: blue">&gt;OutputMessage.xml&lt;/</SPAN><SPAN style="COLOR: #a31515">FileName</SPAN><SPAN style="COLOR: blue">&gt; </SPAN></SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Courier New"><SPAN style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp; &lt;/</SPAN><SPAN style="COLOR: #a31515">Header</SPAN><SPAN style="COLOR: blue">&gt; </SPAN></SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Courier New"><SPAN style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&lt;</SPAN><SPAN style="COLOR: #a31515">Body</SPAN><SPAN style="COLOR: blue">&gt; </SPAN></SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Courier New"><SPAN style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</SPAN><SPAN style="COLOR: #a31515">Content</SPAN><SPAN style="COLOR: blue">&gt;</SPAN>This is the actual content<SPAN style="COLOR: blue">&lt;/</SPAN><SPAN style="COLOR: #a31515">Content</SPAN><SPAN style="COLOR: blue">&gt;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Courier New"><SPAN style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp; &lt;/</SPAN><SPAN style="COLOR: #a31515">Body</SPAN><SPAN style="COLOR: blue">&gt; </SPAN></SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Courier New"><SPAN style="COLOR: blue">&lt;/</SPAN><SPAN style="COLOR: #a31515">ns0:Input</SPAN><SPAN style="COLOR: blue">&gt; </SPAN></SPAN></P>
<P>Let us assume that this message would be transformed into output message like this using a map: </P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Courier New"><SPAN style="COLOR: blue">&lt;</SPAN><SPAN style="COLOR: #a31515">ns0:Output</SPAN><SPAN style="COLOR: blue"> </SPAN><SPAN style="COLOR: red">xmlns:ns0</SPAN><SPAN style="COLOR: blue">=</SPAN>"<SPAN style="COLOR: blue">https://MyProject.MyMessages.Input</SPAN>"<SPAN style="COLOR: blue">&gt; </SPAN></SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Courier New"><SPAN style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&lt;</SPAN><SPAN style="COLOR: #a31515">Body</SPAN><SPAN style="COLOR: blue">&gt; </SPAN></SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Courier New"><SPAN style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</SPAN><SPAN style="COLOR: #a31515">Content</SPAN><SPAN style="COLOR: blue">&gt;</SPAN>This is the actual content<SPAN style="COLOR: blue">&lt;/</SPAN><SPAN style="COLOR: #a31515">Content</SPAN><SPAN style="COLOR: blue">&gt;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Courier New"><SPAN style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp; &lt;/</SPAN><SPAN style="COLOR: #a31515">Body</SPAN><SPAN style="COLOR: blue">&gt; </SPAN></SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Courier New"><SPAN style="COLOR: blue">&lt;/</SPAN><SPAN style="COLOR: #a31515">ns0:Output</SPAN><SPAN style="COLOR: blue">&gt; </SPAN></SPAN></P>
<P>In order to send this output message through a dynamic send port, following needs to be done: </P>
<OL>
<LI>Verify that the input message has all of its properties that are required to configure the dynamic send port are promoted. </LI>
<LI>Configure a receive location to accept this message. Specify the default XmlReceivePipeline since we are not going to act upon the message and modify its contents before it comes to messagebox. </LI>
<LI>Create an orchestration and specify the Receive shape and set its properties such that it receives the message of type <SPAN style="FONT-SIZE: 10pt; COLOR: #a31515; FONT-FAMILY: Courier New">Input. </SPAN></LI>
<LI>Add a send port to the orchestration with the port binding as dynamic. Name the send port <EM>oprtSendDynamic</EM>. </LI>
<LI>Next, add a Transform shape and specify the map for this shape that would transform the Input to Output. </LI>
<LI>In the Construct Message shape surrounding t he Transform shape, add a Message Assignment shape below Transform. In the Message Assignment shape, we will configure the properties of the dynamic send port. </LI></OL>
<BLOCKQUOTE>
<BLOCKQUOTE>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Courier New">msgOutput.Body.Content = msInput.Body.Content </SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Courier New">//Set the FTP properties from the input message content </SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Courier New">oprtSendDynamic(Microsoft.XLNAGs.BaseTypes.Address) = </SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Courier New">"ftp://" + msgInput.Header.FTPServer + "/" + msgInput.Header.FileName; </SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Courier New">//Set other FTP properties by tapping the input message as above. </SPAN></P></BLOCKQUOTE></BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Courier New">.....</SPAN> </P></BLOCKQUOTE></BLOCKQUOTE>
<P>7. Complete the orchestration, bind the ports and test. </P>]]></content:encoded>
    </item>
    <item>
      <title>A few points about Receive ports in BizTalk Server</title>
      <link>https://docs.microsoft.com/archive/blogs/amitlale/a-few-points-about-receive-ports-in-biztalk-server</link>
      <pubDate>Mon, 26 Feb 2007 08:29:00 GMT</pubDate>
      <dc:creator><![CDATA[Garry Trinder]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/amitlale/2007/02/26/a-few-points-about-receive-ports-in-biztalk-server/</guid>
      <description><![CDATA[The two entities in BizTalk that people often find confusing are the Receive Ports and the Receive...]]></description>
      <content:encoded><![CDATA[<P>The two entities in BizTalk that people often find confusing are the Receive Ports and the Receive Locations for the incoming messages. Here are a few points to clarify the existence of a Receive Port. </P>
<P>A Receive Port is a LOGICAL container for the receive locations. Receive Locations that the ones where one specifies the details about the transport to be used, the exact address where the message is to be delivered and any other specific properties particular to that transport type. Consider, for example, various suppliers sending their Purchase Orders (PO) to your organization. Every supplier would prefer his own method of transmitting his PO across to you, some would do it using file transfer over FTP, others would prefer to do a HTTP post etc. Each of these various types, would then require a receive location on the BizTalk Server, where the server can accept these messages. Each receive location would have configuration specific to its transport-type. Now, since these locations are accepting a conceptually same message i.e. PO, they can be grouped into an additional logical layer called Receive Port. So what do I gain by adding additional layer over the receive locations? BizTalk allows you to specify message authentication, tracking and other properties that are related to PO message as such (and not dependant on the way that message is received). Besides this, there are several other advantages of Receive Ports that are listed below. </P>
<OL>
<LI>Suppose you receive PO from ten different suppliers and assume that one of the suppliers is using a format that is different from the rest. The Receive Port allows us to specify the map that allows us to transform the inbound message to a required format before it is submitted to the MessageBox. Thus we can avoid use of orchestration and maybe some complicated logic / conditional branching just so that we transform the message in one particular case. </LI>
<LI>The Orchestrations in BizTalk have a visibility till the Receive Ports. The receive locations are not visible to the orchestrations. This abstracts the orchestrations from the details of specific protocols and locations. Therefore, we can accept conceptually same messages from variety of locations and still treat them in the same way inside an orchestration. </LI></OL>
<P>Hope the information helps in understanding the Receive Ports and Receive Locations more clearly.</P>]]></content:encoded>
    </item>
    <item>
      <title>AddressAccessDeniedException – Cause and Solution</title>
      <link>https://docs.microsoft.com/archive/blogs/amitlale/addressaccessdeniedexception-cause-and-solution</link>
      <pubDate>Mon, 29 Jan 2007 04:24:00 GMT</pubDate>
      <dc:creator><![CDATA[Garry Trinder]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/amitlale/2007/01/29/addressaccessdeniedexception-cause-and-solution/</guid>
      <description><![CDATA[While working with WCF service on Windows Vista, I came across the following error, which I am sure...]]></description>
      <content:encoded><![CDATA[<P>While working with WCF service on Windows Vista, I came across the following error, which I am sure everybody who have created the services on previous versions (Windows XP and likes) and trying to migrate their services to Windows Vista would have encountered. </P>
<P><STRONG>HTTP could not register URL <A href="https://+:8000/" mce_href="https://+:8000/"><SPAN style="COLOR: blue; TEXT-DECORATION: underline">https://+:8000/</SPAN></A>. Your process does not have access rights to this namespace (see <A href="https://go.microsoft.com/fwlink/?LinkId=70353" mce_href="https://go.microsoft.com/fwlink/?LinkId=70353"><SPAN style="COLOR: blue; TEXT-DECORATION: underline">https://go.microsoft.com/fwlink/?LinkId=70353</SPAN></A> for details). </STRONG></P>
<P>The error occurs due to the new security settings in Windows Vista. Most people are no longer going to be running with Administrator privileges by default like they were doing on earlier platforms. This impacts your ability to run HTTP web services because listening at a particular HTTP address is a restricted operation. By default, every HTTP path is reserved for use by the system administrator. Your services will fail to start with an AddressAccessDeniedException if you aren't running the service from an elevated account. The account under which the Visual Studio and the debugger runs does not have the privilege (though the user account under which VS is runnig may be a part of Administrators group), and hence the error occurs. The plus sign in the URL just means that there's a wildcard being applied to the hostname. </P>
<P>To fix this problem, the owner of the HTTP namespace (built-in administrator) needs to delegate this ownership to the user account under which you are running your application (most of the times, it's the logged on user). To do this, start a command prompt using "Run as administrator" so that you have elevated privileges. Then, use <STRONG>netsh.exe</STRONG> to give some of the Administrator's HTTP namespace to your user account. You can look at the existing HTTP namespace delegations by using "netsh http show urlacl". </P>
<P>Now, use "netsh http add urlacl url=<A href="https://+:8000/" mce_href="https://+:8000/"><SPAN style="COLOR: blue; TEXT-DECORATION: underline">https://+:8000/</SPAN></A> user=DOMAIN\UserName" to assign the HTTP namespace to required user account. You can get the syntax for all of these commands by running "netsh http" without any arguments. Note that I've matched the URL in this command to the URL that appeared in the error message. The wildcarding is important for getting the right reservation and you'll continue to be denied access if your reservation covers less than your service's attempted registration. Go back to Visual Studio and check that your service runs properly. </P>]]></content:encoded>
    </item>
    <item>
      <title>Windows Vista Gadgets</title>
      <link>https://docs.microsoft.com/archive/blogs/amitlale/windows-vista-gadgets</link>
      <pubDate>Thu, 18 Jan 2007 12:35:00 GMT</pubDate>
      <dc:creator><![CDATA[Garry Trinder]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/amitlale/2007/01/18/windows-vista-gadgets/</guid>
      <description><![CDATA[If you want to learn more about developing Windows Vista Gadgets, visit...]]></description>
      <content:encoded><![CDATA[If you want to learn more about developing Windows Vista Gadgets, visit <A href="https://microsoftgadgets.com/Build/" mce_href="https://microsoftgadgets.com/Build/">https://microsoftgadgets.com/Build/</A>]]></content:encoded>
    </item>
    <item>
      <title>2 Weeks into MS now</title>
      <link>https://docs.microsoft.com/archive/blogs/amitlale/2-weeks-into-ms-now</link>
      <pubDate>Tue, 09 Jan 2007 07:17:00 GMT</pubDate>
      <dc:creator><![CDATA[Garry Trinder]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/amitlale/2007/01/09/2-weeks-into-ms-now/</guid>
      <description><![CDATA[Its been 2 weeks in MS now….and things have started moving J Would come back to this space very...]]></description>
      <content:encoded><![CDATA[<P><SPAN style="FONT-SIZE: 10pt"><SPAN style="FONT-FAMILY: Segoe UI">Its been 2 weeks in MS now….and things have started moving </SPAN><SPAN style="FONT-FAMILY: Wingdings">J</SPAN><SPAN style="FONT-FAMILY: Segoe UI"> Would come back to this space very often to put my thoughts, learning and share my experiences as I cruise along…keep watching the space !</SPAN></SPAN></P>]]></content:encoded>
    </item>
  </channel>
</rss>