Perl API configuration

ServiceNow Perl API Module Description Constructor

Ticket Perl

An object representation of a Configuration object used to access your ServiceNow instance.

System Requirements

The ServiceNow Perl API requires Perl 5.8 with the following modules installed:

new();

Example:

$conf = ServiceNow::Configuration->new();

Create a new Configuration object and start customizing it to be used for other objects.

Table 1. Subroutines
getSoapEndPoint setSoapEndPoint getUserName setUserName getUserPassword setUserPassword getConnection

getSoapEndPoint(target_table);

Gets the complete SOAP endpoint used to access your ServiceNow instance, given the table name.

setSoapEndPoint(endpoint_url);

Sets the complete SOAP endpoint used to access your ServiceNow instance.

For example:

my $CONFIG = ServiceNow::Configuration->new();
$CONFIG->setSoapEndPoint("https://instance_name.service-now.com/");
 
my $incident = ServiceNow::ITIL::Incident->new($CONFIG);

getUserName();

Get the user name used to authenticate a connection to the SOAP endpoint

setUserName(user_name);

Set the user name used to authenticate a connection to the SOAP endpoint

getUserPassword();

Get the user password used to authenticate a connection to the SOAP endpoint

setUserPassword(user_password;

Set the user password used to authenticate a connection to the SOAP endpoint

getConnection(target_table);

Get the Connection object used to access the ServiceNow SOAP endpoint