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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Send a message xml formated with ASP

Status
Not open for further replies.

JeanG

Programmer
Jan 30, 2002
2
FR
Hi all,

I need a big help !

I try to send an xml formated message with the following method :

Set xmlhttp = Server.CreateObject("MSXML2.DOMdocument.4.0") ' the MS parser HTTP component

xmlhttp.Open "POST",sURL, false, sUser, sPass

xmlhttp.setRequestHeader "Content-Type", "text/xml"

on error resume next
xmlhttp.Send(sXML)'sxml is the xml data

The answer of the server is the open method is not working with this object.

Any ideas ?

Jean Yves
 
Use the correct object:

Msxml2.XMLHTTP.4.0

Jordi Reineman
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top