Forum Discussion
Ian_McKenna_113
Nimbostratus
May 18, 2006why 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
- I'll have to look into that message as I agree it's not very intuitive.
my $sName = "testprof"; my $sMode = "PERSISTENCE_MODE_NONE"; my $soapResponse = $ProfileCreate->create( SOAP::Data->name( profile_names => [$sName] ), SOAP::Data->name( modes => [$sMode]) );
my $sName = "testprof"; my $sMode = "PERSISTENCE_MODE_COOKIE"; my $soapResponse = $ProfileCreate->create( SOAP::Data->name( profile_names => [$sName] ), SOAP::Data->name( modes => [$sMode]) );
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects