function displayTDDetails() { $afsID = $this->formArray["afsID"]; $TDDetails = new SoapObject(NCCBIZ . "TDDetails.php", "urn:Object"); if (!($xmlStr = $TDDetails->getTD("", $afsID, "", ""))) { // error xml } else { if (!($domDoc = domxml_open_mem($xmlStr))) { // error domDoc } else { $td = new TD(); $td->parseDomDocument($domDoc); $this->formArray["taxDeclarationNumber"] = $td->getTaxDeclarationNumber(); $this->formArray["memoranda"] = $td->getMemoranda(); $this->formArray["cancelsTDNumber"] = $td->getCancelsTDNumber(); //cityMunicipalAssessor if (is_numeric($td->getCityMunicipalAssessor())) { $cityMunicipalAssessor = new Person(); $cityMunicipalAssessor->selectRecord($td->cityMunicipalAssessor); $this->formArray["cityAssessor"] = $cityMunicipalAssessor->getFullName(); } else { $this->formArray["cityAssessor"] = $td->getCityMunicipalAssessor; } $this->formArray["propertyType"] = $td->getPropertyType(); } } }