Ascio Web Service v2
Class CreateDnsSecKey
Property | Description |
---|---|
sessionId | Example: o58t9fjgw9bjarp6q7byv13e |
dnsSecKey |
<?php
namespace ascio\v2\examples;
require(__DIR__."/../service/autoload.php");
require(__DIR__."/../../lib/AscioConfig.php");
use ascio\v2 as ascio;
use ascio\lib as lib;
function createDnsSecKeyExample() {
$config = new lib\Config();
$env = $config->get("testing"); //testing or live
$sessionId = "12345";
$ascioClient = new ascio\AscioServices(array("trace" => true),$env->getWsdl("v2"));
$dnsSecKey = new ascio\DnsSecKey();
$dnsSecKey->setDigestAlgorithm("RSA-SHA256");
$dnsSecKey->setDigestType("SHA-256");
$dnsSecKey->setDigest("846E5ED4AB6788032B89393619752F662CF2B7B2046A8EC0804DF88F1469AC1E");
$dnsSecKey->setKeyTag("2224");
$dnsSecKey->setPublicKey("PublicKeyTest");
try {
$response = $ascioClient->CreateDnsSecKey(new ascio\CreateDnsSecKey($sessionId, $dnsSecKey));
} catch (\Exception $e) {
echo ("[".$e->faultcode . "] ". $e->faultstring);
return;
}
$result = $response->getCreateDnsSecKeyResult();
echo "Code: ".$result->getResultCode()."\n";
echo "Message: ".$result->getMessage()."\n";
return $result;
}
createDnsSecKeyExample();
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.
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.