If I have classes in an assembly that gets referenced by multiple web
services, when the user adds a web ref to the service, then these classes
are included in each namespace seperately. Seeing they are really the same
class, I'd like to pass them from one service to another. I can change some
code and mangle namespaces after the import, but that doesn't seem too
scalable.
I can see a few ways around this:
(1) Some declarative way of telling the system to generate the web services
such that upon use, certain classes are put in a shared namespace
(2) Some way to "convince" C# that two classes are the same because they in
fact are the same in every way. (Like a cast, but stronger -- the compiler
(rightly) does not allow a cast between these N different classes - although
I guess it do a really deep comparison...)
(3) Something simple I'm doing wrong or overlooking...
thanks,
mike
hB - 10 Aug 2005 21:56 GMT
I think you are in separate projects?
if project is same, you have to do addref once.
so for one project, only one WebReference proxy classes folder is
generated.
(with visual studio)
---
hB
hB - 10 Aug 2005 21:56 GMT
I think you are in separate projects?
if project is same, you have to do addref once.
so for one project, only one WebReference proxy classes folder is
generated.
(with visual studio)
---
hB