DomainZoneInitSoa

From NETIM
Jump to: navigation, search


Release Runtime
API >= 2.0 Synchronous


Description

Resets the SOA record of a domain name

StructOperationResponse domainZoneInitSoa(string idSession, string domain, int ttl, string ttlUnit, int refresh, string refreshUnit, int retry, string retryUnit, int expire, string expireUnit, int minimum, string minimumUnit) 


Parameters

Format Variable Description Notes
string (32) idSession Session ID
string (255) domain Domain name
int(11) ttl Time to live
string(1) ttlUnit TTL unit S/M/H/D/W
int(11) refresh Refresh delay
string(1) refreshUnit Refresh unit S/M/H/D/W
int(11) retry Retry delay
string(1) retryUnit Retry unit S/M/H/D/W
int(11) expire Expire delay
string(1) expireUnit Expire unit S/M/H/D/W
int(11) minimum Minimum delay
string(1) minimumUnit Minimum Unit S/M/H/D/W


Return

A structure StructOperationResponse


Notes

S = Second
M = Minute
H = Hour
D = Day
W = Week


Examples

PHP

<?php
$clientSOAP = new SoapClient("http://URL.wsdl");
 
try
{
      $idSession = $clientSOAP->sessionOpen("XXXX", "XXXX", "EN");
 
      $StructOperationResponse = $clientSOAP->domainZoneInitSoa($idSession, "netim.com", 3, "H", 3, "H", 2, "H", 1, "W", 1, "D");
 
      print_r($StructOperationResponse);
}
catch(SoapFault $fault)
{
      echo "Exception : " .$fault->getMessage(). "\n";
}
 
if (isset($idSession))
{
      $clientSOAP->sessionClose($idSession);
}
?>


Release Runtime
API > 1.0 Synchronous


Description

Resets the SOA record of a domain name

int domainZoneInitSoa(string idSession, string domain, int ttl, string ttlUnit, int refresh, string refreshUnit, int retry, string retryUnit, int expire, string expireUnit, int minimum, string minimumUnit) 


Parameters

Format Variable Description Notes
string (32) idSession Session ID
string (255) domain Domain name
int(11) ttl Time to live
string(1) ttlUnit TTL unit S/M/H/D/W
int(11) refresh Refresh delay
string(1) refreshUnit Refresh unit S/M/H/D/W
int(11) retry Retry delay
string(1) retryUnit Retry unit S/M/H/D/W
int(11) expire Expire delay
string(1) expireUnit Expire unit S/M/H/D/W
int(11) minimum Minimum delay
string(1) minimumUnit Minimum Unit S/M/H/D/W


Return

A tracking ID


Notes

S = Second
M = Minute
H = Hour
D = Day
W = Week


Examples

PHP

<?php
$clientSOAP = new SoapClient("http://URL.wsdl");
 
try
{
      $idSession = $clientSOAP->login("XXXX", "XXXX", "EN");
 
      $trackingID = $clientSOAP->domainZoneInitSoa($idSession, "netim.com", 3, "H", 3, "H", 2, "H", 1, "W", 1, "D");
 
      echo($trackingID);
}
catch(SoapFault $fault)
{
      echo "Exception : " .$fault->getMessage(). "\n";
}
 
if (isset($idSession))
{
      $clientSOAP->logout($idSession);
}
?>


JAVA

DRSServiceLocator service = new DRSServiceLocator();
String idSession;
int trackingID;
 
try
{
      DRSPortType port = service.getDRSPort();
      idSession = port.login("XXXX", "XXXX", "EN");
 
      trackingID = port.domainZoneInitSoa(idSession, "netim.com", 3, "H", 3, "H", 2, "H", 1, "W", 1, "D");
      System.out.println(trackingID);
 
      port.logout(idSession);
}
catch (RemoteException re)
{
      System.out.println(re.getMessage());
}
catch (ServiceException se)
{
      se.printStackTrace();
}


Personal tools
Namespaces

Variants
Actions
Your account
Domain names
Contact Us
Web Hosting
SSL Certificate
Email Hosting
Website Builder
Resellers
Affiliates
Miscellaneous