Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / October 2006

Tip: Looking for answers? Try searching our database.

Using multiple web services through proxy giving error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ankur Goenka - 16 Oct 2006 09:07 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.