xml serialization - How can i change the XmlElement attribute OUTSIDE the class? -
I have a class property that is generated in a suitable manner with its appropriate XmlElement attribute. I am the successor of this class and expose it as a parameter on a webservice, for which a WSDL is automatically generated magically.
I have been told that the XML attribution feature of the property needs to be changed from its place, and how can I make this new feature out of the outline generated by WSDL? Ie: either in the inherited class, or in the structure of the partial class?
You must obtain another class, and implement IXmlSerializable
.
The good news is that you should be able to get XML serializer for all or most of your work. In the Readxml method, you will call deserillise, you will serialize in the written XML method. You'll use different elements to specify names.
I'm not 100% sure that this will be enough to replace the automatically generated WSDL.
Comments
Post a Comment