|
-
October 19th, 2009, 06:09 AM
#1
Sharing VOs between Webservices
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|