.NET Equivalent class for MSXML2.XMLHTTP
Messages   Related Types
This message was discovered on microsoft.public.dotnet.xml.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
Post a new message to this list...

George Q
I'd like to post an XML document to the BizTalkHTTPReceive.dll in a virtual
IIS directory from an ASP.NET page.

Is there an equivalent .NET system class to post XML in the way the
MSXML2.XMLHTTP object provides? I would like to use managed .NET code
instead of a COM based object.

Is the HttpPostClientProtocol class the equivalent?

Thanks,
GQ

Reply to this message...
 
    
Karthik Ravindran
Hello,

The System.Net.HttpWebRequest and the System.Net.HttpWebResponse Classes
can be used to execute HTTP requests and access responses in .NET
applications.

Thanks

--
This posting is provided "AS IS" with no warranties, and confers no rights.

Reply to this message...
 
    
George Q
The HttpWebRequest class looks promising but I haven't figured out how to
post data. I know that I have to set HttpWebRequest.Method to "POST" but I
don't see an attribute or method to actually send the data. The
HttpWebRequest.GetResponse method that initiates the request is not
overloaded with parameters to send data. The equivalent function in the old
MSXML2.XMLHTTP40Class was the .send method.

Thanks,
GQ

"Karthik Ravindran" <Click here to reveal e-mail address> wrote in message
news:0XQVymBNCHA.1648@cpmsftngxa07...
[Original message clipped]

Reply to this message...
 
    
Christoph Schittko (VIP)
You can access the request through the GetRequestStream() method. Then you
can write your POST data into the stream with a StreamWriter or even an
XmlTextWriter.

HTH,

--
Christoph Schittko
Software Architect
Mshow - a division of InterCall

"George Q" <Click here to reveal e-mail address> wrote in message
news:uVcG3RMNCHA.2276@tkmsftngp10...
[Original message clipped]

Reply to this message...
 
    
George Q
To All That Helped,
Thanks. your guidance was a big help. I'm up and running.
What took 4 lines of code before, now takes 9 but the flexibility,
additional capabilities, and benefits of .NET are worth it.

Thanks Again,
GQ

"Christoph Schittko" <Click here to reveal e-mail address> wrote in message
news:#zQJuANNCHA.2472@tkmsftngp11...
[Original message clipped]

Reply to this message...
 
    
Karthik Ravindran
Hello,

The KB article Q321702 on .NET XSLT Extension objects contains a code
sample that demonstrates how to use these objects. Check it out. Hope this
helps!

Thanks

---
This posting is provided "AS IS" with no warranties, and confers no rights.

Reply to this message...
 
    
Christoph Schittko (VIP)
As I said a week ago: I want a dollar for everytime someone asks this
question ;)

Check [1]

--
Christoph Schittko
Software Architect
Mshow - a division of InterCall

[1]
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=OCTofjcL
CHA.2452%40tkmsftngp11&rnum=1&prev=/groups%3Fq%3Ddotnet%2Bxml%2Bchristoph%2B
dollar%26ie%3DUTF-8%26oe%3DUTF-8%26hl%3Den

"George Q" <Click here to reveal e-mail address> wrote in message
news:eAtH0u0MCHA.772@tkmsftngp12...
> I'd like to post an XML document to the BizTalkHTTPReceive.dll in a
virtual
[Original message clipped]

Reply to this message...
 
 
System.IO.StreamWriter
System.Net.HttpWebRequest
System.Net.HttpWebResponse
System.Web.Services.Protocols.HttpPostClientProtocol
System.Xml.XmlTextWriter




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com