More often, the data to shown in an AJAX page is retrieved from the Web server using a Web service, a Windows Communication Foundation (WCF) service. The services that can also return JavaScriptObjectNotation(JSON) are potential candidates for AJAX pages. This post explains about calling a WCF service using ASP.NET AJAX Library Data View control. The following are the steps to create and call the...
Publishing Feed on URI using WCF
Introduction In My previous article “Creating Web feeds with WCF†, I have explained about building a web feed with WCF. This post explains how to build a simple WCF service that exposes the feed data using both RSS and Atom. We are using both formats to emphasize the separation in WCF between the data [SyndicationFeed] and the formatting [SyndicationFeedFormatter].We can write the methods to...
Creating Web feeds with WCF
Introduction A feed on the web is data format where users can read content from different web sites by subscribing using client applications. Building and exposing a web feed is not a new idea but in this post we are going to use WCF to build the feeds.WCF allows you to create feeds for both Atom1 and RSS2 standards. Building a Feed with WCF The following are two important features in WCF...
WCF and REST
Introduction WCF is the Microsoft framework for building applications that communicate over network using different protocols. WCF allows the developers to build distributed applications using SOAP. WCF also had the ability to expose and consume REST services.This post explains how to build REST service using WCF. Note: To build REST Service new infrastructure was added to WCF in .NET Framework 3...
WCF vs ASP.NET Web services
Introduction In this post I will explain the Difference between ASP.NET web service and programming WCF services like ASP.NET web services. It also discusses how we use the both technologies for developing the web services. The development of web service with ASP.NET relies on defining data and relies on the XmlSerializer to transform data to or from a service. Key issues with XmlSerializer to...
Host the WCF Service in IIS
Introduction This post explains hosting the WcfEmployee Service on IIS that we previously hosted with in .NET Executable. Hosting the WCF service in IIS provides a robust, efficient and secure features to WCF service. 1. Create a virtual directory that pointing to the Employee Service project in IIS 2. Configuring the service in IIS is identical to the configuration used for hosting the service...
Hosting the WCF Service in .NET Executable
Introduction This post explains how to host a WCF service that we defined in the previous article WCF sample in VS 2008. Specifically we host the WCF service in .NET console application. 1. Add the Console application project called, Host, to the solution 2. Add System.ServiceModel .NET, System.Configuration Assemblies to the Host Project. 3. Add the WCF Service project...
WCF Sample in Visual studio 2008
Introduction This post explains the procedure to develop the sample WCF Service and WCF Client in Visual studio 2008. Get an overview on WCF and WCF Terms. 1. Start open Visual studio 2008, Select new project option from file menu 2. Select the WCF ServiceApplication template from the project templates. 3. WCF Service describes the operations that perform in a service contract. 4...
Service Model Metadata Utility Tool
The Service Model Metadata Utility Tool is used to generate service model code from metadata documents. The following command generates client code from a running service or online metadata documents. svcutil The following command generates client code from local metadata documents. svcutil *.wsdl *.xsd /language:c# The following command downloads metadata documents from running services...
WCF Terms
The following are the terms used in WCF Message A message contains data which consist of body and headers. Service A service is a construct which exposes one or more endpoints. Each endpoint exposing one or more service operations. Endpoint Endpoint contains a location (an address) that defines where messages can be sent, a specification of communication mechanism(a binding) that describes how...