Hello all,

I want to create a set of Webservices that share custom types (User, for example). Just to make it easy to understand, I want to create two webservices:

1.- Users
with method:
Create(string name) --> returns a User

2.- Buy
with method:
Buy(User user, Product product) --> void, for example

The problem is: how do I share User definition between the two webservices? When I add the two web references, two sets of proxies are generated. This two proxies have different namespaces so, actually User in webservice Users is a different class than User from Buy.

How can I avoid this problem without adding a new layer (could be pretty heavy to convert every object to the other using reflection)?

Thank you all