<?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" => "Modify_Object", "object" => "SAMPLENSSET", "params" => array( "type" => "nsset", "params" => array( "tech" => array( "id" => "G-000003" ), "hosts" => array( array( "hostname" => "ns.gransy.com" ), array( "hostname" => "ns2.gransy.com" ), array( "hostname" => "ns3.gransy.com" ), array( "hostname" => "ns4.gransy.com" ), array( "hostname" => "ns5.gransy.com" ) ) ) ) ) )); ));$response = $client->__call("Make_Order",$params);?> INPUT: Array ( [ssid] => bf5c2154638305f8804048e848e70197 [order] => Array ( [type] => Modify_Object [object] => SAMPLENSSET [params] => Array ( [type] => keyset [params] => Array ( [tech] => Array ( [id] => G-000003 ) [hosts] => Array ( [0] => Array ( [hostname] => ns.gransy.com ) [1] => Array ( [hostname] => ns2.gransy.com ) [2] => Array ( [hostname] => ns3.gransy.com ) [3] => Array ( [hostname] => ns4.gransy.com ) [4] => Array ( [hostname] => ns5.gransy.com ) ) ) ) ) ) OUTPUT: Array ( [status] => ok [data] => Array ( [orderid] => 123456 ) )
<?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" => "Modify_Object", "object" => "SAMPLENSSET", "params" => array( "type" => "nsset", "params" => array( "tech" => array( "id" => "G-000003" ), "hosts" => array( array( "hostname" => "ns.gransy.com" ), array( "hostname" => "ns2.gransy.com" ), array( "hostname" => "ns3.gransy.com" ), array( "hostname" => "ns4.gransy.com" ), array( "hostname" => "ns5.gransy.com" ) ) ) ) ) )); ));$response = $client->__call("Make_Order",$params);?>
<?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" => "Modify_Object", "params" => array( "id" => "KEYSETID", "type" => "keyset", "params" => array( "tech" => array( "id" => "G-000003" ), "records" => array( array( "tag" => 52247, "flag" => 257, "protocol" => 3, "alg" => 7, "key" => "BQEAAAA...UgkO7BUjlprbnk=" ) ) ) ) ) ));$response = $client->__call("Make_Order",$params);?> INPUT: Array ( [ssid] => 0920b501d7823ba11d550fa4e547b3b9 [order] => Array ( [type] => Modify_Object [params] => Array ( [id] => KEYSETID [type] => keyset [params] => Array ( [tech] => Array ( [id] => G-000003 ) [records] => Array ( [0] => Array ( [tag] => 52247 [flag] => 257 [protocol] => 3 [alg] => 7 [key] => BQEAAAA...UgkO7BUjlprbnk= ) ) ) ) ) ) OUTPUT: Array ( [status] => ok [data] => Array ( [orderid] => 123456 ) )
<?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" => "Modify_Object", "params" => array( "id" => "KEYSETID", "type" => "keyset", "params" => array( "tech" => array( "id" => "G-000003" ), "records" => array( array( "tag" => 52247, "flag" => 257, "protocol" => 3, "alg" => 7, "key" => "BQEAAAA...UgkO7BUjlprbnk=" ) ) ) ) ) ));$response = $client->__call("Make_Order",$params);?>