<?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, 'order' => array ( 'type' => 'TransferRU_Request', 'params' => array ( 'nicd' => '123456/NIC-D', 'password' => 'yoursecret', ), ), ),);$response = $client->__call("Make_Order",$params); INPUT: Array ( [data] => Array ( [ssid] => 51aca4e95c12821b56a9045babc943e7 [order] => Array ( [type] => TransferRU_Request [params] => Array ( [nicd] => 123456/NIC-D [password] => yoursecret ) ) ) ) OUTPUT: Array ( [status] => ok [data] => Array ( [orderid] => 1650430 ) )
<?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, 'order' => array ( 'type' => 'TransferRU_Request', 'params' => array ( 'nicd' => '123456/NIC-D', 'password' => 'yoursecret', ), ), ),);$response = $client->__call("Make_Order",$params);