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); }
public void Print() { //var writer = new XmlTextWriter(Console.Out); //Soap.WriteTo(writer); Soap.Save(Console.Out); }