Here's the scenario:
- Created a web service project
- Added 2 services (asmx files)
- Created a custom entity ("Customer")
- Created a method in each service which returns/receives the above entity
- Created a class library
- Added 2 web references (one for each asmx)
The created proxy contains the "Customer" class for each service (asmx) -
each class with it's own namespace !! This, for example, prevents me from
receiving a Customer from Service1 and sending it to Service2 as a parameter,
although they originate from the same service (conceptually speaking).
a few more things :
1. The problem is that adding a web reference in a class library doesn't
allow creation of the same namespace
2. The problem doesn't exist in website projects - there you can add
numerous web references in the same namespace.
Any ideas of how to do the same in class library ?