Beispiel #1
0
        public static MieAgentsModel GetAgents()
        {
            // Request authentication
            var mieClient = new MieProducer.epcvServiceSoapClient();
            var data      = mieClient.ksoGetAgents(GetLogin());

            // Serialise result
            XmlSerializer serializer = new XmlSerializer(typeof(MieAgentsModel));

            using (var reader = new StringReader(data))
            {
                return((MieAgentsModel)serializer.Deserialize(reader));
            }
        }