public void TestGetCustomer() { MetaManager metaManager = new MetaManager(); string customerID = "12a60e22-2960-4ac8-a3e3-dee806d6b990"; Customer customers = metaManager.GetCustomer(customerID); System.Xml.Serialization.XmlSerializer serializer = new System.Xml.Serialization.XmlSerializer(typeof(Customer), new Type[] { typeof(Configuration), typeof(ConfigurationType), typeof(Configuration[]) }); string result = "-9"; using (System.IO.StringWriter writer = new System.IO.StringWriter()) { serializer.Serialize(writer, customers); result = writer.ToString(); } Console.WriteLine(result); }