in reply to Problem with SOAP::Lite, getting the output from the SOAP server as a complete program and not the return value

Sounds like you need to configure your web server to execute the script rather than simply serve contents of your sever example as a page. See CGI Help Guide from the tutorials section and your web server documentation.

  • Comment on Re: Problem with SOAP::Lite, getting the output from the SOAP server as a complete program and not the return value

Replies are listed 'Best First'.
Re^2: Problem with SOAP::Lite, getting the output from the SOAP server as a complete program and not the return value
by sabertooth (Initiate) on Jan 09, 2010 at 13:41 UTC

    Hi Marto, Well I did try to read the instructions and configured my webserver (apache2) for cgi support.

    I tested it by running a simple script on the browser and it all worked fine.

    But as far as soap is concerned whenever I run the client I get the 500 internal server error. Any clue as to what can be wrong here

      Now that you've properly configured Apache it is executing the script and experiencing a problem. What does the error_log say? Do you have the required modules installed on this server? Also, check this reply for more CGI debugging advice.

        Well yes I did install all the modules that were required.

        This is what the error log says client 127.0.0.1 Use of uninitialized value $ENV{"HTTP_TRANSFER_ENCODING"} in pattern match (m//) at /usr/local/share/perl/5.10.0/SOAP/Transport/HTTP.pm line 530

        Moreover se linux is not enabled as I'm using Ubuntu. Also my shell scripts do run as the current user. Moreover I'm executing things as the root user.