Пример #1
0
        public char Post(string url)
        {
            HttpWebRequest req = WebRequest.Create(url) as HttpWebRequest;

            req.Method = "Post";

            var stream = req.GetRequestStream();

            Soap.Save(stream);
            stream.Close();
            var response = req.GetResponse();
            var res      = ReadResult(response.GetResponseStream());


            if (Debug)
            {
                Print();
            }

            return(res);
        }
Пример #2
0
 public void Print()
 {
     //var writer = new XmlTextWriter(Console.Out);
     //Soap.WriteTo(writer);
     Soap.Save(Console.Out);
 }