{"action":"created","issue":{"url":"https://api.github.com/repos/metaregistrar/php-epp-client/issues/62","repository_url":"https://api.github.com/repos/metaregistrar/php-epp-client","labels_url":"https://api.github.com/repos/metaregistrar/php-epp-client/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/metaregistrar/php-epp-client/issues/62/comments","events_url":"https://api.github.com/repos/metaregistrar/php-epp-client/issues/62/events","html_url":"https://github.com/metaregistrar/php-epp-client/issues/62","id":192290347,"number":62,"title":"Command syntax error in ficora","user":{"login":"mazanax","id":2505148,"avatar_url":"https://avatars.githubusercontent.com/u/2505148?v=3","gravatar_id":"","url":"https://api.github.com/users/mazanax","html_url":"https://github.com/mazanax","followers_url":"https://api.github.com/users/mazanax/followers","following_url":"https://api.github.com/users/mazanax/following{/other_user}","gists_url":"https://api.github.com/users/mazanax/gists{/gist_id}","starred_url":"https://api.github.com/users/mazanax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mazanax/subscriptions","organizations_url":"https://api.github.com/users/mazanax/orgs","repos_url":"https://api.github.com/users/mazanax/repos","events_url":"https://api.github.com/users/mazanax/events{/privacy}","received_events_url":"https://api.github.com/users/mazanax/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-29T14:05:17Z","updated_at":"2016-11-29T14:12:46Z","closed_at":null,"body":"I'm trying to get info of domain registered thru ficora but it returns syntax error. What I'm doing wrong?\r\n\r\n```\r\n        $info = new eppInfoDomainRequest(new eppDomain($domain));\r\n        if ($response = $this->conn->request($info)) { // throws exception with syntax error\r\n            /** @var \\Metaregistrar\\EPP\\eppInfoDomainResponse $response */\r\n            $data = $response->getDomain();\r\n            foreach ($data->getContacts() as $contact) {\r\n                /** @var eppContactHandle $contact */\r\n                echo $contact->getContactType() . ': ' . $contact->getContactHandle() . PHP_EOL;\r\n            }\r\n        }\r\n```\r\n\r\n$this->conn:\r\n```\r\n        $conn = new \\Metaregistrar\\EPP\\ficoraEppConnection();\r\n        $conn->setHostname($host);\r\n        $conn->setPort($port);\r\n        $conn->setUsername($username);\r\n        $conn->setPassword($password);\r\n\r\n        if (null === $conn) {\r\n            throw new RuntimeException('Cannot create connect to ficora');\r\n        }\r\n        $conn->enableCertification($key, $keyPassword, false);\r\n        $this->conn = $conn;\r\n        $this->conn->login();\r\n```"},"comment":{"url":"https://api.github.com/repos/metaregistrar/php-epp-client/issues/comments/263580121","html_url":"https://github.com/metaregistrar/php-epp-client/issues/62#issuecomment-263580121","issue_url":"https://api.github.com/repos/metaregistrar/php-epp-client/issues/62","id":263580121,"user":{"login":"vincentdecarpigny","id":7437794,"avatar_url":"https://avatars.githubusercontent.com/u/7437794?v=3","gravatar_id":"","url":"https://api.github.com/users/vincentdecarpigny","html_url":"https://github.com/vincentdecarpigny","followers_url":"https://api.github.com/users/vincentdecarpigny/followers","following_url":"https://api.github.com/users/vincentdecarpigny/following{/other_user}","gists_url":"https://api.github.com/users/vincentdecarpigny/gists{/gist_id}","starred_url":"https://api.github.com/users/vincentdecarpigny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincentdecarpigny/subscriptions","organizations_url":"https://api.github.com/users/vincentdecarpigny/orgs","repos_url":"https://api.github.com/users/vincentdecarpigny/repos","events_url":"https://api.github.com/users/vincentdecarpigny/events{/privacy}","received_events_url":"https://api.github.com/users/vincentdecarpigny/received_events","type":"User","site_admin":false},"created_at":"2016-11-29T14:12:46Z","updated_at":"2016-11-29T14:12:46Z","body":"Hi Alexander,\n\nas far as I know you cannot use the eppInfoDomainRequest directly, you need\nto extend it like this :\n\n<?php\nnamespace Metaregistrar\\EPP;\n\nclass ficoraEppInfoDomainRequest extends eppInfoDomainRequest {\n\n/*\n\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<epp>\n<command>\n<info>\n<domain:info xmlns:domain=\"urn:ietf:params:xml:ns:domain-1.0\">\n<domain:name>mydummydomainname.fi</domain:name>\n<domain:authInfo>\n<domain:pw/>\n</domain:authInfo>\n<contact:authInfo>\n<contact:pw>LoloL</contact:pw>\n</contact:authInfo>\n</domain:info>\n</info>\n<clTRID>5809c755b90a5</clTRID>\n</command>\n</epp>\n\n\n*/\n\nfunction __construct($infodomain, $hosts = null, $namespacesinroot = true){\nparent::__construct($infodomain, $hosts = null, $namespacesinroot = true);\n$this->addFICORAExtension();\n$this->addSessionId();\n//tprint(htmlentities($this->saveXML()));\n}\n\npublic function addFICORAExtension(){\n$this->domainobject->setAttribute('xmlns:domain','urn:ietf:params:xml:ns:domain-1.0');\n}\n}\n\nBest,\nVincent\n\n2016-11-29 15:05 GMT+01:00 Alexander <notifications@github.com>:\n\n> I'm trying to get info of domain registered thru ficora but it returns\n> syntax error. What I'm doing wrong?\n>\n> $info = new eppInfoDomainRequest(new eppDomain($domain)); if ($response =\n> $this->conn->request($info)) { // throws exception with syntax error /**\n> @var \\Metaregistrar\\EPP\\eppInfoDomainResponse $response */ $data =\n> $response->getDomain(); foreach ($data->getContacts() as $contact) { /**\n> @var eppContactHandle $contact */ echo $contact->getContactType() . ': ' .\n> $contact->getContactHandle() . PHP_EOL; } }\n>\n> $this->conn:\n> `/** @var <https://github.com/var> \\Metaregistrar\\EPP\\ficoraEppConnection\n> $conn */\n> $conn = new \\Metaregistrar\\EPP\\ficoraEppConnection();\n> $conn->setHostname($host);\n> $conn->setPort($port);\n> $conn->setUsername($username);\n> $conn->setPassword($password);\n>\n>     if (null === $conn) {\n>         throw new RuntimeException('Cannot create connect to ficora');\n>     }\n>     $conn->enableCertification($key, $keyPassword, false);\n>     $this->conn = $conn;\n>     $this->conn->login();\n>\n> `\n>\n> —\n> You are receiving this because you are subscribed to this thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/metaregistrar/php-epp-client/issues/62>, or mute the\n> thread\n> <https://github.com/notifications/unsubscribe-auth/AHF94olEK_OVL7qhbmO5c-iqDExLg-mnks5rDDEdgaJpZM4K_Agj>\n> .\n>\n"}}
{"actor":{"display_login":"vincentdecarpigny"}}