Forum Discussion
Dave_Wiley
Nimbostratus
Jul 02, 2008Error with Get_Enabled_State
I’m hoping all you iControl experts can help me out with this request, or at least point me in the right direction. I’m getting an unexpected response when trying to pull the state of a virtual via iC...
Jul 02, 2008
The "Unrecognized Type" error is SOAP::Lite telling you that a custom type is returned that you have not added a custom serializer for. In the SDK, I've included a iControlTypeCast.pm module that contains all the custom enum types and the serializer for them. If you don't want the overhead of the entire iControlTypeCast.pm module, you can add the typecast code yourself by putting this somewhere in your script.
----------------------------------------------------------------------------
support for custom enum types
----------------------------------------------------------------------------
sub SOAP::Deserializer::typecast
{
my ($self, $value, $name, $attrs, $children, $type) = @_;
my $retval = undef;
if ( "{urn:iControl}Common.EnabledState" == $type )
{
$retval = $value;
}
return $retval;
}
-Joe
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