<?php$client = new SoapClient( null, array( "location" => "https://PRODUCTION/cmd.php", "uri" => "http://PRODUCTION/soap" ) );$params = array ( "data" => array ( "login" => "demo", "password" => "password", ));$response = $client->__call("Login",$params);$token = $response["data"]["ssid"];$params = array ( 'data' => array ( 'ssid' => $token, 'oib' => '35342807505', ),);$response = $client->__call("OIB_Search",$params); INPUT: Array ( [data] => Array ( [ssid] => 51aca4e95c12821b56a9045babc943e7 [oib] => 35342807505 ) ) OUTPUT: Array ( [status] => ok [data] => Array ( [domains] => Array ( [0] => Array ( [name] => sample-domain.tst.hr [type] => 4 [typedesc] => domena za testiranje (.tst.hr) ) [1] => Array ( [name] => corporate-domain.hr [type] => 3 [typedesc] => besplatna domena (.hr) ) ) [types] => Array ( [0] => Array ( [type] => 2 [typedesc] => naplatna domena (.com.hr) [used] => 0 [maximum] => 1 ) [1] => Array ( [type] => 3 [typedesc] => besplatna domena (.hr) [used] => 1 [maximum] => 1 ) [2] => Array ( [type] => 1 [typedesc] => naplatna domena (.hr) [used] => 0 [maximum] => 1 ) [3] => Array ( [type] => 4 [typedesc] => domena za testiranje (.tst.hr) [used] => 1 [maximum] => 1 ) [4] => Array ( [type] => 5 [typedesc] => zaštićena domena (.hr) [used] => 0 [maximum] => 0 ) [5] => Array ( [type] => 7 [typedesc] => besplatna domena (from.hr, iz.hr, name.hr) [used] => 0 [maximum] => 1 ) ) ) )
<?php$client = new SoapClient( null, array( "location" => "https://PRODUCTION/cmd.php", "uri" => "http://PRODUCTION/soap" ) );$params = array ( "data" => array ( "login" => "demo", "password" => "password", ));$response = $client->__call("Login",$params);$token = $response["data"]["ssid"];$params = array ( 'data' => array ( 'ssid' => $token, 'oib' => '35342807505', ),);$response = $client->__call("OIB_Search",$params);