metaregistrar / php-epp-client

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

Get extended contact properties from SIDN contact #362

Closed BusinessConnect closed 7 months ago

BusinessConnect commented 9 months ago

I've created some code to retrieve a contactperson from SIDN. It works but I don't see how to get the extended values for legalForm and legalFormNo. I've added the SIDN-extension in my code: $conn->useExtension('sidn-ext-epp-1.0'); $conn->useExtension('command-ext-1.0'); $conn->useExtension('contact-ext-1.3');

Further on we set this: $objHandleInfo = new Metaregistrar\EPP\eppInfoContactRequest(new eppContactHandle($strHandleID)); $Response = $conn->writeandread($objHandleInfo);

We see the data in the returned XML (using saveXML) but how can we retrieve both values ?

metaregistrar commented 7 months ago

When using $conn->useExtension('sidn-ext-epp-1.0');, you have the ability to map the eppInfoContactResponse to an sidnEppInfoContactResponse. When mapped, you can use this object structure to retrieve the fields.