BrainDump
  Home arrow BrainDump arrow Developing an Object Oriented Business Com...
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? 
BRAINDUMP

Developing an Object Oriented Business Component Using WCF and Visual Studio 2008
By: Jagadish Chaterjee
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 15
    2007-10-31

    Table of Contents:
  • Developing an Object Oriented Business Component Using WCF and Visual Studio 2008
  • Understanding the WCF Business Component
  • Understanding the WCF Business Component: Source Code for Entity classes
  • Understanding the WCF Business Component: Source Code for Business Logic
  • Understanding the WCF Business Component: Source Code for “DBHelper”

  • 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 an Object Oriented Business Component Using WCF and Visual Studio 2008


    (Page 1 of 5 )

    In this article, we will focus on implementing OOPS to develop a business component using WCF. We will also use Visual Studio 2008 beta. Finally, we will 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 you to go through my previous two articles available at:



    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 with Microsoft SQL Server 2008 beta 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 a WCF Service Library in a previous 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. The following is a glimpse of the solution explorer (Fig 01).

    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. This project contains all of the business logic, developed using object oriented techniques. The following are the classes defined as part of this project.

    • Product

    • Products

    • IProductService

    • ProductFactoryService

    • DBHelper

    The explanations for each of those classes are detailed in the successive sections.

    “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 BrainDump Articles
    More By Jagadish Chaterjee


       · Hai,This is my next contribution following a series on WCF programming using...
     

    BRAINDUMP ARTICLES

    - Firefox on Windows Mobile
    - Microsoft`s Sneaky Firefox Add-On Installati...
    - Microsoft`s Answer to Google Search - Bing
    - Doing Statistical Analysis with MS Excel
    - Extracting Google-Indexed Web Site Pages Usi...
    - Advanced String Manipulation Using MS Excel
    - Using Goal Seek and Solver in MS Excel
    - Internet Explorer 8: A Hands-on View
    - Tools for Beginning Game Developers
    - XAMPP: Tips for Running an Apache/MySQL Serv...
    - Improving Your Visual Studio Workspace
    - A Look at Microsoft`s Mobile Operating System
    - Microsoft Internet Explorer 8: Mixed Reactio...
    - Configuring WSUS 3.0 on Windows Server 2008
    - Migrating to Windows Server 2008





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
    Stay green...Green IT