ASP.NET
  Home arrow ASP.NET arrow Developing Business Logic using the WCF Se...
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  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Actuate Whitepapers 
Moblin 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
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 Business Logic using the WCF Service Library with VS2K8 and ASP.NET 3.5
By: Jagadish Chaterjee
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 10
    2007-10-03

    Table of Contents:
  • Developing Business Logic using the WCF Service Library with VS2K8 and ASP.NET 3.5
  • Understanding the WCF Service Library: Employee class
  • Understanding the WCF Service Library: the app.config file
  • Understanding the WCF Service host
  • Understanding the WCF Client: ASP.NET 3.5 web site

  • 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

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    Developing Business Logic using the WCF Service Library with VS2K8 and ASP.NET 3.5


    (Page 1 of 5 )

    In this article, we will focus on developing a WCF library which performs business logic (with CRUD operations) at the middle tier level and finally access it using ASP.NET 3.5.
    A downloadable zip file is available for this article.

    If you are new to WCF, I strongly recommend that you go through my previous two articles. In my first article, we focused on developing a Windows Communication Foundation (WCF) library, turning it into a WCF Web service, hosting it on an IIS web server and finally tested it by developing a simple WCF client using Windows Forms. In my second article, we focused on developing a WCF library, hosting it using a custom application and finally testing it using Windows Forms.

    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.

    Understanding the sample Visual Studio solution

    As I already explained the step-by-step creation of WCF Service Library in my previous second article, I will not go through the details of those steps. But, before proceeding further, let us try to understand the Visual Studio solution created for this article. Below you will see a glimpse of Solution Explorer.

    From the above figure, we have three different projects combined as a single solution. The name of the solution is "WCFNorthwindBLLService." It is comprised of the following three projects:

    • NorthwindBLLService
    • NorthwindBLLServiceHost
    • WCFClientWebsite

    "NorthwindBLLService" is created based on the "WCF Service Library" template. It contains the core business logic for the entire application. This project provides direct interfacing to business objects (available in it) and in turn, this directly interacts with the database.

    "NorthwindBLLServiceHost" is created based on the "Windows Forms" template. It is an application which simply hosts "NorthwindBLLService" as a service. The service can be started or stopped using this simple application. You will have to start the service to make "NorthwindBLLService" work.

    "WCFClientWebsite" is created based on the "ASP.NET website" template. It is a web application which accesses the "NorthwindBLLService" through "NorthwindBLLServiceHost" and finally interacts with the business classes. A service reference is added to "NorthwindBLLServiceHost" as part of its development.

    More ASP.NET Articles
    More By Jagadish Chaterjee


       · Hello guys,This is my third article in the series focusing on WCF development...
       · Do you differentiate at all between the service layer and the business layer. isnt...
       · Simply don't want to complicate the things at this moment. You will see several...
     

    ASP.NET ARTICLES

    - Enhancing PHP Via the ASP.NET AJAX Framework...
    - Enhancing PHP Programming with the ASP.NET A...
    - Classes and ASP.NET AJAX
    - Using ASP.NET AJAX
    - Building a Simple Storefront with LINQ
    - Developing a Dice Game Using ASP.NET Futures...
    - Completing an ASP.NET AJAX Server-Centric Ba...
    - Information Management for an ASP.NET AJAX S...
    - Comment and Order Management for an ASP.NET ...
    - Back-end Management Tasks for an ASP.NET AJA...
    - User Information Management for an ASP.NET A...
    - Adding Comments and Search to an ASP.NET AJA...
    - Order-Related Modules for an ASP.NET AJAX Se...
    - User and Role Management for an ASP.NET AJAX...
    - Programming an ASP.NET AJAX Server-Centric B...





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway