unnamed file

PHP

Keine Beschreibung eingegeben.

Guest

Download Edit

<?php
# setup data
$domain = \"example.com\"; # the domain you wish to check
$clTRID = \"HttpNet.API test\"; # choose arbitrary client transaction ID
# create instance of SOAPClient
$soap = new SOAPClient(\"https://api.http.net/demo/1.0/Service.asmx?WSDL\");
# setup login data
$authentication = array(
\'username\' => \"username\", # your login here!
\'password\' => \"password\", # your password here!
);
# setup method with arguments
$args = array(
\'authentication\' => $authentication,
\'domain\' => $domain,
\'clTRID\' => $clTRID,
);
# access webservice
$response = $soap->DomainAvailable($args);
# display result
var_dump($response->response);
?>