<?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, ));$response = $client->__call("Contacts_List",$params);?> INPUT: [data] => Array ( [ssid] => 29ae201e12b466c7347a29 ) OUTPUT: [status] => ok [data] => Array ( [contacts] => Array ( [0] => Array ( [name] => Jan [surname] => Novak [org] => [street] => Novakova 461 [city] => Novakov [pc] => 99933 [sp] => CZ [cc] => CZ [email] => novak@novakov.nov [phone] => +420.123456789 [fax] => [id] => G-000000 ) ) )
<?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, ));$response = $client->__call("Contacts_List",$params);?>