Wcf Soap Services Duplicating Shared Enumeration

Posted on 2014-08-08
Last Modified: 2016-02-26
I have a project which exposes two WCF Service contracts.  These two services expose a common enumeration.  All classes are under the same namespace and in the same assembly.


They both share the enumeration:

Then, i have a project that references the URL endpoints of these two services.  When the client code is generated it creates the enumeration for the two services in their own client side generated namespaces.


Is there a way I can tell the client to not duplicate the enumeration and use a specific namespace like:


Any help would be greatly appreciated.  This one is driving me a little nuts.
Question by:collages
    LVL 25

    Accepted Solution

    The example talks about shared contracts but in  your case it is Enum. Hope it helps.
    LVL 1

    Author Comment

    Perfect.  Thank you.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    For some reason Google Apps has decided to reserve 'www' for your new domain which results in an error when trying to map the web address 'www' to a certain site in your Google Sites. The error is 'this address is already being used' and after some …
    This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
    The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now