After updating to 4.8.0. the queryZones API action is not working well. When it prints the $result[‘payload’] value, it gives back an empty array and to the $result[‘status’] gives a 0. I’m attaching my code which I have been able to use without any fail.
$action = 'queryZones';
$api_controller = '/nodeworx/dns/zone';
$input = array('domain' => $domain);
$params = array( 'apikey' => $key, 'ctrl_name' => $api_controller, 'action' => $action);
$client = new SoapClient( 'https://'.$api_domain.':2443/soap?wsdl' );
$result = $client->route( $key, $api_controller, $action, $input);
// Only to test
print_r($result['payload']); //print only Array ( )
//Default output
foreach($result['payload'] as $result)
{
echo $result->zone_id;
}