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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T01:10:56+00:00 2026-06-14T01:10:56+00:00

I have developed a WCF application which is being consumed by three .NET web

  • 0

I have developed a WCF application which is being consumed by three .NET web service clients. So far so good.

But now I should change the WCF application in such a way that a different schema is published to different clients.

For example:

class A : IMyServices
{
    public string GetName() {}

    public Order GetOrderInfo(string orderId) {}

    public Payment GetPaymentDetails(Order order) {}
}

One of my clients should not see GetPaymentDetails (I should basically hide this GetPaymentDetails and Payment class schema from the WSDL that is being created by that one client). Other clients will have restrictions on other methods.

In some scenarios some of the Payment class’s properties should not be exposed to a client even it has access to the GetPaymentDetails operation.

Is there any way to expose different schemas for different clients and that requires minimum changes at my end?

One thing to keep in mind: my service is developed using WCF, and clients consuming my services use traditional .NET web service.

  • 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-14T01:10:57+00:00Added an answer on June 14, 2026 at 1:10 am

    How about splitting the interfaces and exposing different endpoints (possibly with different security) for the various contracts? You could design your contracts and implementation along these lines:

    [ServiceContract]
    public interface ICompleteService : IBasicService, IPaymentService
    { }
    
    [ServiceContract]
    public interface IBasicService
    {
        string GetName();
        Order GetOrderInfo(string orderId);
    }
    
    [ServiceContract]
    public interface IPaymentService
    {
        Payment GetPaymentDetails(Order order);
    }
    
    class A : ICompleteService
    {
        public string GetName() { }
        public Order GetOrderInfo(string orderId) { }
    
        public Payment GetPaymentDetails(Order order) { }
    }
    

    Then you can expose endpoints as you like, e.g. something like this:

    • IBasicService endpoint with minimum security
    • ICompleteService endpoint with maximum security

    You could go along similar lines for the Payment DataContracts. The contracts are responsible for making sure the different endpoints get access to different operations and data, whereas under the hood they would share implementations, minimizing the amount of work you need to do to get this to work.

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

Sidebar

Related Questions

I have developed a Web service using WCF Service Application. This service application is
I have developed the WCF web service in vb.net in visual studio 2010 express
I have developed an ASP.NET application that includes a WCF service. This service needs
We have a WCF service developed in C# which is being used by several
I have a simple WCF web service on my machine which I have developed
I've developed an application which starts several WCF Service which use the SecurityMode.Message to
I have a silverlight 2 beta 2 application that accesses a WCF web service.
I am doing smoke testing in my existing asp.net web application, I have developed
I have a windows application that acts as a WCF Service that I developed
We currently have developed an application using WCF. Our clients make connections to different

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.