rfischernw7
asked on
What is the .NET replacement for ServerXMLHTTP, MSXML2?
I am trying to use a vendor web service. They sent me sample code that looks like the following:
Dim oXmlhttp As XMLHTTP30
Dim sResponse As String
Set oXmlhttp = New ServerXMLHTTP
oXmlhttp.setOption(2) = 13056
oXmlhttp.Open "POST","https://www.myvendorwebservice.com/webservices/RequestHandler.aspx", False, "UserID", "Password"
oXmlhttp.setRequestHeader "Content-Type", "text/xml"
oXmlhttp.send oXMLDom.Xml
How do I do the equivalent in .NET?
Dim oXmlhttp As XMLHTTP30
Dim sResponse As String
Set oXmlhttp = New ServerXMLHTTP
oXmlhttp.setOption(2) = 13056
oXmlhttp.Open "POST","https://www.myvendorwebservice.com/webservices/RequestHandler.aspx", False, "UserID", "Password"
oXmlhttp.setRequestHeader "Content-Type", "text/xml"
oXmlhttp.send oXMLDom.Xml
How do I do the equivalent in .NET?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You need to add a reference to the com or assembly dll which contains the definition and implementation of
XMLHTTP30 and ServerXMLHTTP in your project, then you can use the same code.