Hi,
I am trying to include two proxy classes (from two different web services
say Namespace.Service1 and Namespace.Service2) in a project (C# Class lib).
These webservice internally use (as input or return) custom classes' objects
e.g. userinfo, customerinfo etc. When i generate the proxy classes for these
services using wsdl, the definition for custom classes' is also generated in
the proxy classes.
Now, when i include these proxy classes in the project (class lib), and try
building the same, it throws the error:
The namespace '<global namespace>' already contains a definition for
'userinfo'.
Is there a way to resolve this? (So that definitions for custom classes are
not included in both the proxy classes but in only one)
Please suggest
Pablo Cibraro [MVP] - 16 Oct 2006 15:26 GMT
Hi,
The wsdl.exe tool to generate the web services proxies always create the
custom classes. This tool also accepts a "namespace" argument, so you can
use it to create the classes in different namespaces. In that way, you won't
have the global namespace problem.
Regards,
Pablo Cibraro.
> Hi,
>
[quoted text clipped - 21 lines]
>
> Please suggest