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 427863
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T19:37:07+00:00 2026-05-12T19:37:07+00:00

I have a problem but first i want to know if im working on

  • 0

I have a problem but first i want to know if im working on the best solution.

I am making an application that will sit on hundreds of client machines and send data to/retreive data from a server. The server will get that data and store/process it.

I want the client apps to be as lightweight as possible so i want the server to pass/receive the data in the form of classes. For example

Client requests User by userID
Server responds with class UserDetails which has user name, id, and personal info.

Another example would be

client requests a project
server responds with ProjectDetails class which has project id, name, description, details AND a list of Activities (this is another class, so should be implemented as an ActivitiesCollection)

I am just starting out on this and found a lot of people saying WCF services are the way to go but i have never written one before. Is this true? and if so, how do i pass complex classes to/from the WCF service?

Thanks all 🙂

~Dave

  • 1 1 Answer
  • 1 View
  • 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-12T19:37:08+00:00Added an answer on May 12, 2026 at 7:37 pm

    A WCF service consists of contracts – the service contract defines the behavior of the service (e.g. your service methods that can be called), and then there’s the data contract which defines what data gets passed around.

    Those are simply attributes on .NET classes, that expose them to the WCF runtime.

    In your case, you’d probably have something like:

    [ServiceContract]
    interface MyUserService
    {
       [OperationContract]
       UserDetails GetUserDetails(int userId);
    }
    

    and then for the data:

    [DataContract]
    class UserDetails
    {
       [DataMember]
       int userId { get; set; }
    
       [DataMember]
       string userName { get; set; }
    }
    

    WCF is very flexible and gives you a lot of control over how and what to send around, and it handles all the serialization and other issues for you – automagically. No need to mess around with angle bracket soup yourself!

    Check out the WCF Developer Center for lots of good content, how-to videos, articles and more – should help you get started quickly!

    Marc

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just started using Eclipse but already I have a small problem. At first
This is my homework, but please read my problem description first. I have to
I have a simple problem but I don't know how to solve it because
I've searched google and SO for a solution to this problem but have not
First of all I want you to know that I'm not an engineer, I'm
I have a simple problem but I am not sure how to solve it.
I have a simple problem but no matter what I try I can't see
NOTE: I have solved the majority of this problem but have run into a
I have to make a simple layout in android but have problem with the
Hi I am new to PHP and have a simple problem but I have

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.