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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:21:28+00:00 2026-05-16T22:21:28+00:00

I have a client application that should be able to handle the following: 1)

  • 0

I have a client application that should be able to handle the following:

1) Request sql statments that are to to be executed against the client.
2) Request Service Packs or Hoxfixes that will be executed against to the client.
3) There may be more types of tasks the client could do in the future.

Executing each of these task types produces some kind of Result. For the sql statements, the results is a dataset, that I’m serializing back to the server via WCF method call, so the data can be saved. Although I haven’t gotten to this point of development yet, I can assume that the result of a service pack execution may be an indication of the execution status. i.e. Sucess, Fail, ErrorMessage. This infomation would also need to be transfered over the wire via WCF so that it can get recorded. So far there are two result possibilities. This varying return information could be put into a class like “ExecutionResults” but the actions taken to save each type of ExecutionResult will be different.

The question is should I go through the trouble of trying to setup a shared (abstract type) that both client and server know about and then convert this type to the correct concrete type on the server? Or should I just create a separate service method for each of these different scenarios?

  • 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-16T22:21:28+00:00Added an answer on May 16, 2026 at 10:21 pm

    If you use shared base type with sub types you still have to provide sub types to both client and server and you have to use KnownTypeAttribute on the base type. This is one way to go.

    I would choose the second approach with different operation for each activity. The reason is that those activities doesn’t have any shared context. Each is absolutly different request so I guess better design is to use separate methods. You don’t know what task should be handled in the future so this design will be much better extendable and consistent. Also adding operations to contract without affecting existing operations is better for versioning.

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

Sidebar

Related Questions

I have client application that uses WCF service to insert some data to backend
I have a C# application that is a client to a web service. One
I have a client/server application that communicates with .Net remoting. I need my clients
i have a server - client application that runs on java 1.3; i want
I have a client server application that sends XML over TCP/IP from client to
I have a client-server application that uses .net remoting. The clients are in a
I have a .NET client application that needs to communicate with a server using
I have a client server based windows forms application that needs an administrator only
I have a PHP application that makes extensive use of Javascript on the client
I have a legacy VB6 application that was built using MSDE. As many client'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.