Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Serialization of an inherited property.

Reply
Thread Tools

Serialization of an inherited property.

 
 
Kevin Burton
Guest
Posts: n/a
 
      05-04-2005
Hopefully this is the right group.

I am getting the following exeption:

Member 'PPRP602AType.RPLY_HEADER' hides inherited member
'REPLYType.RPLY_HEADER', but has different custom attributes.
at
System.Xml.Serialization.StructMapping.FindDeclari ngMapping(MemberMapping
member, StructMapping& declaringMapping, String parent)
at System.Xml.Serialization.StructMapping.Declares(Me mberMapping member,
Stri
ng parent)
at
System.Xml.Serialization.XmlReflectionImporter.Imp ortStructLikeMapping(Str
uctModel model, String ns)

The 'REPLYType.RPLY_HEADER' is abstract and specified as:

public abstract class REPLYType
{
#region Accessor Functions
public abstract RPLY_HEADERType RPLY_HEADER
{
get;
set;
}
#endregion
}

Then I derive from there

public sealed class PPRP602AType : REPLYType

and implement the abstract property:

#region Private Members
private RPLY_HEADERType _RPLY_HEADER;
#endregion
#region Accessor Functions
[XmlElement(ElementName="RPLY_HEADER_PPRP602A")]
public override RPLY_HEADERType RPLY_HEADER
{
get
{
return _RPLY_HEADER;
}
set
{
_RPLY_HEADER = value;
}
}
#endregion

What am I doing wrong? Why the serialization exception?

Thank you.

Kevin



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
'Class.inherited' v. 'inherited' syntax inside Class 7stud -- Ruby 11 11-09-2007 06:45 PM
how to move from java object serialization to xml serialization? Dimitri Ognibene Java 4 09-02-2006 07:32 AM
Object serialization XML vs java serialization plasticfloor@gmail.com Java 3 06-14-2006 03:45 AM
Serialization Problems and books on serialization? sinleeh@hotmail.com Java 8 01-02-2005 02:40 PM
avoiding XML serialization, different WSDL generation, soap serialization Ramunas Urbonas ASP .Net Web Services 1 07-27-2004 09:57 PM



Advertisments