The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

XML::SRS::Request - Top level SRS request class

SYNOPSIS

  my $request = XML::SRS::Request->new(
      registrar_id => 555,
      requests => \@requests,
  );
  
  $request->to_xml();

DESCRIPTION

This class represents the top level of an SRS request. It can be used to construct an XML document suitable for sending to an SRS server (such as the .nz Domain registry system). The root XML element of this class is 'NZSRSRequest'.

ATTRIBUTES

Each attribute of this class has an accessor/mutator of the same name as the attribute. Additionally, they can be passed as parameters to the constructor.

registrar_id

Optional attribute to specify the effective registrar id of the request. Maps to the RegistrarId XML attribute.

requests

Required attribute. Accepts an array ref of objects that compose the XML::SRS::Action or XML::SRS::Query roles. This equates to a list of SRS transaction objects, i.e. objects representing Whois, DomainCreate, etc.

METHODS

new(%params)

Construct a new XML::SRS::Request object. %params specifies the initial values of the attributes.

COMPOSED OF

XML::SRS, XML::SRS::Version