Q: How to read XML file on port 80 using HttpHandler How do I read a XML file sent by the client at port 80 using HttpHandler in ASP.NET? 

A: assume the client use the POST method.
<httpHandler>
  <add path="1.ashx" verb="post" type="" />
</httpHandler>

the Httphandler code :
public void ProcessRequest(HttpContext context)
{
    var stream = context.Request.InputStream;
    using (StreamReader sr = new StreamReader(stream))
    {
        var xml= sr.ReadToEnd();  //json format       
        XmlDocument.Load(xml)
    }
}

the client code using js.
 <script type="text/javascript">
     $.ajax({
        type: 'POST',
        url: "1.ashx",
        data: { xml:"<xml/>" }
    });
</script>

