ASP.NET
  Home arrow ASP.NET arrow Developing a WCF Service Library and Hosti...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ASP.NET

Developing a WCF Service Library and Hosting it as WCF Web Service Using VS2K8
By: Jagadish Chaterjee
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 16
    2007-10-01

    Table of Contents:
  • Developing a WCF Service Library and Hosting it as WCF Web Service Using VS2K8
  • Creating a Windows Communication Foundation (WCF) Service Library
  • Creating a Windows Communication Foundation (WCF) Service Library: application configuration
  • Deploying and Hosting a WCF Service application (WCF web service)
  • Testing the WCF Web Service: creating the WCF Client using Windows Forms

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Developing a WCF Service Library and Hosting it as WCF Web Service Using VS2K8


    (Page 1 of 5 )

    In this article, we will focus on developing a Windows Communication Foundation (WCF) library, turning it to a WCF web service, hosting it on an IIS web server and finally test it by developing a simple WCF client using Windows Forms. This article can serve as an excellent walkthrough resource for beginners.


    A downloadable zip file is available for this article.

    WPF, WCF, WWF and Silverlight are the next generation components from Microsoft which revolutionize the current .NET Framework with great new and innovative architectures. I will not look into the details of the architectures of these new components as Microsoft has already added great content on the subject on its MSDN.

    Please be aware that we are not directly creating a WCF web service in this article. In fact, Visual Studio 2008 beta 2 includes two templates, "WCF Service Application" and "WCF Service Library." "WCF Service Application” itself is a direct web service application relying on WCF technology (which is similar to the ASP.NET web service development). "WCF Service Library" on the other hand is a compiled component which can be deployed as a web service or a Windows service or even as a part of a customized hosting application. 

    In this article, we will create a WCF service library (simply a compiled WCF library), turn it into a WCF web service, host it on IIS and finally access it using a WCF client. As we would like to create a WCF service library and host it as a web service on IIS, "web.config" will be necessary during deployment.

    If you have not configured IIS after installing Visual Studio 2008 beta 2, it is highly advised that you run the following (for proper mappings and automated IIS configuration):

    ServiceModelReg.exe /i /x

    To make this article simple, I added the "emp" to the Northwind database.

    The entire source code for this article is available in the form of a downloadable zip file. The solution was developed using Microsoft Visual Studio 2008 Beta 2 on Microsoft Windows Server 2003 Enterprise Edition. I didn’t really test it in any other environment. I request that you post in the discussion area if you have any problems with execution. 

    More ASP.NET Articles
    More By Jagadish Chaterjee


       · Hello guys,This is my first part for the series of articles on WCF. This...
       · Hello,I created a WCF service in VS2008 and when I try to browse the service in...
       · Great article! I just start doing this and learned quite a lot. I have one...
       · Hi when browse the WCF webservice i am getting the following error:"The contract...
       · First off, thanks for the article.I was wondering, though, just how hard it...
     

    ASP.NET ARTICLES

    - Adding Content to a Static ASP.NET Website
    - Building a Static ASP.NET Website in a Basic...
    - Develop Your First ASP.NET Website with Visu...
    - Run ASP.NET in Windows XP Home with Cassini ...
    - How to Test a Web Application
    - How to Add Code and Validation Controls to a...
    - Working in Source and Split Views to Build a...
    - How to Build a Web Form for a One-Page Web A...
    - How to Develop a One-Page Web Application
    - An ASP.NET Web Application in Action
    - Developing ASP.NET Web Applications
    - An Introduction to ASP.NET Web Programming
    - Introduction to the ADO.NET Entity Framework...
    - Completing an In-Text Advertising System und...
    - Programming an In-Text Advertising System un...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek