- COPYRIGHT AND LICENSE
Broadworks::OCIP - API for communication with Broadworks OCI-P Interface
use Broadworks::OCIP; my $ocip = Broadworks::OCIP->new(params); my $res = $ocip->SystemSoftwareVersionGetRequest();
Broadworks::OCIP is a perl interface to the Broadworks OCI-P Provisioning interface. The functions provided reflect the AS OCI-P. The methods supported are documented in the Broadworks::OCIP::Methods module, which is autogenerated from the Broadworks schemas.
The host that is being connected to - either a host name or an IP address.
The username to authenticate with on the remote system.
An authentication hash to use for authenticating the username. Alternatively the password attribute can be set and this is transformed into an appropriate authhash (and the password deleted).
Broadworks version - currently defaults to
The character set to use - currently defaults to
The protocol to implement - always
The port number to connect to - default
The target to connect to - consists of the host and port linked by a colon.
The timeout within the connection in seconds - defaults to
8 can be changed during the session.
The connection socket - automatically set.
A select object on the connection socket.
The session identifier for the session - defaults to a Data::UUID string.
Are we authenticated. Checking this forces authentication. If authentication fails then we throw an exception.
The last sent XML document.
Are we tracing. If this is true then we output sent and received data to STDERR.
BUILDARGS function. If a single argument is passed this is treated as a config filename (opened with Config::Any) if it is a scalar, or assumed to be a hash reference, which is expanded up.
If a config filename is passed this is opened, and any
Broadworks::OCIP is taken as the overall config.
password attribute is removed from the config and an authhash is put in its place. This means dumping the object will not reveal the password.
Sends an XML document to the Broadworks remote over the socket. Convert the passed string to the correct character set.
Builds an XML command document from the command passed and the parameters (which are passed as an array ref of pairs).
When the document has been created it is send using the send method.
Sends an XML command to the Broadworks remote over the socket, and receives and passes back the expected response document. Throws an exception if the reply type is returned.
Sends an XML command to the Broadworks remote over the socket, and receives and passes back the expected
SuccessResponse document. An exception is not thrown if the wrong reply type is returned, however the
status_ok attribute should be checked for this.
On object destruction, if the system has authenticated, sends a
LogoutRequest command and then tears down the socket connection.
Nigel Metheringham <Nigel.Metheringham@redcentricplc.com>
Copyright 2014 Recentric Solutions Limited. All rights reserved.
Nigel Metheringham <email@example.com>
This software is copyright (c) 2018 by Nigel Metheringham.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.