Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5944343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:31:27+00:00 2026-05-22T16:31:27+00:00

I have inherited an application that is logically split into 4 tiers, but physically

  • 0

I have inherited an application that is logically split into 4 tiers, but physically resides across two. The 4 logical tiers are:

  1. asp.net website
  2. business logic in a C# .Net assembly (referenced from website)
  3. data access c# assembly – classes generated by codesmith tool (referenced from business logic)
  4. sql server database

An example of the way that the website interacts with the business layer is:

Booking b = new Booking();
b.property1 = x;
b.property2 = y;

result = b.method();

ie. it sets the data on public properties of the biz class then executes a method that in-turn reads from the properties.

Unfortunately, there are lots of properties and some of these are not base types, they are other objects eg the Booking object contains collection of Vouchers objects

I need to make the tiers 2-4 available to a new user interface (a very different website that will serve in-store kiosks).

I would like to expose the business layer through WCF. I have created an IBooking interface, defined the method signatures and decorted with [OperationContract] etc. Where I’m stuck is how to manage the data. I realise that I could define a data contract to match the various public properties of the Booking object but then I would need to make significant changes to the existing website – rather than it setting the properties and calling a method withouth parameters it would need to populate an instance of the data contract and pass this as a parameter to every method call.

Could anyone advise on the best way to approach this please. I am able to make changes to the exisiting website but I’d like to keep these to a minimum.

Many thanks,

Rob.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T16:31:27+00:00Added an answer on May 22, 2026 at 4:31 pm

    I’d suggest the simplest means of implementing this would be to create a WCF wrapper around your existing business logic without altering your current website. This can be done without any (significant) code changes to what you already have. The ‘downside’, if you consider it such, is that your existing website won’t use your WCF services.

    You’ve already created an contract for the service. If you haven’t already, create message contracts for the operation parameters. Then you can create your ‘new’ website by working with the service contract & message contracts.

    Services are different to OO, in that you don’t normally set properties & then call parameterless methods – instead you invoke an operation and include any relevant, required data at the same time. Your service implementation – the class that implements the IBooking contract – will do the work of

    • instantiating your existing classes
    • populating those objects
    • calling the parameterless methods, and
    • returning results.

    e.g.

    // contract
    [OperationContract]
    MyResponseMessage DoMethod(MyResultRequest requestData);
    
    // and the implementing class (the 'service')
    public MyResponseMessage DoMethod(MyResultRequest requestData)
    {
        MyResponseMessage responseData = new MyResponseMessage();
    
        Booking b = new Booking(); 
        b.property1 = requestData.X; 
        b.property2 = requestData.y;
        responseData = b.method(); 
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have inherited a classic asp application that had over 800 files in the
I have inherited an ASP.NET 3.5 application that relies heavily on sessions and storing
I have inherited an application that uses the ASP.NET membership provider for user management.
Usually I write programs without the ARC but I have inherited an application that
I have inherited an application that pulls messages out of an MSMQ does some
I have inherited an application that logs the results of certain daily commands that
I have inherited a VB6/Access application that we have developed and sold for many
I have inherited a Java application (servlets) that runs under Tomcat. For historical reasons,
I have inherited a poorly written web application that seems to have errors when
I have a legacy application that I inherited that passes a lot of XML

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.