function GetRemoteContact(Contact $contact) { $Resp = parent::GetRemoteContact($contact); if ($Resp->Succeed()) { $Ext = $Resp->RawResponse->response->extension->children($this->ExtSidn); $contact = $Ext[0]->infData->contact; $Resp->{"nl-ext-legal-form"} = "{$contact->legalForm}"; $Resp->{"nl-ext-legal-form-regno"} = "{$contact->legalFormRegNo}"; } return $Resp; }
public function GetRemoteContact(Contact $contact) { $Resp = parent::GetRemoteContact($contact); if ($Resp->Succeed()) { $infData = $Resp->RawResponse->response->extension->children("urn:se:iis:xml:epp:iis-1.1"); $infData = $infData[0]; if ($infData) { $Resp->{"vatno"} = trim((string) $infData->vatno); $Resp->{"orgno"} = trim((string) $infData->orgno); } } return $Resp; }
public function GetRemoteContact(Contact $contact) { $Response = parent::GetRemoteContact($contact); if ($Response->Succeed()) { $frnicExt = $Response->RawResponse->response->extension->children($this->AfnicNamespace); $frnicExt = $frnicExt[0]; if ($frnicExt) { $frnicContact = $frnicExt->resData->infData->contact; if ($info = $frnicContact->individualInfos[0]) { $Response->{"frnic-firstName"} = trim((string)$frnicContact->firstName); $Response->{"frnic-birthDate"} = trim((string)$info->birthDate); $Response->{"frnic-birthCity"} = trim((string)$info->birthCity); $Response->{"frnic-birthPc"} = trim((string)$info->birthPc); $Response->{"frnic-birthCc"} = trim((string)$info->birthCc); } elseif ($info = $frnicContact->legalEntityInfos[0]) { $Response->{"frnic-status"} = (string)$info->status->attributes()->type; if ($Response->{"frnic-status"} == "other") $Response->{"frnic-statusOther"} = trim((string)$info->status); $Response->{"frnic-siren"} = trim((string)$info->siren); $Response->{"frnic-trademark"} = trim((string)$info->trademark); } } } return $Response; }
public function GetRemoteContact(Contact $contact) { $Response = parent::GetRemoteContact($contact); if ($Response->Succeed()) { $eppExt = $Response->RawResponse->response->extension->children($this->ExtNamespace); if (count($eppExt) && ($eppExt = $eppExt[0])) { $Response->{$this->ExtFieldPrefix . "vat"} = trim((string) $eppExt->infData->contact->vat); $Response->{$this->ExtFieldPrefix . "lang"} = trim((string) $eppExt->infData->contact->lang); } } return $Response; }
public function GetRemoteContact(Contact $contact) { $Response = parent::GetRemoteContact($contact); if ($Response->Succeed()) { $EppResponse = $Response->RawResponse; $InfData = $EppResponse->response->extension->children("http://www.norid.no/xsd/no-ext-contact-1.0"); $InfData = $InfData[0]; if ($InfData) { if ($InfData->type[0] == "organization") { $Response->{"no-ext-identity-type"} = (string)$InfData->identity->attributes()->type; $Response->{"no-ext-identity"} = (string)$InfData->identity; } } } return $Response; }
function queryInfoContact() { $Contact = $this->Registry->NewContactInstanceByGroup("generic"); $Contact->CLID = 'EPPOTE-C6'; $Resp = $this->Module->GetRemoteContact($Contact); $this->assertTrue($Resp->Code == RFC3730_RESULT_CODE::OK && $Resp->CLID == 'EPPOTE-C6' && $Resp->name == 'John Doe', "Query Contact"); }