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.

wsdl /sharetypes and xmlinclude

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
deja@2bytes.co.uk - 12 Oct 2006 09:43 GMT
hi,

i have 2 web services each with some of the same types but also each
with their own xmlincludes to include types specific to them. I want to
share the types that are common so I used wsdl /sharetypes but it
hasn't included the xmlinclude objects.

So for instance, Service1 and Service2 both have Add methods that take
a baseClass object. This baseClass object is in my sharedtypes proxy so
I could call my Service1 Add method with this baseClass object and also
Service2 with the same object. But I want to call Service1 Add method
with DerivedClass1 object and Service2 Add method with DerivedClass2
object.

You might wonder why I need to share the types at all in this case -
well, as you can imagine the baseObject has a myType property on it. I
want to use the same myType object on DerivedClass1 object and
DerivedClass2 object.

So how do I do this. I can probably manually edit the shared proxy but
I thought this sharetypes was supposed to do this kind of thing and I
figured I probably just wasn't doing it right.

TIA
Phil
deja@2bytes.co.uk - 13 Oct 2006 10:11 GMT
can anyone help with this? How do I call my WebService method using
both the XmlInclude type that hasn't been generated in my sharedtype
proxy class as well as a type that is in the sharedtype proxy class?

I will either have to use one Web Service proxy or the other (the
sharedtypes one or the autogenerated single one) neither of which
fulfill all requirements.

TIA
Phil

> hi,
>
[quoted text clipped - 21 lines]
> TIA
> Phil

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.