I am trying to run perl script to connect service-now and create incidents with below command. but I am receiving SOAP error while running the script SOAP::Transport::HTTP::Client::send_receive: 500 Can't connect to testproxy.com:8080
Please find debug output
perl -MSOAP::Lite=trace /usr/local/nagios/libexec/Eventhandler/sn_connect.pl
Config loaded. correlationid -> 1118 servicedowntime -> 0 page -> u_incident_interface.do serviceoutput -> test alert please ignore servicestatetype -> HARD service -> LIN_Server_Scheduler_Status servicestate -> CRITICAL description -> test alert please ignore host -> ppppp HASH(0 +x2baf118) SOAP::Transport::new: () SOAP::Serializer::new: () SOAP::Deserializer::new: () SOAP::Parser::new: () SOAP::Lite::new: () SOAP::Transport::HTTP::Client::new: () xxxxx HASH( +0x2baf118) Service-Now SOAP handle created. soap handle..: SOAP::Lite=HASH(0x2d14048) Ticket track enabled using database. State is CRITICAL,Creating new ticket Serviceoutput -> test alert please ignore Correlation Id -> 1118 Short description -> test alert please ignore Service Description in new block -> LIN_Server_Scheduler_Status Description -> LIN_Server_Scheduler_Status-test alert please ignore SOAP::Data::new: () SOAP::Data::new: () SOAP::Data::new: () SOAP::Data::new: () SOAP::Data::DESTROY: () SOAP::Lite::call: () SOAP::Serializer::envelope: () SOAP::Serializer::envelope: SOAP::Data=HASH(0x2d13df0) SOAP::Data=HASH +(0x2d15918) SOAP::Data=HASH(0x3011b40) SOAP::Data=HASH(0x2d10510) SOA +P::Data=HASH(0x3011d38) SOAP::Data=HASH(0x2f80090) SOAP::Data=HASH(0x +2f80180) SOAP::Data=HASH(0x3018fe0) SOAP::Data=HASH(0x30194d8) SOAP:: +Data=HASH(0x3019730) SOAP::Data=HASH(0x31c46c0) SOAP::Data=HASH(0x31c +4780) SOAP::Data=HASH(0x2e07de0) SOAP::Data=HASH(0x2e07e58) SOAP::Dat +a=HASH(0x2e07f48) SOAP::Data=HASH(0x2e08038) SOAP::Data=HASH(0x2e0812 +8) SOAP::Data::new: () SOAP::Data::new: () SOAP::Data::new: () SOAP::Data::new: () SOAP::Transport::HTTP::Client::send_receive: HTTP::Request=HASH(0x31cd +b60) SOAP::Transport::HTTP::Client::send_receive: POST https://srv_SOAPimpo +rt:testpwd@test.service-now.com/u_incident_interface.do?SOAP HTTP/1.1 Accept: text/xml Accept: multipart/* Accept: application/soap Content-Length: 9370 Content-Type: text/xml; charset=utf-8 SOAPAction: "http://www.service-now.com/#insert" <?xml version="1.0" encoding="UTF-8"?><soap:Envelope soap:encodingStyl +e="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://sche +mas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap +.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xml +ns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Body><insert + xmlns="http://www.service-now.com/"><category xsi:type="xsd:string"> +failure</category><subcategory xsi:type="xsd:string">software</subcat +egory><contact_type xsi:type="xsd:string">monitoring</contact_type><u +_business_service SOAP::Transport::HTTP::Client::send_receive: HTTP::Response=HASH(0x325 +d1b8) SOAP::Transport::HTTP::Client::send_receive: 500 Can't connect to test +proxy:8080 Content-Type: text/plain Client-Date: Sat, 09 Jun 2018 10:02:00 GMT Client-Warning: Internal response Can't connect to testproxy:8080 SOAP::Data::DESTROY: () SOAP::Data::DESTROY: () SOAP::Transport::DESTROY: () SOAP::Transport::HTTP::Client::DESTROY: ()
Could you please help on this issue ?

In reply to SOAP::Transport::HTTP::Client::send_receive: 500 Can't connect to testproxy:8080 by bvani11

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.