<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Cosa importa se.... &#187; WCF</title>
	<atom:link href="http://pythonyan.wordpress.com/category/wcf/feed/" rel="self" type="application/rss+xml" />
	<link>http://pythonyan.wordpress.com</link>
	<description>i pensieri ti sfiorano come piccole gocce di pioggia.</description>
	<lastBuildDate>Tue, 15 Dec 2009 14:23:17 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>it</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='pythonyan.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/223a528984d240306cc2e08bb1838e94?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Cosa importa se.... &#187; WCF</title>
		<link>http://pythonyan.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://pythonyan.wordpress.com/osd.xml" title="Cosa importa se&#8230;." />
		<item>
		<title>A beginner’s guide for consuming a WCF service in JavaScript using ASP.NET AJAX</title>
		<link>http://pythonyan.wordpress.com/2009/03/24/a-beginner%e2%80%99s-guide-for-consuming-a-wcf-service-in-javascript-using-aspnet-ajax/</link>
		<comments>http://pythonyan.wordpress.com/2009/03/24/a-beginner%e2%80%99s-guide-for-consuming-a-wcf-service-in-javascript-using-aspnet-ajax/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 08:05:49 +0000</pubDate>
		<dc:creator>pythonyan</dc:creator>
				<category><![CDATA[Asp.net 3.5]]></category>
		<category><![CDATA[WCF]]></category>

		<guid isPermaLink="false">http://pythonyan.wordpress.com/?p=335</guid>
		<description><![CDATA[Preso da CodeProject articolo molto interessante.
Contents

Development Platform
Introduction
Using an AJAX-Enabled WCF Service Item Template
Using a Service Interface Defined in the Class Library
Configure a Web Application to Use the TODO Service
Using the Service in JavaScript
Summary
References

Development Platform

Visual Studio 2008 SP1
.NET Framework 3.5 SP1
ASP.NET AJAX
IIS 7 or VS Integrated Web Server [WCF and SVS file configured]
Windows Vista


Introduction
WCF (Windows Communication [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pythonyan.wordpress.com&blog=1393879&post=335&subd=pythonyan&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Preso da CodeProject <a href="http://www.codeproject.com/KB/aspnet/wcfinjavascript.aspx" target="_blank">articolo </a>molto interessante.</p>
<h2>Contents</h2>
<ul>
<li><a href="#1">Development Platform</a></li>
<li><a href="#2">Introduction</a></li>
<li><a href="#3">Using an AJAX-Enabled WCF Service Item Template</a></li>
<li><a href="#4">Using a Service Interface Defined in the Class Library</a></li>
<li><a href="#5">Configure a Web Application to Use the TODO Service</a></li>
<li><a href="#6">Using the Service in JavaScript</a></li>
<li><a href="#7">Summary</a></li>
<li><a href="#8">References</a></li>
</ul>
<h2><a name="1">Development Platform</a></h2>
<ol>
<li>Visual Studio 2008 SP1</li>
<li>.NET Framework 3.5 SP1</li>
<li>ASP.NET AJAX</li>
<li>IIS 7 or VS Integrated Web Server [WCF and SVS file configured]</li>
<li>Windows Vista</li>
</ol>
<p><img src="wcfinjavascript/ClientAjaxTodoApp.jpg" alt="ClientAjaxTodoApp.jpg" width="600" height="514" /></p>
<h2><a name="2">Introduction</a></h2>
<p>WCF (Windows Communication Foundation) added a lot of new capabilities to the  Microsoft application development platform, particularly in how applications  communicate with each other. In this article, we are going to see how WCF can be  used directly from a client-side JavaScript code. It is a very cool future  provided by ASP.NET AJAX. In this article, we are not going to cover every  theory about WCF internals, rather we only remain focused on how to use a  service directly from JavaScript. So, no behind-the-scenes stuff on how ASP.NET  or the .NET runtime manages this feature.</p>
<p>To demonstrate the ideas and facts, we are going create a demo solution with  two projects. So, with no time waste, create a blank solution and save it. Now,  add a Class Library project to the solution. Name the class library  <em>ServiceLibrary</em>. Now, add a Web Application project to the solution and  name it <em>WEBUI</em>. We are going to see two approaches to add a WCF Service  that can be consumed from JavaScript.</p>
<ol>
<li>Using Ajax-Enable WCF Service item template</li>
<li>Using Service Interface defined in a class library</li>
</ol>
<h2><a name="3">Using an AJAX-Enabled WCF Service Item Template</a></h2>
<p>Here, we will see a very straightforward way to use a WCF Service in  JavaScript. Right click on the Web Application project and select Add New Item.  Select <em>AJAX-Enabled WCF Service Item Template</em>, and name it  “<em>HelloWorldService.svc</em>” and click OK. The wizard will add a  <em>HelloWorldService.svc</em> file to the solution as expected. This file will  have a code-behind file as well. If you open <em>HelloWorldService.svc</em> in  an XML file editor, you will see a markup like this:</p>
<div id="premain0" class="SmallText" style="width:100%;"><img style="cursor:pointer;" src="http://www.codeproject.com/images/minus.gif" alt="" width="9" height="9" /><span style="margin-bottom:0;cursor:pointer;"> Collapse</span><img style="margin-left:35px;" src="http://www.codeproject.com/images/copy_16.png" alt="" width="16" height="16" /><a href="#"> Copy Code</a></div>
<pre style="margin-top:0;"><span class="code-pagedirective">&lt;%@</span><span class="code-leadattribute"> ServiceHost Language</span><span class="code-keyword">="</span><span class="code-keyword">C#"</span><span class="code-attribute"> Debug</span><span class="code-keyword">="</span><span class="code-keyword">true"</span><span class="code-attribute">
  Service</span><span class="code-keyword">="</span><span class="code-keyword">WebUI.HelloWorldService"</span><span class="code-attribute"> CodeBehind</span><span class="code-keyword">="</span><span class="code-keyword">HelloWorldService.svc.cs"</span><span class="code-attribute"> </span><span class="code-pagedirective">%&gt;</span></pre>
<p><img src="wcfinjavascript/ChooseItemTemplate.jpg" alt="ChooseItemTemplate.jpg" width="600" height="344" /></p>
<p>If you open the code-behind file, you will see code like this:</p>
<div id="premain1" class="SmallText" style="width:100%;"><img style="cursor:pointer;" src="http://www.codeproject.com/images/minus.gif" alt="" width="9" height="9" /><span style="margin-bottom:0;cursor:pointer;"> Collapse</span><img style="margin-left:35px;" src="http://www.codeproject.com/images/copy_16.png" alt="" width="16" height="16" /><a href="#"> Copy Code</a></div>
<pre style="margin-top:0;"><span class="code-keyword">namespace</span> WebUI
{
    [ServiceContract(Namespace = <span class="code-string">"</span><span class="code-string">"</span>)]
    [AspNetCompatibilityRequirements(RequirementsMode =
        AspNetCompatibilityRequirementsMode.Allowed)]
    <span class="code-keyword">public</span> <span class="code-keyword">class</span> HelloWorldService
    {
        [OperationContract]
        <span class="code-keyword">public</span> <span class="code-keyword">void</span> DoWork()
        {
            <span class="code-keyword">return</span>;
        }
    }
}</pre>
<p>Visual Studio 2008 automatically adds the necessary configurations for you in  the <em>web.config</em> file, so no need to configure any thing in the  <em>web.config</em>. Now, go ahead and add a <code>HelloWorld()</code> method  which returns a string “HelloWorld”, and add a <code>[OperationContract]</code> attribute to the method. We will explain what the attributes are later in this  article. Now, add a page to the Web Application project and name it  “<em>HelloWorldTest.aspx</em>”. Drag and drop a Script Manager item from the  Visual Studio tool box. Inside the <code>ScriptManager</code> tag, add a service  reference to the service. An example code is given below:</p>
<div id="premain2" class="SmallText" style="width:100%;"><img style="cursor:pointer;" src="http://www.codeproject.com/images/minus.gif" alt="" width="9" height="9" /><span style="margin-bottom:0;cursor:pointer;"> Collapse</span><img style="margin-left:35px;" src="http://www.codeproject.com/images/copy_16.png" alt="" width="16" height="16" /><a href="#"> Copy Code</a></div>
<pre style="margin-top:0;"><span class="code-keyword">&lt;</span><span class="code-leadattribute">asp:ScriptManager</span> <span class="code-attribute">ID</span><span class="code-keyword">="</span><span class="code-keyword">ScriptManager1"</span> <span class="code-attribute">runat</span><span class="code-keyword">="</span><span class="code-keyword">server"</span><span class="code-keyword">&gt;</span>
    <span class="code-keyword">&lt;</span><span class="code-leadattribute">Services</span><span class="code-keyword">&gt;</span>
        <span class="code-keyword">&lt;</span><span class="code-leadattribute">asp:ServiceReference</span> <span class="code-attribute">Path</span><span class="code-keyword">="</span><span class="code-keyword">~/HelloWorldService.svc"</span> <span class="code-keyword">/</span><span class="code-keyword">&gt;</span>
    <span class="code-keyword">&lt;</span><span class="code-keyword">/</span><span class="code-leadattribute">Services</span><span class="code-keyword">&gt;</span>
<span class="code-keyword">&lt;</span><span class="code-keyword">/</span><span class="code-leadattribute">asp:ScriptManager</span><span class="code-keyword">&gt;</span></pre>
<p>Now, add a button and a textbox to the page, and on the button click event,  use a JavaScript function to call the Service. When you write the service call  function, the Visual Studio 2008 HTML Editor will provide intellisense to write  the necessary function call. The full HTML code is give below:</p>
<div id="premain3" class="SmallText" style="width:100%;"><img style="cursor:pointer;" src="http://www.codeproject.com/images/minus.gif" alt="" width="9" height="9" /><span style="margin-bottom:0;cursor:pointer;"> Collapse</span><img style="margin-left:35px;" src="http://www.codeproject.com/images/copy_16.png" alt="" width="16" height="16" /><a href="#"> Copy Code</a></div>
<pre style="margin-top:0;"><span class="code-keyword">&lt;</span><span class="code-leadattribute">form</span> <span class="code-attribute">id</span><span class="code-keyword">="</span><span class="code-keyword">form1"</span> <span class="code-attribute">runat</span><span class="code-keyword">="</span><span class="code-keyword">server"</span><span class="code-keyword">&gt;</span>
<span class="code-keyword">&lt;</span><span class="code-leadattribute">div</span><span class="code-keyword">&gt;</span>
    <span class="code-keyword">&lt;</span><span class="code-leadattribute">script</span> <span class="code-attribute">language</span><span class="code-keyword">="</span><span class="code-keyword">javascript"</span> <span class="code-attribute">type</span><span class="code-keyword">="</span><span class="code-keyword">text/javascript"</span><span class="code-keyword">&gt;</span>
        <span class="code-keyword">function</span> GetValueFromServer() {
            HelloWorldService.HelloWorld(onSuccess, onFailure);
        }

        <span class="code-keyword">function</span> onSuccess(result) {
            document.getElementById(<span class="code-string">'</span><span class="code-string">txtValueContainer'</span>).value = result;
        }

        <span class="code-keyword">function</span> onFailure(result) {
            window.alert(result);
        }
    <span class="code-keyword">&lt;/</span><span class="code-leadattribute">script</span><span class="code-keyword">&gt;</span>
    <span class="code-keyword">&lt;</span><span class="code-leadattribute">asp:ScriptManager</span> <span class="code-attribute">ID</span><span class="code-keyword">="</span><span class="code-keyword">ScriptManager1"</span> <span class="code-attribute">runat</span><span class="code-keyword">="</span><span class="code-keyword">server"</span><span class="code-keyword">&gt;</span>
        <span class="code-keyword">&lt;</span><span class="code-leadattribute">Services</span><span class="code-keyword">&gt;</span>
            <span class="code-keyword">&lt;</span><span class="code-leadattribute">asp:ServiceReference</span> <span class="code-attribute">Path</span><span class="code-keyword">="</span><span class="code-keyword">~/HelloWorldService.svc"</span> <span class="code-keyword">/</span><span class="code-keyword">&gt;</span>
        <span class="code-keyword">&lt;</span><span class="code-keyword">/</span><span class="code-leadattribute">Services</span><span class="code-keyword">&gt;</span>
    <span class="code-keyword">&lt;</span><span class="code-keyword">/</span><span class="code-leadattribute">asp:ScriptManager</span><span class="code-keyword">&gt;</span>
    <span class="code-keyword">&lt;</span><span class="code-leadattribute">input</span> <span class="code-attribute">id</span><span class="code-keyword">="</span><span class="code-keyword">btnServiceCaller"</span> <span class="code-attribute">type</span><span class="code-keyword">="</span><span class="code-keyword">button"</span> <span class="code-attribute">value</span><span class="code-keyword">="</span><span class="code-keyword">Get Value"</span>
           <span class="code-attribute">onclick</span><span class="code-keyword">="</span><span class="code-keyword">GetValueFromServer()"</span><span class="code-attribute">;</span> <span class="code-keyword">/</span><span class="code-keyword">&gt;</span>
    <span class="code-keyword">&lt;</span><span class="code-leadattribute">input</span> <span class="code-attribute">id</span><span class="code-keyword">="</span><span class="code-keyword">txtValueContainer"</span> <span class="code-attribute">type</span><span class="code-keyword">="</span><span class="code-keyword">text"</span> <span class="code-attribute">value</span><span class="code-keyword">="</span><span class="code-keyword">"</span> <span class="code-keyword">/</span><span class="code-keyword">&gt;</span>
<span class="code-keyword">&lt;</span><span class="code-keyword">/</span><span class="code-leadattribute">div</span><span class="code-keyword">&gt;</span>
<span class="code-keyword">&lt;</span><span class="code-keyword">/</span><span class="code-leadattribute">form</span><span class="code-keyword">&gt;</span></pre>
<p>Note that when calling the service, we have passed two methods: one for the  callback and the other for the error callback. If we need to pass any parameters  to the function, the parameters will go first and then the callback. So, if we  have a function named <code>getvalue</code> which takes two string parameters as  arguments, we are going to call the function as  <em>[NameSpaceName].[ServiceName].getvalue(“value one”,”value  two”,on_success,on_error);</em>, where <code>on_sucess</code> and  <code>on_error</code> are the callback and the error callback, respectively.</p>
<h2><a name="4">Using a Service Interface Defined in the Class Library</a></h2>
<p>So, we have looked at how to use an AJAX-enabled WCF Service using an item  template. Now, we are going to see a more traditional WCF Service  implementation, and we are also going to see how we can expose this service for  ASP.NET AJAX. When we created the Class Library project, by default, it is not  added with the service model and the runtime serialization support which is  necessary to run WCF. So, we have to add the necessary service references. Go  ahead and right click on the Class Library project and select Add Reference, and  then select these references:</p>
<ul>
<li><code>System.Runtime.Serialization</code></li>
<li><code>System.ServiceModel</code></li>
</ul>
<p><img src="wcfinjavascript/ProjectOfTodo.png" alt="ProjectOfTodo.png" width="421" height="572" /></p>
<p>In this phase, we are going to use a TODO Management example to demonstrate  the whole idea. Add a Service based database, and then create a <em>TODO</em> table with <code>ID</code>, <code>Description</code>, and <code>Status</code> fields. Now, add a LINQ to SQL class file from the item template. Drag and drop  the <em>TODO</em> table from database to the LINQ to SQL Class File Designer.  Now, click on the designer surface and from the property window, change the  serialization mode to Unidirectional. Now, our designer generated LINQ to SQL  classes are ready to be used for WCF. If you want to use custom user defined  types, you must set the <code>[DataContract]</code> class attribute to your  class and you must add the <code>[DataMember]</code> property attribute to each  property of the class you want to expose to WCF.</p>
<p>Now, we are going to add a service interface like this:</p>
<div id="premain4" class="SmallText" style="width:100%;"><img style="cursor:pointer;" src="http://www.codeproject.com/images/minus.gif" alt="" width="9" height="9" /><span style="margin-bottom:0;cursor:pointer;"> Collapse</span><img style="margin-left:35px;" src="http://www.codeproject.com/images/copy_16.png" alt="" width="16" height="16" /><a href="#"> Copy Code</a></div>
<pre style="margin-top:0;"><span class="code-keyword">namespace</span> ServiceLibrary
{
    [ServiceContract(Namespace = <span class="code-string">"</span><span class="code-string">ServiceLibrary"</span>)]
    <span class="code-keyword">interface</span> IToDoService
    {
        [OperationContract]
        ToDo GetToDo(<span class="code-keyword">long</span> ID);
        [OperationContract]
        ToDo AddToDo(ToDo toDo);
        [OperationContract]
        <span class="code-keyword">bool</span> DeleteToDo(ToDo todo);
        [OperationContract]
        ToDo UpdateToDo(ToDo todo);
        [OperationContract]
        List&lt;ToDo&gt; GetAllToDo();
    }
}</pre>
<p>Note that we have mentioned a namespace inside the  <code>ServiceContract</code> interface attribute. This is very important. We are  going to use this name as the service name inside the JavaScript code to access  the services. Now, we are going to add the implementation to this service  interface; the code is given below. Please note that in the code, I have used  the <code>[AspNetCompatibilityRequirements(RequirementsMode =  AspNetCompatibilityRequirementsMode.Allowed)]</code> class attribute; this is a  must requirement for exposing the service as an ASP.NET AJAX enabled WCF  Service.</p>
<div id="premain5" class="SmallText" style="width:100%;"><img style="cursor:pointer;" src="http://www.codeproject.com/images/minus.gif" alt="" width="9" height="9" /><span style="margin-bottom:0;cursor:pointer;"> Collapse</span><img style="margin-left:35px;" src="http://www.codeproject.com/images/copy_16.png" alt="" width="16" height="16" /><a href="#"> Copy Code</a></div>
<pre style="margin-top:0;"><span class="code-keyword">namespace</span> ServiceLibrary
{
    [AspNetCompatibilityRequirements(RequirementsMode =
        AspNetCompatibilityRequirementsMode.Allowed)]
    <span class="code-keyword">public</span> <span class="code-keyword">class</span> ToDoService : IToDoService
    {
        <span class="code-preprocessor">#region</span> IToDoService Members
        <span class="code-keyword">public</span> ToDo GetToDo(<span class="code-keyword">long</span> ID)
        {
            DataClasses1DataContext context = <span class="code-keyword">new</span> DataClasses1DataContext();
            var toDos = from p <span class="code-keyword">in</span> context.ToDos
                        where p.ID == ID
                        select p;
            List&lt;ToDo&gt; listTodos =  toDos.ToList();
            <span class="code-keyword">if</span> (listTodos != <span class="code-keyword">null</span> &amp;&amp; listTodos.Count &gt; <span class="code-digit">0</span>)
            {
                <span class="code-keyword">return</span> listTodos[<span class="code-digit">0</span>];
            }
            <span class="code-keyword">else</span>
            {
                <span class="code-keyword">return</span> <span class="code-keyword">null</span>;
            }
        }
        <span class="code-preprocessor">#endregion</span>
    }
}</pre>
<h2><a name="5">Configure a Web Application to Use the TODO Service</a></h2>
<p>Now that we have defined all the necessary stuff to run our TODO application,  it is time to expose the Service to the client as an ASP.NET AJAX enabled WCF  Service. For this, we are going to add an AJAX-enabled WCF Service <em>.svc</em> file. And, we will get rid of the code-behind file. Or, we can add an XML file  or a text file and then rename it to <em>ToDoService.svc</em>. Open it with an  XML editor and add a directive like shown below:</p>
<div id="premain6" class="SmallText" style="width:100%;"><img style="cursor:pointer;" src="http://www.codeproject.com/images/minus.gif" alt="" width="9" height="9" /><span style="margin-bottom:0;cursor:pointer;"> Collapse</span><img style="margin-left:35px;" src="http://www.codeproject.com/images/copy_16.png" alt="" width="16" height="16" /><a href="#"> Copy Code</a></div>
<pre style="margin-top:0;"><span class="code-pagedirective">&lt;%@</span><span class="code-leadattribute"> ServiceHost Language</span><span class="code-keyword">="</span><span class="code-keyword">C#"</span><span class="code-attribute"> Debug</span><span class="code-keyword">="</span><span class="code-keyword">true"</span><span class="code-attribute"> Service</span><span class="code-keyword">="</span><span class="code-keyword">ServiceLibrary.ToDoService"</span><span class="code-attribute"> </span><span class="code-pagedirective">%&gt;</span></pre>
<p>Now, we are going to put the necessary configuration to run this service in  <em>web.config</em>. The code is given below:</p>
<div id="premain7" class="SmallText" style="width:100%;"><img style="cursor:pointer;" src="http://www.codeproject.com/images/minus.gif" alt="" width="9" height="9" /><span style="margin-bottom:0;cursor:pointer;"> Collapse</span><img style="margin-left:35px;" src="http://www.codeproject.com/images/copy_16.png" alt="" width="16" height="16" /><a href="#"> Copy Code</a></div>
<pre style="margin-top:0;"><span class="code-keyword">&lt;</span><span class="code-leadattribute">system.serviceModel</span><span class="code-keyword">&gt;</span>
  <span class="code-keyword">&lt;</span><span class="code-leadattribute">behaviors</span><span class="code-keyword">&gt;</span>
   <span class="code-keyword">&lt;</span><span class="code-leadattribute">endpointBehaviors</span><span class="code-keyword">&gt;</span>
    <span class="code-keyword">&lt;</span><span class="code-leadattribute">behavior</span> <span class="code-attribute">name</span><span class="code-keyword">="</span><span class="code-keyword">AspNetAjaxBehavior"</span><span class="code-keyword">&gt;</span>
     <span class="code-keyword">&lt;</span><span class="code-leadattribute">enableWebScript</span> <span class="code-keyword">/</span><span class="code-keyword">&gt;</span>
    <span class="code-keyword">&lt;</span><span class="code-keyword">/</span><span class="code-leadattribute">behavior</span><span class="code-keyword">&gt;</span>
    <span class="code-keyword">&lt;</span><span class="code-leadattribute">behavior</span> <span class="code-attribute">name</span><span class="code-keyword">="</span><span class="code-keyword">WebUI.HelloWorldServiceAspNetAjaxBehavior"</span><span class="code-keyword">&gt;</span>
     <span class="code-keyword">&lt;</span><span class="code-leadattribute">enableWebScript</span> <span class="code-keyword">/</span><span class="code-keyword">&gt;</span>
    <span class="code-keyword">&lt;</span><span class="code-keyword">/</span><span class="code-leadattribute">behavior</span><span class="code-keyword">&gt;</span>
   <span class="code-keyword">&lt;</span><span class="code-keyword">/</span><span class="code-leadattribute">endpointBehaviors</span><span class="code-keyword">&gt;</span>
  <span class="code-keyword">&lt;</span><span class="code-keyword">/</span><span class="code-leadattribute">behaviors</span><span class="code-keyword">&gt;</span>
  <span class="code-keyword">&lt;</span><span class="code-leadattribute">serviceHostingEnvironment</span> <span class="code-attribute">aspNetCompatibilityEnabled</span><span class="code-keyword">="</span><span class="code-keyword">true"</span> <span class="code-keyword">/</span><span class="code-keyword">&gt;</span>
  <span class="code-keyword">&lt;</span><span class="code-leadattribute">services</span><span class="code-keyword">&gt;</span>
   <span class="code-keyword">&lt;</span><span class="code-leadattribute">service</span> <span class="code-attribute">name</span><span class="code-keyword">="</span><span class="code-keyword">ServiceLibrary.ToDoService"</span><span class="code-keyword">&gt;</span>
    <span class="code-keyword">&lt;</span><span class="code-leadattribute">endpoint</span> <span class="code-attribute">behaviorConfiguration</span><span class="code-keyword">="</span><span class="code-keyword">AspNetAjaxBehavior"</span> <span class="code-attribute">binding</span><span class="code-keyword">="</span><span class="code-keyword">webHttpBinding"</span>
     <span class="code-attribute">contract</span><span class="code-keyword">="</span><span class="code-keyword">ServiceLibrary.IToDoService"</span> <span class="code-keyword">/</span><span class="code-keyword">&gt;</span>
   <span class="code-keyword">&lt;</span><span class="code-keyword">/</span><span class="code-leadattribute">service</span><span class="code-keyword">&gt;</span>
   <span class="code-keyword">&lt;</span><span class="code-leadattribute">service</span> <span class="code-attribute">name</span><span class="code-keyword">="</span><span class="code-keyword">WebUI.HelloWorldService"</span><span class="code-keyword">&gt;</span>
    <span class="code-keyword">&lt;</span><span class="code-leadattribute">endpoint</span> <span class="code-attribute">address</span><span class="code-keyword">="</span><span class="code-keyword">"</span> <span class="code-attribute">behaviorConfiguration</span><span class="code-keyword">="</span><span class="code-keyword">WebUI.HelloWorldServiceAspNetAjaxBehavior"</span>
     <span class="code-attribute">binding</span><span class="code-keyword">="</span><span class="code-keyword">webHttpBinding"</span> <span class="code-attribute">contract</span><span class="code-keyword">="</span><span class="code-keyword">WebUI.HelloWorldService"</span> <span class="code-keyword">/</span><span class="code-keyword">&gt;</span>
   <span class="code-keyword">&lt;</span><span class="code-keyword">/</span><span class="code-leadattribute">service</span><span class="code-keyword">&gt;</span>
  <span class="code-keyword">&lt;</span><span class="code-keyword">/</span><span class="code-leadattribute">services</span><span class="code-keyword">&gt;</span>
<span class="code-keyword">&lt;</span><span class="code-keyword">/</span><span class="code-leadattribute">system.serviceModel</span><span class="code-keyword">&gt;</span></pre>
<p>Now, right click on the file and select View in Browser to see the service up  and running well. A few things must be mentioned before moving to the next  phase. You must add a <code>serviceHostingEnvironment</code> and set <code>aspNetCompatibilityEnabled="true"</code> to be able to use a WCF  Service in ASP.NET with its features like HTTP Context, Session etc.</p>
<h2><a name="6">Using the Service in JavaScript</a></h2>
<p>Now, use the service just like the HelloWorldService we previously used.  Below, I have given example code to make things clear. The  <code>ScriptManager</code> markup is also shown. Note that we have added a  <em>clientServiceHelper.js</em> file. We have put all the client to WCF  communication JavaScript functions in that file.</p>
<div id="premain8" class="SmallText" style="width:100%;"><img style="cursor:pointer;" src="http://www.codeproject.com/images/minus.gif" alt="" width="9" height="9" /><span style="margin-bottom:0;cursor:pointer;"> Collapse</span><img style="margin-left:35px;" src="http://www.codeproject.com/images/copy_16.png" alt="" width="16" height="16" /><a href="#"> Copy Code</a></div>
<pre style="margin-top:0;"><span class="code-keyword">&lt;</span><span class="code-leadattribute">asp:ScriptManager</span> <span class="code-attribute">ID</span><span class="code-keyword">="</span><span class="code-keyword">ScriptManager1"</span> <span class="code-attribute">runat</span><span class="code-keyword">="</span><span class="code-keyword">server"</span><span class="code-keyword">&gt;</span>
    <span class="code-keyword">&lt;</span><span class="code-leadattribute">Scripts</span><span class="code-keyword">&gt;</span>
        <span class="code-keyword">&lt;</span><span class="code-leadattribute">asp:ScriptReference</span> <span class="code-attribute">Path</span><span class="code-keyword">="</span><span class="code-keyword">~/Script/ClientServiceHeler.js"</span> <span class="code-keyword">/</span><span class="code-keyword">&gt;</span>
    <span class="code-keyword">&lt;</span><span class="code-keyword">/</span><span class="code-leadattribute">Scripts</span><span class="code-keyword">&gt;</span>
    <span class="code-keyword">&lt;</span><span class="code-leadattribute">Services</span><span class="code-keyword">&gt;</span>
        <span class="code-keyword">&lt;</span><span class="code-leadattribute">asp:ServiceReference</span> <span class="code-attribute">Path</span><span class="code-keyword">="</span><span class="code-keyword">~/ToDoService.svc"</span> <span class="code-keyword">/</span><span class="code-keyword">&gt;</span>
    <span class="code-keyword">&lt;</span><span class="code-keyword">/</span><span class="code-leadattribute">Services</span><span class="code-keyword">&gt;</span>
<span class="code-keyword">&lt;</span><span class="code-keyword">/</span><span class="code-leadattribute">asp:ScriptManager</span><span class="code-keyword">&gt;</span></pre>
<p>We have used an ASP.NET AJAX client-side object oriented model to write the  JavaScript client-code which is part of <em>clientServiceHelper.js</em>.</p>
<div id="premain9" class="SmallText" style="width:100%;"><img style="cursor:pointer;" src="http://www.codeproject.com/images/minus.gif" alt="" width="9" height="9" /><span style="margin-bottom:0;cursor:pointer;"> Collapse</span><img style="margin-left:35px;" src="http://www.codeproject.com/images/copy_16.png" alt="" width="16" height="16" /><a href="#"> Copy Code</a></div>
<pre style="margin-top:0;">Type.registerNamespace(<span class="code-string">"</span><span class="code-string">ServiceClients"</span>);
    ServiceClients.ToDoClient = function() {
}

ServiceClients.ToDoClient.prototype = {

    AddToDo: function(todo, callback, errorCallBack) {
        ServiceLibrary.IToDoService.AddToDo(todo, callback, errorCallBack);
    },

    DeleteToDo: function(todo, callback, errorCallBack) {
        ServiceLibrary.IToDoService.DeleteToDo(todo, callback, errorCallBack);
    },

    UpdateToDo: function(todo, callback, errorCallBack) {
        ServiceLibrary.IToDoService.UpdateToDo(todo, callback, errorCallBack);
    },

    GetAllToDo: function(callback, errorCallBack) {
        ServiceLibrary.IToDoService.GetAllToDo(callback, errorCallBack);
    },

    dispose: function() {
    }
}

ServiceClients.ToDoClient.registerClass(<span class="code-string">'</span><span class="code-string">ServiceClients.ToDoClient'</span>, <span class="code-keyword">null</span>, Sys.IDisposable)

<span class="code-keyword">if</span> (<span class="code-keyword">typeof</span> (Sys) !== <span class="code-string">'</span><span class="code-string">undefined'</span>) Sys.Application.notifyScriptLoaded();</pre>
<h2><a name="7">Summary</a></h2>
<p>In this article, we have seen how we can use an AJAX-enabled WCF Service Item  Template. Then, we saw how we can use a service interface based WCF Service. We  also saw how to configure the <em>web.config</em> to use the Services. Last of  all, we saw how we to add a service reference in <code>ScriptManager</code>. A  few things must be mentioned before ending this article. We can also add a  service reference in the C# code. A simple code example is given below:.</p>
<div id="premain10" class="SmallText" style="width:100%;"><img style="cursor:pointer;" src="http://www.codeproject.com/images/minus.gif" alt="" width="9" height="9" /><span style="margin-bottom:0;cursor:pointer;"> Collapse</span><img style="margin-left:35px;" src="http://www.codeproject.com/images/copy_16.png" alt="" width="16" height="16" /><a href="#"> Copy Code</a></div>
<pre style="margin-top:0;">ScriptManager manager = ScriptManager.GetCurrent(Page);
ServiceReference reference = <span class="code-keyword">new</span> ServiceReference(<span class="code-string">"</span><span class="code-string">ToDoService.svc"</span>);
manager.Services.Add(reference);</pre>
<p>If beginners encounter problems or do not understand any particular portion  of the article, please drop me a message. You can learn the ABCs of WCF <a href="http://msdn.microsoft.com/en-us/library/aa480190.aspx" target="_blank">here</a>. If you have any difficulty configuring WCF in IIS,  please see the article <a href="http://msdn.microsoft.com/en-us/library/bb763177.aspx" target="_blank">here</a>.</p>
<h2><a name="8">References</a></h2>
<ul>
<li><a href="http://msdn.microsoft.com/en-us/library/aa480190.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/aa480190.aspx</a> [WCF -  ABC]</li>
<li><a href="http://munna.shatkotha.com/Blog/post/2008/07/08/Install-WCF-Aspnet-in-IIS7.aspx" target="_blank">http://munna.shatkotha.com/Blog/post/2008/07/08/Install-WCF-Aspnet-in-IIS7.aspx</a> [Configure WCF]</li>
<li><a href="http://msdn.microsoft.com/en-us/library/bb514961.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/bb514961.aspx</a> [Expose  WCF to Client Script]</li>
<li><a href="http://msdn.microsoft.com/en-us/library/bb763177.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/bb763177.aspx</a> [Configure WCF in an ASP.NET Environment]</li>
<li><a href="http://msdn.microsoft.com/en-us/library/bb398785.aspx">http://msdn.microsoft.com/en-us/library/bb398785.aspx</a> [Web Services in ASP.NET]</li>
<li><a href="http://peterkellner.net/2008/09/14/wcf-web-service-json-vs2008/" target="_blank">http://peterkellner.net/2008/09/14/wcf-web-service-json-vs2008/</a> [Article discussing the same concept]</li>
</ul>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pythonyan.wordpress.com/335/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pythonyan.wordpress.com/335/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pythonyan.wordpress.com/335/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pythonyan.wordpress.com/335/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pythonyan.wordpress.com/335/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pythonyan.wordpress.com/335/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pythonyan.wordpress.com/335/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pythonyan.wordpress.com/335/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pythonyan.wordpress.com/335/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pythonyan.wordpress.com/335/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pythonyan.wordpress.com&blog=1393879&post=335&subd=pythonyan&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://pythonyan.wordpress.com/2009/03/24/a-beginner%e2%80%99s-guide-for-consuming-a-wcf-service-in-javascript-using-aspnet-ajax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/86d14eb34cd8ef5583383c4a8612c0b1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pythonyan</media:title>
		</media:content>

		<media:content url="wcfinjavascript/ClientAjaxTodoApp.jpg" medium="image">
			<media:title type="html">ClientAjaxTodoApp.jpg</media:title>
		</media:content>

		<media:content url="http://www.codeproject.com/images/minus.gif" medium="image" />

		<media:content url="http://www.codeproject.com/images/copy_16.png" medium="image" />

		<media:content url="wcfinjavascript/ChooseItemTemplate.jpg" medium="image">
			<media:title type="html">ChooseItemTemplate.jpg</media:title>
		</media:content>

		<media:content url="http://www.codeproject.com/images/minus.gif" medium="image" />

		<media:content url="http://www.codeproject.com/images/copy_16.png" medium="image" />

		<media:content url="http://www.codeproject.com/images/minus.gif" medium="image" />

		<media:content url="http://www.codeproject.com/images/copy_16.png" medium="image" />

		<media:content url="http://www.codeproject.com/images/minus.gif" medium="image" />

		<media:content url="http://www.codeproject.com/images/copy_16.png" medium="image" />

		<media:content url="wcfinjavascript/ProjectOfTodo.png" medium="image">
			<media:title type="html">ProjectOfTodo.png</media:title>
		</media:content>

		<media:content url="http://www.codeproject.com/images/minus.gif" medium="image" />

		<media:content url="http://www.codeproject.com/images/copy_16.png" medium="image" />

		<media:content url="http://www.codeproject.com/images/minus.gif" medium="image" />

		<media:content url="http://www.codeproject.com/images/copy_16.png" medium="image" />

		<media:content url="http://www.codeproject.com/images/minus.gif" medium="image" />

		<media:content url="http://www.codeproject.com/images/copy_16.png" medium="image" />

		<media:content url="http://www.codeproject.com/images/minus.gif" medium="image" />

		<media:content url="http://www.codeproject.com/images/copy_16.png" medium="image" />

		<media:content url="http://www.codeproject.com/images/minus.gif" medium="image" />

		<media:content url="http://www.codeproject.com/images/copy_16.png" medium="image" />

		<media:content url="http://www.codeproject.com/images/minus.gif" medium="image" />

		<media:content url="http://www.codeproject.com/images/copy_16.png" medium="image" />

		<media:content url="http://www.codeproject.com/images/minus.gif" medium="image" />

		<media:content url="http://www.codeproject.com/images/copy_16.png" medium="image" />
	</item>
		<item>
		<title>ASP.Net 3.5 Sample Application of LINQ, WFC, JSON and AJAX</title>
		<link>http://pythonyan.wordpress.com/2008/09/09/aspnet-35-sample-application-of-linq-wfc-json-and-ajax/</link>
		<comments>http://pythonyan.wordpress.com/2008/09/09/aspnet-35-sample-application-of-linq-wfc-json-and-ajax/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 07:23:33 +0000</pubDate>
		<dc:creator>pythonyan</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Linq]]></category>
		<category><![CDATA[NET]]></category>
		<category><![CDATA[WCF]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Framework 3.5]]></category>

		<guid isPermaLink="false">http://pythonyan.wordpress.com/?p=289</guid>
		<description><![CDATA[DA CodeProject un articolo su alcune nuove funzionalità del framework 3.5 di casa Microsoft.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pythonyan.wordpress.com&blog=1393879&post=289&subd=pythonyan&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>DA CodeProject un <a href="http://http://www.codeproject.com/KB/aspnet/WelcomeToTheNew.aspx">articolo </a>su alcune nuove funzionalità del framework 3.5 di casa Microsoft.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pythonyan.wordpress.com/289/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pythonyan.wordpress.com/289/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pythonyan.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pythonyan.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pythonyan.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pythonyan.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pythonyan.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pythonyan.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pythonyan.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pythonyan.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pythonyan.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pythonyan.wordpress.com/289/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pythonyan.wordpress.com&blog=1393879&post=289&subd=pythonyan&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://pythonyan.wordpress.com/2008/09/09/aspnet-35-sample-application-of-linq-wfc-json-and-ajax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/86d14eb34cd8ef5583383c4a8612c0b1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pythonyan</media:title>
		</media:content>
	</item>
		<item>
		<title>Wcf Security Learning Guide</title>
		<link>http://pythonyan.wordpress.com/2008/08/26/wcf-security-learning-guide/</link>
		<comments>http://pythonyan.wordpress.com/2008/08/26/wcf-security-learning-guide/#comments</comments>
		<pubDate>Tue, 26 Aug 2008 14:55:08 +0000</pubDate>
		<dc:creator>pythonyan</dc:creator>
				<category><![CDATA[WCF]]></category>

		<guid isPermaLink="false">http://pythonyan.wordpress.com/?p=277</guid>
		<description><![CDATA[Un link dove viene riassunto tutto il materiale possibile  esistente in rete per lavorare con WCF, security compresa ovviamente.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pythonyan.wordpress.com&blog=1393879&post=277&subd=pythonyan&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Un <a href="http://www.theserverside.net/tt/articles/showarticle.tss?id=WCFSecurityLearningGuide&amp;asrc=EM_NLN_1854092&amp;uid=2453702#SecInfo">link </a>dove viene riassunto tutto il materiale possibile  esistente in rete per lavorare con WCF, security compresa ovviamente.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pythonyan.wordpress.com/277/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pythonyan.wordpress.com/277/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pythonyan.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pythonyan.wordpress.com/277/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pythonyan.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pythonyan.wordpress.com/277/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pythonyan.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pythonyan.wordpress.com/277/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pythonyan.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pythonyan.wordpress.com/277/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pythonyan.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pythonyan.wordpress.com/277/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pythonyan.wordpress.com&blog=1393879&post=277&subd=pythonyan&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://pythonyan.wordpress.com/2008/08/26/wcf-security-learning-guide/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/86d14eb34cd8ef5583383c4a8612c0b1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pythonyan</media:title>
		</media:content>
	</item>
		<item>
		<title>WCF Security Guidance</title>
		<link>http://pythonyan.wordpress.com/2008/08/22/wcf-security-guidance/</link>
		<comments>http://pythonyan.wordpress.com/2008/08/22/wcf-security-guidance/#comments</comments>
		<pubDate>Fri, 22 Aug 2008 08:11:40 +0000</pubDate>
		<dc:creator>pythonyan</dc:creator>
				<category><![CDATA[WCF]]></category>

		<guid isPermaLink="false">http://pythonyan.wordpress.com/?p=269</guid>
		<description><![CDATA[Da Pattern&#38;Practice su Codeplex è possibile scaricare e documentarsi sulla bibbia della Security in WCF.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pythonyan.wordpress.com&blog=1393879&post=269&subd=pythonyan&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Da Pattern&amp;Practice su Codeplex è possibile scaricare e documentarsi sulla <a href="http://www.codeplex.com/WCFSecurity">bibbia </a>della Security in WCF.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pythonyan.wordpress.com/269/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pythonyan.wordpress.com/269/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pythonyan.wordpress.com/269/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pythonyan.wordpress.com/269/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pythonyan.wordpress.com/269/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pythonyan.wordpress.com/269/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pythonyan.wordpress.com/269/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pythonyan.wordpress.com/269/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pythonyan.wordpress.com/269/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pythonyan.wordpress.com/269/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pythonyan.wordpress.com/269/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pythonyan.wordpress.com/269/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pythonyan.wordpress.com&blog=1393879&post=269&subd=pythonyan&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://pythonyan.wordpress.com/2008/08/22/wcf-security-guidance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/86d14eb34cd8ef5583383c4a8612c0b1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pythonyan</media:title>
		</media:content>
	</item>
		<item>
		<title>Le basi di WCF</title>
		<link>http://pythonyan.wordpress.com/2008/08/19/le-basi-di-wcf/</link>
		<comments>http://pythonyan.wordpress.com/2008/08/19/le-basi-di-wcf/#comments</comments>
		<pubDate>Tue, 19 Aug 2008 12:59:22 +0000</pubDate>
		<dc:creator>pythonyan</dc:creator>
				<category><![CDATA[WCF]]></category>

		<guid isPermaLink="false">http://pythonyan.wordpress.com/?p=263</guid>
		<description><![CDATA[Il link su MSDN per accedere alle risorse on-line di WCF base.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pythonyan.wordpress.com&blog=1393879&post=263&subd=pythonyan&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Il <a href="http://msdn.microsoft.com/it-it/library/ms731067.aspx">link </a>su MSDN per accedere alle risorse on-line di WCF base.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pythonyan.wordpress.com/263/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pythonyan.wordpress.com/263/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pythonyan.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pythonyan.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pythonyan.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pythonyan.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pythonyan.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pythonyan.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pythonyan.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pythonyan.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pythonyan.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pythonyan.wordpress.com/263/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pythonyan.wordpress.com&blog=1393879&post=263&subd=pythonyan&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://pythonyan.wordpress.com/2008/08/19/le-basi-di-wcf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/86d14eb34cd8ef5583383c4a8612c0b1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pythonyan</media:title>
		</media:content>
	</item>
		<item>
		<title>Wcf in pillole</title>
		<link>http://pythonyan.wordpress.com/2008/08/19/wcf-in-pillole/</link>
		<comments>http://pythonyan.wordpress.com/2008/08/19/wcf-in-pillole/#comments</comments>
		<pubDate>Tue, 19 Aug 2008 12:57:51 +0000</pubDate>
		<dc:creator>pythonyan</dc:creator>
				<category><![CDATA[WCF]]></category>

		<guid isPermaLink="false">http://pythonyan.wordpress.com/?p=261</guid>
		<description><![CDATA[Su Msdn Blog un articolo di Brambati per&#8230;partire con WCF.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pythonyan.wordpress.com&blog=1393879&post=261&subd=pythonyan&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Su Msdn Blog un <a href="http://blogs.msdn.com/pietrobr/archive/2007/07/19/windows-communication-foundation-wcf-qualche-web-pillola.aspx">articolo </a>di Brambati per&#8230;partire con WCF.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pythonyan.wordpress.com/261/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pythonyan.wordpress.com/261/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pythonyan.wordpress.com/261/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pythonyan.wordpress.com/261/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pythonyan.wordpress.com/261/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pythonyan.wordpress.com/261/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pythonyan.wordpress.com/261/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pythonyan.wordpress.com/261/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pythonyan.wordpress.com/261/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pythonyan.wordpress.com/261/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pythonyan.wordpress.com/261/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pythonyan.wordpress.com/261/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pythonyan.wordpress.com&blog=1393879&post=261&subd=pythonyan&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://pythonyan.wordpress.com/2008/08/19/wcf-in-pillole/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/86d14eb34cd8ef5583383c4a8612c0b1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pythonyan</media:title>
		</media:content>
	</item>
		<item>
		<title>Novità Wcf con Sp1</title>
		<link>http://pythonyan.wordpress.com/2008/08/19/novita-wcf-con-sp1/</link>
		<comments>http://pythonyan.wordpress.com/2008/08/19/novita-wcf-con-sp1/#comments</comments>
		<pubDate>Tue, 19 Aug 2008 12:08:33 +0000</pubDate>
		<dc:creator>pythonyan</dc:creator>
				<category><![CDATA[WCF]]></category>

		<guid isPermaLink="false">http://pythonyan.wordpress.com/?p=259</guid>
		<description><![CDATA[Un post di Corrado Cavalli mette in luce le nuove caratteristiche di WCF con l&#8217;avvento della SP1.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pythonyan.wordpress.com&blog=1393879&post=259&subd=pythonyan&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Un <a href="http://blogs.ugidotnet.org/corrado/archive/2008/08/12/93693.aspx">post </a>di Corrado Cavalli mette in luce le nuove caratteristiche di WCF con l&#8217;avvento della SP1.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pythonyan.wordpress.com/259/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pythonyan.wordpress.com/259/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pythonyan.wordpress.com/259/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pythonyan.wordpress.com/259/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pythonyan.wordpress.com/259/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pythonyan.wordpress.com/259/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pythonyan.wordpress.com/259/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pythonyan.wordpress.com/259/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pythonyan.wordpress.com/259/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pythonyan.wordpress.com/259/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pythonyan.wordpress.com/259/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pythonyan.wordpress.com/259/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pythonyan.wordpress.com&blog=1393879&post=259&subd=pythonyan&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://pythonyan.wordpress.com/2008/08/19/novita-wcf-con-sp1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/86d14eb34cd8ef5583383c4a8612c0b1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pythonyan</media:title>
		</media:content>
	</item>
		<item>
		<title>I messaggi WCF</title>
		<link>http://pythonyan.wordpress.com/2008/08/19/i-messaggi-wcf/</link>
		<comments>http://pythonyan.wordpress.com/2008/08/19/i-messaggi-wcf/#comments</comments>
		<pubDate>Tue, 19 Aug 2008 07:38:29 +0000</pubDate>
		<dc:creator>pythonyan</dc:creator>
				<category><![CDATA[WCF]]></category>

		<guid isPermaLink="false">http://pythonyan.wordpress.com/?p=257</guid>
		<description><![CDATA[Su MSDN Magazine, in un vecchio articolo, ho trovato gli elementi di base per l&#8217;invio di messaggi in WCF.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pythonyan.wordpress.com&blog=1393879&post=257&subd=pythonyan&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Su MSDN Magazine, in un vecchio <a href="http://msdn.microsoft.com/it-it/magazine/cc163447.aspx">articolo</a>, ho trovato gli elementi di base per l&#8217;invio di messaggi in WCF.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pythonyan.wordpress.com/257/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pythonyan.wordpress.com/257/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pythonyan.wordpress.com/257/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pythonyan.wordpress.com/257/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pythonyan.wordpress.com/257/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pythonyan.wordpress.com/257/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pythonyan.wordpress.com/257/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pythonyan.wordpress.com/257/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pythonyan.wordpress.com/257/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pythonyan.wordpress.com/257/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pythonyan.wordpress.com/257/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pythonyan.wordpress.com/257/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pythonyan.wordpress.com&blog=1393879&post=257&subd=pythonyan&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://pythonyan.wordpress.com/2008/08/19/i-messaggi-wcf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/86d14eb34cd8ef5583383c4a8612c0b1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pythonyan</media:title>
		</media:content>
	</item>
		<item>
		<title>Hands-on-lab su MSMQ e WCF</title>
		<link>http://pythonyan.wordpress.com/2008/02/04/hands-on-lab-su-msmq-e-wcf/</link>
		<comments>http://pythonyan.wordpress.com/2008/02/04/hands-on-lab-su-msmq-e-wcf/#comments</comments>
		<pubDate>Mon, 04 Feb 2008 11:21:46 +0000</pubDate>
		<dc:creator>pythonyan</dc:creator>
				<category><![CDATA[WCF]]></category>
		<category><![CDATA[MSMQ]]></category>

		<guid isPermaLink="false">http://pythonyan.wordpress.com/?p=187</guid>
		<description><![CDATA[Su Msdn questo post interessante sull&#8217;interazione tra queste due tecnologie.Visto che nel prossimissimo futuro dovrò impegnarmi in tal senso, mi segno questo snippet.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pythonyan.wordpress.com&blog=1393879&post=187&subd=pythonyan&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Su Msdn questo <a href="http://code.msdn.microsoft.com/msmqpluswcf">post </a>interessante sull&#8217;interazione tra queste due tecnologie.Visto che nel prossimissimo futuro dovrò impegnarmi in tal senso, mi segno questo snippet.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pythonyan.wordpress.com/187/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pythonyan.wordpress.com/187/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pythonyan.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pythonyan.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pythonyan.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pythonyan.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pythonyan.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pythonyan.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pythonyan.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pythonyan.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pythonyan.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pythonyan.wordpress.com/187/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pythonyan.wordpress.com&blog=1393879&post=187&subd=pythonyan&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://pythonyan.wordpress.com/2008/02/04/hands-on-lab-su-msmq-e-wcf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/86d14eb34cd8ef5583383c4a8612c0b1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pythonyan</media:title>
		</media:content>
	</item>
	</channel>
</rss>