Home Posts Topics Members FAQ
Kevin Burton
I am trying to deserialize some input that can have multiple types of
outputs. I have:
<XmlInclude(Get Type(ProductRep ortInfo))_
Public Property AdditionalInfo( ) As AdditionalRepor tInfo
But the compiler gives me:
Error1Attribute 'XmlIncludeAttr ibute' cannot be applied to
'AdditionalInfo ' because the attribute is not valid on this declaration type.
I right now only have (I pan to extend this)
<XmlType(), Serializable()_
Public MustInherit Class AdditionalRepor tInfo
End Class
Public Class ProductReportIn fo
Inherits AdditionalRepor tInfo
Public SKU As String
End Class
What am I doing wrong?
Thank you.
Kevin
Jul 22 '06 #1
Subscribe Reply
0 1079
This thread has been closed and replies have been disabled. Please start a new discussion.
Similar topics
1 2154 Dynamic XmlInclude declaration 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; .NET Framework |
1 24758 The type namespace.classname was not expected. Use the XmlInclude or SoapInclude attribute to specify types that are not known statically. 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 XmlSerializer tries serializing this public field's real content I get a "The type namespace.classname was not expected. Use the XmlInclude or SoapInclude attribute to specify types that are not known statically.". I suppose this is due to the fact that... C# / C Sharp |
4 1632 Hiding inherited classes by: Dan |last post by: I have a need to make a set of classes that all share the same public methods, some implementation and some data. So, I made an abstract base (BaseClass) with an interface (IBaseClass) and a handful of inherited classes. The static method calls the ctor of the appropriate inherited class and returns it as type IBaseClass. There are no new methods or properties in the inherited classes and public clients never need to know which... C# / C Sharp |
4459 Problems with XmlInclude 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} C# / C Sharp |
1017 Are XmlInclude and ResponseNamespace mutually exclusive? by: goteti |last post by: Hello, I have a method with these attributes: public GetCardsResponse GetCards(GetCardsRequest getCardsRequest) { .NET Framework |
1846 XmlInclude not generating wsdl description when using SoapRpcMethod 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 conform to WS-I 1.1 for interop. When I do not include the public Person GetPerson(int ID) { Manager manager = new Manager(); return manager.GetPerson(ID); } But when I add the SoapRpcMethod, it does not generate the "Employee" class and... .NET Framework |
14 2625 Synthesized and non-inherited class members by: lovecreatesbea... |last post by: Could you tell me how many class members the C++ language synthesizes for a class type? Which members in a class aren't derived from parent classes? I have read the book The C++ Programming Language, but there isn't a detail and complete description on all the class members, aren't they important to class composing? Could you explain the special class behavior in detail? Thank you very much. C / C++ |
12 2083 Can there be problems when a class is multiply inherited from 1000s of classes by: Janaka Perera |last post by: Hi All, We have done a object oriented design for a system which will create a class multiply inherited by around 1000 small and medium sized classes. I would be greatful if you can help me with the following: Can this create any problems with GNU g++ compilation, linking etc? What would be the impact to the performance of the system? Anything else we have to consider? C / C++ |
1 11091 C# XML and binary Serialization - XmlInclude being ignored ? by: kikisan |last post by: I am developing a windows service which utilizes the following classes: interface IPersistable; abstract class PersistableObject : IPersistable; .NET Framework |
8379
What is ONU? by: marktang |last post by: ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of... General |
8709
Maximizing Business Potential: The Nexus of Website Design and Digital Marketing by: jinu1996 |last post by: In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is... Online Marketing |
8596
Discussion: How does Zigbee compare with other wireless protocols in smart home applications? 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... General |
1 6162
Access Europe - Using VBA to create a class based on a table - Wed 1 May 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... Microsoft Access / VBA |
5627 Couldnt get equations in html when convert word .docx file to html file in C#. 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();... C# / C Sharp |
4150 Trying to create a lan-to-lan vpn between two differents networks 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... Networking - Hardware / Configuration |
1 2719 transfer the data from one system to another through ip address 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 C# / C Sharp |
1 1924
How to add payments to a PHP MySQL app. by: muto222 |last post by: How can i add a mobile payment intergratation into php mysql website. PHP |
2 1597
Comprehensive Guide to Website Development in Toronto: Expert Insights from BSMN Consultancy by: bsmnconsultancy |last post by: In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive... General |
By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.
To disable or enable advertisem*nts and analytics tracking please visit the page.