Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / JScript / December 2007

Tip: Looking for answers? Try searching our database.

The .Net Way to get the XML Payload from the Request?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
GeoffMcGrath - 17 Dec 2007 04:51 GMT
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);

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.