Serializing a Webservice response When you want to view the details of a SOAP webservice response and, for instance, write it to your log, the following example of serialization can help: private static string SerializeObject( object toSerialize) { XmlSerializer xmlSerializer = new XmlSerializer(toSerialize.GetType()); using (StringWriter textWriter = new StringWriter()) { xmlSerializer.Serialize(textWriter, toSerialize); return textWriter.ToString(); ...
fullstack
About fullstack web development with .NET, JS (Polymer, Angular) and automated testing (CodedUI, WCT).
(https://github.com/acbeljaars)