Hi,
I need to manipulate objects (nodes, pools, …) that are located on a partition.
I did read the SDK doc and the following articles:
and ended with the following code:
----8<----
my $Protocol = 'https'; force it to be secure.
my $sHost = $conf{f};
my $proxy = "$Protocol://$sHost/iControl/iControlPortal.cgi";
my $folder = '/UAT';
my $SoapSession = SOAP::Lite
-> uri('urn:iControl:System/Session')
-> proxy($proxy);
eval { $SoapSession->transport->http_request->header(
'Authorization' => 'Basic ' . MIME::Base64::encode("$sUID:$sPWD", ''));
};
my $soapResponse = $SoapSession->get_active_folder();
checkResponse($soapResponse);
my $res = $soapResponse->result;
print "get_active_folder before : $res\n";
$soapResponse = $SoapSession->set_active_folder($folder);
checkResponse($soapResponse); !!! I get error here !!!
$soapResponse = $SoapSession->get_active_folder();
checkResponse($soapResponse);
$res = $soapResponse->result;
print "get_active_folder after : $res\n";
----8<----
Unfortunately, the “set_active_folder” returns the following error:
SOAP-ENV:Server Could not find element by name: folder
The “get_active_folder” method is working fine though.
How is it intended to work ?
Thank you, Best Olivier