DomainUpdateOwner

From FranceDNS
Jump to: navigation, search


Release
API >= 2.0

This function has been deleted since API version 2.0. It has been replaced by contactOwnerUpdate.


Release Runtime
API > 1.0 Asynchronous


Description

Updates registrant details

int domainUpdateOwner(string idSession, string domain, StructOwner datas)


Parameters

Format Variable Description
string (50) idSession Session ID
string (255) domain Domain name
StructOwner datas New contact details


Return

A tracking ID


Notes

According to the extension, semantic rules may apply . See Category:Tld


Examples

PHP

<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
$structOwner = array(); 
$structOwner["address1"] = "10 rue de Test"; 
$structOwner["address2"] = ""; 
$structOwner["zipCode"] = "59000"; 
$structOwner["area"] = ""; 
$structOwner["city"] = "Lille"; 
$structOwner["country"] = "FR"; 
$structOwner["phone"] = "+33 000000000"; 
$structOwner["fax"] = "+33 000000000"; 
$structOwner["email"] = "anonymous@francedns.com"; 
 
try 
{ 
      $idSession = $clientSOAP->login("XXXX", "XXXX", "EN");       
      $trackingID = $clientSOAP->domainUpdateOwner($idSession, "francedns.com", $structOwner); 
 
      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; 
StructOwner structOwner = new StructOwner(); 
structOwner.setAddress1("165 avenue de bretagne"); 
structOwner.setAddress2(""); 
structOwner.setZipCode("59000"); 
structOwner.setArea(""); 
structOwner.setCity("Lille"); 
structOwner.setCountry("FR"); 
structOwner.setPhone("+33 123456789"); 
structOwner.setFax("+33 123456789"); 
structOwner.setEmail("example@francedns.com"); 
 
try 
{ 
      DRSPortType port = service.getDRSPort(); 
      idSession = port.login("XXXX", "XXXX", "EN"); 
      trackingID = port.domainUpdateOwner(idSession, "francedns.com", structOwner); 
      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
Domain names
Your Account
Payments / Billing
Hosting service PLESK
Hosting service SPAMORA
Miscellaneous
Resellers
Affiliates
Contact Us