Ascio DNS

PHP 5 SearchZoneNames

Searches for zones and names only.

Search for a zone by name by properties and wildcards. eg. Zones with a Record target that is ascio*. Returns only names (array of string)

Response SearchZoneNames(SearchZoneNames $searchZoneNames)

Response codes

ResultCodeMessageValue
200OK
400Parameter value error - Null or invalid value
401Authorization failed
416Validation failed
204No results found

SearchZoneNames Request

Property
searchZoneClauses

SearchZoneNamesResponse

Property
SearchZoneNamesResult
zoneNames

PHP 5 example

<?php
$wsdl = "https://dnsservice.demo.ascio.com/2010/10/30/DnsService.wsdl";
//$wsdl = "https://dnsservice.ascio.com/2010/10/30/DnsService.wsdl";
$client = new SoapClient($wsdl,[ "trace" => 1, "soap_version" => SOAP_1_1)];
$headers = []; 
$headers[] = new SoapHeader($ns,"UserName", "user");
$headers[] = new SoapHeader($ns, "Password", "password");
$client->__setSoapHeaders($headers);
//SearchZoneClause

$searchZoneClause =  [
	"Operator" => "Is",
	"SearchZoneField" => "ZoneName",
	"Value" => "Mr."
];
//ArrayOfSearchZoneClause

$searchZoneClauses =  [
	"SearchZoneClause" => [$searchZoneClause]
];
//SearchZoneNames

$searchZoneNames =  [
	"searchZoneClauses" => $searchZoneClauses
];
try{	
    $result = $client->searchZoneNames($searchZoneNames);
    echo "ResultCode : ".$result->SearchZoneNamesResult->ResultCode."\r\n";
    echo "ResultMessage : ".$result->SearchZoneNamesResult->ResultMessage."\r\n";
    if(is_array($result->SearchZoneNamesResult->Errors->string)) {
        echo "Errors:\r\n";
        foreach($result->SearchZoneNamesResult->Errors->string as $key => $value) {
            echo " - " . $value."\r\n";
        }
    }
} catch(Exception $e) {
	echo $e->getMessage(); 
}

WSDL AscioDns
https://dnsservice.demo.ascio.com/2010/10/30/DnsService.wsdl (OTE)
https://dnsservice.ascio.com/2010/10/30/DnsService.wsdl (Live)
Please configure the IP-Whitelisting in the portal/demo-portal.