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) {

...

}




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to