Alt-N Discussion Groups
MDaemon Discussion Groups
MDaemon API
XML API broken with 19.5.1?

Novice
Posts: 147
(reposting from mdbeta)
As it seems, the update from 19.5.0 to 19.5.1 broke the XML API.
We're using various automating functions (GetDomainList, GetUserInfo, SetDynamicScreen) and all of them just return an empty string.
Nothing shows up in the detail logs in \MDaemon\Logs\MdMgmtSW\ either.
Anyone using XML API and got it still working?
This PHP snippet used to work with 19.5.0:
define('MDAPIURL', 'https://mdlogtracker:xxxxxxxxxx@mail.psyma.com:3002/MdMgmtWS');
$xml=
'<?xml version="1.0" encoding="utf-8"?>
<MDaemon>
<API>
<Request version="19.5.0" echo="1" verbose="1">
<Operation>GetDomainList</Operation>
<Parameters>
<Get>
<Users/>
</Get>
</Parameters>
</Request>
</API>
</MDaemon>';
$ch = curl_init(MDAPIURL);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: text/xml'));
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $xml);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$response = curl_exec($ch);
var_dump($response);
curl_close($ch);
Regards
Nils
--MD-API------------------------------------------------------------- This list is for questions and discussions regarding MDAEMON's API. To unsubscribe from this mailing list send an email to md-api-unsubscribe@mdaemon.com . --POWERED BY MDAEMON!------------------------------------------------ --------------------------------------------------------------------- These forums are provided by MDaemon Technologies for user-to-user support and discussion. MDaemon staff members may participate in the forums periodically but please recognize that this is not the official method of receiving technical support. To receive personal technical support please use the form here: http://www.mdaemon.com/support/request_support.asp ---------------------------------------------------------------------
|
|
|