$newOwner->firstName = $_POST['firstName']; $newOwner->middleName = $_POST['middleName']; $newOwner->lastName = $_POST['lastName']; $newOwner->companyName = $_POST['companyName']; $newOwner->companyKvk = $_POST['companyKvk']; $newOwner->companyType = $_POST['companyType']; $newOwner->street = $_POST['street']; $newOwner->number = $_POST['number']; $newOwner->postalCode = $_POST['postalCode']; $newOwner->city = $_POST['city']; $newOwner->country = $_POST['country']; $newOwner->phoneNumber = $_POST['phoneNumber']; $newOwner->faxNumber = $_POST['faxNumber']; $newOwner->email = $_POST['email']; // Set owner for the domain by using the Transip_DomainService API; Transip_DomainService::setOwner($domain, $newOwner); } // Request the locked status of a domain by using the Transip_DomainService API; $info = Transip_DomainService::getInfo($domain); // The Domain object contains an array of WhoisContact objects // Each WhoisContact object has one of three types // Iterate through contacts to find registrant (owner) foreach ($info->contacts as $contact) { if ($contact->type == Transip_WhoisContact::TYPE_REGISTRANT) { $owner = $contact; break; } } } catch (SoapFault $e) { // It is possible that an error occurs when connecting to the TransIP Soap API, // those errors will be thrown as a SoapFault exception.