Thanks for the response. We have checked with service-now team. Nothing has been changed from their end.
We have observed that in RHEL 6.9, the perl-libwww package has been updated to perl-libwww-perl-5.833-5. With this update LWP also updated.
I am trying to run simple script to connect service-now and get records.
Here is my code
#!/usr/bin/perl -w
use SOAP::Lite;
use Data::Dumper;
use Getopt::Long;
use strict;
use warnings;
$ENV{https_proxy} = "http://myproxy.com:8080";
$ENV{HTTPS_PROXY} = "http://myproxy.com:8080";
sub SOAP::Transport::HTTP::Client::get_basic_credentials {
return "k2soap" => "REDACTED"; #PROD
}
my $soap = SOAP::Lite -> proxy('https://usr_soap:pwd_soap@swe.service-
+now.com/change_request.do?SOAP');
my $method = SOAP::Data->name('getRecords') ->attr({xmlns => 'https://
+www.service-now.com/'});
my @params = (
SOAP::Data->name(number => $ARGV[0])
);
print "Searching for Change Request... $soap and $method\n";
my $result = $soap->call($method => @params);
We are receiving below error when we run script
500 handshakefailed at soap_connection.pl line 18.
Could you please help on this error.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.