473,385 Members | 1,326 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

wsdl /sharetypes and xmlinclude

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

Oct 12 '06 #1
1 2076
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
de**@2bytes.co.uk wrote:
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
Oct 13 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: yuriy_zubarev | last post by:
Greetings, Simple scenario: I have objects that need to be persisted in XML. The declaration is as follows: public class Zoo { protected Animal animals;
1
by: Bob Rock | last post by:
Hello, I have a web method that serializes a class that includes among its public fields a System.Object field to which, at runtime, I assign instances of various different classes. When...
1
by: R.A. | last post by:
Hi I have a web service that returns a custom class in one of the service methods. public class MyClass { public string Name; public string Street; }
0
by: Matthias De Ridder | last post by:
Hello, I have a Web service method who's returning an ArrayList of a custom class Tender: public ArrayList GetTenders(string user, string password){ // code}
0
by: Andrew Kidd | last post by:
Has anyone got the XmlInclude attribute working in VS 2005? I've done some Googling & there seems to be very little in the way of replies to questions out there. I basically want to expose my...
6
by: Pierre | last post by:
Hi all, I'm building a small app that allows users to create proxys by clicking on an interface (web, winform). I started my project, imported wsdl.exe (add reference) and tried to figure out...
0
by: Steve James | last post by:
I am using wsdl.exe to generate some proxy classes in VS2005 from multiple web services. I need to refer to multiple web services because the parameter and return types have derive from common...
0
by: urban011 | last post by:
I need to use XmlInclude to generate a description in the wsdl for a subtype for a given web method. I alos need to include the SoapRpcMethod directive and the use=literal attribute in order to...
1
by: kikisan | last post by:
I am developing a windows service which utilizes the following classes: interface IPersistable; abstract class PersistableObject : IPersistable;
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.