Ascio Web Service v2
PHP 5 CreateOrder - Delete_Domain
Deletes a domain. It is recommended to use Expire instead of a deletion. An deleted domain can be restored with the Restore_Domain order type.
Response CreateOrder(string $sessionId,Order $order)
Response codes
ResultCode | Message | Value |
---|---|---|
200 | Order validated | |
200 | Order received | |
400 | Order not validated | Messages |
401 | Authorization failed | |
405 | Access denied |
CreateOrder Request
Property | Description |
---|---|
sessionId | Example: o58t9fjgw9bjarp6q7byv13e |
order |
CreateOrderResponse
Property |
---|
CreateOrderResult |
order |
Property | Value |
OrderType | Delete_Domain |
---|
PHP 5 example
<?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,[ "trace" => 1, "soap_version" => SOAP_1_1)];
//Domain
$domain = [
"DomainHandle" => "DomainHandleTest"
];
//Order
$order = [
"Type" => "Delete_Domain",
"Domain" => $domain
];
//CreateOrder
$createOrder = [
"sessionId" => env.getSessionId(),
"order" => $order
];
try{
$result = $client->createOrder($createOrder);
echo "ResultCode : ".$result->CreateOrderResult->ResultCode."\r\n";
echo "ResultMessage : ".$result->CreateOrderResult->ResultMessage."\r\n";
if(is_array($result->CreateOrderResult->Errors->string)) {
echo "Errors:\r\n";
foreach($result->CreateOrderResult->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.
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.