Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: SOAP::Transport::HTTP::Client::send_receive: 500 Can't connect to testproxy:8080

by NetWallah (Canon)
on Jun 09, 2018 at 15:30 UTC ( [id://1216247]=note: print w/replies, xml ) Need Help??


in reply to SOAP::Transport::HTTP::Client::send_receive: 500 Can't connect to testproxy:8080

HTTP error 500 AKA "Internal Server Error" is a server-side error.

The good news is that the web server is receiving your SOAP request.
The bad news is that the web server is rejecting it.

The name "testproxy" is not a part of your request - it seems like some attempt at server-side redirect that is failing.

It's time to talk to the web server administrator to figure out what is happening.

                Memory fault   --   brain fried

  • Comment on Re: SOAP::Transport::HTTP::Client::send_receive: 500 Can't connect to testproxy:8080

Replies are listed 'Best First'.
Re^2: SOAP::Transport::HTTP::Client::send_receive: 500 Can't connect to testproxy:8080
by bvani11 (Initiate) on Jun 13, 2018 at 13:43 UTC
    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.
      This code looks incorrect:
      my $method = SOAP::Data->name('getRecords') ->att...
      In order to "get" the "name", you need an existing SOAP::Data object.
      I don't know what accessing that as a class method will get you.

      You should try to error check that .. as a minimum, ensure that $method is not undef.

      Error 500 is still a server-side error - so server-side web-server logs can also help identify the cause.

      If you can reproduce this problem using a 'curl' command, it may be easier to convince the server support people that the issue is on their side.

                      Memory fault   --   brain fried

Re^2: SOAP::Transport::HTTP::Client::send_receive: 500 Can't connect to testproxy:8080
by Anonymous Monk on Jun 09, 2018 at 22:50 UTC
    Client-Warning: Internal response

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1216247]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-25 07:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found