Link to home
Start Free TrialLog in
Avatar of rfischernw7
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?
Avatar of laotzi2000
laotzi2000

You don't need a replacement here.

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.
ASKER CERTIFIED SOLUTION
Avatar of laotzi2000
laotzi2000

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial