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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T01:24:01+00:00 2026-05-11T01:24:01+00:00

I would appreciate some guidance on modelling services and operations in WCF. I have

  • 0

I would appreciate some guidance on modelling services and operations in WCF.

I have a series of business domains, each with bespoke methods that I want to able to use over WCF. I guess an OO view would be something like:

interface IBusinessDomain1 {     MyClass1 Method1(...)     MyClass2 Method2(...) }  interface IBusinessDomain2 {     MyClass3 Method3(...)     MyClass4 Method4(...) } 

My natural inclination was to make each interface a service and each method an operation, the problem I have with this is that operations within individual domains might well need quite different binding configurations. i.e. Method1 might need to be synchronous, Method2 might need to be asynchronous.

When definining services and operations for WCF, would a better approach be to think in terms of the data types and the way data needs to be sent? Perhaps group methods from all business domains that will need to work in a particular way and have those in one service? I wonder how other people have tackled similar scenarios?

Most WCF tutorials and examples I have seen tend to use fairly trivial models, often a ‘calculator’ service offering ‘add’, ‘subtract’ etc. operations which all share the same binding.

Some advice on how to approach defining my services and operations would be most appreciated, or just some links to further reading as I cannot find much.

Thanks in advance, Will

  • 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. 2026-05-11T01:24:01+00:00Added an answer on May 11, 2026 at 1:24 am

    I think that grouping your contracts together in regards to whether or not they are called in an asynchronous manner is a bad idea. You should still retain the logical groupings for your contracts that make sense.

    You also need to elaborate on what different binding configurations you might apply to your contracts. If you need to call a method on a contract asynchronously on the client, then that’s not something the service has to concern itself with, as the client can choose to generate a contract which supports asynchronous operations (where you will get the Begin* and End* methods on the contract which the channel factory will generate for you).

    However, if you are doing something like having the service return a token which the client passes back to the service to check on status, you might want to consider a callback interface, as it will make your design much cleaner.

    If the different binding configurations have to do with changes in the endpoint (i.e. the transport channel, for example) then you might consider different contracts for different endpoints, but I don’t get the impression that is what you are looking for here.

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

Sidebar

Related Questions

I would appreciate some help with something I working on and have not done
I have a problem finding references to this subject and would appreciate some help.
Would appreciate some guidance as I'm a bit out of my depth on a
I would appreciate some guidance on how to deal with OS killing a long
I've hit a bit of a wall and would appreciate some guidance. I want
Noob here getting stuck and probably doing something stupid and would appreciate some guidance.
I am stuck working on a problem, and would appreciate some guidance. I am
Would really appreciate some guidance concerning patterns for a Web App using JSF 2.0,
I would appreciate some help with an UPDATE statement. I want to update tblOrderHead
I would appreciate some help on creating the proper SQL to retrieve only one

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.