ServiceNow: SOAP Journal

Integration using Web Services

Monthly Archives: September 2015

Perl behind a proxy server

You may have trouble using the SOAP API if you are running Perl behind a proxy server.  The easiest solution is to configure the proxy with environment variables as in this example.

use ServiceNow::SOAP;
$ENV{HTTP_PROXY} = "http://my.proxy.server";
my $sn = ServiceNow($instance, $username, $password);

This works because ServiceNow::SOAP is built on top of SOAP::Lite which is built on top of LWP. For more information refer to: