Forum Discussion
May 18, 2006
I'll have to look into that message as I agree it's not very intuitive.
As for your code, you are close. You'll need to pass the string literal value for the PersistenceMode parameter. In 4.x, enums were represented by their numeric values. In 9.x we moved to the string values as we found it more intuitive.
In your code, you were passing in the mode of value 0 or (PERSISTENCE_MODE_NONE). Are you sure that is what you wanted to do? If so, this should work:
my $sName = "testprof";
my $sMode = "PERSISTENCE_MODE_NONE";
my $soapResponse = $ProfileCreate->create(
SOAP::Data->name( profile_names => [$sName] ),
SOAP::Data->name( modes => [$sMode])
);
Not sure why you'd want to create a persistence profile of type none, but that's how it's done. To create a cookie persistence profile, use this:
my $sName = "testprof";
my $sMode = "PERSISTENCE_MODE_COOKIE";
my $soapResponse = $ProfileCreate->create(
SOAP::Data->name( profile_names => [$sName] ),
SOAP::Data->name( modes => [$sMode])
);
-Joe