Working with BAM API using the Perl API Client - BlueCat Address Manager - 9.3.0

Address Manager API Guide

Locale
English (United States)
Product name
BlueCat Address Manager
Version
9.3.0

The Address Manager API can be implemented in Perl. The module containing the full Perl API implementation is called API.pm.

On the workstation running Perl, locate the lib directory of your Perl installation and create a new directory, for example, bam. Copy the API.pm file to the lib/bam directory.
Note: Older versions of the SOAP:Lite module for Perl may create some warnings. If this is an issue, upgrade to the latest module.
All Address Manager methods that take arguments need to use the SOAP::Data package to convert these argument into SOAP compatible arguments. For example, to use the login method, the username argument should look like this:
SOAP::Data->name ('username')->
             value( $username )->
             type( 'string' )->
             attr({xmlns => ''})

where:

  • username is the name of the argument (as described by the WSDL).
  • value is the value to be passed.
  • type is the SOAP type (for example, string, int, long, or base64).
  • attr is necessary to make the SOAP message compatible with the service.