In ASP2.0, on the server the following server-side code could be used
to load XML sent via the XMLHTTP object from a client:
<%@language=jscript%>
<%
var domDocument = Server.CreateObject( 'MSXML2.DOMDOCUMENT' );
domDocument.load( Request );
%>
I always thought it was cool that the Request object could be
serialized directly into the domDocument this way...
How is the xml payload retrieved the ASP.net way...anyone have any
hints?
Oh, here's an example of the client-side code:
<html><head><title></title>
<script type="text/javascript">
var XMLHTTP = new ActiveXObject( 'MSXML2.XMLHTTP' );
XMLHTTP.Open( "POST", "http://mytesturl/mytest.asp", false );
XMLHTTP.Send( "<xml>Hello World!</xml>" );
</script>
</head><body></body></html>
GeoffMcGrath - 17 Dec 2007 16:47 GMT
As my friend Chad points out, this works:
XmlDocument xmlDoc1 = new XmlDocument();
xmlDoc1.Load(Request.InputStream);