So how does one convert the MSXML2.ServerXMLHTTP.Send() method using
HttpRequest or HttpResponse ?
> The classes that you're looking for are the HttpRequest class
> and the HttpResponse class. They are both in the System.Web namespace
> and will do exactly what you're looking for (read/write from HTTP).
>
> However, if you are doing a lot of I/O using the HttpRequest and
> HttpResponse in .NET, you might want to sit back and evaluate whether
> or not you can convert some of your code to use Web Services rather than
> the low level request/response interface.
>
> -----Original Message-----
> From: mareal@r... [mailto:mareal@r...]
> Sent: Friday, September 28, 2001 2:10 PM
> To: ASPX_Professional
> Subject: [aspx_professional] Re: Where is ServerXMLHTTP object in .NET?
>
>
> I cannot even get to were you got. Do I have to add any references to be
> able to use "ServerXMLHTTP"?
>
> > I have been using the MSXML2.ServerXMLHTTP object in ASP to allow me to
> > read the XML response from a HTTP POST request.
> >
> > ASP Code...
> > Set objProxy = Server.CreateObject("MSXML2.ServerXMLHTTP")
> > objProxy.open "POST", "http://server/templates/login.xml"
> > objProxy.send "UserName=user&Password=test"
> > Set objXMLDoc = Server.CreateObject("MSXML2.DOMDocument")
> > objXMLDoc.LoadXml objProxy.responseText
> >
> > Please could someone enlighten me as to where this object (or its
> > replacement) exists in the .NET framework. I am currently using the
> MSXML2
> > COM object from .NET via a callable wrapper but I'm sure that there
must
> be
> > a better solution.
> >
> > .NET Code...
> > Dim objProxy As New MSXML2.ServerXMLHTTP()
> > Dim objXMLDoc As New XmlDocument()
> > objProxy .open("POST", "http://server/templates/login.xml")
> > objProxy .send("UserName=user&Password=test")
> > objXMLDoc.LoadXml(objProxy.responseText)
> >
> > Any ideas gratefully received!
> >
> > Thanks,
> >
> > Stu
> >
> > stuart.hunter@k...