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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:13:14+00:00 2026-06-06T18:13:14+00:00

I have a scenario where my WCF service is hosted but should return different

  • 0

I have a scenario where my WCF service is hosted but should return different response to different clients and also different security/authentication options.

How to implement that ? Idea and small model code would be appreciable.

Client A and Client B suppose consumes the service. Client A should be given some data and Client B should be given some other data and also both of them should have different access rights/permissions….

Thank you…

  • 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-06T18:13:16+00:00Added an answer on June 6, 2026 at 6:13 pm

    There’s a lot of ways to do this; bottomline is you have to identify the user that’s connecting. This can be done using an X509 client certificate, HTTP (basic/digest) authentication or a custom API key (or credentials) that the client sends during each request (in the HTTP headers, in the message headers or simply in a field in the message body).

    Once you’ve got that part figured out, you can let your code decide what to do based on who’s making the request.

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

Sidebar

Related Questions

Here is the scenario, I have a WCF service call that takes one string
Scenario I have a windows forms application. I want to use two different WCF
I have a simple WCF service hosted in a console app and what I
I have a WCF service which is hosted in a Windows Service. There are
I have a WCF service that is hosted in a windows application. The service
I have a self-hosted WCF REST service based on the WebHttpBinding. One of the
Imagine this scenario: you have a WCF web service that gets hit up to
I have the following scenario: A Service that does nothing but sleeps for the
Consider this scenario that two WCF clients connect to one WCF service(server), this service
Here is the scenario. I have a WCF service, when this service is called

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.