metaregistrar / php-epp-client

Object-oriented PHP EPP Client
https://www.metaregistrar.com/docs/
MIT License
214 stars 156 forks source link

Call to undefined method Metaregistrar\\EPP\\sidnEppResponse::getContactId() #120

Closed kevinvdburgt closed 6 years ago

kevinvdburgt commented 6 years ago

When trying to create a contact using SIDN I've got the following exception: Call to undefined method Metaregistrar\\EPP\\sidnEppResponse::getContactId()

While using the following code:

try {
    $contact = new sidnEppCreateContactRequest($contactInfo);
    if ($response = $this->connection->request($contact)) {
        return $response->getContactId();
    }
} catch (eppException $exception) {
    throw new DomainException($exception->getMessage());
}
metaregistrar commented 6 years ago

Yes, i noticed this problem also in the last week - i have fixed it in the latest version.

In sidn-ext-epp-1.0/includes.php there should be this line: $this->addCommandResponse('Metaregistrar\EPP\sidnEppCreateContactRequest', 'Metaregistrar\EPP\eppCreateContactResponse');

This connects sidnEppCreateContactRequest to eppCreateContactResponse instead of sidnEppResponse, which was not correct.

kevinvdburgt commented 6 years ago

Where can I find the last version :) ?

metaregistrar commented 6 years ago

Just download it again from Github

kevinvdburgt commented 6 years ago

Thanks, this issue can be closed :)