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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:56:17+00:00 2026-05-23T11:56:17+00:00

I am currently in the process of developing a Web Service which should expose

  • 0

I am currently in the process of developing a Web Service which should expose a relatively large number of ways to interact with it.

For example, Clients may be able to interact with the Web Service in order to manage users or projects in a Database.

To that effect, I created the following classes:

  • Two Data Contracts: IUsersServiceContract and IProjectsServiceContract
  • Two Service Contracts Interfaces: IUsersServiceContract and IProjectsServiceContract

My question is the following:

Does it make sense to create two different Web Services, each with their own endpoint(s), instead of creating one big class that implements both Service Contracts Interfaces ?

Keep in mind that in reality I would have many more Service Contracts Interfaces that deal with different sorts of data.

From what I understand, using a partial class (split in multiple files) will allow me to create one big Web Service with only one Endpoint.

This has the disadvantage of dealing with one big class split in multiple files, i.e: its harder to maintain and more prone to errors if developers “don’t see the big picture”.

The other solution would be to have one Web Service per Service Contract Interface implemented.

In essence, if I have X Service Contracts Interfaces, I end up with X Web Services with X Endpoints.

Which solution would you choose and why ?

Thanks for your input !

  • 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-23T11:56:18+00:00Added an answer on May 23, 2026 at 11:56 am

    Personally I would not use partial classes for splitting a class; the sheer size motivating tgis split suggests that the class is too large and needs a refactoring. In my opinion partial classes main purpose is to add changes to auto generated code.

    Since service and endpoint configuration can be shared using named behaviours in web.config splitting the service should not be that cumbersome. But the split should be motivated by grouping of functionality.

    Without knowing the exact nature of you services it sounds like there could be a natural separation in two services; one for user related operations and one for project oriented operations.

    If the implemantation classes grows above what you think are reasonable sizes I would consider letting separate classes – or preferably interfaces – handle each methods inner logic and let the service implementation it self be a shallow facade that delegates its own method parameters to the correct logoc instance

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

Sidebar

Related Questions

I am currently developing a service using the SharePoint 2010 Client Object Model to
I am in the process of developing a Git workflow for a web app
We are currently developing an application which visualizes huge vector fields (> 250'000) on
I am currently developing an IVR system, my question is more on a development
I am currently developing a C# socket server that needs to send and receive
I am developing a light-weight online shop. This shop integrates with various sources. It
I am developing a WPF app that contains a webbrowser control that loads a
I've been programming for a while, but just recently decided to start developing for
The Problem: Background Information I'm writing an application for a client that is to

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.