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
  • 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-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 have this problem with a link in an HTML page where the first
I am pretty far into my first Android application, and I have the sneaking
Does MATLAB have any support for hash tables? Some background I am working on
here is my problem I have the following array (for example) string[] arr =
I am working on a wordpress theme and need to select posts that are
First time poster. I'm using MVVM-Light with Silverlight 4 and RIA Services. This has
I would like to apologize at first instant for asking some stupid question(well not
I have created a rather complicated piece of (Java) code for a game I
I have a website where there is a lengthy list of items to display
I'm trying to write my own Mergesort function in the same fashion as C's

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.