<?php$client = new SoapClient( null, array( "location" => "https://PRODUCTION/soap/cmd.php", "uri" => "http://PRODUCTION/soap" ) );$params = array ( "data" => array ( "login" => "demo", "password" => "password", ));$response = $client->__call("Login",$params);$token = $response["data"]["ssid"];unset($params);$params = array ( "data" => array ( "ssid" => $token, "domain" => "domena.or.af", ));$response = $client->__call("Info_Domain",$params);?> INPUT: [data] => Array ( [ssid] => 123abcd [domain] => testovacidomena.biz ) OUTPUT: [status] => ok [data] => Array ( [domain] => testovacidomena.biz [contacts] => Array ( [admin] => Array ( [0] => Array ( [registryid] => P-JLT23 [subregid] => G-000040 ) ) [tech] => Array ( [0] => Array ( [registryid] => P-PLN115 [subregid] => G-000009 ) ) [billing] => Array ( [0] => Array ( [registryid] => P-PLN115 [subregid] => G-000009 ) ) ) [registrant] => Array ( [registryid] => P-PBN125 [subregid] => G-000007 ) [exDate] => 2012-01-06 [crDate] => 2011-01-06 [trDate] => [upDate] => 2011-01-06 [authid] => rjI?5sjb [status] => Array ( [0] => ok ) [premium] => 1 [price] => 145 ) OUTPUT (with error): [status] => error [data] => Array ( [errormsg] => This domain is not yours! [errorcode] => 1002 )
<?php$client = new SoapClient( null, array( "location" => "https://PRODUCTION/soap/cmd.php", "uri" => "http://PRODUCTION/soap" ) );$params = array ( "data" => array ( "login" => "demo", "password" => "password", ));$response = $client->__call("Login",$params);$token = $response["data"]["ssid"];unset($params);$params = array ( "data" => array ( "ssid" => $token, "domain" => "domena.or.af", ));$response = $client->__call("Info_Domain",$params);?>