http:////www.vikramlakhotia.com/SPAN>/A>//HomePage.aspx”;/P>
WebRequest request = WebRequest.Create(url);/P>
request.Method = "Post";/P>
request.ContentType = "text//xml";/P>
////The encoding might have to be chaged based on requirement/P>
UTF8Encoding encoder = new UTF8Encoding();/P>
byte[] data = encoder.GetBytes(xml); ////postbody is plain string of xml/P>
request.ContentLength = data.Length;/P>
Stream reqStream = request.GetRequestStream();/P>
reqStream.Write(data, 0, data.Length);/P>
reqStream.Close();/P>
System.Net.WebResponse response = request.GetResponse();/P>
System.IO.StreamReader reader = new System.IO.StreamReader(response.GetResponseStream());/P>
string str = reader.ReadToEnd();/P>
That’s all you need to do to send XML in a post request./P>
Vikram/P>