I’m trying to convert some code that worked great in VB, but I can’t figure out what objects to use in .Net.
Dim oXMLHttp As XMLHTTP oXMLHttp = New XMLHTTP oXMLHttp.open 'POST', 'https://www.server.com/path', False oXMLHttp.setRequestHeader 'Content-Type', 'application/x-www-form-urlencoded' oXMLHttp.send requestString
Basically, I want to send an XML file to a server, then store the response that it returns. Can anyone point me in the right direction on this?
See the following for a sample which does this: http://www.codeproject.com/KB/dotnet/NET_Interact_j2EE.aspx I have put the sample below. Sorry, I know it’s big, but you never know how long links like this will stay valid. NOTE: the first version of the question didn’t say in C# .NET – it just said ‘in .NET’. (perhaps it was tagged C# and I didn’t see it) Converting from VB.NET to C# is pretty easy (though unnecessary). ‘This class is representing the same functionality of xmlHTTP object in MSXML.XMLHTTP.