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 / May 2005

Tip: Looking for answers? Try searching our database.

Repeat schemas in differing WSDLs

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dan Diephouse - 04 May 2005 14:22 GMT
We're trying to write a .NET/C# application against a series of services.  
Normally it would just be easy, add web reference and we're done. However
there a 5 different services and they all share common <schema:types> which
are declared in each wsdl (not imported from one central document).  When I
add a web reference 5 different times it creates 5 different versions of
all these types in different namespaces.

For example, in Service1 the Customer type goes in MyService.Service1 and
in Service2 the Customer type goes into MyService.Service2 - creating two
distinct .NET types which represent the same schema type.  This creates
issues as we want to share types and information from service to service.

Is there to circumvent this? Cheers,

- Dan

--
Dan Diephouse
http://netzooid.com
Henrik Gøttig - 04 May 2005 15:35 GMT
 This creates
> issues as we want to share types and information from service to service.

Yup, it does.

Are you doing .NET 2.0 stuff or 1.1?

In .NET 2.0 this has been fixed through the /sharetypes switch on the
command line for wsdl.exe.

I remember it to be quite cumbersome in 1.1 to overcome this "issue".
Think I did declare the types in external XML schema files, and
referenced those through xsd:import in the types section of my wdsl
document or something like that. I can't quite remember anylonger...
Sorry... But 2.0 fixes it.

Regards

Henrik Gøttig
http://websolver.blogspot.com

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.