XML::SRS::Request - Top level SRS request class
my $request = XML::SRS::Request->new( registrar_id => 555, requests => \@requests, ); $request->to_xml();
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'.
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.
Optional attribute to specify the effective registrar id of the request. Maps to the RegistrarId XML attribute.
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.
Construct a new XML::SRS::Request object. %params specifies the initial values of the attributes.
XML::SRS, XML::SRS::Version
To install XML::SRS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::SRS
CPAN shell
perl -MCPAN -e shell install XML::SRS
For more information on module installation, please visit the detailed CPAN module installation guide.