zak_thompson_86
Jan 22, 2008Nimbostratus
add_address_class_member.. not adding?
So using php and soap.
I can grab the classes display them. print ou their contents. all good.. but however.. can't add anything..
try {
$client = new SoapClient($wsdl,array('location'=>$location,'login'=>$username,'password'=>$password));
$pool_list=$client->get_address_class_list();
$classOpt = array('name' => 'testblock');
print_r($client->get_address_class($classOpt));
$addBlock = array('address' => '21.1.1.1','netmask' => '255.255.255.255');
$doIt = array('name' => $classOpt,'members' => $addBlock);
try {
$client->add_address_class_member("asfasdfasdf");
}
catch (Exception $k)
{
echo "ARG!";
echo $k->getMessage();
}
//print_r($pool_list);
}
catch (Exception $e) {
echo "Error!
";
echo $e -> getMessage ();
}
No exceptions on failure nothing been beating it around for a while with little luck.