<?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, 'pricelist' => 'MYPRICELIST', ),);$response = $client->__call("Get_Pricelist",$params); INPUT: Array ( [data] => Array ( [ssid] => 51aca4e95c12821b56a9045babc943e7 [pricelist] => MYPRICELIST ) ) OUTPUT: Array ( [status] => ok [data] => Array ( [com] => Array ( [currency] => USD [prices] => Array ( [register] => 20.50 [renew] => 20.50 [transfer] => 20.50 [restore] => 135.00 ) ) [org] => Array ( [currency] => EUR [prices] => Array ( [register] => 18.00 [renew] => 18.00 [transfer] => 0 [restore] => 18.00 ) ) ) )
<?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, 'pricelist' => 'MYPRICELIST', ),);$response = $client->__call("Get_Pricelist",$params);