lcURL=[http://www.mydomain.com/relay1.asp] oHTTP=NewOBJECT("MSXML2.XMLHTTP") oHTTP.open([POST],lcURL,.f.) oHttp.setRequestHeader("Content-Type", "text/xml") oHttp.send(lcSendXMLBody) && an XML stringHere is the ASP that receives it:
dim oXML<pre> set oXML = Server.CreateObject("Msxml2.DOMDocument") oXML.async = false oXML.resolveExternals = false oXML.load(Request) cBody="" dim oItems set oItems=oXML.selectSingleNode("row") cName=oItems.selectSingleNode("name").text cMailTo=oItems.selectSingleNode("mailto").text cBlindTo="<" & oItems.selectSingleNode("blindto").text & ">" cSubject=oItems.selectSingleNode("subject").text cBody = cBody & oItems.selectSingleNode("status").text cNameMail=cName &" <" & cMailTo & ">" ' .. the mailer routine uses these vars later in the SPI have even done the same thing with VFP MTDLL and foxISAPI. The "claim" is that XML messaging is the "glue" of the internet. It cannot be overstated how important it is to get a good understanding of DOM (xml node collections) and messaging. With those objects all desktop programming languages can be web-enabled. The playing field has leveled.