Forum Discussion
It most likely has to do with the way you are defining the pool_names parameter. Try something like this:
$sUID = "username";
$sPWD = "password";
$ProfileHttpClass = SOAP::Lite
-> uri('urn:iControl:LocalLB/ProfileHttpClass')
-> proxy("$sProtocol://$sHost:$sPort/iControl/iControlPortal.cgi");
eval { $ProfileHttpClass->transport->http_request->header
(
'Authorization' => 'Basic ' . MIME::Base64::encode("$sUID:$sPWD", '')
); };
$profile = "my_profile_name";
$pool = "my_pool_name";
$default_flag = 1;
$ProfileString = {
value => $pool,
default_flag => $default_flag
};
$soapResponse = $ProfileHttpClass->set_pool_name (
SOAP::Data->name( profile_names => [$profile] ),
SOAP::Data->name( pool_names => [$ProfileString] )
);
This is untested, but it should work for you. Hope this helps...
-Joe