473,386 Members | 2,114 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,386 software developers and data experts.

Base Classes are not passed to SchemaImporterExtension


We are migrating an application from VS.NET 2003 to VS 2005. The client and
server have many types passed via web services that are shared in common
assemblies. In VS.NET 2003, we used a custom tool to parse the generated
Reference.cs files to point to the shared types.

For VS 2005, we have a SchemaImporterExtension. Some of the shared types are
derived from other shared types. We can filter out these derived classes, but
their parent classes are never handed to our extension, even though they are
in the WSDL as they have always been. So the parent classes are incorrectly
always re-defined in Reference.cs.

Our current workaround is a "hack" web method per web service mentioning all
needed base classes in its signature, which forces them to be passed to the
SIE. This is error-prone, since we have a large number of web services, which
use varying inherited types.

Note this is the opposite problem of child classes not being defined; no
amount of XmlInclude would likely fix this, since the WSDL is correct.

How can the parent classes be imported without resorting to dummy web methods?

Thanks!

Dec 28 '06 #1
0 1135

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

Similar topics

2
by: BillyO | last post by:
I need a general mechanism for passing parameters to an API function I am designing, call it foo. Foo processes data, the operation used to process the data and the parameters for that operation...
3
by: hazz | last post by:
The following classes follow from the base class ' A ' down to the derived class ' D ' at the bottom of the inheritance chain. I am calling the class at the bottom, "public class D" from a client...
5
by: aa7im | last post by:
I am attempting to create a base collection that I can use to derive strongly typed collection. My base collection class will derive from CollectionBase and I want my typed collections to be...
0
by: Ido Flatow | last post by:
As it seems, if I define a nested class in the WS, the client that references the WS get's a generated code where the nested class is defined outside the class. I can say - "Ok, I'll play along"...
1
by: vincent | last post by:
Hello, I'm webreferecing some webservice. I have one WebMethod returning "List<SomeClass>" I don't want "SomeClass" to be proxy generated on client side But i want to use the same "SomeClass"...
8
by: Jackson | last post by:
I want a class that will determine its base class by the argument passed in. What I am about to write _does_not_work_, but it shows what I am trying to do. class ABC(some_super): def...
3
by: keith.thornhill | last post by:
hey all, got a problem here using Visual basic .net 2005 i have two pairs of base/derived classes. lets call them Base/Derived and BaseStruct/DerivedStruct. i want to be able to instantiate a...
26
by: nyathancha | last post by:
Hi, How Do I create an instance of a derived class from an instance of a base class, essentially wrapping up an existing base class with some additional functionality. The reason I need this is...
0
by: kamran65536 | last post by:
Hi, I've implemented a SchemaImporterExtension so I can ignore or change the behaviour of the XmlSerializer used by wsdl.exe. I successfully did that :) but the problem is the types which has...
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: 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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.