active x like

From: Date: Mon, 10 Mar 2003 16:31:05 +0000
Subject: active x like
Groups: php.general 
Request: Send a blank email to php-general+get-138972@lists.php.net to get a copy of this message
I am using php to send an xml request, but the people on the side that receives the xml says they can only receive from activex generated xml (with code similar to below) Does anyone know how to generate the xml from php so it comes out exactly like it does from this active x object? var s; var url = "http://www.tourico-demo.com/xmlserver.asp"; var xmlHttp = new ActiveXObject ("Microsoft.XMLHTTP"); s = "<body><opCode>OP_GET_CUSTOMERS</opCode>"; s += "<lastName>" + lastName + "</lastName>"; s += "<firstName>" + firstName + "</firstName>"; xmlHttp.open("POST", url, false); xmlHttp.send(s); var xmlDoc = xmlHttp.responseXML; var root = xmlDoc.documentElement if (root) node = root.selectSingleNode("./opCode"); if (node) { ... }

« previous php.general (#138972) next »