test.aspxページに簡単なXMLリクエストを作成しました。
System.Net.WebRequest req = System.Net.WebRequest.Create("http://server.loc/rq.aspx");
req.ContentType = "text/xml";
req.Method = "POST";
string strData = "<root><test>test1 </test></root>";
byte[] bytes = System.Text.Encoding.ASCII.GetBytes(strData);
req.ContentLength = bytes.Length;
Stream os = req.GetRequestStream();
os.Write(bytes, 0, bytes.Length);
System.Net.WebResponse resp = req.GetResponse();
if (resp == null) return;
System.IO.StreamReader sr = new System.IO.StreamReader(resp.GetResponseStream());
string responsecontent = sr.ReadToEnd().Trim();
ここで、rq.aspxで、webrequestを予測し、strDataに基づいてある種の応答を生成したいと思います。web-requestからstrDataにアクセスする方法が本当にわかりません。