Beispiel #1
0
        public static string GetRequestRedirect()
        {
            // Request authentication
            var mieClient     = new MieProducer.epcvServiceSoapClient();
            var argumentModel = string.Format("<?xml version=\"1.0\" encoding=\"utf - 8\"?>" +
                                              "<xml>" +
                                              "<ArgumentList>" +
                                              "<Argument>" +
                                              "<Name>ClientKey</Name>" +
                                              "<Value>{0}</Value>" +
                                              "</Argument>" +
                                              "<Argument>" +
                                              "<Name>RequestKey</Name>" +
                                              "<Value>{1}</Value>" +
                                              "</Argument>" +
                                              "</ArgumentList>" +
                                              "</xml>", Client.Key, "9066702");

            var data = mieClient.ksoGetRequest(GetLogin(), argumentModel);

            return(data);

            //// Serialise result
            //XmlSerializer serializer = new XmlSerializer(typeof(MieTables));
            //using (var reader = new StringReader(data))
            //{
            //    return (MieTables)serializer.Deserialize(reader);
            //}
        }