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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T14:04:21+00:00 2026-06-09T14:04:21+00:00

Trying to really ‘get’ endpoint contracts: I understand offering different endpoints to support different

  • 0

Trying to really ‘get’ endpoint contracts:

I understand offering different endpoints to support different bindings, but when would one define n endpoints for a service, and use different contracts? Seems that in most cases (bar IMetadataExchange) the endpoint contract would be the same no matter the protocol, no?

If most of the time the contract would be the same across all endpoints, would it have been too simplistic (and why?) to define the service contract on the parent service instead of on each endpoint (seems cumbersome/repetitive), while alllowing an override on the endpoint for when needed (eg: IMetadataExchange).

Thanks for help with the small questions that keep me up at night 😉

  • 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-06-09T14:04:22+00:00Added an answer on June 9, 2026 at 2:04 pm

    OK, well – the service that you define in the <service> tag is the actual implementation code – the actual C# or VB.NET lines that make up the service. Therefore, it’s a concrete class (which might even implement multiple service contracts). This is server-side only.

    The endpoint however is the communications channel between the server and the client, and between those two, you want to share only the contract – never any concrete implementation of that contract. The endpoint will only ever be used for a single service contract – if your concrete service implements multiple contracts, you need to expose multiple endpoints to the clients to provide all that functionality.

    Does that make things a bit clearer?

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

Sidebar

Related Questions

I've been really trying to learn some SVG. But browsers seem to get in
Really trying to get my head around this but cannot see the light through
Hey, i'm really trying to get TinyXML to at least read a file but
Im really trying to keep my code clean by using the switch statement but
i am really trying to do this but i am failing to find a
I'm really trying to understand the difference between OpenID and OAuth? Maybe they're two
I'm really trying to switch to emacs, but learning to setup the environment is
I'm really trying to get better with this stuff. I'm pretty functional with internationalization
I'm trying something really simple here, but can't figure out where I'm going wrong.
I am fairly new to MVC and am really trying to a get used

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.