public function readResponse()
{
$response = new eppResponse();
$xml = $this->read(true);
if (strlen($xml)) {
if ($response->loadXML($xml)) {
//$response = $response->instantiateProperResponse();
$this->writeLog($response->saveXML(null, LIBXML_NOEMPTYTAG), "READ");
//$clienttransid = $response->getClientTransactionId();
$response->setXpath($this->getServices());
$response->setXpath($this->getExtensions());
$response->setXpath($this->getXpathExtensions());
if ($response instanceof eppHelloResponse) {
$response->validateServices($this->getLanguage(), $this->getVersion());
}
return $response;
}
}
return null;
}