What does it mean when the vendor says 'Can you please confirm that you are sending XML over HTTP?'
He doesn't know php, and i'm an XML noob. lol
At present, i'm using curl to do it. I am able to send the xml query over, and get a response. but the response is not what i am expecting. I should receive a list of whatever i requested, but all i'm receiving is this.
<body><version>2</version><opCode>OP_OK</opCode></body>
this is the code i'm using to send the xml
$url = "http://xxx";
$xml = '<?xml version ="1.0" encoding="UTF-8"?>
<root>
<header>
<protocol>1</protocol>
<oem>xx</oem>
<agentID>xxx</agentID>
<password>xxxx</password>
</header>
<body>
<opCode>XX_AREAS_XX</opCode>
<item name=”ANTALYA” ID=”5” />
<item name=”JERUSALEM” ID=”1” />
</body>
</root>
';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPHEADER, Array("Content-Type: text/xml"));
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, 'xml=' . $xml);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$content = curl_exec($ch); #this returns html
anyone can help me?