notscud
Oct 22, 2013Nimbostratus
Retrieve pool_name for wideip in php
I am having an issue retrieving the pool name using get_wideip_pool.
I have looked at the WSDL and understand that it is trying to return a 3 element array. However var_dump($pool_name); shows that it is returning no data at all. Here is my code sample.
Thanks in advance for your help!!!
try { $client_wideip = new SoapClient($wsdl,array('location'=>$location,'login'=>$username,'password'=>$password)); $pool_name=$client_wideip->get_wideip_pool($userWideIP); var_dump($pool_name); echo "The pool for $userWideIP is $pool.\n"; } catch (Exception $e) { echo "Error! "; echo $e -> getMessage (); } ?>