Exemplo n.º 1
0
        public static MieItemTypes GetItemTypes()
        {
            // Request authentication
            var mieClient = new MieProducer.epcvServiceSoapClient();
            var data      = mieClient.ksoGetItemTypes(GetLogin("SMARTWEB"));

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

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