Serialize XmlDocument & send via HTTPWebRequest
问题 I'm trying to figure out how to properly serialize my XmlDocument and send it via a HTTPWebRequest object. Here's what I have thus far: Stream requestStream; HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://wwwcie.ups.com/ups.app/xml/Track"); request.Method = "POST"; request.ContentType = "application/x-www-form-urlencoded"; request.ContentLength = postData.Length; requestStream = request.GetRequestStream(); XmlSerializerNamespaces xsm = new XmlSerializerNamespaces(); xsm