Link to home
Start Free TrialLog in
Avatar of collages
collagesFlag for United States of America

asked on

Wcf Soap Services Duplicating Shared Enumeration

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.


MyServiceNamespace.Service1
MyServiceNamespace.Service2

They both share the enumeration:
ServiceNamespace.ServiceTypes

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.

MyClientNamespace.Service1Proxy.ServiceTypes
MyClientNamespace.Service2Proxy.ServiceTypes


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

ServiceNamespaceProxy.ServiceTypes

Any help would be greatly appreciated.  This one is driving me a little nuts.
ASKER CERTIFIED SOLUTION
Avatar of Aaron Jabamani
Aaron Jabamani
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of collages

ASKER

Perfect.  Thank you.