473,598 Members | 3,409 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Base Classes are not passed to SchemaImporterE xtension


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 SchemaImporterE xtension. 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 1151

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

Similar topics

2
2808
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 are to be passed to foo. A simple approach involves the use of base and derived classes: Class DataProcessor { Public: enum ProcessorTypeEnum{op1, op2, op3}
3
1586
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 app with; D m_D = new D(tkn); public class A : MarshalByRefObject public A () <--------------------- public class B : A public B () <----------------------
5
2089
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 forced to implement certain methods: public abstract class MyCollectionBase: CollectionBase { public void Sort() {.... SORT IMPLEMENTATION } public void Filter() {...> FILTER IMPLEMENTATION }
0
1108
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" but ... When I create a dataset in the WS, the generated Typed dataset classes define the datatables as nested classes of the dataset - somehow, the generated code on the client knows that they are nested (that's what happens when you let MS...
1
1176
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" that i have on server side. I have seen one day an attribute to put on the WebMethod to specify the return type.
8
1978
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 __init__(self,some_super): some_super.__init__(self) if some_super == list: self.append('ABC')
3
2050
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 DerivedStruct in my Derived class, but have the instance of it be accessible from both the Base class (as BaseStruct) and Derived class (as DerivedStruct) this is the kind of code i'm looking to be able to use
26
5348
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 because I am not always able to control/create all the different constructors the base class has. My problem can be described in code as follows ... /* This is the base class with a whole heap of constructors/functionality*/ public class Animal
0
995
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 been included to the schema... see: public class Class1 {}
0
7902
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8050
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8265
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6719
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5850
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5438
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3898
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3939
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2412
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.