Ascio Web Service v2

Class CreateDnsSecKey

PropertyDescription
sessionIdExample: o58t9fjgw9bjarp6q7byv13e
dnsSecKey
<?php
$wsdl = "https://aws.demo.ascio.com/2012/01/01/AscioService.wsdl";
//$wsdl = "https://aws.ascio.com/2012/01/01/AscioService.wsdl";
$client = new SoapClient($wsdl,array( "trace" => 1, "soap_version" => SOAP_1_1));

//DnsSecKey

$dnsSecKey =  [
	"DigestAlgorithm" => "RSA-SHA256",
	"DigestType" => "SHA-256",
	"Digest" => "846E5ED4AB6788032B89393619752F662CF2B7B2046A8EC0804DF88F1469AC1E",
	"KeyTag" => "2224",
	"PublicKey" => "PublicKeyTest"
];
//CreateDnsSecKey

$createDnsSecKey =  [
	"sessionId" => env.getSessionId(),
	"dnsSecKey" => $dnsSecKey
];
try{	
    $result = $client->createDnsSecKey($createDnsSecKey);
    echo "ResultCode : ".$result->CreateDnsSecKeyResult->ResultCode."\r\n";
    echo "ResultMessage : ".$result->CreateDnsSecKeyResult->ResultMessage."\r\n";
    if(is_array($result->CreateDnsSecKeyResult->Errors->string)) {
        echo "Errors:\r\n";
        foreach($result->CreateDnsSecKeyResult->Errors->string as $key => $value) {
            echo " - " . $value."\r\n";
        }
    }
} catch(Exception $e) {
	echo $e->getMessage(); 
}

WSDL for AWS v2
https://aws.demo.ascio.com/2012/01/01/AscioService.wsdl (OTE)
https://aws.ascio.com/2012/01/01/AscioService.wsdl (Live)
Please configure the IP-Whitelisting in the portal/demo-portal.