我在调用时遇到了“System.Net.ProtocolViolationException: Operation is not valid due to the current state of the object.”错误。
var request = (HttpWebRequest)WebRequest.Create(uri);
request.Method = "GET";
request.ContentType = "text/xml";
request.BeginGetRequestStream(RequestCompleted, request);