Ian_McKenna_113
May 18, 2006Nimbostratus
why is ProfilePersistence- create not working?
Hi it's me again,
I am trying to create a Persistence Profile, using:
--------------------------------------------
my $ProfileCreate = SOAP::Lite
-> uri('urn:iControl:LocalLB/ProfilePersistence')
-> proxy("$sProtocol://$sHost:$sPort/iControl/iControlPortal.cgi");
eval { $ProfileCreate->transport->http_request->header
(
'Authorization' =>
'Basic ' . MIME::Base64::encode("$sUID:$sPWD", '')
); };
my $sName = "testprof";
my $sMode = "0";
my $soapResponse = $ProfileCreate->create(
SOAP::Data->name( profile_names => [$sName] ),
SOAP::Data->name( modes => [$sMode])
);
&checkResponse($soapResponse);
print "Persistence Profile Created !\n";
----------------------------------------------------
this is not working. I am receiving the
------------------------------------------------------
Exception: Common::OperationFailed
primary_error_code : 16908342 (0x01020036)
secondary_error_code : 0
error_string : 01020036:3: The requested persistence profile (persist) was not found.
--------------------------------------------------------
exception. This is a bit confusing, because I want to create it in the first place.
Any clue what I am doing wrong?
Ian