private XmlSerializer createSoapOverrider() { SoapAttributes soapAttrs = new SoapAttributes(); SoapAttributeOverrides soapOverrides = new SoapAttributeOverrides(); soapAttrs.SoapElement = new SoapElementAttribute("Nenrei"); soapOverrides.Add(typeof(Person), "Age", soapAttrs); XmlTypeMapping myTypeMapping = (new SoapReflectionImporter (soapOverrides)).ImportTypeMapping(typeof(Person)); return new XmlSerializer(myTypeMapping); }