metaregistrar / php-epp-client

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

Help me understand the poll #275

Closed sayoki closed 4 years ago

sayoki commented 4 years ago

I want to read data out my poll response:

Original: """<?xml version="1.0" encoding="UTF-8" standalone="no"?>

Command completed successfully; ack to dequeue 2000-06-08T22:00:00.0Z Transfer requested. example.com pending ClientX 2000-06-08T22:00:00.0Z ClientY 2000-06-13T22:00:00.0Z 2002-09-08T22:00:00.0Z ABC-12345 54321-XYZ """ My .BE registrar: """ Command completed successfully; ack to dequeue 2020-06-01T19:01:39.214Z Transfer of domain name completed AWAY mydomain.be 1000 TRANSFER 5ee23952b487d dnsbe-0 """ I want to read the domainname. I have no idea how to understand reading this and tried to rewrite the function getDomainName. public function getDomainName() { #return $this->queryPath('/epp:epp/epp:response/epp:resData/domain:'.$this->messageType.'Data/domain:name'); return $this->queryPath('/epp:epp/epp:response/epp:resData/epp:dnsbe'); } Sadly i am stuck.
metaregistrar commented 4 years ago

Please when you add EPP response to this issue, use the triple-quote so that the structure is visible

Like this:

This is code
sayoki commented 4 years ago

like this?

sayoki commented 4 years ago

`public function getDomainName() {

return $this->queryPath('/epp:epp/epp:response/epp:resData/domain:'.$this->messageType.'Data/domain:name');

return $this->queryPath('/epp:epp/epp:response/epp:resData/dnsbe:pollRes/dnsbe:domainname'); }`

I managed to get the domainname.