in reply to SOAP::Lite Quickstart demo Use of uninitialized value in pattern match (m//)

I'm getting a 500 internal server error when I try to run the script
Your script doesn't send out CGI headers, so it shouldn't be run as a CGI. Try running it from the command line.

As an aside, please read Writeup Formatting Tips. Your post is very hard to read.

update: are you actually using the right URL? I.e. I doubt you're running http://server.com, so check if you're using the right URL to call the SOAP server.

  • Comment on Re: SOAP::Lite Quickstart demo Use of uninitialized value in pattern match (m//)

Replies are listed 'Best First'.
Re^2: SOAP::Lite Quickstart demo Use of uninitialized value in pattern match (m//)
by philosophia (Sexton) on Jul 10, 2006 at 19:17 UTC
    I get the same message in my apache2 error log when I try to run it from the command line
    perl hibye.pl
    [Mon Jul 10 14:15:11 2006] [error] [client 128.135.0.88] Use of uninit +ialized value in pattern match (m//) at /usr/local/share/perl/5.8.7/S +OAP/Transport/HTTP.pm line 411.
    The URL seems ok. the only thing I changed is the domain name.
        No. Running 'perl hibye.pl' just returns me to a command prompt.

        The SOAP Server script -hibye.cgi - it is trying to contact looks like

        #!/usr/bin/perl -w # -- SOAP::Lite -- guide.soaplite.com -- Copyright (C) 2001 Paul Kulch +enko -- use SOAP::Transport::HTTP; SOAP::Transport::HTTP::CGI -> dispatch_to('Demo') -> handle; package Demo; sub hi { return "hello, world"; } sub bye { return "goodbye, cruel world"; } sub languages { return ("Perl", "C", "sh"); } ~
        so running the hibye.pl script from the command prompt should generate a message.