writeandread() public method

Write the content domDocument to the stream Read the answer Load the answer in a response domDocument return the reponse
public writeandread ( eppRequest $content ) : eppResponse
$content eppRequest
return eppResponse
示例#1
0
/**
 * @param \Metaregistrar\EPP\eppConnection $conn
 * @param string $contactid
 */
function infocontact($conn, $contactid)
{
    try {
        $contact = new Metaregistrar\EPP\eppContactHandle($contactid);
        $info = new Metaregistrar\EPP\eppInfoContactRequest($contact);
        if (($response = $conn->writeandread($info)) instanceof Metaregistrar\EPP\eppInfoContactResponse && $response->Success()) {
            echo $response->saveXML();
        }
    } catch (Metaregistrar\EPP\eppException $e) {
        echo $e->getMessage() . "\n";
    }
}