public static MieTables GetTables() { // Request authentication var mieClient = new MieProducer.epcvServiceSoapClient(); var data = mieClient.ksoGetTables(GetLogin()); // Serialise result XmlSerializer serializer = new XmlSerializer(typeof(MieTables)); using (var reader = new StringReader(data)) { return((MieTables)serializer.Deserialize(reader)); } }