Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MSXML2 class

Status
Not open for further replies.

hacesol

Programmer
Apr 2, 2007
10
ES
What is the namespace that includes the MSXML2 class? I´m trying to define this :

MSXML2.ServerXMLHTTP40 objXML;

but I get this error:

"The type or namespace name 'MSXML2' could not be found (are you missing a using directive or an assembly reference?"
 
the code:

objXMLHttp = new ServerXMLHTTP40();
objXMLHttp.open("POST", " false, "", "");
objXMLHttp.setRequestHeader("Content-Type", "text/xml; charset=utf-8");
objXMLHttp.setRequestHeader("SOAPAction", "objXMLHttp.send(strRequest.Text);
objXMLHttp.waitForResponse(500);
string outXML = objXMLHttp.responseText.ToString();
strResponse.Text = outXML.ToString();
....

I´m trying to consume a webService using SOAP. Is there another way?
 
Generally, I consume a web service by adding a Web Reference to it in Visual Studio. However, after a quick google, I found this article which shows how to do it using the method you are currently trying (it also has a link to the MSXML2 object).


____________________________________________________________
Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]

Need help finding an answer? Try the Search Facility or read FAQ222-2244.
 
Can I use the Web References for my application if the Web Service I´m consuming is located in another server?
 
Yes. The point of a web service is so that it is available to multiple "users" while being hosted in only on spot.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top