This is probably what you are looking for
private void Page_Load(object sender, EventArgs e)
{
// Read XML posted via HTTP
using (var reader = new StreamReader(Request.InputStream))
{
string xmlData = reader.ReadToEnd();
// do something with the XML
}
}
From this answer